| /freebsd/tools/regression/capsicum/syscalls/ |
| H A D | cap_fcntls_limit.c | 53 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 55 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 77 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 79 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 100 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 102 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 133 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 135 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0() 185 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_1() 187 CHECK(fcntl(fd, F_SETFD, in fcntl_tests_1() [all...] |
| H A D | cap_ioctls_limit.c | 100 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0() 116 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_0() 122 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0() 162 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_1() 168 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_1() 201 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_2() 207 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_2() 286 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0() 300 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_recv_0() 306 CHECK(fcntl(fd, F_SETFD, in ioctl_tests_recv_0() [all...] |
| /freebsd/lib/libc/gen/ |
| H A D | popen.c | 145 (void)_fcntl(pdes[1], F_SETFD, 0); in popen() 147 (void)_fcntl(pdes[1], F_SETFD, 0); in popen() 152 (void)_fcntl(pdes[0], F_SETFD, 0); in popen() 178 (void)_fcntl(fileno(iop), F_SETFD, 0); in popen()
|
| H A D | fdopendir.c | 59 rc = _fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in fdopendir()
|
| H A D | wordexp.c | 173 _fcntl(pdes[1], F_SETFD, 0)) < 0) in we_askshell() 175 if (_fcntl(pdesw[0], F_SETFD, 0) < 0) in we_askshell()
|
| /freebsd/usr.bin/mail/ |
| H A D | popen.c | 70 (void)fcntl(fileno(fp), F_SETFD, 1); in Fopen() 82 (void)fcntl(fileno(fp), F_SETFD, 1); in Fdopen() 106 (void)fcntl(p[READ], F_SETFD, 1); in Popen() 107 (void)fcntl(p[WRITE], F_SETFD, 1); in Popen()
|
| H A D | lex.c | 128 (void)fcntl(fileno(otf), F_SETFD, 1); in setfile() 131 (void)fcntl(fileno(itf), F_SETFD, 1); in setfile()
|
| /freebsd/contrib/netbsd-tests/lib/librumpclient/ |
| H A D | 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()
|
| H A D | h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
|
| /freebsd/contrib/blocklist/port/ |
| H A D | popenve.c | 98 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get() 99 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | cloexec.c | 47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
|
| /freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
| H A D | 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/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | fcntl-macros.h | 67 #define F_SETFD 2 macro
|
| /freebsd/contrib/file/src/ |
| H A D | 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/lib/libc/stdio/ |
| H A D | fdopen.c | 86 rc = _fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); in fdopen()
|
| /freebsd/contrib/jemalloc/src/ |
| H A D | pages.c | 639 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in pages_boot() 650 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in pages_boot() 659 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
| /freebsd/contrib/tcsh/ |
| H A D | tc.os.h | 193 # ifdef F_SETFD 197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
|
| /freebsd/lib/libutil/ |
| H A D | flopen.c | 112 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
|
| /freebsd/contrib/pf/libevent/ |
| H A D | signal.c | 82 if (fcntl(x, F_SETFD, 1) == -1) \
|
| /freebsd/tools/build/cross-build/ |
| H A D | closefrom.c | 68 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in closefrom_close()
|
| /freebsd/contrib/bmake/ |
| H A D | job.c | 668 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in SetCloseOnExec() 1610 if (fcntl(STDIN_FILENO, F_SETFD, 0) == -1) in JobExec() 1618 if (fcntl(tokenPoolJob.inPipe, F_SETFD, 0) == -1) in JobExec() 1621 if (fcntl(tokenPoolJob.outPipe, F_SETFD, 0) == -1) in JobExec() 1635 if (fcntl(STDOUT_FILENO, F_SETFD, 0) == -1) in JobExec() 1746 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in JobWriteShellCommands() 2698 (void)fcntl(tokenPoolReader, F_SETFD, FD_CLOEXEC); in TokenPool_InitClient() 2699 (void)fcntl(tokenPoolWriter, F_SETFD, FD_CLOEXEC); in TokenPool_InitClient()
|
| /freebsd/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/ |
| H A D | 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/lib/libc/rpc/ |
| H A D | clnt_simple.c | 179 _fcntl(fd, F_SETFD, 1); /* make it "close on exec" */ in rpc_call()
|
| /freebsd/crypto/krb5/src/include/ |
| H A D | k5-platform.h | 859 #ifdef F_SETFD 861 # define set_cloexec_fd(FD) ((void)fcntl((FD), F_SETFD, FD_CLOEXEC)) 863 # define set_cloexec_fd(FD) ((void)fcntl((FD), F_SETFD, 1))
|
| /freebsd/usr.bin/mail/tests/ |
| H A D | mailx_signal_test.c | 46 pipe(spd) != 0 || fcntl(spd[1], F_SETFD, FD_CLOEXEC) != 0) in mailx_signal_test()
|