From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/CONTRIB/SNIP/dos5boot.h | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 reference/C/CONTRIB/SNIP/dos5boot.h (limited to 'reference/C/CONTRIB/SNIP/dos5boot.h') 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 */ -- cgit v1.2.3-54-g00ecf