Lines Matching refs:to

1 /* gzappend -- command to append to a gzip file
10 Permission is granted to anyone to use this software for any purpose,
11 including commercial applications, and to alter it and redistribute it
12 freely, subject to the following restrictions:
30 * - Add version and copyright to help
31 * - Send help to stdout instead of stderr
33 * - Add L to constants in lseek() calls
41 * (Why you ask? Because it was fun to write!)
47 gzappend takes a gzip file and appends to it, compressing files from the
48 command line or data from stdin. The gzip file is written to directly, to
52 This program was written to illustrate the use of the new Z_BLOCK option of
54 block boundary to facilitate locating and modifying the last block bit at
68 data is saved along with the number of unused bits to initialize deflate.
71 data from the gzip file to initialize the dictionary. If the total
72 uncompressed data was less than 32K, then all of it is used to initialize
74 last bits from the original deflate stream. From here on, the data to
75 append is simply compressed using deflate, and written to the gzip file.
100 modified to be fast when one argument much greater than the other, and
101 coded to avoid unnecessary swapping */
127 unsigned char *start, *last, *to, *from;
134 /* pointer to last entry in list */
157 tmp = *from; /* save entry to be overwritten */
159 to = from; /* next step in cycle */
163 *to = *from; /* shift left */
165 *to = tmp; /* complete the circle */
255 /* decompress gzip file "name", return strm with a deflate stream ready to
257 descriptor pointing to where to write the compressed data -- the deflate
258 stream is initialized to compress using level "level" */
280 /* prepare to decompress */
305 /* set up output to next available section of sliding window */
359 if (write(gz.fd, gz.buf, 1) != 1) bye("writing after seek to ", name);
386 /* append file "name" to gzip file gd using deflate stream strm -- if last
394 /* open file to compress and append */
408 /* compress input file and append to gzip file */
493 /* prepare to append to gzip file */