Home
last modified time | relevance | path

Searched refs:FD_CLOEXEC (Results 1 – 25 of 76) sorted by relevance

1234

/freebsd-14.2/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c55 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
76 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
96 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
100 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
118 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
122 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
164 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_1()
168 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_1()
203 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_2()
207 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_2()
[all …]
H A Dcap_fcntls_limit.c54 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
55 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0()
79 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0()
102 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0()
135 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0()
187 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_1()
234 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_2()
291 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_recv_0()
315 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_recv_0()
345 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_recv_0()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/sys/
H A Dt_pipe2.c71 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run()
72 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run()
74 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run()
75 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
H A Dt_socketpair.c83 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run()
84 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run()
86 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run()
87 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
/freebsd-14.2/tests/sys/file/
H A Dclosefrom_test.c336 if ((flags & FD_CLOEXEC) != 0) in main()
343 if ((flags & FD_CLOEXEC) == 0) in main()
351 if ((flags & FD_CLOEXEC) != 0) in main()
H A Ddup_test.c285 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main()
325 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main()
/freebsd-14.2/contrib/netbsd-tests/lib/librumpclient/
H A Dh_execthr.c168 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 Dh_exec.c103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
/freebsd-14.2/contrib/tcsh/
H A Dtc.os.h194 # ifndef FD_CLOEXEC
195 # define FD_CLOEXEC 1 macro
197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
/freebsd-14.2/contrib/blocklist/port/
H A Dpopenve.c96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get()
97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
/freebsd-14.2/crypto/heimdal/lib/roken/
H A Dcloexec.c47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/posix/
H A DPipePosix.cpp43 #if defined(FD_CLOEXEC) && !PIPE2_SUPPORTED
48 return (::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0); in SetCloexecFlag()
91 #ifdef FD_CLOEXEC in CreateNew()
/freebsd-14.2/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c190 # 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-14.2/lib/libc/tests/gen/
H A Dpopen_test.c61 exp_flags = FD_CLOEXEC; in check_cloexec()
64 ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags, in check_cloexec()
/freebsd-14.2/lib/libc/stdio/
H A Dfdopen.c82 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
H A Dfreopen.c120 (void) _fcntl(fp->_file, F_SETFD, FD_CLOEXEC); in freopen()
/freebsd-14.2/contrib/jemalloc/src/
H A Dpages.c494 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-14.2/lib/libutil/
H A Dflopen.c112 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
/freebsd-14.2/tests/sys/posixshm/
H A Dmemfd_test.c72 ATF_REQUIRE((fcntl(fd_nocl, F_GETFD) & FD_CLOEXEC) == 0); in ATF_TC_BODY()
73 ATF_REQUIRE((fcntl(fd_cl, F_GETFD) & FD_CLOEXEC) != 0); in ATF_TC_BODY()
/freebsd-14.2/tools/build/cross-build/
H A Dclosefrom.c68 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in closefrom_close()
/freebsd-14.2/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/
H A Drandombytes_salsa20_random.c231 # 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-14.2/lib/libc/tests/stdio/
H A Dmkostemp_test.c71 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) { in test_one()
H A Dfopen_test.c51 exp_fget_ret = strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0; in runtest()
/freebsd-14.2/crypto/openssh/openbsd-compat/
H A Dbsd-pselect.c66 fcntl(r, F_SETFD, FD_CLOEXEC) < 0 || r >= FD_SETSIZE) in pselect_notify_setup_fd()
/freebsd-14.2/sys/sys/
H A Dfcntl.h282 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro

1234