| /freebsd-14.2/tools/regression/capsicum/syscalls/ |
| H A D | cap_ioctls_limit.c | 53 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 57 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 74 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 78 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 94 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 102 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 112 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 116 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 124 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 158 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_1() [all …]
|
| H A D | cap_fcntls_limit.c | 53 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 57 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 77 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 81 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 100 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 104 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 133 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 137 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 185 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_1() 189 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_1() [all …]
|
| /freebsd-14.2/tests/sys/file/ |
| H A D | dup_test.c | 111 if (fcntl(fd2, F_GETFD) != 0) in main() 158 if (fcntl(fd2, F_GETFD) == 0) in main() 174 if (fcntl(fd2, F_GETFD) != 0) in main() 206 if (fcntl(fd2, F_GETFD) != 0) in main() 232 if (fcntl(fd2, F_GETFD) == 0) in main() 260 if (fcntl(fd2, F_GETFD) != 1) in main() 285 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main() 325 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main() 350 if (fcntl(fd2, F_GETFD) != 0) in main()
|
| H A D | closefrom_test.c | 333 flags = fcntl(start, F_GETFD); in main() 340 flags = fcntl(i, F_GETFD); in main() 348 flags = fcntl(i, F_GETFD); in main()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/lib/libnv/ |
| H A D | common_impl.h | 42 return (fcntl(fd, F_GETFD) != -1 || errno != EBADF); in fd_is_valid()
|
| /freebsd-14.2/contrib/xz/src/common/ |
| H A D | tuklib_open_stdxxx.c | 33 if (fcntl(i, F_GETFD) == -1 && errno == EBADF) { in tuklib_open_stdxxx()
|
| /freebsd-14.2/crypto/heimdal/lib/roken/ |
| H A D | cloexec.c | 44 ret = fcntl(fd, F_GETFD); in rk_cloexec()
|
| /freebsd-14.2/contrib/jemalloc/src/ |
| H A D | pages.c | 494 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/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()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/sys/sys/ |
| H A D | fcntl.h | 242 #define F_GETFD 1 /* get file descriptor flags */ macro
|
| /freebsd-14.2/contrib/openbsm/libbsm/ |
| H A D | bsm_fcntl.c | 46 { BSM_F_GETFD, F_GETFD },
|
| /freebsd-14.2/sys/security/audit/ |
| H A D | bsm_fcntl.c | 49 { BSM_F_GETFD, F_GETFD },
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/lib/libc/tests/gen/ |
| H A D | popen_test.c | 56 flags = fcntl(fileno(fp), F_GETFD); in check_cloexec()
|
| /freebsd-14.2/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 ||
|
| /freebsd-14.2/contrib/unbound/compat/ |
| H A D | arc4random.c | 117 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in fallback_getentropy_urandom()
|
| H A D | getentropy_osx.c | 168 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in getentropy_urandom()
|
| H A D | getentropy_solaris.c | 196 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in getentropy_urandom()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | Socket.cpp | 351 int flags = ::fcntl(fd, F_GETFD); in AcceptSocket()
|
| /freebsd-14.2/libexec/atrun/ |
| H A D | atrun.c | 222 if ((fflags = fcntl(fd_in, F_GETFD)) <0) in run_file()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | PipePosix.cpp | 45 int flags = ::fcntl(fd, F_GETFD); in SetCloexecFlag()
|