diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2008-01-27 11:37:44 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2008-01-27 11:37:44 +0100 |
commit | 7e0f021a9aec35fd8e6725e87e3313b101d26f5e (patch) | |
tree | b1cacc4b24393f517aeb4610e9e1021f954307a8 /reference/C/CONTRIB/SNIP/dos5boot.h |
Initial import (2.0.2-6)2.0.2-6
Diffstat (limited to 'reference/C/CONTRIB/SNIP/dos5boot.h')
-rwxr-xr-x | reference/C/CONTRIB/SNIP/dos5boot.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/SNIP/dos5boot.h b/reference/C/CONTRIB/SNIP/dos5boot.h new file mode 100755 index 0000000..fccd398 --- /dev/null +++ b/reference/C/CONTRIB/SNIP/dos5boot.h @@ -0,0 +1,40 @@ +/*
+** DOS5BOOT.H - DOS 5 boot record
+*/
+
+#if defined(__TURBOC__)
+ #pragma option -a-
+ #define FAR far
+#elif defined(__ZTC__)
+ #pragma ZTC align 1
+ #define FAR _far
+#else /* MSC/QC/WATCOM/METAWARE */
+ #pragma pack(1)
+ #define FAR _far
+#endif
+
+typedef struct { /* offset in buffer record */
+ char bsJump[3]; /* 1 - 3 */
+ char bsOemName[8]; /* 4 - 11 */
+ short bsBytesPerSec; /* 12 - 13 */
+ char bsSecPerClust; /* 14 */
+ short bsResSectors; /* 15 - 16 */
+ char bsFATs; /* 17 */
+ short bsRootDirEnts; /* 18 - 19 */
+ short bsSectors; /* 20 - 21 */
+ char bsMedia; /* 22 */
+ short bsFATsecs; /* 23 - 24 */
+ short bsSecPerTrack; /* 25 - 26 */
+ short bsHeads; /* 27 - 28 */
+ long bsHiddenSecs; /* 29 - 32 */
+ long bsHugeSectors; /* 33 - 36 */
+ char bsDriveNumber; /* 37 */
+ char bsReserved1; /* 38 */
+ char bsBootSignature; /* 39 */
+ long bsVolumeID; /* 40 - 43 */
+ char bsVolumeLabel[11]; /* 44 - 54 */
+ char bsFileSysType[8]; /* 54 - 61 */
+ char bsReserved2[8]; /* 62 - 69 */
+ char bsJunk[442]; /* 70 - end of record
+ (byte 512 is last) */
+ } B_REC; /* Boot_record; total of 512 bytes */
|