Home
last modified time | relevance | path

Searched refs:O_NONBLOCK (Results 1 – 25 of 187) sorted by relevance

12345678

/openbsd/lib/libcrypto/bio/
H A Db_posix.c87 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 D18.t9 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 D17.t9 expect ENXIO open ${n0} O_WRONLY,O_NONBLOCK
/openbsd/regress/lib/libc/sys/
H A Dt_pipe2.c73 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 Dt_socketpair.c86 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 Dt_mkfifo.c180 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 Dfcntl.h79 #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 Dstdfiles.c42 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 Dfifotest.c75 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 Dfork.c73 if ((flags & (O_NONBLOCK | O_NDELAY))) { in main()
76 flags & ~(O_NONBLOCK | O_NDELAY))); in main()
/openbsd/gnu/lib/libreadline/
H A Dshell.c181 #ifdef O_NONBLOCK
182 bflags |= O_NONBLOCK;
/openbsd/regress/lib/libpthread/socket/3/
H A Dsocket3.c99 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 DIO.xs89 # 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 Dttymsg.c90 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 Dungc.c55 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 Dcu.c190 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 Dpoll.c107 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 Dinflow.c464 #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 Dkqueue-pty.c74 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 Dutil.c116 flags |= O_NONBLOCK; in socket_setblockmode()
118 flags &= ~O_NONBLOCK; in socket_setblockmode()
/openbsd/gnu/usr.bin/binutils/gdb/osf-share/AT386/
H A Dcma_thread_io.h58 # ifdef O_NONBLOCK
59 # if O_NONBLOCK != FNBLOCK
/openbsd/lib/libpcap/
H A Dpcap.c446 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 Dprivsep.c264 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 DPosixApi.h29 #define O_NONBLOCK 0 macro
/openbsd/usr.sbin/pppd/chat/
H A Dchat.c114 #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()

12345678