Home | History | Annotate | Download | only in examples

Lines Matching full:gzip

1 /* gzappend -- command to append to a gzip file
37 * - Finish off gzip file in gztack()
39 * - Keep gzip file clean on appended file read errors
45 gzappend takes a gzip file and appends to it, compressing files from the
46 command line or data from stdin. The gzip file is written to directly, to
48 unfriendly behavior that if gzappend fails, the gzip file is corrupted.
58 gzappend first decompresses the gzip file internally, discarding all but
61 The gzip trailer containing the CRC-32 and length of the uncompressed data
69 data from the gzip file to initialize the dictionary. If the total
73 append is simply compressed using deflate, and written to the gzip file.
75 as the trailer of the gzip file.
167 /* structure for gzip file read operations */
232 /* skip over gzip header */
238 if (read1(in) != 31 || read1(in) != 139) bye(in->name, " not a gzip file");
253 /* decompress gzip file "name", return strm with a deflate stream ready to
254 continue compression of the data in the gzip file, and return a file
266 /* open gzip file */
275 /* skip gzip header */
340 /* check gzip trailer and save total for deflate */
350 "gzappend warning: junk at end of gzip file overwritten\n");
384 /* append file "name" to gzip file gd using deflate stream strm -- if last
406 /* compress input file and append to gzip file */
428 if (len == -1) bye("writing gzip file", "");
448 if (ret == -1) bye("writing gzip file", "");
460 /* process the compression level option if present, scan the gzip file, and
462 names are provided on the command line -- the gzip file must be writable
486 if (*++argv == NULL) bye("no gzip file name after options", "");
489 /* prepare to append to gzip file */