Home
last modified time | relevance | path

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

1234

/freebsd-12.1/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c58 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 Dcap_fcntls_limit.c57 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 Dt_socketpair.c81 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 Dt_pipe2.c69 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 Dapr_arch_inherit.h33 flags &= ~(FD_CLOEXEC); \
53 flags |= FD_CLOEXEC; \
/freebsd-12.1/contrib/llvm/tools/lldb/source/Host/posix/
H A DPipePosix.cpp52 #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 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-12.1/contrib/tcsh/
H A Dtc.os.h195 # 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 Dopen.c193 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 Dmktemp.c212 flags |= FD_CLOEXEC; in apr_file_mktemp()
/freebsd-12.1/contrib/blacklist/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-12.1/tests/sys/file/
H A Ddup_test.c287 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 Dcloexec.c47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
/freebsd-12.1/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-12.1/contrib/bmake/
H A Dmake.h102 #ifndef FD_CLOEXEC
103 #define FD_CLOEXEC 1 macro
/freebsd-12.1/lib/libc/tests/gen/
H A Dpopen_test.c64 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 Dpages.c447 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 Dpollset.c91 flags |= FD_CLOEXEC; in create_wakeup_pipe()
101 flags |= FD_CLOEXEC; in create_wakeup_pipe()
/freebsd-12.1/lib/libc/stdio/
H A Dfdopen.c85 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
/freebsd-12.1/lib/libutil/
H A Dflopen.c114 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
/freebsd-12.1/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-12.1/lib/libc/tests/stdio/
H A Dmkostemp_test.c74 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) { in test_one()
/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_util.c507 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 Dfcntl.h251 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro

1234