| /freebsd-12.1/tools/regression/capsicum/syscalls/ |
| H A D | cap_ioctls_limit.c | 58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 79 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 99 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 103 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 121 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 125 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 167 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_1() 171 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_1() 206 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_2() 210 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_2() [all …]
|
| H A D | cap_fcntls_limit.c | 57 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0() 58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 82 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 105 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 138 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 190 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_1() 237 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_2() 294 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_recv_0() 318 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_recv_0() 348 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_recv_0() [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_socketpair.c | 81 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run() 82 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run() 84 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run() 85 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
|
| H A D | t_pipe2.c | 69 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run() 70 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run() 72 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run() 73 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
|
| /freebsd-12.1/contrib/apr/include/arch/unix/ |
| H A D | apr_arch_inherit.h | 33 flags &= ~(FD_CLOEXEC); \ 53 flags |= FD_CLOEXEC; \
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Host/posix/ |
| H A D | PipePosix.cpp | 52 #if defined(FD_CLOEXEC) && !PIPE2_SUPPORTED 57 return (::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0); in SetCloexecFlag() 96 #ifdef FD_CLOEXEC in CreateNew()
|
| /freebsd-12.1/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-12.1/contrib/tcsh/ |
| H A D | tc.os.h | 195 # ifndef FD_CLOEXEC 196 # define FD_CLOEXEC 1 macro 198 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
|
| /freebsd-12.1/contrib/apr/file_io/unix/ |
| H A D | open.c | 193 if ((flags & FD_CLOEXEC) == 0) { in apr_file_open() 194 flags |= FD_CLOEXEC; in apr_file_open() 394 flags |= FD_CLOEXEC; in APR_IMPLEMENT_INHERIT_SET()
|
| H A D | mktemp.c | 212 flags |= FD_CLOEXEC; in apr_file_mktemp()
|
| /freebsd-12.1/contrib/blacklist/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-12.1/tests/sys/file/ |
| H A D | dup_test.c | 287 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main() 327 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main()
|
| /freebsd-12.1/crypto/heimdal/lib/roken/ |
| H A D | cloexec.c | 47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
|
| /freebsd-12.1/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-12.1/contrib/bmake/ |
| H A D | make.h | 102 #ifndef FD_CLOEXEC 103 #define FD_CLOEXEC 1 macro
|
| /freebsd-12.1/lib/libc/tests/gen/ |
| H A D | popen_test.c | 64 exp_flags = FD_CLOEXEC; in check_cloexec() 67 ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags, in check_cloexec()
|
| /freebsd-12.1/contrib/jemalloc/src/ |
| H A D | pages.c | 447 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 458 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 467 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
|
| /freebsd-12.1/contrib/apr/poll/unix/ |
| H A D | pollset.c | 91 flags |= FD_CLOEXEC; in create_wakeup_pipe() 101 flags |= FD_CLOEXEC; in create_wakeup_pipe()
|
| /freebsd-12.1/lib/libc/stdio/ |
| H A D | fdopen.c | 85 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
|
| /freebsd-12.1/lib/libutil/ |
| H A D | flopen.c | 114 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
|
| /freebsd-12.1/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-12.1/lib/libc/tests/stdio/ |
| H A D | mkostemp_test.c | 74 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) { in test_one()
|
| /freebsd-12.1/contrib/libarchive/libarchive/ |
| H A D | archive_util.c | 507 if (flags != -1 && (flags & FD_CLOEXEC) == 0) in __archive_ensure_cloexec_flag() 508 fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in __archive_ensure_cloexec_flag()
|
| /freebsd-12.1/sys/sys/ |
| H A D | fcntl.h | 251 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
|