summaryrefslogtreecommitdiff
path: root/libfat
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:32 -0700
commit2953cf3a4d44c90885eb7abf1ed2acc6354f6ad7 (patch)
tree603f5285bf51b1a1c122bca3ed0d9134f446b1fe /libfat
parent247a297b057388f91e1f914a2c9a9014383df5d0 (diff)
downloadsyslinux-2953cf3a4d44c90885eb7abf1ed2acc6354f6ad7.tar.gz
Run Nindent on libfat/fat.h
Automatically reformat libfat/fat.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'libfat')
-rw-r--r--libfat/fat.h132
1 files changed, 65 insertions, 67 deletions
diff --git a/libfat/fat.h b/libfat/fat.h
index 116e244e..b4e32f76 100644
--- a/libfat/fat.h
+++ b/libfat/fat.h
@@ -23,56 +23,56 @@
/* The poor excuse FAT has for a superblock -- in the boot sector */
struct fat_bootsect {
- le8_t bsJump[3]; /* Jump to code */
- char bsOemName[8]; /* Formatting program */
- le16_t bsBytesPerSec; /* Bytes/sector */
- le8_t bsSecPerClust; /* Sectors/cluster */
- le16_t bsResSectors; /* Reserved sectors */
- le8_t bsFATs; /* Number of FATs */
- le16_t bsRootDirEnts; /* Number of entries/root directory */
- le16_t bsSectors; /* Number of sectors [1] */
- le8_t bsMedia; /* Magic media type byte */
- le16_t bsFATsecs; /* Sectors/FAT */
- le16_t bsSecPerTrack; /* Sectors/track */
- le16_t bsHeads; /* Number of heads */
- le32_t bsHiddenSecs; /* Number of hidden sectors */
- le32_t bsHugeSectors; /* Number of sectors [2] */
- union {
- /* FAT12/16 */
- struct {
- le8_t bsDriveNumber; /* Drive number */
- le8_t bsReserved1; /* Reserved */
- le8_t bsBootSignature; /* 0x29 */
- le32_t bsVolumeID; /* Volume serial number */
- char bsVolumeLabel[11]; /* Volume name */
- char bsFileSysType[8]; /* File system type */
+ le8_t bsJump[3]; /* Jump to code */
+ char bsOemName[8]; /* Formatting program */
+ le16_t bsBytesPerSec; /* Bytes/sector */
+ le8_t bsSecPerClust; /* Sectors/cluster */
+ le16_t bsResSectors; /* Reserved sectors */
+ le8_t bsFATs; /* Number of FATs */
+ le16_t bsRootDirEnts; /* Number of entries/root directory */
+ le16_t bsSectors; /* Number of sectors [1] */
+ le8_t bsMedia; /* Magic media type byte */
+ le16_t bsFATsecs; /* Sectors/FAT */
+ le16_t bsSecPerTrack; /* Sectors/track */
+ le16_t bsHeads; /* Number of heads */
+ le32_t bsHiddenSecs; /* Number of hidden sectors */
+ le32_t bsHugeSectors; /* Number of sectors [2] */
+ union {
+ /* FAT12/16 */
+ struct {
+ le8_t bsDriveNumber; /* Drive number */
+ le8_t bsReserved1; /* Reserved */
+ le8_t bsBootSignature; /* 0x29 */
+ le32_t bsVolumeID; /* Volume serial number */
+ char bsVolumeLabel[11]; /* Volume name */
+ char bsFileSysType[8]; /* File system type */
- le8_t bsCode[448]; /* Boot sector code */
- } fat16;
+ le8_t bsCode[448]; /* Boot sector code */
+ } fat16;
- /* FAT32 */
- struct {
- le32_t bpb_fatsz32; /* Sectors/FAT */
- le16_t bpb_extflags; /* Extended flags */
- le16_t bpb_fsver; /* Filesystem version */
- le32_t bpb_rootclus; /* Root directory cluster */
- le16_t bpb_fsinfo; /* FSINFO sector number */
- le16_t bpb_bkbootsec; /* Backup boot sector (superblock) */
- char bpb_reserved[12];
+ /* FAT32 */
+ struct {
+ le32_t bpb_fatsz32; /* Sectors/FAT */
+ le16_t bpb_extflags; /* Extended flags */
+ le16_t bpb_fsver; /* Filesystem version */
+ le32_t bpb_rootclus; /* Root directory cluster */
+ le16_t bpb_fsinfo; /* FSINFO sector number */
+ le16_t bpb_bkbootsec; /* Backup boot sector (superblock) */
+ char bpb_reserved[12];
- /* Same shit, different offset! */
- le8_t bsDriveNumber; /* Drive number */
- le8_t bsReserved1; /* Reserved */
- le8_t bsBootSignature; /* 0x29 */
- le32_t bsVolumeID; /* Volume serial number */
- char bsVolumeLabel[11]; /* Volume name */
- char bsFileSysType[8]; /* File system type */
+ /* Same shit, different offset! */
+ le8_t bsDriveNumber; /* Drive number */
+ le8_t bsReserved1; /* Reserved */
+ le8_t bsBootSignature; /* 0x29 */
+ le32_t bsVolumeID; /* Volume serial number */
+ char bsVolumeLabel[11]; /* Volume name */
+ char bsFileSysType[8]; /* File system type */
- le8_t bsCode[420]; /* Boot sector code */
- } fat32;
- } u;
+ le8_t bsCode[420]; /* Boot sector code */
+ } fat32;
+ } u;
- le16_t bsSignature; /* 0xAA55 */
+ le16_t bsSignature; /* 0xAA55 */
};
#define BS_BOOTSIGNATURE 0x29
@@ -80,31 +80,29 @@ struct fat_bootsect {
/* A FAT filesystem directory entry */
-struct fat_dirent
-{
- le8_t name[11]; /* Mangled filename */
- le8_t attribute; /* File type/attribute */
- le8_t caseflags; /* VFAT: case for basis and extension */
- le8_t ctime_ms; /* ms of creation time */
- le32_t ctime; /* Creation time */
- le16_t atime; /* Date portion (high 16 bits) of atime */
- le16_t clusthi; /* FAT32: high 16 bits of cluster */
- le32_t mtime; /* Modification time */
- le16_t clustlo; /* First cluster pointer */
- le32_t size; /* File size (bytes) */
+struct fat_dirent {
+ le8_t name[11]; /* Mangled filename */
+ le8_t attribute; /* File type/attribute */
+ le8_t caseflags; /* VFAT: case for basis and extension */
+ le8_t ctime_ms; /* ms of creation time */
+ le32_t ctime; /* Creation time */
+ le16_t atime; /* Date portion (high 16 bits) of atime */
+ le16_t clusthi; /* FAT32: high 16 bits of cluster */
+ le32_t mtime; /* Modification time */
+ le16_t clustlo; /* First cluster pointer */
+ le32_t size; /* File size (bytes) */
};
/* A VFAT filesystem continuation entry */
-struct fat_vfat_slot
-{
- le8_t id; /* Sequence number for slot */
- le16_t name0[5]; /* 5 characters */
- le8_t attribute; /* Attribute byte */
- le8_t reserved; /* Reserved, MBZ */
- le8_t alias_csum; /* Short name checksum */
- le16_t name5[6]; /* 6 characters */
- le16_t firstclust; /* MBZ */
- le16_t name11[2]; /* 2 characters */
+struct fat_vfat_slot {
+ le8_t id; /* Sequence number for slot */
+ le16_t name0[5]; /* 5 characters */
+ le8_t attribute; /* Attribute byte */
+ le8_t reserved; /* Reserved, MBZ */
+ le8_t alias_csum; /* Short name checksum */
+ le16_t name5[6]; /* 6 characters */
+ le16_t firstclust; /* MBZ */
+ le16_t name11[2]; /* 2 characters */
};
#endif /* FAT_H */