Lines Matching refs:in
3 * For conditions of distribution and use, see copyright notice in zlib.h
13 * or in pipe mode.
57 #ifndef WIN32 /* unlink already in stdio.h for WIN32 */
66 /* Map the Windows error number in ERROR to a locale-dependent error
144 void gz_compress OF((FILE *in, gzFile out));
146 int gz_compress_mmap OF((FILE *in, gzFile out));
148 void gz_uncompress OF((gzFile in, FILE *out));
167 void gz_compress(in, out)
168 FILE *in;
176 /* Try first compressing with mmap. If mmap fails (minigzip used in a
179 if (gz_compress_mmap(in, out) == Z_OK) return;
182 len = (int)fread(buf, 1, sizeof(buf), in);
183 if (ferror(in)) {
191 fclose(in);
200 int gz_compress_mmap(in, out)
201 FILE *in;
206 int ifd = fileno(in);
226 fclose(in);
235 void gz_uncompress(in, out)
236 gzFile in;
244 len = gzread(in, buf, sizeof(buf));
245 if (len < 0) error (gzerror(in, &err));
254 if (gzclose(in) != Z_OK) error("failed gzclose");
267 FILE *in;
278 in = fopen(file, "rb");
279 if (in == NULL) {
288 gz_compress(in, out);
303 gzFile in;
322 in = gzopen(infile, "rb");
323 if (in == NULL) {
333 gz_uncompress(in, out);
422 FILE * in = fopen(*argv, "rb");
424 if (in == NULL) {
430 gz_compress(in, file);