Lines Matching refs:ofd
114 int ifd, ofd;
125 #define ofd (Z.ofd )
239 ofd = xopen(outfile, oflag);
242 if (ftruncate(ofd, seek * obs) < 0) {
245 if (fstat(ofd, &st) < 0 || S_ISREG(st.st_mode) ||
251 ofd = STDOUT_FILENO;
266 if (lseek(ofd, seek * obs, SEEK_CUR) < 0)
304 if (write_and_stats(ofd, obuf, obs, obs, outfile))
309 } else if (write_and_stats(ofd, ibuf, n, obs, outfile))
314 w = full_write_or_warn(ofd, obuf, oc, outfile);
324 if (close(ofd) < 0) {