Searched refs:fcntl (Results 1 - 25 of 1985) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/
H A Dfcntl.h34 #include <sys/fcntl.h>
/freebsd-11-stable/contrib/mdocml/
H A Dtest-O_DIRECTORY.c1 #include <fcntl.h>
/freebsd-11-stable/lib/libnv/
H A Dcommon_impl.h35 #define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
/freebsd-11-stable/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c56 CHECK(fcntl(fd, F_GETFD) == 0);
57 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
59 CHECK(fcntl(fd, F_SETFD, 0) == 0);
60 CHECK(fcntl(fd, F_GETFD) == 0);
62 CHECK(fcntl(fd, F_GETFL) == O_RDWR);
63 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
64 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
65 CHECK(fcntl(fd, F_SETFL, 0) == 0);
66 CHECK(fcntl(f
[all...]
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);
104 CHECK(fcntl(f
[all...]
/freebsd-11-stable/lib/libc/sys/
H A Dfcntl.c37 #include <fcntl.h>
43 #pragma weak fcntl macro
45 fcntl(int fd, int cmd, ...) function
H A Dfsync.c37 #include <sys/fcntl.h>
H A Dfdatasync.c37 #include <sys/fcntl.h>
H A Dclose.c37 #include <sys/fcntl.h>
H A Dmsync.c37 #include <sys/fcntl.h>
/freebsd-11-stable/cddl/compat/opensolaris/include/
H A Dfcntl.h33 #include_next <fcntl.h>
H A Dsolaris.h8 #include <fcntl.h>
H A Dlibproc.h33 #include <fcntl.h>
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/posix/
H A DFcntl.h9 // This file defines fcntl functions & structures
18 #include <fcntl.h>
/freebsd-11-stable/tools/regression/ccd/layout/
H A Db.c4 #include <fcntl.h>
/freebsd-11-stable/contrib/xz/src/common/
H A Dtuklib_open_stdxxx.c18 # include <fcntl.h>
32 // We use fcntl() to check if the file descriptor is open.
33 if (fcntl(i, F_GETFD) == -1 && errno == EBADF) {
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dcloexec.c44 ret = fcntl(fd, F_GETFD);
47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
/freebsd-11-stable/tests/sys/file/
H A Dfcntlflags_test.c31 #include <fcntl.h>
55 flags1 = fcntl(fd, F_GETFL);
57 printf("not ok %d - fcntl(F_GETFL) failed\n", testnum++);
59 printf("ok %d - fcntl(F_GETFL) gave correct result\n",
62 printf("not ok %d - fcntl(F_GETFL) gave incorrect result "
65 if (fcntl(fd, F_SETFL, flags1) == -1)
66 printf("not ok %d - fcntl(F_SETFL) same flags failed\n",
69 printf("ok %d - fcntl(F_SETFL) same flags succeeded\n",
71 flags2 = fcntl(fd, F_GETFL);
73 printf("not ok %d - fcntl(F_GETF
[all...]
H A Ddup_test.c19 * Test #8: check if fcntl(F_DUPFD) works.
20 * Test #9: check if fcntl(F_DUPFD) cleared close-on-exec flag for duped fd.
23 * Test #11: check if fcntl(F_DUP2FD) works.
24 * Test #12: check if fcntl(F_DUP2FD) returned a fd we asked for.
25 * Test #13: check if fcntl(F_DUP2FD) cleared close-on-exec flag for duped fd.
26 * Test #14: check if fcntl(F_DUP2FD) allows to dup fd to itself.
27 * Test #15: check if fcntl(F_DUP2FD) returned a fd we asked for.
28 * Test #16: check if fcntl(F_DUP2FD) did not clear close-on-exec flag for
30 * Test #17: check if fcntl(F_DUP2FD) to a fd > current maximum number of open
32 * Test #18: check if fcntl(F_DUPFD_CLOEXE
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_pipe2.c42 #include <fcntl.h>
69 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);
77 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0);
78 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0);
80 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0);
81 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0);
86 ATF_REQUIRE(fcntl(f
[all...]
/freebsd-11-stable/lib/libcasper/libcasper/
H A Dlibcasper_impl.c35 #include <fcntl.h>
46 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dunistd.h25 * fcntl() commands
32 * Enough problems not having full fcntl() without worrying about this!
36 int fcntl(int, int, ...);
/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprinttqtable.c7 #include <fcntl.h>
/freebsd-11-stable/contrib/apr/include/arch/unix/
H A Dapr_arch_inherit.h30 int flags = fcntl(the##name->name##des, F_GETFD); \
34 if (fcntl(the##name->name##des, F_SETFD, flags) == -1) \
51 if ((flags = fcntl(the##name->name##des, F_GETFD)) == -1) \
54 if (fcntl(the##name->name##des, F_SETFD, flags) == -1) \
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dpoll.h35 #include <sys/fcntl.h>

Completed in 118 milliseconds

1234567891011>>