/freebsd-9.3-release/tools/regression/pjdfstest/tests/open/ |
H A D | 18.t | 4 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 D | 17.t | 4 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 D | 06.t | 95 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 D | unistd.h | 21 #define O_NONBLOCK 1 macro 22 #define PORT_NONBLOCK O_NONBLOCK
|
/freebsd-9.3-release/contrib/ntp/libntp/ |
H A D | socket.c | 140 #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 D | kqueue.c | 272 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 D | ntp_io.h | 46 * 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 D | accept_fd_leak.c | 99 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 D | test-flopen.c | 106 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 D | io.d | 101 inline int O_NONBLOCK = 0x0004; 102 #pragma D binding "1.1" O_NONBLOCK
|
/freebsd-9.3-release/sys/sys/ |
H A D | fcntl.h | 90 #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 D | tcpfullwindowrsttest.c | 97 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 D | filter_fork.c | 104 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 D | fifo_misc.c | 86 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 D | tst.fds.c | 84 O_LARGEFILE | O_NOCTTY | O_NONBLOCK | O_NDELAY | O_RSYNC |
|
/freebsd-9.3-release/contrib/openbsm/compat/ |
H A D | flopen.h | 59 if (flags & O_NONBLOCK)
|
/freebsd-9.3-release/lib/bind/ |
H A D | config.h | 433 (O_NDELAY/O_NONBLOCK). */ 434 #define PORT_NONBLOCK O_NONBLOCK
|
/freebsd-9.3-release/lib/libc/db/db/ |
H A D | db.c | 53 (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
|
/freebsd-9.3-release/lib/libutil/ |
H A D | flopen.c | 61 if (flags & O_NONBLOCK)
|
/freebsd-9.3-release/sbin/comcontrol/ |
H A D | comcontrol.c | 67 fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
|
/freebsd-9.3-release/tools/regression/netipx/spxabort/ |
H A D | spxabort.c | 83 if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
|
/freebsd-9.3-release/tools/regression/pipe/ |
H A D | bigpipetest.c | 56 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
|
/freebsd-9.3-release/tools/regression/poll/ |
H A D | pipepoll.c | 97 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 D | pipeselect.c | 68 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 D | hunt.c | 87 (boolean(value(DC)) ? O_NONBLOCK : 0)));
|