Searched refs:O_NONBLOCK (Results 1 - 25 of 198) sorted by relevance

12345678

/freebsd-9.3-release/tools/regression/pjdfstest/tests/open/
H A D18.t4 desc="open returns EWOULDBLOCK when O_NONBLOCK and one of O_SHLOCK or O_EXLOCK is specified and the file is locked"
16 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
17 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK
18 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK
19 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
H A D17.t4 desc="open returns ENXIO when O_NONBLOCK is set, the named file is a fifo, O_WRONLY is set, and no process has the file open for reading"
14 expect ENXIO open ${n0} O_WRONLY,O_NONBLOCK
H A D06.t95 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY,O_NONBLOCK
96 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR,O_NONBLOCK
98 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY,O_NONBLOCK
99 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR,O_NONBLOCK
101 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY,O_NONBLOCK
102 expect 0 -u 65533 -g 65533 open ${n1} O_RDWR,O_NONBLOCK
105 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY,O_NONBLOCK
109 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY,O_NONBLOCK
113 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY,O_NONBLOCK
/freebsd-9.3-release/contrib/ntp/lib/isc/win32/
H A Dunistd.h21 #define O_NONBLOCK 1 macro
22 #define PORT_NONBLOCK O_NONBLOCK
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dsocket.c140 #undef O_NONBLOCK macro
145 #if defined(O_NONBLOCK) /* POSIX */
146 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
148 "fcntl(O_NONBLOCK) fails on fd #%d: %m", fd);
/freebsd-9.3-release/tools/regression/sockets/kqueue/
H A Dkqueue.c272 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
273 fail(errno, "fcntl", "PF_UNIX, SOCK_DGRAM", "O_NONBLOCK");
275 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
276 fail(errno, "fcntl", "PF_UNIX, SOCK_DGRAM", "O_NONBLOCK");
302 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
303 fail(errno, "fcntl", "PF_UNIX, SOCK_DGRAM", "O_NONBLOCK");
304 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
305 fail(errno, "fcntl", "PF_UNIX, SOCK_DGRAM", "O_NONBLOCK");
323 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
324 fail(errno, "fcntl", "PF_UNIX, SOCK_STREAM", "O_NONBLOCK");
[all...]
/freebsd-9.3-release/contrib/ntp/include/
H A Dntp_io.h46 * Define FNDELAY and FASYNC using O_NONBLOCK and O_ASYNC if we need
51 # ifdef O_NONBLOCK
52 # define FNDELAY O_NONBLOCK
/freebsd-9.3-release/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c99 i |= O_NONBLOCK;
105 if ((i & O_NONBLOCK) != O_NONBLOCK)
106 errx(-1, "Failed to set O_NONBLOCK (i=0x%x)\n", i);
162 i &= ~O_NONBLOCK;
168 if (i & O_NONBLOCK)
169 errx(-1, "Failed to clear O_NONBLOCK (i=0x%x)\n", i);
/freebsd-9.3-release/tools/regression/lib/libutil/
H A Dtest-flopen.c106 fd2 = flopen(fn, O_RDWR|O_NONBLOCK);
134 fd2 = flopen(fn, O_RDWR|O_NONBLOCK);
172 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) {
/freebsd-9.3-release/cddl/lib/libdtrace/
H A Dio.d101 inline int O_NONBLOCK = 0x0004;
102 #pragma D binding "1.1" O_NONBLOCK
/freebsd-9.3-release/sys/sys/
H A Dfcntl.h90 #define O_NONBLOCK 0x0004 /* no delay */ macro
170 #define FNONBLOCK O_NONBLOCK /* kernel */
171 #define FNDELAY O_NONBLOCK /* compat */
172 #define O_NDELAY O_NONBLOCK /* compat */
/freebsd-9.3-release/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c97 fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
98 fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
/freebsd-9.3-release/contrib/libarchive/libarchive/
H A Dfilter_fork.c104 fcntl(*child_stdin, F_SETFL, O_NONBLOCK);
106 fcntl(*child_stdout, F_SETFL, O_NONBLOCK);
/freebsd-9.3-release/tools/regression/fifo/fifo_misc/
H A Dfifo_misc.c86 fd1 = open(fifoname, O_RDONLY | O_NONBLOCK);
89 fd2 = open(fifoname, O_WRONLY | O_NONBLOCK);
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c84 O_LARGEFILE | O_NOCTTY | O_NONBLOCK | O_NDELAY | O_RSYNC |
/freebsd-9.3-release/contrib/openbsm/compat/
H A Dflopen.h59 if (flags & O_NONBLOCK)
/freebsd-9.3-release/lib/bind/
H A Dconfig.h433 (O_NDELAY/O_NONBLOCK). */
434 #define PORT_NONBLOCK O_NONBLOCK
/freebsd-9.3-release/lib/libc/db/db/
H A Ddb.c53 (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
/freebsd-9.3-release/lib/libutil/
H A Dflopen.c61 if (flags & O_NONBLOCK)
/freebsd-9.3-release/sbin/comcontrol/
H A Dcomcontrol.c67 fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
/freebsd-9.3-release/tools/regression/netipx/spxabort/
H A Dspxabort.c83 if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
/freebsd-9.3-release/tools/regression/pipe/
H A Dbigpipetest.c56 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
/freebsd-9.3-release/tools/regression/poll/
H A Dpipepoll.c97 fd = open(FIFONAME, O_RDONLY | O_NONBLOCK);
198 fd2 = open(FIFONAME, O_RDONLY | O_NONBLOCK);
227 fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
252 fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
H A Dpipeselect.c68 fd = open(FIFONAME, O_RDONLY | O_NONBLOCK);
191 fd2 = open(FIFONAME, O_RDONLY | O_NONBLOCK);
224 fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
249 fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
/freebsd-9.3-release/usr.bin/tip/tip/
H A Dhunt.c87 (boolean(value(DC)) ? O_NONBLOCK : 0)));

Completed in 271 milliseconds

12345678