Home | History | Annotate | Download | only in pending

Lines Matching refs:out_fd

75 static int do_zlib(int in_fd, int out_fd)
83 if (out_fd == 1) out_fd = xdup(out_fd);
85 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
88 if (len != writeall(out_fd, toybuf, len)) break;
107 int len, out_fd = 0;
111 if (!in_fd || (toys.optflags&FLAG_c)) out_fd = 1;
116 } else out_fd = 1;
120 if (!out_fd) {
137 out_fd = xcreate(out_name,
139 if (out_fd == -1) return;
143 if (do_zlib(in_fd, out_fd) && out_name) arg = out_name;
144 if (out_fd != 1) close(out_fd);