/freebsd/lib/libc/stdlib/ |
H A D | ptsname.c | 47 __isptmaster(int fildes) in __isptmaster() argument 50 if (_ioctl(fildes, TIOCPTMASTER) == 0) in __isptmaster() 74 __ptsname_r(int fildes, char *buffer, size_t buflen) in __ptsname_r() argument 83 if (__isptmaster(fildes) != 0) in __ptsname_r() 90 if (fdevname_r(fildes, buffer, buflen) == NULL) { in __ptsname_r() 106 ptsname(int fildes) in ptsname() argument 110 if (__ptsname_r(fildes, pt_slave, sizeof(pt_slave)) == 0) in ptsname()
|
/freebsd/lib/libc/gen/ |
H A D | posix_spawn.c | 430 int fildes, const char * __restrict path, int oflag, mode_t mode) in posix_spawn_file_actions_addopen() argument 435 if (fildes < 0) in posix_spawn_file_actions_addopen() 451 fae->fae_fildes = fildes; in posix_spawn_file_actions_addopen() 461 int fildes, int newfildes) in posix_spawn_file_actions_adddup2() argument 465 if (fildes < 0 || newfildes < 0) in posix_spawn_file_actions_adddup2() 475 fae->fae_fildes = fildes; in posix_spawn_file_actions_adddup2() 484 int fildes) in posix_spawn_file_actions_addclose() argument 488 if (fildes < 0) in posix_spawn_file_actions_addclose() 498 fae->fae_fildes = fildes; in posix_spawn_file_actions_addclose() 529 int fildes) in posix_spawn_file_actions_addfchdir_np() argument [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.misc.c | 574 xclose(int fildes) in xclose() argument 576 if (fildes < 0) in xclose() 578 while (close(fildes) == -1 && errno == EINTR) in xclose() 604 xdup2(int fildes, int fildes2) in xdup2() argument 608 while ((res = dup2(fildes, fildes2)) == -1 && errno == EINTR) in xdup2() 684 xread(int fildes, void *buf, size_t nbyte) in xread() argument 693 while ((res = read(fildes, buf, nbyte)) == -1 && errno == EINTR); in xread() 699 xtcsetattr(int fildes, int optional_actions, const struct termios *termios_p) in xtcsetattr() argument 703 while ((res = tcsetattr(fildes, optional_actions, termios_p)) == -1 && in xtcsetattr() 712 xwrite(int fildes, const void *buf, size_t nbyte) in xwrite() argument [all …]
|
H A D | sh.lex.c | 1563 wide_read(int fildes, Char *buf, size_t nchars, int use_fclens) in wide_read() argument 1583 r = xread(fildes, cbuf + partial, len); in wide_read() 1618 lseek(fildes, -(off_t)partial, L_INCR); in wide_read()
|
/freebsd/lib/libc/sys/ |
H A D | pipe.c | 37 extern int __sys_pipe2(int fildes[2], int flags); 40 __sys_pipe(int fildes[2]) in __sys_pipe() 43 return (__sys_pipe2(fildes, 0)); in __sys_pipe()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | mpeix.c | 201 sendmail_mpe_fcntl(int fildes, int cmd, ...) in sendmail_mpe_fcntl() argument 214 if (getsockname(fildes, &sa, &len) == -1) in sendmail_mpe_fcntl() 219 return sfcntl(fildes, cmd, arg); in sendmail_mpe_fcntl() 224 return fcntl(fildes, cmd, arg); in sendmail_mpe_fcntl() 233 if ((result = sfcntl(fildes, cmd, arg)) != -1 && in sendmail_mpe_fcntl()
|
/freebsd/usr.bin/tip/tip/ |
H A D | tipout.c | 60 read(fildes[0], &ccc,1); in intIOT() 76 read(fildes[0], &c, 1); in intEMT() 79 read(fildes[0], &c, 1); in intEMT()
|
H A D | cmds.c | 194 write(fildes[1], (char *)&ccc, 1); in transfer() 383 write(fildes[1], (char *)&ccc, 1); in transmit() 506 write(fildes[1], (char *)&ccc, 1); in pipeout() 560 write(fildes[1], (char *)&ccc, 1); in consh() 617 write(fildes[1], value(RECORD), size(value(RECORD))); in setscript() 618 write(fildes[1], "\n", 1); in setscript()
|
H A D | tip.h | 246 EXTERN int fildes[2]; /* file transfer synchronization channel */ variable
|
H A D | tip.c | 219 pipe(fildes); pipe(repdes); in main()
|
/freebsd/sys/kern/ |
H A D | sys_pipe.c | 477 kern_pipe(struct thread *td, int fildes[2], int flags, struct filecaps *fcaps1, in kern_pipe() 497 fildes[0] = fd; in kern_pipe() 512 fdclose(td, rf, fildes[0]); in kern_pipe() 521 fildes[1] = fd; in kern_pipe() 533 int fildes[2]; in freebsd10_pipe() local 535 error = kern_pipe(td, fildes, 0, NULL, NULL); in freebsd10_pipe() 539 td->td_retval[0] = fildes[0]; in freebsd10_pipe() 540 td->td_retval[1] = fildes[1]; in freebsd10_pipe() 549 int error, fildes[2]; in sys_pipe2() local 553 error = kern_pipe(td, fildes, uap->flags, NULL, NULL); in sys_pipe2() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 1626 int fildes[2]; in linux_pipe() local 1629 error = kern_pipe(td, fildes, 0, NULL, NULL); in linux_pipe() 1633 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe() 1635 (void)kern_close(td, fildes[0]); in linux_pipe() 1636 (void)kern_close(td, fildes[1]); in linux_pipe() 1646 int fildes[2]; in linux_pipe2() local 1657 error = kern_pipe(td, fildes, flags, NULL, NULL); in linux_pipe2() 1661 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe2() 1663 (void)kern_close(td, fildes[0]); in linux_pipe2() 1664 (void)kern_close(td, fildes[1]); in linux_pipe2()
|
/freebsd/contrib/llvm-project/lldb/tools/driver/ |
H A D | Platform.cpp | 53 int tcgetattr(int fildes, struct termios *termios_p) { in tcgetattr() argument
|
H A D | Platform.h | 73 extern int tcgetattr(int fildes, struct termios *termios_p);
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vnops.c | 812 fcntl_getlocks(int fildes, off_t start, off_t len, in fcntl_getlocks() argument 821 RL(rump_sys_fcntl(fildes, F_GETLK, &l)); in fcntl_getlocks() 833 fcntl_getlocks(fildes, start, l.l_start - start, lock, end); in fcntl_getlocks() 844 rv += fcntl_getlocks(fildes, l.l_start + l.l_len, len, lock, end); in fcntl_getlocks() 847 rv += fcntl_getlocks(fildes, l.l_start + l.l_len, len, lock, end); in fcntl_getlocks()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 718 #define __sanitizer_syscall_pre_pipe(fildes) \ argument 719 __sanitizer_syscall_pre_impl_pipe((long)(fildes)) 720 #define __sanitizer_syscall_post_pipe(res, fildes) \ argument 721 __sanitizer_syscall_post_impl_pipe(res, (long)(fildes)) 722 #define __sanitizer_syscall_pre_pipe2(fildes, flags) \ argument 723 __sanitizer_syscall_pre_impl_pipe2((long)(fildes), (long)(flags)) 724 #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \ argument 725 __sanitizer_syscall_post_impl_pipe2(res, (long)(fildes), (long)(flags)) 726 #define __sanitizer_syscall_pre_dup(fildes) \ argument 727 __sanitizer_syscall_pre_impl_dup((long)(fildes)) [all …]
|
H A D | netbsd_syscall_hooks.h | 2189 #define __sanitizer_syscall_pre_aio_cancel(fildes, aiocbp) \ argument 2190 __sanitizer_syscall_pre_impl_aio_cancel((long long)(fildes), \ 2192 #define __sanitizer_syscall_post_aio_cancel(res, fildes, aiocbp) \ argument 2193 __sanitizer_syscall_post_impl_aio_cancel(res, (long long)(fildes), \ 2522 #define __sanitizer_syscall_pre_pipe2(fildes, flags) \ argument 2523 __sanitizer_syscall_pre_impl_pipe2((long long)(fildes), (long long)(flags)) 2524 #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \ argument 2525 __sanitizer_syscall_post_impl_pipe2(res, (long long)(fildes), \ 4504 void __sanitizer_syscall_pre_impl_aio_cancel(long long fildes, 4506 void __sanitizer_syscall_post_impl_aio_cancel(long long res, long long fildes, [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | ifiter_ioctl.c | 114 isc_ioctl(int fildes, int req, char *arg); 117 isc_ioctl(int fildes, int req, char *arg) { in isc_ioctl() argument 122 if ((ret = ioctl(fildes, req, arg)) < 0) { in isc_ioctl()
|
/freebsd/contrib/ntp/sntp/m4/ |
H A D | openldap-thread-check.m4 | 331 static int fildes[2]; 345 FD_SET(fildes[0], &rfds); 365 if(pipe(&fildes[0])) {
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 1345 PRE_SYSCALL(pipe)(void *fildes) {} 1347 POST_SYSCALL(pipe)(long res, void *fildes) { 1349 if (fildes) 1350 POST_WRITE(fildes, sizeof(int) * 2); 1353 PRE_SYSCALL(pipe2)(void *fildes, long flags) {} 1355 POST_SYSCALL(pipe2)(long res, void *fildes, long flags) { 1357 if (fildes) 1358 POST_WRITE(fildes, sizeof(int) * 2); 1361 PRE_SYSCALL(dup)(long fildes) {} 1363 POST_SYSCALL(dup)(long res, long fildes) {} [all …]
|
H A D | sanitizer_mac.cpp | 113 extern "C" void *__mmap(void *addr, size_t len, int prot, int flags, int fildes,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetLibraryInfo.def | 1212 /// FILE *fdopen(int fildes, const char *mode); 1460 /// int fstat(int fildes, struct stat *buf); 1470 /// int fstatvfs(int fildes, struct statvfs *buf); 1475 /// int fstatvfs64(int fildes, struct statvfs64 *buf); 1870 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset); 1905 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset); 1916 /// ssize_t read(int fildes, void *buf, size_t nbyte); 2472 /// ssize_t write(int fildes, const void *buf, size_t nbyte);
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | Host.cpp | 83 int __pthread_fchdir(int fildes);
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 271 int kern_pipe(struct thread *td, int fildes[2], int flags,
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 821 int __sys_pipe2(int * fildes, int flags);
|