Lines Matching defs:in
3 * For conditions of distribution and use, see copyright notice in zlib.h
13 * or in pipe mode.
61 #ifndef WIN32 /* unlink already in stdio.h for WIN32 */
70 /* Map the Windows error number in ERROR to a locale-dependent error
267 unsigned char in[1];
278 got = fread(in, 1, 1, gz->file);
281 strm->next_in = in;
339 void gz_compress OF((FILE *in, gzFile out));
341 int gz_compress_mmap OF((FILE *in, gzFile out));
343 void gz_uncompress OF((gzFile in, FILE *out));
362 void gz_compress(in, out)
363 FILE *in;
371 /* Try first compressing with mmap. If mmap fails (minigzip used in a
374 if (gz_compress_mmap(in, out) == Z_OK) return;
377 len = (int)fread(buf, 1, sizeof(buf), in);
378 if (ferror(in)) {
386 fclose(in);
395 int gz_compress_mmap(in, out)
396 FILE *in;
401 int ifd = fileno(in);
421 fclose(in);
430 void gz_uncompress(in, out)
431 gzFile in;
439 len = gzread(in, buf, sizeof(buf));
440 if (len < 0) error (gzerror(in, &err));
449 if (gzclose(in) != Z_OK) error("failed gzclose");
462 FILE *in;
477 in = fopen(file, "rb");
478 if (in == NULL) {
487 gz_compress(in, out);
502 gzFile in;
529 in = gzopen(infile, "rb");
530 if (in == NULL) {
540 gz_uncompress(in, out);
633 FILE * in = fopen(*argv, "rb");
635 if (in == NULL) {
641 gz_compress(in, file);