/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | cloexec.c | 47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
|
/freebsd-current/tools/regression/capsicum/syscalls/ |
H A D | cap_ioctls_limit.c | 55 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 76 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 96 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 100 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 117 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 118 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 122 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 163 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 164 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 168 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); [all...] |
H A D | cap_fcntls_limit.c | 54 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 55 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 78 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 79 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 101 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 102 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 134 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 135 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 186 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 187 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_socketpair.c | 83 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); 84 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); 86 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); 87 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
|
H A D | t_pipe2.c | 71 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); 72 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); 74 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); 75 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
|
/freebsd-current/lib/libc/stdio/ |
H A D | fdopen.c | 79 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
|
H A D | freopen.c | 117 (void) _fcntl(fp->_file, F_SETFD, FD_CLOEXEC);
|
/freebsd-current/contrib/netbsd-tests/lib/librumpclient/ |
H A D | h_execthr.c | 168 if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1) 170 if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1)
|
H A D | h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) {
|
/freebsd-current/lib/libutil/ |
H A D | flopen.c | 112 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) {
|
/freebsd-current/tests/sys/file/ |
H A D | closefrom_test.c | 336 if ((flags & FD_CLOEXEC) != 0) 343 if ((flags & FD_CLOEXEC) == 0) 351 if ((flags & FD_CLOEXEC) != 0)
|
H A D | dup_test.c | 285 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) 325 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
|
/freebsd-current/contrib/tcsh/ |
H A D | tc.os.h | 194 # 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-current/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | PipePosix.cpp | 43 #if defined(FD_CLOEXEC) && !PIPE2_SUPPORTED 48 return (::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0); 91 #ifdef FD_CLOEXEC
|
/freebsd-current/tools/build/cross-build/ |
H A D | closefrom.c | 68 (void)fcntl(fd, F_SETFD, FD_CLOEXEC);
|
/freebsd-current/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 71 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) {
|
H A D | fopen_test.c | 51 exp_fget_ret = strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0; 53 "fcntl(.., F_GETFD) didn't FD_CLOEXEC as expected %d != %d",
|
/freebsd-current/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
H A D | randombytes_sysrandom.c | 190 # if defined(F_SETFD) && defined(FD_CLOEXEC) 191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
/freebsd-current/lib/libc/tests/gen/ |
H A D | popen_test.c | 61 exp_flags = FD_CLOEXEC; 64 ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags,
|
/freebsd-current/contrib/blocklist/port/ |
H A D | popenve.c | 96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); 97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC);
|
/freebsd-current/contrib/jemalloc/src/ |
H A D | pages.c | 494 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); 505 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); 514 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | bsd-pselect.c | 66 fcntl(r, F_SETFD, FD_CLOEXEC) < 0 || r >= FD_SETSIZE)
|
/freebsd-current/sys/sys/ |
H A D | fcntl.h | 263 #define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ 266 #define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */ 280 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
|
/freebsd-current/tests/sys/posixshm/ |
H A D | memfd_test.c | 72 ATF_REQUIRE((fcntl(fd_nocl, F_GETFD) & FD_CLOEXEC) == 0); 73 ATF_REQUIRE((fcntl(fd_cl, F_GETFD) & FD_CLOEXEC) != 0);
|
/freebsd-current/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/ |
H A D | randombytes_salsa20_random.c | 231 # if defined(F_SETFD) && defined(FD_CLOEXEC) 232 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|