Home
last modified time | relevance | path

Searched refs:fdout (Results 1 – 14 of 14) sorted by relevance

/dflybsd-src/usr.bin/vknet/
H A Dvknet.c53 static pid_t vknet_execssh(int fdin, int fdout, int compressOpt,
127 iod.fdout = 1; in main()
139 iod.fdout = fds[0]; in main()
182 stream1.fdout = iod->fdout; in vknet_blastaway()
186 stream2.fdout = ios->fdout; in vknet_blastaway()
256 if (write(stream->fdout, &head, sizeof(head)) != sizeof(head)) in vknet_stream()
258 if (write(stream->fdout, pkt, bytes) != bytes) in vknet_stream()
261 if (write(stream->fdout, pkt, bytes) != bytes) in vknet_stream()
267 close(stream->fdout); in vknet_stream()
338 io->fdout = tap_fd; in vknet_connect()
[all …]
H A Dvknet.h65 int fdout; member
70 int fdout; member
/dflybsd-src/test/stress/stress2/testcases/mmap/
H A Dmmap.c76 int fdin, fdout; in test() local
87 if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0) in test()
93 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) in test()
97 if (write(fdout, "", 1) != 1) in test()
105 MAP_SHARED, fdout, 0)) == (caddr_t) - 1) in test()
117 close(fdout); in test()
/dflybsd-src/bin/cpdup/
H A Dhclink.c20 int fdout[2]; in hcc_connect() local
28 if (pipe(fdout) < 0) { in hcc_connect()
42 dup2(fdout[0], 0); in hcc_connect()
43 close(fdout[0]); in hcc_connect()
44 close(fdout[1]); in hcc_connect()
69 close(fdout[0]); in hcc_connect()
70 hc->fdout = fdout[1]; in hcc_connect()
83 hcc_slave(int fdin, int fdout, struct HCDesc *descs, int count) in hcc_slave() argument
105 hcslave.fdout = fdout; in hcc_slave()
266 if (write(hc->fdout, whead, aligned_bytes) != aligned_bytes) { in hcc_finish_command()
[all …]
H A Dhclink.h35 int fdout; /* pipe */ member
90 int hcc_slave(int fdin, int fdout, struct HCDesc *descs, int count);
H A Dhcproto.h93 void hc_slave(int fdin, int fdout);
H A Dhcproto.c126 hc_slave(int fdin, int fdout) in hc_slave() argument
128 hcc_slave(fdin, fdout, HCDispatchTable, in hc_slave()
/dflybsd-src/sys/dev/disk/fd/
H A Dfd.c812 fdout_wr(fdc, ((fdc->fdout = 0))); in fdc_attach()
1123 int fdout = fdc->fdout; in set_motor() local
1127 fdout &= ~FDO_FDSEL; in set_motor()
1128 fdout |= (FDO_MOEN0 << fdsu) + fdsu; in set_motor()
1130 fdout &= ~(FDO_MOEN0 << fdsu); in set_motor()
1133 && (fdout & (FDO_MOEN0+FDO_MOEN1+FDO_MOEN2+FDO_MOEN3)) == 0) in set_motor()
1135 fdout &= ~ (FDO_FRST|FDO_FDMAEN); in set_motor()
1138 if((fdout & (FDO_FRST|FDO_FDMAEN)) == 0) in set_motor()
1140 fdout |= (FDO_FRST|FDO_FDMAEN); in set_motor()
1143 fdout_wr(fdc, fdout); in set_motor()
[all …]
H A Dfdc.h59 int fdout; /* mirror of the w/o digital output reg */ member
/dflybsd-src/contrib/cvs-1.12/src/
H A Dfilesubr.c35 int fdin, fdout; in copy_file() local
70 if ((fdout = creat (to, (int) sb.st_mode & 07777)) < 0) in copy_file()
91 if (write(fdout, buf, n) != n) { in copy_file()
99 if (close (fdout) < 0) in copy_file()
/dflybsd-src/contrib/libedit/src/
H A Del.c95 int fdin, int fdout, int fderr, int flags) in el_init_internal() argument
107 el->el_outfd = fdout; in el_init_internal()
145 int fdin, int fdout, int fderr) in el_init_fd() argument
147 return el_init_internal(prog, fin, fout, ferr, fdin, fdout, fderr, 0); in el_init_fd()
/dflybsd-src/crypto/openssh/
H A Dsession.c570 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
585 if ((fdout = dup(ptyfd)) == -1) { in do_exec_pty()
596 close(fdout); in do_exec_pty()
604 close(fdout); in do_exec_pty()
612 close(fdout); in do_exec_pty()
659 session_set_fds(ssh, s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
2238 int fdin, int fdout, int fderr, int ignore_fderr, int is_tty) in session_set_fds() argument
2247 fdout, fdin, fderr, in session_set_fds()
H A Dscp.c282 char *cmd, int *fdin, int *fdout, pid_t *pid) in do_cmd() argument
361 *fdout = pin[1]; in do_cmd()
366 *fdout = sv[1]; in do_cmd()
382 int fdin, int fdout) in do_cmd2() argument
401 if (dup2(fdout, 1) == -1) in do_cmd2()
/dflybsd-src/sbin/hammer/
H A Dcmd_mirror.c59 static void write_mrecord(int fdout, uint32_t type,
1472 write_mrecord(int fdout, uint32_t type, hammer_ioc_mrecord_any_t mrec, in write_mrecord() argument
1486 if (write(fdout, mrec, bytes) != bytes) { in write_mrecord()
1492 if (write(fdout, zbuf, pad) != pad) { in write_mrecord()