| /src/tools/regression/capsicum/syscalls/ |
| H A D | cap_ioctls_limit.c | 52 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 54 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 56 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 73 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 75 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 77 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 93 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 95 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 99 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0() 101 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() [all …]
|
| H A D | cap_fcntls_limit.c | 52 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 54 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 56 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 76 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 78 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 80 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 99 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 101 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0() 103 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 132 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() [all …]
|
| /src/tests/sys/file/ |
| H A D | dup_test.c | 113 if (fcntl(fd2, F_GETFD) != 0) in main() 160 if (fcntl(fd2, F_GETFD) == 0) in main() 176 if (fcntl(fd2, F_GETFD) != 0) in main() 208 if (fcntl(fd2, F_GETFD) != 0) in main() 234 if (fcntl(fd2, F_GETFD) == 0) in main() 262 if (fcntl(fd2, F_GETFD) != 1) in main() 287 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main() 327 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main() 352 if (fcntl(fd2, F_GETFD) != 0) in main() 396 if (fcntl(fd2, F_GETFD) != FD_CLOFORK) in main() [all …]
|
| /src/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_pipe2.c | 71 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 D | t_socketpair.c | 83 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()
|
| /src/lib/libnv/ |
| H A D | common_impl.h | 42 return (fcntl(fd, F_GETFD) != -1 || errno != EBADF); in fd_is_valid()
|
| /src/lib/libc/gen/ |
| H A D | fdopendir.c | 54 flags = _fcntl(fd, F_GETFD, 0); in fdopendir()
|
| /src/contrib/xz/src/common/ |
| H A D | tuklib_open_stdxxx.c | 32 if (fcntl(i, F_GETFD) == -1 && errno == EBADF) { in tuklib_open_stdxxx()
|
| /src/crypto/heimdal/lib/roken/ |
| H A D | cloexec.c | 44 ret = fcntl(fd, F_GETFD); in rk_cloexec()
|
| /src/contrib/llvm-project/compiler-rt/lib/rtsan/tests/ |
| H A D | rtsan_test_interceptors.cpp | 239 int old_flags = fcntl(fd, F_GETFD); in TEST_F() 242 int flags = fcntl(fd, F_GETFD); in TEST_F() 247 ASSERT_THAT(fcntl(fd, F_GETFD), Eq(old_flags)); in TEST_F()
|
| /src/lib/libc/stdio/ |
| H A D | fdopen.c | 80 tmp = _fcntl(fd, F_GETFD, 0); in fdopen()
|
| H A D | freopen.c | 117 fdflags = _fcntl(fp->_file, F_GETFD, 0); in freopen()
|
| /src/tests/sys/posixshm/ |
| H A D | memfd_test.c | 72 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()
|
| /src/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
| H A D | ocloexec_verify.c | 68 int flags = fcntl(fd, F_GETFD, NULL); in verify_flags()
|
| /src/contrib/jemalloc/src/ |
| H A D | pages.c | 639 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 650 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 659 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
|
| /src/lib/libc/tests/stdio/ |
| H A D | mkostemp_test.c | 70 if (fcntl(fd, F_GETFD) != in test_one()
|
| H A D | fopen_test.c | 52 ATF_REQUIRE_MSG((fget_ret = fcntl(fd, F_GETFD)) == exp_fget_ret, in runtest()
|
| /src/sys/sys/ |
| H A D | fcntl.h | 259 #define F_GETFD 1 /* get file descriptor flags */ macro
|
| /src/contrib/openbsm/libbsm/ |
| H A D | bsm_fcntl.c | 46 { BSM_F_GETFD, F_GETFD },
|
| /src/sys/security/audit/ |
| H A D | bsm_fcntl.c | 48 { BSM_F_GETFD, F_GETFD },
|
| /src/tests/sys/kern/ |
| H A D | unix_passfd_test.c | 375 ATF_REQUIRE_EQ_MSG(fcntl(getfd, F_GETFD) & FD_CLOEXEC, FD_CLOEXEC, in ATF_TC_BODY() 399 ATF_REQUIRE_EQ_MSG(fcntl(getfd, F_GETFD) & FD_CLOFORK, FD_CLOFORK, in ATF_TC_BODY() 1138 if ((fcntl(dfd, F_GETFD) & FD_RESOLVE_BENEATH) == 0) in ATF_TC_BODY() 1163 if ((fcntl(dfd2, F_GETFD) & FD_RESOLVE_BENEATH) == 0) in ATF_TC_BODY()
|
| /src/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
| H A D | randombytes_sysrandom.c | 191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_sysrandom_random_dev_open()
|
| /src/lib/libc/tests/gen/ |
| H A D | popen_test.c | 56 flags = fcntl(fileno(fp), F_GETFD); in check_cloexec()
|
| /src/contrib/sendmail/libmilter/ |
| H A D | listener.c | 455 if ((fdflags = fcntl(sock, F_GETFD, 0)) == -1 || 895 if ((fdflags = fcntl(connfd, F_GETFD, 0)) == -1 ||
|
| /src/contrib/unbound/compat/ |
| H A D | arc4random.c | 117 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in fallback_getentropy_urandom()
|