Searched refs:F_GETFD (Results 1 - 25 of 46) sorted by relevance

12

/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dunistd.h30 #define F_GETFD 3 macro
/freebsd-11-stable/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c56 CHECK(fcntl(fd, F_GETFD) == 0);
58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
60 CHECK(fcntl(fd, F_GETFD) == 0);
77 CHECK(fcntl(fd, F_GETFD) == 0);
79 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
81 CHECK(fcntl(fd, F_GETFD) == 0);
97 CHECK(fcntl(fd, F_GETFD) == 0);
99 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
103 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
105 CHECK(fcntl(fd, F_GETFD)
[all...]
H A Dcap_fcntls_limit.c56 CHECK(fcntl(fd, F_GETFD) == 0);
58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
60 CHECK(fcntl(fd, F_GETFD) == 0);
80 CHECK(fcntl(fd, F_GETFD) == 0);
82 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
84 CHECK(fcntl(fd, F_GETFD) == 0);
103 CHECK(fcntl(fd, F_GETFD) == 0);
105 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
107 CHECK(fcntl(fd, F_GETFD) == 0);
136 CHECK(fcntl(fd, F_GETFD)
[all...]
/freebsd-11-stable/contrib/xz/src/common/
H A Dtuklib_open_stdxxx.c33 if (fcntl(i, F_GETFD) == -1 && errno == EBADF) {
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dcloexec.c44 ret = fcntl(fd, F_GETFD);
/freebsd-11-stable/tests/sys/file/
H A Ddup_test.c113 if (fcntl(fd2, F_GETFD) != 0)
160 if (fcntl(fd2, F_GETFD) == 0)
176 if (fcntl(fd2, F_GETFD) != 0)
208 if (fcntl(fd2, F_GETFD) != 0)
234 if (fcntl(fd2, F_GETFD) == 0)
262 if (fcntl(fd2, F_GETFD) != 1)
287 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
327 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
352 if (fcntl(fd2, F_GETFD) != 0)
/freebsd-11-stable/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-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_pipe2.c69 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
70 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
72 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
73 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
H A Dt_socketpair.c81 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
82 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
84 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
85 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
/freebsd-11-stable/contrib/apr/poll/unix/
H A Dwakeup.c95 if ((flags = fcntl(wakeup_pipe[0]->filedes, F_GETFD)) == -1)
105 if ((flags = fcntl(wakeup_pipe[1]->filedes, F_GETFD)) == -1)
H A Dport.c191 if ((flags = fcntl(pollset->p->port_fd, F_GETFD)) == -1) {
482 if ((flags = fcntl(pollcb->fd, F_GETFD)) == -1) {
H A Dkqueue.c118 if ((flags = fcntl(pollset->p->kqueue_fd, F_GETFD)) == -1) {
352 if ((flags = fcntl(fd, F_GETFD)) == -1) {
H A Depoll.c109 if ((fd_flags = fcntl(fd, F_GETFD)) == -1) {
362 if ((fd_flags = fcntl(fd, F_GETFD)) == -1) {
/freebsd-11-stable/contrib/apr/file_io/unix/
H A Dmktemp.c209 if ((flags = fcntl(fd, F_GETFD)) == -1)
H A Dfiledup.c49 if ((flags = fcntl((*new_file)->filedes, F_GETFD)) == -1)
H A Dopen.c189 if ((flags = fcntl(fd, F_GETFD)) == -1) {
391 if ((flags = fcntl(thefile->filedes, F_GETFD)) == -1)
/freebsd-11-stable/lib/libc/tests/stdio/
H A Dmkostemp_test.c73 if (fcntl(fd, F_GETFD) !=
H A Dfopen_test.c55 ATF_REQUIRE_MSG((fget_ret = fcntl(fd, F_GETFD)) == exp_fget_ret,
56 "fcntl(.., F_GETFD) didn't FD_CLOEXEC as expected %d != %d",
/freebsd-11-stable/contrib/openbsm/libbsm/
H A Dbsm_fcntl.c46 { BSM_F_GETFD, F_GETFD },
/freebsd-11-stable/sys/security/audit/
H A Dbsm_fcntl.c49 { BSM_F_GETFD, F_GETFD },
/freebsd-11-stable/sys/sys/
H A Dfcntl.h221 #define F_GETFD 1 /* get file descriptor flags */ macro
250 /* file descriptor flags (F_GETFD, F_SETFD) */
/freebsd-11-stable/contrib/apr/network_io/unix/
H A Dsockets.c180 if ((flags = fcntl((*new)->socketdes, F_GETFD)) == -1) {
365 if ((flags = fcntl((*new)->socketdes, F_GETFD)) == -1) {
/freebsd-11-stable/lib/libc/tests/gen/
H A Dpopen_test.c59 flags = fcntl(fileno(fp), F_GETFD);
60 ATF_CHECK_MSG(flags != -1, "fcntl(F_GETFD) failed; errno=%d", errno);
/freebsd-11-stable/contrib/unbound/compat/
H A Darc4random.c115 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/posix/
H A DPipePosix.cpp54 int flags = ::fcntl(fd, F_GETFD);

Completed in 748 milliseconds

12