Changeset 2df7fdd4 in mainline
- Timestamp:
- 2011-06-05T14:14:37Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ed19497
- Parents:
- a1467102
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.h
ra1467102 r2df7fdd4 44 44 #define FAT_EXT_PAD " " 45 45 46 #define FAT_ATTR_RDONLY (1 << 0) 47 #define FAT_ATTR_VOLLABEL (1 << 3) 48 #define FAT_ATTR_SUBDIR (1 << 4) 49 46 #define FAT_ATTR_RDONLY 0x01 47 #define FAT_ATTR_HIDDEN 0x02 48 #define FAT_ATTR_SYSTEM 0x04 49 #define FAT_ATTR_VOLLABEL 0x08 50 #define FAT_ATTR_SUBDIR 0x10 51 #define FAT_ATTR_ARCHIVE 0x20 52 #define FAT_ATTR_LNAME \ 53 (FAT_ATTR_RDONLY | FAT_ATTR_HIDDEN | FAT_ATTR_SYSTEM | FAT_ATTR_VOLLABEL) 54 50 55 #define FAT_LCASE_LOWER_NAME 0x08 51 56 #define FAT_LCASE_LOWER_EXT 0x10 … … 57 62 #define FAT_DENTRY_DOT 0x2e 58 63 #define FAT_DENTRY_ERASED 0xe5 64 #define FAT_LAST_LONG_ENTRY 0x40 59 65 60 66 typedef enum { … … 66 72 67 73 typedef struct { 68 uint8_t name[8];69 uint8_t ext[3];70 uint8_t attr;71 uint8_t lcase;72 uint8_t ctime_fine;73 uint16_t ctime;74 uint16_t cdate;75 uint16_t adate;76 74 union { 77 uint16_t eaidx; /* FAT12/FAT16 */ 78 uint16_t firstc_hi; /* FAT32 */ 79 } __attribute__ ((packed)); 80 uint16_t mtime; 81 uint16_t mdate; 82 union { 83 uint16_t firstc; /* FAT12/FAT16 */ 84 uint16_t firstc_lo; /* FAT32 */ 85 } __attribute__ ((packed)); 86 uint32_t size; 75 struct { 76 uint8_t name[8]; 77 uint8_t ext[3]; 78 uint8_t attr; 79 uint8_t lcase; 80 uint8_t ctime_fine; 81 uint16_t ctime; 82 uint16_t cdate; 83 uint16_t adate; 84 union { 85 uint16_t eaidx; /* FAT12/FAT16 */ 86 uint16_t firstc_hi; /* FAT32 */ 87 } __attribute__ ((packed)); 88 uint16_t mtime; 89 uint16_t mdate; 90 union { 91 uint16_t firstc; /* FAT12/FAT16 */ 92 uint16_t firstc_lo; /* FAT32 */ 93 } __attribute__ ((packed)); 94 uint32_t size; 95 } __attribute__ ((packed)); 96 struct { 97 uint8_t order; 98 uint8_t name1[10]; 99 uint8_t attr; 100 uint8_t type; 101 uint8_t check_sum; 102 uint8_t name2[12]; 103 uint16_t firstc_lo; /* MUST be 0 */ 104 uint8_t name3[4]; 105 } long_entry __attribute__ ((packed)); 106 }; 87 107 } __attribute__ ((packed)) fat_dentry_t; 88 108
Note:
See TracChangeset
for help on using the changeset viewer.