Lines Matching refs:out_fd
68 // Read from in_fd, write to out_fd, decompress if dd else compress
69 static int do_deflate(int in_fd, int out_fd, int dd, int level)
77 if (out_fd == 1) out_fd = xdup(out_fd);
79 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
83 if (len != writeall(out_fd, toybuf, len)) break;
102 // Read from in_fd, write to out_fd, decompress if dd else compress
103 static int do_deflate(int in_fd, int out_fd, int dd, int level)
107 if (dd) WOULD_EXIT(x, gunzip_fd(in_fd, out_fd));
108 else WOULD_EXIT(x, gzip_fd(in_fd, out_fd));