/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/ |
H A D | fcntl.h | 34 #include <sys/fcntl.h>
|
/freebsd-11-stable/contrib/mdocml/ |
H A D | test-O_DIRECTORY.c | 1 #include <fcntl.h>
|
/freebsd-11-stable/lib/libnv/ |
H A D | common_impl.h | 35 #define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
|
/freebsd-11-stable/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 56 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 D | cap_ioctls_limit.c | 56 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 D | fcntl.c | 37 #include <fcntl.h> 43 #pragma weak fcntl macro 45 fcntl(int fd, int cmd, ...) function
|
H A D | fsync.c | 37 #include <sys/fcntl.h>
|
H A D | fdatasync.c | 37 #include <sys/fcntl.h>
|
H A D | close.c | 37 #include <sys/fcntl.h>
|
H A D | msync.c | 37 #include <sys/fcntl.h>
|
/freebsd-11-stable/cddl/compat/opensolaris/include/ |
H A D | fcntl.h | 33 #include_next <fcntl.h>
|
H A D | solaris.h | 8 #include <fcntl.h>
|
H A D | libproc.h | 33 #include <fcntl.h>
|
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/posix/ |
H A D | Fcntl.h | 9 // This file defines fcntl functions & structures 18 #include <fcntl.h>
|
/freebsd-11-stable/tools/regression/ccd/layout/ |
H A D | b.c | 4 #include <fcntl.h>
|
/freebsd-11-stable/contrib/xz/src/common/ |
H A D | tuklib_open_stdxxx.c | 18 # 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 D | cloexec.c | 44 ret = fcntl(fd, F_GETFD); 47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
|
/freebsd-11-stable/tests/sys/file/ |
H A D | fcntlflags_test.c | 31 #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 D | dup_test.c | 19 * 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 D | t_pipe2.c | 42 #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 D | libcasper_impl.c | 35 #include <fcntl.h> 46 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
|
/freebsd-11-stable/contrib/ntp/lib/isc/win32/ |
H A D | unistd.h | 25 * 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 D | printtqtable.c | 7 #include <fcntl.h>
|
/freebsd-11-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_inherit.h | 30 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 D | poll.h | 35 #include <sys/fcntl.h>
|