/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 | 53 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) 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 | 96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get() 97 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/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/contrib/bmake/ |
H A D | job.c | 576 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 578 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 1483 if (fcntl(STDIN_FILENO, F_SETFD, 0) == -1) in JobExec() 1491 if (fcntl(tokenWaitJob.inPipe, F_SETFD, 0) == -1) in JobExec() 1494 if (fcntl(tokenWaitJob.outPipe, F_SETFD, 0) == -1) in JobExec() 1512 if (fcntl(STDOUT_FILENO, F_SETFD, 0) == -1) in JobExec() 1634 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC); in JobWriteShellCommands() 2720 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC); in clearfd() 2721 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC); in clearfd()
|
/freebsd/lib/libc/stdio/ |
H A D | fdopen.c | 79 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
|
/freebsd/contrib/jemalloc/src/ |
H A D | pages.c | 487 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 498 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 507 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
|
/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/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/crypto/openssh/openbsd-compat/ |
H A D | bsd-pselect.c | 66 fcntl(r, F_SETFD, FD_CLOEXEC) < 0 || r >= FD_SETSIZE) in pselect_notify_setup_fd()
|
/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/contrib/llvm-project/compiler-rt/lib/rtsan/tests/ |
H A D | rtsan_test_interceptors.cpp | 240 ASSERT_THAT(fcntl(fd, F_SETFD, FD_CLOEXEC), Eq(0)); in TEST_F() 246 ASSERT_THAT(fcntl(fd, F_SETFD, old_flags), Eq(0)); in TEST_F()
|
/freebsd/sys/sys/ |
H A D | fcntl.h | 241 #define F_SETFD 2 /* set file descriptor flags */ macro
|