| /freebsd-13.1/tools/regression/capsicum/syscalls/ |
| H A D | cap_ioctls_limit.c | 56 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 60 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 77 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 81 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 97 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 105 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 115 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 119 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 127 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0() 161 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_1() [all …]
|
| H A D | cap_fcntls_limit.c | 56 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 60 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 80 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 84 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 103 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 107 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 136 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 140 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0() 188 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_1() 192 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_1() [all …]
|
| /freebsd-13.1/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()
|
| H A D | closefrom_test.c | 335 flags = fcntl(start, F_GETFD); in main() 342 flags = fcntl(i, F_GETFD); in main() 350 flags = fcntl(i, F_GETFD); in main()
|
| /freebsd-13.1/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-13.1/contrib/apr/include/arch/unix/ |
| H A D | apr_arch_inherit.h | 30 int flags = fcntl(the##name->name##des, F_GETFD); \ 51 if ((flags = fcntl(the##name->name##des, F_GETFD)) == -1) \
|
| /freebsd-13.1/contrib/apr/poll/unix/ |
| H A D | wakeup.c | 95 if ((flags = fcntl(wakeup_pipe[0]->filedes, F_GETFD)) == -1) in apr_poll_create_wakeup_pipe() 105 if ((flags = fcntl(wakeup_pipe[1]->filedes, F_GETFD)) == -1) in apr_poll_create_wakeup_pipe()
|
| H A D | epoll.c | 109 if ((fd_flags = fcntl(fd, F_GETFD)) == -1) { in impl_pollset_create() 362 if ((fd_flags = fcntl(fd, F_GETFD)) == -1) { in impl_pollcb_create()
|
| H A D | kqueue.c | 118 if ((flags = fcntl(pollset->p->kqueue_fd, F_GETFD)) == -1) { in impl_pollset_create() 352 if ((flags = fcntl(fd, F_GETFD)) == -1) { in impl_pollcb_create()
|
| /freebsd-13.1/lib/libnv/ |
| H A D | common_impl.h | 45 return (fcntl(fd, F_GETFD) != -1 || errno != EBADF); in fd_is_valid()
|
| /freebsd-13.1/contrib/ntp/lib/isc/win32/ |
| H A D | unistd.h | 30 #define F_GETFD 3 macro
|
| /freebsd-13.1/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-13.1/crypto/heimdal/lib/roken/ |
| H A D | cloexec.c | 44 ret = fcntl(fd, F_GETFD); in rk_cloexec()
|
| /freebsd-13.1/contrib/jemalloc/src/ |
| H A D | pages.c | 480 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 491 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 500 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
|
| /freebsd-13.1/tests/sys/posixshm/ |
| H A D | memfd_test.c | 74 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-13.1/contrib/apr/file_io/unix/ |
| H A D | open.c | 189 if ((flags = fcntl(fd, F_GETFD)) == -1) { in apr_file_open() 391 if ((flags = fcntl(thefile->filedes, F_GETFD)) == -1) in APR_IMPLEMENT_INHERIT_SET()
|
| H A D | mktemp.c | 209 if ((flags = fcntl(fd, F_GETFD)) == -1) in apr_file_mktemp()
|
| H A D | filedup.c | 49 if ((flags = fcntl((*new_file)->filedes, F_GETFD)) == -1) in file_dup()
|
| /freebsd-13.1/lib/libc/tests/stdio/ |
| H A D | mkostemp_test.c | 73 if (fcntl(fd, F_GETFD) != in test_one()
|
| H A D | fopen_test.c | 55 ATF_REQUIRE_MSG((fget_ret = fcntl(fd, F_GETFD)) == exp_fget_ret, in runtest()
|
| /freebsd-13.1/sys/sys/ |
| H A D | fcntl.h | 243 #define F_GETFD 1 /* get file descriptor flags */ macro
|
| /freebsd-13.1/contrib/openbsm/libbsm/ |
| H A D | bsm_fcntl.c | 46 { BSM_F_GETFD, F_GETFD },
|
| /freebsd-13.1/sys/security/audit/ |
| H A D | bsm_fcntl.c | 51 { BSM_F_GETFD, F_GETFD },
|
| /freebsd-13.1/contrib/apr/network_io/unix/ |
| H A D | sockets.c | 180 if ((flags = fcntl((*new)->socketdes, F_GETFD)) == -1) { in apr_socket_create() 365 if ((flags = fcntl((*new)->socketdes, F_GETFD)) == -1) { in apr_socket_accept()
|