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,
27 * internal file attributes
32 * file attribute interpretation, from high byte of version
47 * external attribute flags for ZDos
56 ZHeadSize = 4 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 2,
57 ZHeadCrc = 4 + 2 + 2 + 2 + 2 + 2,
58 ZTrailSize = 4 + 4 + 4,
59 ZCHeadSize = 4 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 2 + 2 + 2 + 2 + 4 + 4,
60 ZECHeadSize = 4 + 2 + 2 + 2 + 2 + 4 + 4 + 2,
64 * interesting info from a zip header
68 int madeos; /* version made by */
70 int extos; /* version needed to extract */
72 int flags; /* general purpose bit flag */