/freebsd/tools/test/stress2/testcases/mmap/ |
H A D | mmap.c | 101 int fdin, fdout; in test() local 112 if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0) in test() 118 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) in test() 122 if (write(fdout, "", 1) != 1) in test() 130 MAP_SHARED, fdout, 0)) == (caddr_t) - 1) in test() 141 close(fdout); in test()
|
/freebsd/tools/test/stress2/misc/ |
H A D | nfs12.sh | 96 int fdin, fdout; 107 if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0) 113 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 117 if (write(fdout, "", 1) != 1) 125 MAP_SHARED, fdout, 0)) == (caddr_t) - 1) 136 close(fdout);
|
H A D | vunref.sh | 139 int fdin, fdout; 150 if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0) 156 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 160 if (write(fdout, "", 1) != 1) 168 MAP_SHARED, fdout, 0)) == (caddr_t) - 1) 179 close(fdout);
|
H A D | nfsdelegation.sh | 106 int fdout; 127 if ((fdout = open(file, O_RDWR)) < 0) 129 if (fstat(fdout, &statbuf) < 0) 133 MAP_PRIVATE, MAP_SHARED, fdout, 0)) == (caddr_t) - 1) 138 close(fdout);
|
/freebsd/sbin/nvmecontrol/ |
H A D | telemetry.c | 96 int fd, fdout; in telemetry_log() local 132 fdout = open(opt.outfn, O_WRONLY | O_CREAT, 0664); in telemetry_log() 133 if (fdout == -1) in telemetry_log() 173 if (write(fdout, &buf, chunk) != chunk) in telemetry_log() 179 close(fdout); in telemetry_log()
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | fs.c | 220 do_mkstemp(char *tmpl, int *fdout) in do_mkstemp() argument 226 *fdout = mkstemp(tmpl); in do_mkstemp() 227 if (*fdout == -1) in do_mkstemp() 821 atf_fs_mkstemp(atf_fs_path_t *p, int *fdout) in atf_fs_mkstemp() argument 841 *fdout = fd; in atf_fs_mkstemp()
|
/freebsd/contrib/libedit/ |
H A D | el.c | 72 int fdin, int fdout, int fderr, int flags) in el_init_internal() argument 84 el->el_outfd = fdout; in el_init_internal() 122 int fdin, int fdout, int fderr) in el_init_fd() argument 124 return el_init_internal(prog, fin, fout, ferr, fdin, fdout, fderr, 0); in el_init_fd()
|
/freebsd/usr.bin/gzip/ |
H A D | unlz.c | 321 lz_create(struct lz_decoder *lz, int fin, int fdout, int dict_size) in lz_create() argument 329 lz->fout = fdopen(dup(fdout), "w"); in lz_create() 540 lz_decode(int fin, int fdout, unsigned dict_size, off_t *insize) in lz_decode() argument 545 if (lz_create(&lz, fin, fdout, dict_size) == -1) in lz_decode()
|
/freebsd/sys/dev/fdc/ |
H A D | fdc.c | 516 fdout_wr(fdc, fdc->fdout & ~(FDO_FRST|FDO_FDMAEN)); in fdc_reset() 519 fdout_wr(fdc, fdc->fdout & ~FDO_FDMAEN); in fdc_reset() 522 fdout_wr(fdc, fdc->fdout); in fdc_reset() 626 fdc->fdout &= ~FDO_FDSEL; in fd_select() 627 fdc->fdout |= FDO_FDMAEN | FDO_FRST | fd->fdsu; in fd_select() 628 fdout_wr(fdc, fdc->fdout); in fd_select() 665 fdc->fdout |= (FDO_MOEN0 << fd->fdsu); in fd_motor() 670 fdc->fdout &= ~(FDO_MOEN0 << fd->fdsu); in fd_motor() 672 fdout_wr(fdc, fdc->fdout); in fd_motor() 1821 fdout_wr(fdc, fdc->fdout = 0); in fdc_attach()
|
H A D | fdcvar.h | 51 int fdout; /* mirror of the w/o digital output reg */ member
|
/freebsd/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 54 int do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout); 714 do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout) in do_cmd() argument 785 *fdout = pin[1]; in do_cmd()
|
/freebsd/crypto/openssh/ |
H A D | session.c | 570 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() 2255 int fdin, int fdout, int fderr, int ignore_fderr, int is_tty) in session_set_fds() argument 2264 fdout, fdin, fderr, in session_set_fds()
|
H A D | scp.c | 282 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()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1692 #define __sanitizer_syscall_pre_tee(fdin, fdout, len, flags) \ argument 1693 __sanitizer_syscall_pre_impl_tee((long)(fdin), (long)(fdout), (long)(len), \ 1695 #define __sanitizer_syscall_post_tee(res, fdin, fdout, len, flags) \ argument 1696 __sanitizer_syscall_post_impl_tee(res, (long)(fdin), (long)(fdout), \ 2991 void __sanitizer_syscall_pre_impl_tee(long fdin, long fdout, long len, 2993 void __sanitizer_syscall_post_impl_tee(long res, long fdin, long fdout,
|
/freebsd/sys/kern/ |
H A D | vfs_syscalls.c | 1994 goto fdout; in kern_funlinkat() 2027 goto fdout; in kern_funlinkat() 2051 fdout: in kern_funlinkat() 3958 goto fdout; in kern_frmdirat() 4001 goto fdout; in kern_frmdirat() 4015 fdout: in kern_frmdirat()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 2930 PRE_SYSCALL(tee)(long fdin, long fdout, long len, long flags) {} 2932 POST_SYSCALL(tee)(long res, long fdin, long fdout, long len, long flags) {}
|