/freebsd-10.0-release/contrib/ntp/sntp/ |
H A D | kludges.h | 45 /* 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 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-10.0-release/contrib/ntp/include/ |
H A D | ntp_io.h | 34 * 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 D | fcntlflags.c | 81 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 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-10.0-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-10.0-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-10.0-release/cddl/lib/libdtrace/ |
H A D | io.d | 101 inline int O_NONBLOCK = 0x0004; 102 #pragma D binding "1.1" O_NONBLOCK
|
/freebsd-10.0-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-10.0-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-10.0-release/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 63 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 D | tst.fds.c | 84 O_LARGEFILE | O_NOCTTY | O_NONBLOCK | O_NDELAY | O_RSYNC |
|
/freebsd-10.0-release/contrib/apr/file_io/unix/ |
H A D | pipe.c | 42 # 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 D | flopen.h | 59 if (flags & O_NONBLOCK)
|
/freebsd-10.0-release/lib/libc/db/db/ |
H A D | db.c | 53 (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
|
/freebsd-10.0-release/lib/libutil/ |
H A D | flopen.c | 61 if (flags & O_NONBLOCK)
|
/freebsd-10.0-release/sbin/comcontrol/ |
H A D | comcontrol.c | 67 fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
|
/freebsd-10.0-release/sys/dev/random/ |
H A D | dummy_rng.c | 67 if (flag & O_NONBLOCK)
|
/freebsd-10.0-release/tools/regression/netipx/spxabort/ |
H A D | spxabort.c | 83 if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
|
/freebsd-10.0-release/tools/regression/pipe/ |
H A D | bigpipetest.c | 56 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
|
/freebsd-10.0-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-10.0-release/usr.bin/tip/tip/ |
H A D | hunt.c | 87 (boolean(value(DC)) ? O_NONBLOCK : 0)));
|