Home
last modified time | relevance | path

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

123

/freebsd-13.1/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c56 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 Dcap_fcntls_limit.c56 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 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()
H A Dclosefrom_test.c335 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 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-13.1/contrib/apr/include/arch/unix/
H A Dapr_arch_inherit.h30 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 Dwakeup.c95 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 Depoll.c109 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 Dkqueue.c118 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 Dcommon_impl.h45 return (fcntl(fd, F_GETFD) != -1 || errno != EBADF); in fd_is_valid()
/freebsd-13.1/contrib/ntp/lib/isc/win32/
H A Dunistd.h30 #define F_GETFD 3 macro
/freebsd-13.1/contrib/xz/src/common/
H A Dtuklib_open_stdxxx.c33 if (fcntl(i, F_GETFD) == -1 && errno == EBADF) { in tuklib_open_stdxxx()
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dcloexec.c44 ret = fcntl(fd, F_GETFD); in rk_cloexec()
/freebsd-13.1/contrib/jemalloc/src/
H A Dpages.c480 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 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-13.1/contrib/apr/file_io/unix/
H A Dopen.c189 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 Dmktemp.c209 if ((flags = fcntl(fd, F_GETFD)) == -1) in apr_file_mktemp()
H A Dfiledup.c49 if ((flags = fcntl((*new_file)->filedes, F_GETFD)) == -1) in file_dup()
/freebsd-13.1/lib/libc/tests/stdio/
H A Dmkostemp_test.c73 if (fcntl(fd, F_GETFD) != in test_one()
H A Dfopen_test.c55 ATF_REQUIRE_MSG((fget_ret = fcntl(fd, F_GETFD)) == exp_fget_ret, in runtest()
/freebsd-13.1/sys/sys/
H A Dfcntl.h243 #define F_GETFD 1 /* get file descriptor flags */ macro
/freebsd-13.1/contrib/openbsm/libbsm/
H A Dbsm_fcntl.c46 { BSM_F_GETFD, F_GETFD },
/freebsd-13.1/sys/security/audit/
H A Dbsm_fcntl.c51 { BSM_F_GETFD, F_GETFD },
/freebsd-13.1/contrib/apr/network_io/unix/
H A Dsockets.c180 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()

123