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

1234567891011>>

/freebsd-10.1-release/sys/ofed/include/asm/
H A Dfcntl.h32 #include <sys/fcntl.h>
/freebsd-10.1-release/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-10.1-release/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-10.1-release/tools/regression/ccd/layout/
H A Db.c4 #include <fcntl.h>
/freebsd-10.1-release/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-10.1-release/crypto/heimdal/lib/roken/
H A Dcloexec.c44 ret = fcntl(fd, F_GETFD);
47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
/freebsd-10.1-release/tools/regression/file/fcntlflags/
H A Dfcntlflags.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...]
/freebsd-10.1-release/usr.bin/make/
H A Dproc.c34 #include <fcntl.h>
93 fcntl(STDIN_FILENO, F_SETFD,
94 fcntl(STDIN_FILENO, F_GETFD) & (~FD_CLOEXEC));
95 fcntl(STDOUT_FILENO, F_SETFD,
96 fcntl(STDOUT_FILENO, F_GETFD) & (~FD_CLOEXEC));
97 fcntl(STDERR_FILENO, F_SETFD,
98 fcntl(STDERR_FILENO, F_GETFD) & (~FD_CLOEXEC));
/freebsd-10.1-release/tools/regression/filemon/
H A Dfilemontest.c37 #include <fcntl.h>
65 (void)fcntl(fm_fd, F_SETFD, FD_CLOEXEC);
66 (void)fcntl(fm_log, F_SETFD, FD_CLOEXEC);
/freebsd-10.1-release/tools/regression/file/dup/
H A Ddup.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-10.1-release/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-10.1-release/contrib/ipfilter/
H A Dipt.h23 #include <fcntl.h>
/freebsd-10.1-release/contrib/ipfilter/lib/
H A Dprinttqtable.c7 #include <fcntl.h>
/freebsd-10.1-release/lib/libc/compat-43/
H A Dcreat.c37 #include <fcntl.h>
/freebsd-10.1-release/lib/libkse/thread/
H A Dthr_close.c36 #include <fcntl.h>
H A Dthr_creat.c33 #include <fcntl.h>
H A Dthr_fcntl.c34 #include <fcntl.h>
42 __weak_reference(__fcntl, fcntl);
/freebsd-10.1-release/sys/ofed/include/linux/
H A Dpoll.h34 #include <sys/fcntl.h>
/freebsd-10.1-release/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-10.1-release/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c34 #include <fcntl.h>
97 fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
98 fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
/freebsd-10.1-release/contrib/gdb/gdb/gdbserver/
H A Dterminal.h44 #include <fcntl.h>
/freebsd-10.1-release/contrib/groff/src/include/
H A Dposix.h27 #include <fcntl.h>

Completed in 308 milliseconds

1234567891011>>