Lines Matching refs:FILE
1 /* gzjoin -- command to join gzip files into one gzip file
34 single gzip file that will uncompress to the concatenation of the
47 compressed data in order to connect the streams. The output gzip file
48 has a minimal ten-byte gzip header with no file name or modification time.
72 /* -- simple buffered file input with access to the buffer -- */
76 /* bin buffered input file type */
78 char *name; /* name of file for error messages */
79 int fd; /* file descriptor */
85 /* close a buffered file and free allocated memory */
97 /* open a buffered file for input, return a pointer to type bin, or NULL on
118 /* load buffer from file, return -1 on read error, 0 or 1 on success, with
119 1 indicating that end-of-file was reached */
138 /* get a byte from the file, bail if end of file */
141 bail("unexpected end of file on ", in->name))
143 /* get a four-byte little-endian unsigned integer from file */
155 /* skip bytes in file */
180 for end-of-file with a read */
183 bail("unexpected end of file on ", in->name);
195 bail("unexpected end of file on ", in->name);
202 /* skip the gzip header from file in */
209 bail(in->name, " is not a valid gzip file");
228 /* skip file name if present */
244 local void put4(unsigned long val, FILE *out)
252 /* Load up zlib stream from buffered input, bail if end of file */
258 bail("unexpected end of file on ", in->name);
263 /* Write header for gzip file to out and initialize trailer. */
264 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out)
276 gzip file is written to out. gzinit() must be called before the first call
279 FILE *out)
284 bin *in; /* buffered input file */
290 /* open gzip file and skip header */
381 /* already at byte boundary, or last file: write last byte */
418 /* write trailer if this is the last gzip file */