Changeset d5e2763 in mainline for uspace/lib/ext2
- Timestamp:
- 2011-02-12T16:17:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36bca8eb
- Parents:
- d3842e0
- Location:
- uspace/lib/ext2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext2/libext2.c
rd3842e0 rd5e2763 38 38 #include <errno.h> 39 39 40 inline uint16_t ext2_superblock_get_magic(ext2_superblock_t *superblock) { 41 return uint16_t_le2host(superblock->magic); 42 } 43 40 44 /** @} 41 45 */ -
uspace/lib/ext2/libext2.h
rd3842e0 rd5e2763 37 37 #define LIBEXT2_LIBEXT2_H_ 38 38 39 #include <byteorder.h> 39 40 41 typedef struct ext2_superblock { 42 uint8_t unused[56]; 43 uint16_t magic; 44 } ext2_superblock_t; 45 46 #define EXT2_SUPERBLOCK_MAGIC 0xEF53 47 48 inline uint16_t ext2_superblock_get_magic(ext2_superblock_t *superblock); 40 49 41 50 #endif
Note:
See TracChangeset
for help on using the changeset viewer.