| /freebsd-13-stable/tools/regression/capsicum/syscalls/ |
| HD | cap_fcntls_limit.c | 54 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 56 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 78 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 80 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 101 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 103 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 134 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 136 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 186 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_1() 188 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_1() [all …]
|
| HD | cap_ioctls_limit.c | 101 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0() 117 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_0() 123 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0() 163 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_1() 169 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_1() 202 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_2() 208 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_2() 287 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0() 301 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_recv_0() 307 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0()
|
| /freebsd-13-stable/lib/libc/gen/ |
| HD | popen.c | 147 (void)_fcntl(pdes[1], F_SETFD, 0); in popen() 149 (void)_fcntl(pdes[1], F_SETFD, 0); in popen() 154 (void)_fcntl(pdes[0], F_SETFD, 0); in popen() 180 (void)_fcntl(fileno(iop), F_SETFD, 0); in popen()
|
| HD | wordexp.c | 174 _fcntl(pdes[1], F_SETFD, 0)) < 0) in we_askshell() 176 if (_fcntl(pdesw[0], F_SETFD, 0) < 0) in we_askshell()
|
| /freebsd-13-stable/contrib/apr/include/arch/unix/ |
| HD | apr_arch_inherit.h | 34 if (fcntl(the##name->name##des, F_SETFD, flags) == -1) \ 54 if (fcntl(the##name->name##des, F_SETFD, flags) == -1) \
|
| /freebsd-13-stable/usr.bin/mail/ |
| HD | popen.c | 76 (void)fcntl(fileno(fp), F_SETFD, 1); in Fopen() 88 (void)fcntl(fileno(fp), F_SETFD, 1); in Fdopen() 112 (void)fcntl(p[READ], F_SETFD, 1); in Popen() 113 (void)fcntl(p[WRITE], F_SETFD, 1); in Popen()
|
| HD | lex.c | 134 (void)fcntl(fileno(otf), F_SETFD, 1); in setfile() 137 (void)fcntl(fileno(itf), F_SETFD, 1); in setfile()
|
| /freebsd-13-stable/contrib/apr/poll/unix/ |
| HD | wakeup.c | 99 if (fcntl(wakeup_pipe[0]->filedes, F_SETFD, flags) == -1) in apr_poll_create_wakeup_pipe() 109 if (fcntl(wakeup_pipe[1]->filedes, F_SETFD, flags) == -1) in apr_poll_create_wakeup_pipe()
|
| /freebsd-13-stable/contrib/netbsd-tests/lib/librumpclient/ |
| HD | h_execthr.c | 168 if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1) in main() 170 if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1) in main()
|
| HD | h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
|
| /freebsd-13-stable/contrib/blacklist/port/ |
| HD | popenve.c | 96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get() 97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
|
| /freebsd-13-stable/crypto/heimdal/lib/roken/ |
| HD | cloexec.c | 47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
|
| /freebsd-13-stable/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
| HD | randombytes_sysrandom.c | 190 # if defined(F_SETFD) && defined(FD_CLOEXEC) in randombytes_sysrandom_random_dev_open() 191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_sysrandom_random_dev_open()
|
| /freebsd-13-stable/lib/libc/stdio/ |
| HD | fdopen.c | 83 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
|
| /freebsd-13-stable/contrib/file/src/ |
| HD | funcs.c | 917 # ifdef F_SETFD in file_pipe_closexec() 918 (void)fcntl(fds[0], F_SETFD, FD_CLOEXEC); in file_pipe_closexec() 919 (void)fcntl(fds[1], F_SETFD, FD_CLOEXEC); in file_pipe_closexec() 927 #ifdef F_SETFD in file_clear_closexec() 928 return fcntl(fd, F_SETFD, 0); in file_clear_closexec()
|
| /freebsd-13-stable/contrib/bmake/ |
| HD | job.c | 591 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 593 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 1499 if (fcntl(0, F_SETFD, 0) == -1) in JobExec() 1509 if (fcntl(tokenWaitJob.inPipe, F_SETFD, 0) == -1) in JobExec() 1512 if (fcntl(tokenWaitJob.outPipe, F_SETFD, 0) == -1) in JobExec() 1530 if (fcntl(1, F_SETFD, 0) == -1) in JobExec() 1652 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC); in JobWriteShellCommands() 2888 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC); in Job_ServerStart() 2889 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC); in Job_ServerStart()
|
| /freebsd-13-stable/contrib/jemalloc/src/ |
| HD | pages.c | 494 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 505 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 514 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
|
| /freebsd-13-stable/contrib/tcsh/ |
| HD | tc.os.h | 193 # ifdef F_SETFD 197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
|
| /freebsd-13-stable/lib/libutil/ |
| HD | flopen.c | 112 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
|
| /freebsd-13-stable/contrib/apr/file_io/unix/ |
| HD | open.c | 195 if (fcntl(fd, F_SETFD, flags) == -1) { in apr_file_open() 395 if (fcntl(thefile->filedes, F_SETFD, flags) == -1) in APR_IMPLEMENT_INHERIT_SET()
|
| HD | mktemp.c | 213 if (fcntl(fd, F_SETFD, flags) == -1) in apr_file_mktemp()
|
| /freebsd-13-stable/contrib/pf/libevent/ |
| HD | signal.c | 82 if (fcntl(x, F_SETFD, 1) == -1) \
|
| /freebsd-13-stable/tools/build/cross-build/ |
| HD | closefrom.c | 68 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in closefrom_close()
|
| /freebsd-13-stable/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/ |
| HD | randombytes_salsa20_random.c | 231 # if defined(F_SETFD) && defined(FD_CLOEXEC) in randombytes_salsa20_random_random_dev_open() 232 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_salsa20_random_random_dev_open()
|
| /freebsd-13-stable/crypto/openssh/openbsd-compat/ |
| HD | bsd-pselect.c | 66 fcntl(r, F_SETFD, FD_CLOEXEC) < 0 || r >= FD_SETSIZE) in pselect_notify_setup_fd()
|