Lines Matching refs:to

1 /* gun.c -- simple gunzip to give an example of the use of inflateBack()
16 Copy file attributes from input file to output file
28 gun will decompress from stdin to stdout. The names must end in .gz, -gz,
29 .z, -z, _z, or .Z. The uncompressed data will be written to a file name
32 continue to process the remaining names on the command line. A memory
39 writing all of the uncompressed data to the output. Unlike gzip, gun allows
50 file are maintained in the final uncompressed file, to the extent that the
79 /* structure for infback() to pass to input function in() -- it maintains the
86 /* Load input buffer, assumed to be empty, and return bytes loaded and a
87 pointer to them. read() is called until the buffer is full, or until it
114 /* structure for infback() to pass to output function out() -- it maintains the
160 have offset the index, but it's faster to waste the memory */
163 unsigned short prefix[65536]; /* index to LZW prefix string */
191 /* Decompress a compress (LZW) file from indp to outfile. The compress magic
194 to gunpipe().
198 not equal to Z_NULL), or Z_DATA_ERROR for invalid input.
297 code &= mask; /* mask to current code length */
310 /* special code to reuse last match */
319 to detect random or corrupted input after a compress header.
329 /* walk through linked list to generate output in reverse order */
371 /* Decompress a gzip file from infile to outfile. strm is assumed to have been
374 to the output file. If outfile is -1, then the gzip stream(s) integrity is
472 /* decompress data to output */
513 /* Copy file attributes, from -> to, as best we can. This is best effort, so
517 local void copymeta(char *from, char *to)
526 /* set to's mode bits, ignore errors */
527 (void)chmod(to, was.st_mode & 07777);
530 (void)chown(to, was.st_uid, was.st_gid);
535 (void)utime(to, &when);
538 /* Decompress the file inname to the file outnname, of if test is true, just
541 an empty string, write to stdout. strm is a pre-initialized inflateBack
542 structure. When appropriate, copy the file attributes from inname to
649 /* decompress each file to the same name with the suffix removed */