1 typedef struct ZipHead ZipHead;
10 ZECHeader = 0x06054b50,
13 * "general purpose flag" bits
16 ZTrailInfo = 1 << 3, /* uncsize, csize, and crc are in trailer */
17 ZCompPatch = 1 << 5, /* compression patched data */
19 /* ZCrcPoly = 0xedb88320, */
20 #define ZCrcPoly 0xedb88320
28 * internal file attributes
33 * file attribute interpretation, from high byte of version
48 * external attribute flags for ZDos
57 ZHeadSize = 4 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 2,
58 ZHeadCrc = 4 + 2 + 2 + 2 + 2 + 2,
59 ZTrailSize = 4 + 4 + 4,
60 ZCHeadSize = 4 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 2 + 2 + 2 + 2 + 4 + 4,
61 ZECHeadSize = 4 + 2 + 2 + 2 + 2 + 4 + 4 + 2
65 * interesting info from a zip header
69 int madeos; /* version made by */
71 int extos; /* version needed to extract */
73 int flags; /* general purpose bit flag */