/freebsd-9.3-release/usr.sbin/pw/ |
H A D | cpdir.c | 58 int infd, outfd; local 95 } else if (S_ISREG(st.st_mode) && (outfd = open(dst, O_RDWR | O_CREAT | O_EXCL, st.st_mode)) != -1) { 97 close(outfd); 108 write(outfd, copybuf, b); 113 fchown(outfd, uid, gid); 114 fchflags(outfd, st.st_flags); 115 close(outfd);
|
H A D | fileupd.c | 90 int outfd; local 95 outfd = open(file, O_RDWR | O_CREAT | O_TRUNC, fmode); 96 if (outfd == -1) 99 FILE *outfp = fdopen(outfd, "w+"); 103 close(outfd);
|
H A D | edgroup.c | 77 int outfd; local 79 if ((outfd = open(grouptmp, O_RDWR | O_CREAT | O_TRUNC, 0644)) != -1) { 82 if ((outfp = fdopen(outfd, "w+")) == NULL) 83 close(outfd);
|
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | dmu_send.h | 39 int dmu_send(const char *tosnap, const char *fromsnap, int outfd, 49 int outfd, struct vnode *vp, offset_t *off); 51 int outfd, struct file *fp, offset_t *off);
|
/freebsd-9.3-release/usr.bin/mail/ |
H A D | popen.c | 210 run_command(char *cmd, sigset_t *mask, int infd, int outfd, char *a0, argument 215 if ((pid = start_command(cmd, mask, infd, outfd, a0, a1, a2)) < 0) 222 start_command(char *cmd, sigset_t *mask, int infd, int outfd, char *a0, argument 239 prepare_child(mask, infd, outfd); 248 prepare_child(sigset_t *nset, int infd, int outfd) argument 259 if (outfd >= 0) 260 dup2(outfd, 1);
|
/freebsd-9.3-release/usr.sbin/nghook/ |
H A D | main.c | 67 static int outfd = STDOUT_FILENO; variable 114 outfd = STDIN_FILENO; 215 else if ((wl = write(outfd, buf, rl)) != rl) { 280 (void) write(outfd, sbuf, strlen(sbuf)); 283 write(outfd, &ch, 1);
|
/freebsd-9.3-release/usr.sbin/dconschat/ |
H A D | dconschat.c | 117 int outfd; member in struct:dcons_state::dcons_port 167 write(p->outfd, buf, strlen(buf)); 199 write(p->outfd, buf, strlen(buf)); 218 write(p->outfd, buf, strlen(buf)); 230 write(p->outfd, buf, strlen(buf)); 235 write(p->outfd, buf, strlen(buf)); 635 p->infd = p->outfd = -1; 644 p->outfd = STDOUT_FILENO; 737 p->infd = p->outfd = ns; 800 write(p->outfd, bu [all...] |
/freebsd-9.3-release/usr.sbin/edquota/ |
H A D | edquota.c | 476 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) argument 481 ftruncate(outfd, 0); 482 lseek(outfd, 0, L_SET); 483 if ((fd = fdopen(dup(outfd), "w")) == NULL) 690 writetimes(struct quotause *quplist, int outfd, int quotatype) argument 695 ftruncate(outfd, 0); 696 lseek(outfd, 0, L_SET); 697 if ((fd = fdopen(dup(outfd), "w")) == NULL)
|
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_sendrecv.c | 190 cksum_and_write(const void *buf, uint64_t len, zio_cksum_t *zc, int outfd) argument 193 return (write(outfd, buf, len)); 226 int outfd; local 258 outfd = dda->outputfd; 275 &stream_cksum, outfd) == -1) 289 outfd) == -1) 301 if ((write(outfd, drr, 310 &stream_cksum, outfd) == -1) 318 &stream_cksum, outfd) == -1) 327 &stream_cksum, outfd) 803 int outfd; member in struct:send_dump_data 880 dump_ioctl(zfs_handle_t *zhp, const char *fromsnap, uint64_t fromsnap_obj, boolean_t fromorigin, int outfd, nvlist_t *debugnv) argument 1349 zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap, sendflags_t *flags, int outfd, snapfilter_cb_t filter_func, void *cb_arg, nvlist_t **debugnvp) argument [all...] |
H A D | libzfs_diff.c | 753 zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap, argument 781 di.outputfd = outfd;
|
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dmu_send.c | 463 zfs_bookmark_phys_t *fromzb, boolean_t is_clone, int outfd, 466 zfs_bookmark_phys_t *fromzb, boolean_t is_clone, int outfd, 526 dsp->dsa_outfd = outfd; 588 int outfd, vnode_t *vp, offset_t *off) 590 int outfd, struct file *fp, offset_t *off) 626 outfd, fp, off); 629 outfd, fp, off); 638 int outfd, vnode_t *vp, offset_t *off) 640 int outfd, struct file *fp, offset_t *off) 708 outfd, f 461 dmu_send_impl(void *tag, dsl_pool_t *dp, dsl_dataset_t *ds, zfs_bookmark_phys_t *fromzb, boolean_t is_clone, int outfd, vnode_t *vp, offset_t *off) argument 586 dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap, int outfd, vnode_t *vp, offset_t *off) argument 636 dmu_send(const char *tosnap, const char *fromsnap, int outfd, vnode_t *vp, offset_t *off) argument [all...] |
/freebsd-9.3-release/contrib/tnftp/src/ |
H A D | ftp.c | 575 * Read data from infd & write to outfd, using buf/bufsize as the temporary 584 copy_bytes(int infd, int outfd, char *buf, size_t bufsize, argument 616 outc = write(outfd, bufp, inc);
|
/freebsd-9.3-release/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 1350 execfilter(struct printer *pp, char *f_cmd, char *f_av[], int infd, int outfd) argument 1416 dup2(outfd, STDOUT_FILENO);
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | srvrsmtp.c | 4024 int inchfd, outchfd, outfd; local 4028 outfd = sm_io_getinfo(smioout, SM_IO_WHAT_FD, NULL); 4029 if (outchfd != outfd) 4032 (void) dup2(outchfd, outfd);
|