gzip.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * gzip header fields
  3. */
  4. enum
  5. {
  6. GZMAGIC1 = 0x1f,
  7. GZMAGIC2 = 0x8b,
  8. GZDEFLATE = 8,
  9. GZFTEXT = 1 << 0, /* file is text */
  10. GZFHCRC = 1 << 1, /* crc of header included */
  11. GZFEXTRA = 1 << 2, /* extra header included */
  12. GZFNAME = 1 << 3, /* name of file included */
  13. GZFCOMMENT = 1 << 4, /* header comment included */
  14. GZFMASK = (1 << 5) -1, /* mask of specified bits */
  15. GZXFAST = 2, /* used fast algorithm, little compression */
  16. GZXBEST = 4, /* used maximum compression algorithm */
  17. GZOSFAT = 0, /* FAT file system */
  18. GZOSAMIGA = 1, /* Amiga */
  19. GZOSVMS = 2, /* VMS or OpenVMS */
  20. GZOSUNIX = 3, /* Unix */
  21. GZOSVMCMS = 4, /* VM/CMS */
  22. GZOSATARI = 5, /* Atari TOS */
  23. GZOSHPFS = 6, /* HPFS file system */
  24. GZOSMAC = 7, /* Macintosh */
  25. GZOSZSYS = 8, /* Z-System */
  26. GZOSCPM = 9, /* CP/M */
  27. GZOSTOPS20 = 10, /* TOPS-20 */
  28. GZOSNTFS = 11, /* NTFS file system */
  29. GZOSQDOS = 12, /* QDOS */
  30. GZOSACORN = 13, /* Acorn RISCOS */
  31. GZOSUNK = 255,
  32. GZCRCPOLY = 0xedb88320UL,
  33. GZOSINFERNO = GZOSUNIX,
  34. };