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.sh138 int fdin, fdout;
149 if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0)
155 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1)
159 if (write(fdout, "", 1) != 1)
167 MAP_SHARED, fdout, 0)) == (caddr_t) - 1)
178 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.c96 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 Dfs.c220 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 Del.c72 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 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.c559 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
574 if ((fdout = dup(ptyfd)) == -1) { in do_exec_pty()
585 close(fdout); in do_exec_pty()
593 close(fdout); in do_exec_pty()
601 close(fdout); in do_exec_pty()
648 session_set_fds(ssh, s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
2270 int fdin, int fdout, int fderr, int ignore_fderr, int is_tty) in session_set_fds() argument
2279 fdout, fdin, fderr, in session_set_fds()
H A Dscp.c280 char *cmd, int *fdin, int *fdout, pid_t *pid) in do_cmd() argument
359 *fdout = pin[1]; in do_cmd()
364 *fdout = sv[1]; in do_cmd()
380 int fdin, int fdout) in do_cmd2() argument
399 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), \
2984 void __sanitizer_syscall_pre_impl_tee(long fdin, long fdout, long len,
2986 void __sanitizer_syscall_post_impl_tee(long res, long fdin, long fdout,
/freebsd/sys/kern/
H A Dvfs_syscalls.c1954 goto fdout; in kern_funlinkat()
1987 goto fdout; in kern_funlinkat()
2012 fdout: in kern_funlinkat()
3918 goto fdout; in kern_frmdirat()
3961 goto fdout; in kern_frmdirat()
3976 fdout: in kern_frmdirat()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc2907 PRE_SYSCALL(tee)(long fdin, long fdout, long len, long flags) {}
2909 POST_SYSCALL(tee)(long res, long fdin, long fdout, long len, long flags) {}