| 1 |
/* |
| 2 |
* gzip_constants.h - constants for the gzip wrapper format |
| 3 |
*/ |
| 4 |
|
| 5 |
#ifndef LIB_GZIP_CONSTANTS_H |
| 6 |
#define LIB_GZIP_CONSTANTS_H |
| 7 |
|
| 8 |
#define GZIP_MIN_HEADER_SIZE 10 |
| 9 |
#define GZIP_FOOTER_SIZE 8 |
| 10 |
#define GZIP_MIN_OVERHEAD (GZIP_MIN_HEADER_SIZE + GZIP_FOOTER_SIZE) |
| 11 |
|
| 12 |
#define GZIP_ID1 0x1F |
| 13 |
#define GZIP_ID2 0x8B |
| 14 |
|
| 15 |
#define GZIP_CM_DEFLATE 8 |
| 16 |
|
| 17 |
#define GZIP_FTEXT 0x01 |
| 18 |
#define GZIP_FHCRC 0x02 |
| 19 |
#define GZIP_FEXTRA 0x04 |
| 20 |
#define GZIP_FNAME 0x08 |
| 21 |
#define GZIP_FCOMMENT 0x10 |
| 22 |
#define GZIP_FRESERVED 0xE0 |
| 23 |
|
| 24 |
#define GZIP_MTIME_UNAVAILABLE 0 |
| 25 |
|
| 26 |
#define GZIP_XFL_SLOWEST_COMPRESSION 0x02 |
| 27 |
#define GZIP_XFL_FASTEST_COMPRESSION 0x04 |
| 28 |
|
| 29 |
#define GZIP_OS_FAT 0 |
| 30 |
#define GZIP_OS_AMIGA 1 |
| 31 |
#define GZIP_OS_VMS 2 |
| 32 |
#define GZIP_OS_UNIX 3 |
| 33 |
#define GZIP_OS_VM_CMS 4 |
| 34 |
#define GZIP_OS_ATARI_TOS 5 |
| 35 |
#define GZIP_OS_HPFS 6 |
| 36 |
#define GZIP_OS_MACINTOSH 7 |
| 37 |
#define GZIP_OS_Z_SYSTEM 8 |
| 38 |
#define GZIP_OS_CP_M 9 |
| 39 |
#define GZIP_OS_TOPS_20 10 |
| 40 |
#define GZIP_OS_NTFS 11 |
| 41 |
#define GZIP_OS_QDOS 12 |
| 42 |
#define GZIP_OS_RISCOS 13 |
| 43 |
#define GZIP_OS_UNKNOWN 255 |
| 44 |
|
| 45 |
#endif /* LIB_GZIP_CONSTANTS_H */ |