• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/zlib-1.2.3/examples/

Lines Matching defs: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
24 gun will decompress from stdin to stdout. The names must end in .gz, -gz,
25 .z, -z, _z, or .Z. The uncompressed data will be written to a file name
28 continue to process the remaining names on the command line. A memory
35 writing all of the uncompressed data to the output. Unlike gzip, gun allows
46 file are maintained in the final uncompressed file, to the extent that the
75 /* structure for infback() to pass to input function in() -- it maintains the
82 /* Load input buffer, assumed to be empty, and return bytes loaded and a
83 pointer to them. read() is called until the buffer is full, or until it
110 /* structure for infback() to pass to output function out() -- it maintains the
156 have offset the index, but it's faster to waste the memory */
159 unsigned short prefix[65536]; /* index to LZW prefix string */
187 /* Decompress a compress (LZW) file from indp to outfile. The compress magic
190 to gunpipe().
194 not equal to Z_NULL), or Z_DATA_ERROR for invalid input.
292 code &= mask; /* mask to current code length */
305 /* special code to reuse last match */
314 to detect random or corrupted input after a compress header.
324 /* walk through linked list to generate output in reverse order */
362 /* Decompress a gzip file from infile to outfile. strm is assumed to have been
365 to the output file. If outfile is -1, then the gzip stream(s) integrity is
463 /* decompress data to output */
504 /* Copy file attributes, from -> to, as best we can. This is best effort, so
508 local void copymeta(char *from, char *to)
517 /* set to's mode bits, ignore errors */
518 (void)chmod(to, was.st_mode & 07777);
521 (void)chown(to, was.st_uid, was.st_gid);
526 (void)utime(to, &when);
529 /* Decompress the file inname to the file outnname, of if test is true, just
532 an empty string, write to stdout. strm is a pre-initialized inflateBack
533 structure. When appropriate, copy the file attributes from inname to
640 /* decompress each file to the same name with the suffix removed */