add gzip, bzip2
'
This commit is contained in:
parent
4314729dde
commit
ff3adf6082
44 changed files with 9880 additions and 2 deletions
40
src/cmd/gzip/gzip.h
Normal file
40
src/cmd/gzip/gzip.h
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* gzip header fields
|
||||
*/
|
||||
enum
|
||||
{
|
||||
GZMAGIC1 = 0x1f,
|
||||
GZMAGIC2 = 0x8b,
|
||||
|
||||
GZDEFLATE = 8,
|
||||
|
||||
GZFTEXT = 1 << 0, /* file is text */
|
||||
GZFHCRC = 1 << 1, /* crc of header included */
|
||||
GZFEXTRA = 1 << 2, /* extra header included */
|
||||
GZFNAME = 1 << 3, /* name of file included */
|
||||
GZFCOMMENT = 1 << 4, /* header comment included */
|
||||
GZFMASK = (1 << 5) -1, /* mask of specified bits */
|
||||
|
||||
GZXFAST = 2, /* used fast algorithm, little compression */
|
||||
GZXBEST = 4, /* used maximum compression algorithm */
|
||||
|
||||
GZOSFAT = 0, /* FAT file system */
|
||||
GZOSAMIGA = 1, /* Amiga */
|
||||
GZOSVMS = 2, /* VMS or OpenVMS */
|
||||
GZOSUNIX = 3, /* Unix */
|
||||
GZOSVMCMS = 4, /* VM/CMS */
|
||||
GZOSATARI = 5, /* Atari TOS */
|
||||
GZOSHPFS = 6, /* HPFS file system */
|
||||
GZOSMAC = 7, /* Macintosh */
|
||||
GZOSZSYS = 8, /* Z-System */
|
||||
GZOSCPM = 9, /* CP/M */
|
||||
GZOSTOPS20 = 10, /* TOPS-20 */
|
||||
GZOSNTFS = 11, /* NTFS file system */
|
||||
GZOSQDOS = 12, /* QDOS */
|
||||
GZOSACORN = 13, /* Acorn RISCOS */
|
||||
GZOSUNK = 255,
|
||||
|
||||
GZCRCPOLY = 0xedb88320UL,
|
||||
|
||||
GZOSINFERNO = GZOSUNIX,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue