Home
last modified time | relevance | path

Searched refs:F_GETFD (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c52 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) in ioctl_tests_0()
[all...]
H A Dcap_fcntls_limit.c52 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) in fcntl_tests_0()
[all...]
/freebsd/tests/sys/file/
H A Ddup_test.c113 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 …]
H A Dclosefrom_test.c305 flags = fcntl(fd, F_GETFD); in require_fd_flag()
/freebsd/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/lib/libc/gen/
H A Dfdopendir.c54 flags = _fcntl(fd, F_GETFD, 0); in fdopendir()
/freebsd/crypto/heimdal/lib/roken/
H A Dcloexec.c44 ret = fcntl(fd, F_GETFD); in rk_cloexec()
/freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/
H A Dfcntl-macros.h66 #define F_GETFD 1 macro
/freebsd/lib/libc/stdio/
H A Dfdopen.c80 tmp = _fcntl(fd, F_GETFD, 0); in fdopen()
H A Dfreopen.c117 fdflags = _fcntl(fp->_file, F_GETFD, 0); in freopen()
/freebsd/contrib/jemalloc/src/
H A Dpages.c639 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in pages_boot()
650 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in pages_boot()
659 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
/freebsd/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/
H A Docloexec_verify.c68 int flags = fcntl(fd, F_GETFD, NULL); in verify_flags()
/freebsd/tests/sys/posixshm/
H A Dmemfd_test.c74 ATF_REQUIRE((fcntl(fd_nocl, F_GETFD) & FD_CLOEXEC) == 0); in ATF_TC_BODY()
75 ATF_REQUIRE((fcntl(fd_cl, F_GETFD) & FD_CLOEXEC) != 0); in ATF_TC_BODY()
/freebsd/lib/libc/tests/stdio/
H A Dmkostemp_test.c70 if (fcntl(fd, F_GETFD) != in test_one()
H A Dfopen_test.c52 ATF_REQUIRE_MSG((fget_ret = fcntl(fd, F_GETFD)) == exp_fget_ret, in runtest()
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_fcntl.c46 { BSM_F_GETFD, F_GETFD },
/freebsd/sys/security/audit/
H A Dbsm_fcntl.c48 { BSM_F_GETFD, F_GETFD },
/freebsd/sys/sys/
H A Dfcntl.h272 #define F_GETFD 1 /* get file descriptor flags */ macro
/freebsd/tests/sys/kern/
H A Dunix_passfd_test.c375 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()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_sysrandom_random_dev_open()
/freebsd/lib/libc/tests/gen/
H A Dpopen_test.c56 flags = fcntl(fileno(fp), F_GETFD); in check_cloexec()
/freebsd/contrib/sendmail/libmilter/
H A Dlistener.c455 if ((fdflags = fcntl(sock, F_GETFD, 0)) == -1 ||
895 if ((fdflags = fcntl(connfd, F_GETFD, 0)) == -1 ||
/freebsd/contrib/unbound/compat/
H A Darc4random.c117 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in fallback_getentropy_urandom()
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DDomainSocket.cpp92 int r = fcntl(s, F_SETFD, FD_CLOEXEC | fcntl(s, F_GETFD)); in CreatePair()

123