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

123456789

/freebsd-10.0-release/contrib/ntp/sntp/
H A Dkludges.h45 /* O_NONBLOCK doesn't work under Ultrix 4.3. This needs a flag setting in
49 #ifdef O_NONBLOCK
50 #undef O_NONBLOCK macro
52 #define O_NONBLOCK O_NDELAY macro
/freebsd-10.0-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-10.0-release/contrib/ntp/include/
H A Dntp_io.h34 * Define FNDELAY and FASYNC using O_NONBLOCK and O_ASYNC if we need
39 # ifdef O_NONBLOCK
40 # define FNDELAY O_NONBLOCK
/freebsd-10.0-release/tools/regression/file/fcntlflags/
H A Dfcntlflags.c81 if (fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) == -1)
82 printf("not ok %d - fcntl(F_SETFL) O_NONBLOCK failed\n",
85 printf("ok %d - fcntl(F_SETFL) O_NONBLOCK succeeded\n",
90 else if (flags3 == (flags2 | O_NONBLOCK))
96 testnum++, flags3, flags2 | O_NONBLOCK);
/freebsd-10.0-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-10.0-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-10.0-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-10.0-release/cddl/lib/libdtrace/
H A Dio.d101 inline int O_NONBLOCK = 0x0004;
102 #pragma D binding "1.1" O_NONBLOCK
/freebsd-10.0-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-10.0-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-10.0-release/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c63 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
64 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
87 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
88 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
111 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
146 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
195 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
239 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
293 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
294 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
[all...]
/freebsd-10.0-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-10.0-release/contrib/apr/file_io/unix/
H A Dpipe.c42 # if defined(O_NONBLOCK)
43 fd_flags &= ~O_NONBLOCK;
77 # if defined(O_NONBLOCK)
78 fd_flags |= O_NONBLOCK;
/freebsd-10.0-release/contrib/openbsm/compat/
H A Dflopen.h59 if (flags & O_NONBLOCK)
/freebsd-10.0-release/lib/libc/db/db/
H A Ddb.c53 (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
/freebsd-10.0-release/lib/libutil/
H A Dflopen.c61 if (flags & O_NONBLOCK)
/freebsd-10.0-release/sbin/comcontrol/
H A Dcomcontrol.c67 fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
/freebsd-10.0-release/sys/dev/random/
H A Ddummy_rng.c67 if (flag & O_NONBLOCK)
/freebsd-10.0-release/tools/regression/netipx/spxabort/
H A Dspxabort.c83 if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
/freebsd-10.0-release/tools/regression/pipe/
H A Dbigpipetest.c56 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
/freebsd-10.0-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-10.0-release/usr.bin/tip/tip/
H A Dhunt.c87 (boolean(value(DC)) ? O_NONBLOCK : 0)));

Completed in 246 milliseconds

123456789