/openbsd/lib/libcrypto/bio/ |
H A D | b_posix.c | 87 if (mode && !(flags & O_NONBLOCK)) in BIO_socket_nbio() 88 return (fcntl(s, F_SETFL, flags | O_NONBLOCK) != -1); in BIO_socket_nbio() 89 else if (!mode && (flags & O_NONBLOCK)) in BIO_socket_nbio() 90 return (fcntl(s, F_SETFL, flags & ~O_NONBLOCK) != -1); in BIO_socket_nbio()
|
/openbsd/regress/sys/ffs/tests/open/ |
H A D | 18.t | 9 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK 10 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 11 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 12 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
|
H A D | 17.t | 9 expect ENXIO open ${n0} O_WRONLY,O_NONBLOCK
|
/openbsd/regress/lib/libc/sys/ |
H A D | t_pipe2.c | 73 if (flags & O_NONBLOCK) { in run() 74 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 75 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 77 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 78 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run() 148 run(O_NONBLOCK); in ATF_TC_BODY()
|
H A D | t_socketpair.c | 86 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 87 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 89 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 90 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run()
|
H A D | t_mkfifo.c | 180 fd = open(path, O_RDONLY | O_NONBLOCK); in ATF_TC_BODY() 191 ATF_REQUIRE_ERRNO(ENXIO, open(path, O_WRONLY | O_NONBLOCK) == -1); in ATF_TC_BODY()
|
/openbsd/sys/sys/ |
H A D | fcntl.h | 79 #define O_NONBLOCK 0x0004 /* no delay */ macro 133 #define FNONBLOCK O_NONBLOCK /* kernel */ 134 #define FNDELAY O_NONBLOCK /* compat */ 135 #define O_NDELAY O_NONBLOCK /* compat */
|
/openbsd/regress/lib/libpthread/stdfiles/ |
H A D | stdfiles.c | 42 new_flags = stdin_flags | O_NONBLOCK; in main() 89 stderr_flags = new_flags | O_NONBLOCK; in main() 94 stdin_flags &= ~O_NONBLOCK; in main()
|
/openbsd/regress/sys/fifofs/ |
H A D | fifotest.c | 75 runtest(argv[1], O_NONBLOCK, 0); in main() 76 runtest(argv[1], O_NONBLOCK, INFTIM); in main() 77 eoftest(argv[1], O_NONBLOCK, INFTIM); in main() 104 (flags & O_NONBLOCK) ? " (nonblocking)" : ""); in runtest() 221 (flags & O_NONBLOCK) ? " (nonblocking)" : ""); in eoftest()
|
/openbsd/regress/lib/libpthread/fork/ |
H A D | fork.c | 73 if ((flags & (O_NONBLOCK | O_NDELAY))) { in main() 76 flags & ~(O_NONBLOCK | O_NDELAY))); in main()
|
/openbsd/gnu/lib/libreadline/ |
H A D | shell.c | 181 #ifdef O_NONBLOCK 182 bflags |= O_NONBLOCK;
|
/openbsd/regress/lib/libpthread/socket/3/ |
H A D | socket3.c | 99 CHECKr(fcntl(listen_fd, F_SETFL, flags |= O_NONBLOCK)); in sock_accept() 106 ASSERT(flags & O_NONBLOCK); in sock_accept()
|
/openbsd/gnu/usr.bin/perl/dist/IO/ |
H A D | IO.xs | 89 # ifdef O_NONBLOCK in io_blocking() 93 # define O_NDELAY O_NONBLOCK in io_blocking() 97 RETVAL = RETVAL & (O_NONBLOCK | O_NDELAY) ? 0 : 1; in io_blocking() 101 newmode |= O_NONBLOCK; in io_blocking() 103 newmode &= ~(O_NDELAY|O_NONBLOCK); in io_blocking()
|
/openbsd/usr.bin/wall/ |
H A D | ttymsg.c | 90 if ((fd = open(device, O_WRONLY|O_NONBLOCK)) == -1) { in ttymsg() 163 (void) fcntl(fd, O_NONBLOCK, &off); in ttymsg()
|
/openbsd/regress/sys/kern/unixsockets/ |
H A D | ungc.c | 55 if (socketpair(AF_UNIX, SOCK_STREAM|O_NONBLOCK, 0, sp) < 0) in main() 108 if (socketpair(AF_UNIX, SOCK_STREAM|O_NONBLOCK, 0, sl) < 0) in main()
|
/openbsd/usr.bin/cu/ |
H A D | cu.c | 190 flags |= O_NONBLOCK; in main() 254 state = state ? 0 : O_NONBLOCK; in set_blocking() 257 if ((mode & O_NONBLOCK) != state) { in set_blocking() 258 mode = (mode & ~O_NONBLOCK) | state; in set_blocking()
|
/openbsd/regress/lib/libpthread/poll/ |
H A D | poll.c | 107 CHECKe(fcntl(tube[0], F_SETFL, O_NONBLOCK)); in main() 108 CHECKe(fcntl(tube[1], F_SETFL, O_NONBLOCK)); in main()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | inflow.c | 464 #ifdef O_NONBLOCK in child_terminal_info() 465 if (flags & O_NONBLOCK) in child_terminal_info() 467 flags &= ~O_NONBLOCK; in child_terminal_info()
|
/openbsd/regress/sys/kern/kqueue/ |
H A D | kqueue-pty.c | 74 if (fcntl(massa, F_SETFL, O_NONBLOCK) < 0) in pty_rdrw() 76 if (fcntl(slave, F_SETFL, O_NONBLOCK) < 0) in pty_rdrw()
|
/openbsd/usr.sbin/iscsid/ |
H A D | util.c | 116 flags |= O_NONBLOCK; in socket_setblockmode() 118 flags &= ~O_NONBLOCK; in socket_setblockmode()
|
/openbsd/gnu/usr.bin/binutils/gdb/osf-share/AT386/ |
H A D | cma_thread_io.h | 58 # ifdef O_NONBLOCK 59 # if O_NONBLOCK != FNBLOCK
|
/openbsd/lib/libpcap/ |
H A D | pcap.c | 446 if (fdflags & O_NONBLOCK) in pcap_getnonblock() 464 fdflags |= O_NONBLOCK; in pcap_setnonblock() 466 fdflags &= ~O_NONBLOCK; in pcap_setnonblock()
|
/openbsd/usr.sbin/syslogd/ |
H A D | privsep.c | 264 fd = open(path, O_WRONLY|O_NONBLOCK); in priv_exec() 300 fd = open(_PATH_UTMP, O_RDONLY|O_NONBLOCK); in priv_exec() 311 fd = open(conf, O_RDONLY|O_NONBLOCK); in priv_exec() 459 return (open(path, O_WRONLY|O_APPEND|O_NONBLOCK)); in open_file() 490 flags |= O_NONBLOCK; in open_pipe()
|
/openbsd/gnu/llvm/lldb/include/lldb/Host/windows/ |
H A D | PosixApi.h | 29 #define O_NONBLOCK 0 macro
|
/openbsd/usr.sbin/pppd/chat/ |
H A D | chat.c | 114 #ifndef O_NONBLOCK 115 #define O_NONBLOCK O_NDELAY macro 459 if (fcntl(0, F_SETFL, flags | O_NONBLOCK) == -1) in sigalrm() 473 if (fcntl(0, F_SETFL, flags & ~O_NONBLOCK) == -1) in unalarm() 1125 if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1) in get_char() 1152 if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1) in put_char()
|