Home
last modified time | relevance | path

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

/freebsd/tools/test/stress2/testcases/mmap/
H A Dmmap.c101 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 Dnfs12.sh96 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 Dvunref.sh139 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 Dnfsdelegation.sh106 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 Dtelemetry.c99 int fd, fdout; in telemetry_log() local
135 fdout = open(opt.outfn, O_WRONLY | O_CREAT, 0664); in telemetry_log()
136 if (fdout == -1) in telemetry_log()
176 if (write(fdout, &buf, chunk) != chunk) in telemetry_log()
187 close(fdout); in telemetry_log()
/freebsd/contrib/atf/atf-c/detail/
H A Dfs.c139 do_mkstemp(char *tmpl, int *fdout) in do_mkdtemp()
145 *fdout = mkstemp(tmpl); in do_mkstemp() argument
146 if (*fdout == -1) in do_mkstemp()
710 atf_fs_mkstemp(atf_fs_path_t *p, int *fdout) in atf_fs_getcwd()
729 *fdout = fd; in atf_fs_mkdtemp()
746 atf_fs_mkstemp(atf_fs_path_t * p,int * fdout) atf_fs_mkstemp() argument
/freebsd/contrib/libedit/
H A Del.c74 int fdin, int fdout, int fderr, int flags) in el_init_internal() argument
86 el->el_outfd = fdout; in el_init_internal()
126 int fdin, int fdout, int fderr) in el_init_fd() argument
128 return el_init_internal(prog, fin, fout, ferr, fdin, fdout, fderr, 0); in el_init_fd()
/freebsd/usr.bin/gzip/
H A Dunlz.c321 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 Dfdc.c516 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 Dfdcvar.h51 int fdout; /* mirror of the w/o digital output reg */ member
/freebsd/crypto/heimdal/appl/rcp/
H A Drcp.c54 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 Dsession.c535 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
550 if ((fdout = dup(ptyfd)) == -1) { in do_exec_pty()
561 close(fdout); in do_exec_pty()
569 close(fdout); in do_exec_pty()
577 close(fdout); in do_exec_pty()
622 session_set_fds(ssh, s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
2225 int fdin, int fdout, int fderr, int ignore_fderr, int is_tty) in session_set_fds() argument
2234 fdout, fdin, fderr, in session_set_fds()
H A Dscp.c261 char *cmd, int *fdin, int *fdout, pid_t *pid) in do_cmd() argument
340 *fdout = pin[1]; in do_cmd()
345 *fdout = sv[1]; in do_cmd()
361 int fdin, int fdout) in do_cmd2() argument
380 if (dup2(fdout, 1) == -1) in do_cmd2()
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h1692 #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 Dvfs_syscalls.c2048 goto fdout; in kern_funlinkat()
2081 goto fdout; in kern_funlinkat()
2105 fdout: in kern_funlinkat()
4131 goto fdout; in kern_frmdirat()
4174 goto fdout; in kern_frmdirat()
4188 fdout: in kern_frmdirat()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc2933 PRE_SYSCALL(tee)(long fdin, long fdout, long len, long flags) {}
2935 POST_SYSCALL(tee)(long res, long fdin, long fdout, long len, long flags) {}
3209 (int fdin, __sanitizer___kernel_off_t *offin, int fdout,
3220 (SSIZE_T, int fdin, __sanitizer___kernel_off_t *offin, int fdout,