bin/sh/exec.c
180
in = open(cmd, O_RDONLY | O_NONBLOCK);
bin/sh/input.c
165
if (flags >= 0 && flags & O_NONBLOCK) {
bin/sh/input.c
166
flags &=~ O_NONBLOCK;
bin/sh/redir.c
273
if (flags != -1 && fcntl(pip[1], F_SETFL, flags | O_NONBLOCK) != -1) {
bin/stty/stty.c
70
if ((i.fd = open(optarg, O_RDONLY | O_NONBLOCK)) < 0)
cddl/usr.sbin/zfsd/zfsd.cc
164
if (fcntl(s_signalPipeFD[0], F_SETFL, O_NONBLOCK) == -1)
cddl/usr.sbin/zfsd/zfsd.cc
167
if (fcntl(s_signalPipeFD[1], F_SETFL, O_NONBLOCK) == -1)
crypto/heimdal/lib/ipc/server.c
643
fcntl(c->fd, F_SETFL, fileflags | O_NONBLOCK);
crypto/krb5/src/plugins/kdb/db2/libdb2/db/db.c
54
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
crypto/krb5/src/util/verto/ev.c
2221
fcntl (fd, F_SETFL, O_NONBLOCK);
crypto/krb5/src/util/verto/ev.c
436
# define EFD_NONBLOCK O_NONBLOCK
crypto/krb5/src/util/verto/ev.c
452
# define SFD_NONBLOCK O_NONBLOCK
crypto/openssh/auth-rhosts.c
68
if ((fd = open(filename, O_RDONLY|O_NONBLOCK)) == -1)
crypto/openssh/auth2-pubkeyfile.c
450
if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
crypto/openssh/channels.c
454
(val = fcntl(rfd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
crypto/openssh/channels.c
460
(val = fcntl(wfd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
crypto/openssh/channels.c
466
(val = fcntl(efd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
crypto/openssh/misc.c
142
if (val & O_NONBLOCK) {
crypto/openssh/misc.c
147
val |= O_NONBLOCK;
crypto/openssh/misc.c
166
if (!(val & O_NONBLOCK)) {
crypto/openssh/misc.c
171
val &= ~O_NONBLOCK;
crypto/openssh/openbsd-compat/bsd-pselect.c
63
fcntl(fd, F_SETFL, val|O_NONBLOCK) == -1)
crypto/openssh/regress/netcat.c
684
if (fcntl(s, F_SETFL, flags | O_NONBLOCK) == -1)
crypto/openssh/scp.c
1409
if ((fd = open(name, O_RDONLY|O_NONBLOCK)) == -1)
crypto/openssl/crypto/bio/bio_sock.c
363
#elif defined(F_GETFL) && defined(F_SETFL) && (defined(O_NONBLOCK) || defined(FNDELAY))
crypto/openssl/crypto/bio/bio_sock.c
372
#if defined(O_NONBLOCK)
crypto/openssl/crypto/bio/bio_sock.c
373
l &= ~O_NONBLOCK;
crypto/openssl/crypto/bio/bio_sock.c
378
#if defined(O_NONBLOCK)
crypto/openssl/crypto/bio/bio_sock.c
379
l |= O_NONBLOCK;
crypto/openssl/crypto/bio/bss_dgram.c
2702
fcntl(b->num, F_SETFL, O_NONBLOCK);
crypto/openssl/crypto/bio/bss_dgram.c
2751
fcntl(b->num, F_SETFL, O_NONBLOCK);
crypto/openssl/doc/designs/ddd/ddd-04-fd-nonblocking.c
355
rc = fcntl(fd, F_SETFL, O_NONBLOCK);
crypto/openssl/doc/designs/ddd/ddd-05-mem-nonblocking.c
408
rc = fcntl(fd, F_SETFL, O_NONBLOCK);
crypto/openssl/engines/e_afalg.c
224
if (fcntl(aio->efd, F_SETFL, O_NONBLOCK) != 0) {
lib/libc/db/db/db.c
59
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
lib/libc/gen/kqueue1.c
43
if ((openflags & ~(O_CLOEXEC | O_NONBLOCK)) != 0) {
lib/libc/gen/syslog.c
318
(fd = _open(_PATH_CONSOLE, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0)) >=
lib/libc/net/nscachedcli.c
212
_fcntl(client_socket, F_SETFL, O_NONBLOCK);
lib/libc/rpc/svc_vc.c
336
if (_fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
lib/libc/tests/stdio/getdelim_test.c
345
ATF_REQUIRE(fcntl(fileno(fp), F_SETFL, flags | O_NONBLOCK) >= 0);
lib/libfetch/common.c
294
if (flags != -1 && (flags & O_NONBLOCK) == 0)
lib/libfetch/common.c
295
(void)fcntl(sd, F_SETFL, flags | O_NONBLOCK);
lib/libpam/modules/pam_exec/pam_exec.c
252
if (fcntl(chin[1], F_SETFL, O_NONBLOCK)) {
lib/libpam/modules/pam_exec/pam_exec.c
286
if (fcntl(chout[0], F_SETFL, O_NONBLOCK) != 0) {
lib/libpam/modules/pam_exec/pam_exec.c
301
if (fcntl(cherr[0], F_SETFL, O_NONBLOCK) != 0) {
lib/libprocstat/libprocstat.c
1633
{ O_NONBLOCK, PS_FST_FFLAG_NONBLOCK },
lib/libsysdecode/flags.c
567
X(O_CLOEXEC) X(O_CLOFORK) X(O_NONBLOCK) XEND
lib/libtacplus/taclib.c
247
fcntl(h->fd, F_SETFL, flags | O_NONBLOCK) == -1) {
lib/libusb/libusb10.c
166
flags |= O_NONBLOCK;
lib/libutil/flopen.c
65
if (flags & O_NONBLOCK)
lib/libutil/gr_util.c
103
lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
lib/libutil/pidfile.c
159
dirfd = open(pfh->pf_dir, O_CLOEXEC | O_DIRECTORY | O_NONBLOCK);
lib/libutil/pidfile.c
174
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
lib/libutil/pidfile.c
349
O_RDONLY | O_CLOEXEC | O_NONBLOCK);
lib/libutil/pw_util.c
176
lockfd = flopen(masterpasswd, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
lib/libutil/tests/flopen_test.c
103
fd2 = flopen(fn, O_RDWR|O_NONBLOCK);
lib/libutil/tests/flopen_test.c
131
fd2 = flopen(fn, O_RDWR|O_NONBLOCK);
lib/libutil/tests/flopen_test.c
169
if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) {
libexec/getty/main.c
227
if (!opentty(ttyn, O_RDWR|O_NONBLOCK))
libexec/getty/main.c
265
if (!opentty(ttyn, O_RDWR | (NC ? O_NONBLOCK : 0 )))
libexec/phttpget/phttpget.c
395
if (fcntl(sd, F_SETFL, sdflags | O_NONBLOCK) == -1)
sbin/comcontrol/comcontrol.c
67
fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
sbin/devd/devd.cc
933
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
sbin/hastd/proto_common.c
58
return ((flags & O_NONBLOCK) == 0);
sbin/hastd/proto_tcp.c
307
flags |= O_NONBLOCK;
sbin/hastd/proto_tcp.c
330
flags &= ~O_NONBLOCK;
sbin/hastd/proto_tcp.c
395
flags &= ~O_NONBLOCK;
sbin/init/init.c
1557
fd = open(sp->se_device, O_RDONLY | O_NONBLOCK, 0);
sbin/init/init.c
587
if ((fd = open(_PATH_CONSOLE, O_RDWR | O_NONBLOCK)) != -1) {
sbin/init/init.c
588
(void)fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_NONBLOCK);
sbin/routed/main.c
287
if (fcntl(rt_sock, F_SETFL, O_NONBLOCK) == -1)
sbin/routed/main.c
583
if (fcntl(sock, F_SETFL, O_NONBLOCK) == -1)
share/examples/ipfilter/l4check/l4check.c
295
#ifdef O_NONBLOCK
share/examples/ipfilter/l4check/l4check.c
297
fcntl(fd, F_SETFL, res | O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
181
(void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
182
(void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
183
(void) ioctl(1, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
sys/arm/ti/ti_pruss.c
253
if (ioflag & O_NONBLOCK) {
sys/cam/cam_xpt.c
374
if ((flags & O_NONBLOCK) != 0) {
sys/cam/scsi/scsi_pass.c
759
if ((flags & O_NONBLOCK) != 0) {
sys/cam/scsi/scsi_sa.c
760
if (error && (flags & O_NONBLOCK)) {
sys/compat/linux/linux_file.c
126
bsd_flags |= O_NONBLOCK;
sys/compat/linux/linux_file.c
134
bsd_flags |= O_NONBLOCK;
sys/compat/linux/linux_file.c
1412
arg |= O_NONBLOCK;
sys/compat/linux/linux_file.c
1717
flags |= O_NONBLOCK;
sys/compat/linux/linux_file.c
1957
bsd_flags |= O_NONBLOCK;
sys/compat/linux/linux_misc.c
2955
#define L2B_MQ_FLAGS(lflags) ((lflags) != 0 ? O_NONBLOCK : 0)
sys/dev/adb/adb_mouse.c
506
if (flag & O_NONBLOCK) {
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
135
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
sys/dev/drm2/drm_fops.c
507
if ((ioflag & O_NONBLOCK) != 0) {
sys/dev/evdev/cdev.c
213
if (ioflag & O_NONBLOCK)
sys/dev/evdev/uinput.c
256
if (ioflag & O_NONBLOCK)
sys/dev/gpio/gpioc.c
749
} else if (ioflag & O_NONBLOCK) {
sys/dev/hid/hidraw.c
447
if (flag & O_NONBLOCK) {
sys/dev/hid/u2f.c
336
if (flag & O_NONBLOCK) {
sys/dev/iicbus/iic.c
289
(ioflag & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR));
sys/dev/iicbus/iic.c
407
(flags & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR));
sys/dev/iicbus/iic.c
480
(flags & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR));
sys/dev/iicbus/iic.c
510
(flags & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR));
sys/dev/kbd/kbd.c
595
if (flag & O_NONBLOCK) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2444
if (filp->f_flags & O_NONBLOCK)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2536
if (filp->f_flags & O_NONBLOCK)
sys/dev/ppbus/pcfclock.c
162
(flag & O_NONBLOCK) ? PPB_DONTWAIT : PPB_WAIT);
sys/dev/ppbus/ppi.c
296
(flags & O_NONBLOCK) ? PPB_DONTWAIT : PPB_WAIT | PPB_INTR);
sys/dev/random/randomdev.c
111
return ((read_random_uio)(uio, (flags & O_NONBLOCK) != 0));
sys/dev/smbus/smb.c
221
(flags & O_NONBLOCK) ? SMB_DONTWAIT : (SMB_WAIT | SMB_INTR))))
sys/dev/snp/snp.c
175
if (flag & O_NONBLOCK) {
sys/dev/sound/midi/midi.c
368
if (ioflag & O_NONBLOCK)
sys/dev/sound/midi/midi.c
436
if (ioflag & O_NONBLOCK)
sys/dev/sound/pcm/dsp.c
225
if (flags & O_NONBLOCK)
sys/dev/vkbd/vkbd.c
333
if (flag & O_NONBLOCK) {
sys/dev/vkbd/vkbd.c
395
if (flag & O_NONBLOCK) {
sys/dev/vt/vt_sysmouse.c
347
if (oresid != uio->uio_resid || ioflag & O_NONBLOCK)
sys/fs/cuse/cuse.c
1850
(fflag & O_NONBLOCK) ? IO_NDELAY : 0);
sys/fs/devfs/devfs_vnops.c
1458
ioflag = fp->f_flag & (O_NONBLOCK | O_DIRECT);
sys/fs/devfs/devfs_vnops.c
1973
ioflag = fp->f_flag & (O_NONBLOCK | O_DIRECT | O_FSYNC);
sys/fs/devfs/devfs_vnops.c
2180
CTASSERT(O_NONBLOCK == IO_NDELAY);
sys/fs/fifofs/fifo_vnops.c
174
if ((ap->a_mode & O_NONBLOCK) && fip->fi_readers == 0) {
sys/fs/fifofs/fifo_vnops.c
190
if ((ap->a_mode & O_NONBLOCK) == 0) {
sys/fs/fuse/fuse_device.c
334
if (ioflag & O_NONBLOCK) {
sys/kern/sys_eventfd.c
52
_Static_assert(EFD_NONBLOCK == O_NONBLOCK, "Mismatched EFD_NONBLOCK");
sys/kern/sys_pipe.c
495
if ((flags & O_NONBLOCK) != 0)
sys/kern/sys_pipe.c
546
if ((uap->flags & ~(O_CLOEXEC | O_CLOFORK | O_NONBLOCK)) != 0)
sys/kern/tty.c
342
if ((oflags & O_NONBLOCK) == 0 &&
sys/kern/tty_pts.c
169
if (fp->f_flag & O_NONBLOCK) {
sys/kern/tty_pts.c
228
if (fp->f_flag & O_NONBLOCK) {
sys/kern/uipc_mqueue.c
2108
finit(fp, flags & (FREAD | FWRITE | O_NONBLOCK), DTYPE_MQUEUE, pn,
sys/kern/uipc_mqueue.c
2238
if (attr != NULL && (attr->mq_flags & ~O_NONBLOCK) != 0)
sys/kern/uipc_mqueue.c
2249
flag &= ~O_NONBLOCK;
sys/kern/uipc_mqueue.c
2250
flag |= (attr->mq_flags & O_NONBLOCK);
sys/kern/uipc_mqueue.c
2254
oattr->mq_flags = (O_NONBLOCK & oflag);
sys/kern/uipc_mqueue.c
2291
waitok = (fp->f_flag & O_NONBLOCK) == 0;
sys/kern/uipc_mqueue.c
2328
waitok = (fp->f_flag & O_NONBLOCK) == 0;
sys/net/bpf.c
805
non_block = ((ioflag & O_NONBLOCK) != 0);
sys/net/if_tuntap.c
1848
if (flag & O_NONBLOCK) {
sys/netgraph/ng_device.c
536
if (flag & O_NONBLOCK)
sys/ofed/drivers/infiniband/core/ib_ucm.c
405
if (file->filp->f_flags & O_NONBLOCK)
sys/ofed/drivers/infiniband/core/ib_ucma.c
401
if (file->filp->f_flags & O_NONBLOCK)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1038
if (filp->f_flags & O_NONBLOCK) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
353
if (filp->f_flags & O_NONBLOCK)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
223
if (filp->f_flags & O_NONBLOCK)
sys/sys/fcntl.h
210
#define FNONBLOCK O_NONBLOCK /* kernel */
sys/sys/fcntl.h
211
#define FNDELAY O_NONBLOCK /* compat */
sys/sys/fcntl.h
212
#define O_NDELAY O_NONBLOCK /* compat */
sys/sys/timerfd.h
43
#define TFD_NONBLOCK O_NONBLOCK
tests/sys/aio/aio_test.c
521
read_fd = open(FIFO_PATHNAME, O_RDONLY | O_NONBLOCK);
tests/sys/fifo/fifo_io.c
135
fd1 = open(fifoname, O_RDONLY | O_NONBLOCK);
tests/sys/fifo/fifo_io.c
138
fd2 = open(fifoname, O_WRONLY | O_NONBLOCK);
tests/sys/fifo/fifo_io.c
178
flags |= O_NONBLOCK;
tests/sys/fifo/fifo_io.c
199
flags &= ~O_NONBLOCK;
tests/sys/fifo/fifo_kqueue.c
152
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
154
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
201
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
231
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
233
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
285
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
287
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
338
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
340
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
373
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
397
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
51
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
53
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_misc.c
85
fd1 = open(fifoname, O_RDONLY | O_NONBLOCK);
tests/sys/fifo/fifo_misc.c
88
fd2 = open(fifoname, O_WRONLY | O_NONBLOCK);
tests/sys/fifo/fifo_open.c
182
fd = open("testfifo", O_RDONLY | O_NONBLOCK);
tests/sys/fifo/fifo_open.c
195
fd = open("testfifo", O_WRONLY | O_NONBLOCK);
tests/sys/file/fcntlflags_test.c
54
ATF_REQUIRE((flags1 & O_NONBLOCK) == 0);
tests/sys/file/fcntlflags_test.c
64
ATF_REQUIRE_MSG(fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) != -1,
tests/sys/file/fcntlflags_test.c
70
ATF_REQUIRE_INTEQ(flags2 | O_NONBLOCK, flags3);
tests/sys/fs/fusefs/mockfs.cc
469
m_fuse_fd = open("/dev/fuse", O_CLOEXEC | O_RDWR | O_NONBLOCK);
tests/sys/kern/ktls_test.c
257
flags |= O_NONBLOCK;
tests/sys/kern/ktls_test.c
301
flags &= ~O_NONBLOCK;
tests/sys/kern/listener_wakeup.c
239
ATF_REQUIRE(fcntl(ctx.s, F_SETFL, O_NONBLOCK) != -1);
tests/sys/kern/pipe/big_pipe_test.c
55
if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
tests/sys/kern/pipe/pipe_kqueue_test.c
146
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
190
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
248
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
301
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
48
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/sendfile_helper.c
83
flags |= O_NONBLOCK;
tests/sys/kern/sendfile_helper.c
95
flags &= ~O_NONBLOCK;
tests/sys/kern/socket_accf.c
42
ATF_REQUIRE(fcntl(l, F_SETFL, O_NONBLOCK) != -1);
tests/sys/kern/socket_splice.c
55
flags |= O_NONBLOCK;
tests/sys/kern/socket_splice.c
838
error = fcntl(xfer->fd, F_SETFL, O_NONBLOCK);
tests/sys/kern/ssl_sendfile.c
161
ATF_REQUIRE(fcntl(c->cs, F_SETFL, O_NONBLOCK) != -1);
tests/sys/kern/ssl_sendfile.c
224
c->nb ? O_NONBLOCK : 0) != -1);
tests/sys/kern/timerfd.c
1035
r = fcntl(tfd, F_SETFL, r | O_NONBLOCK);
tests/sys/kern/unix_dgram.c
153
ATF_REQUIRE(fcntl(fd[1], F_SETFL, O_NONBLOCK) != -1);
tests/sys/kern/unix_dgram.c
166
ATF_REQUIRE(fcntl(fd[0], F_SETFL, O_NONBLOCK) != -1);
tests/sys/kern/unix_passfd_test.c
319
ATF_REQUIRE_MSG(fcntl(fd, F_SETFL, O_NONBLOCK) != -1,
tests/sys/kern/unix_passfd_test.c
722
rc = fcntl(fd[0], F_SETFL, O_NONBLOCK);
tests/sys/kern/unix_seqpacket_test.c
612
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1) {
tests/sys/kern/unix_seqpacket_test.c
71
ATF_REQUIRE(-1 != fcntl(sv[0], F_SETFL, O_NONBLOCK));
tests/sys/kern/unix_seqpacket_test.c
72
ATF_REQUIRE(-1 != fcntl(sv[1], F_SETFL, O_NONBLOCK));
tests/sys/kern/unix_stream.c
188
ATF_REQUIRE(fcntl(sv[0], F_SETFL, O_NONBLOCK) != -1);
tests/sys/mqueue/mqtest5.c
67
mq = mq_open(MQNAME, O_RDWR | O_NONBLOCK);
tests/sys/netinet/fibs_multibind_test.c
536
ATF_REQUIRE(fcntl(s[0], F_SETFL, O_NONBLOCK) == 0);
tests/sys/netinet/fibs_multibind_test.c
540
ATF_REQUIRE(fcntl(s[1], F_SETFL, O_NONBLOCK) == 0);
tests/sys/netinet/tcp_md5_getsockopt.c
80
fcntl(ssock, F_SETFL, O_NONBLOCK);
tests/sys/netinet/udp_dontroute.c
81
t = open(tapdev, O_RDWR | O_NONBLOCK);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
107
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
142
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
194
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
241
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
295
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
296
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
319
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
320
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
350
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
394
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
59
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
60
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
83
CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
84
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/netinet/msocket/msocket.c
363
if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
tools/regression/netinet/tcpconnect/tcpconnect.c
138
if (fcntl(sock, F_SETFL, O_NONBLOCK) != 0)
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
95
fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
96
fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
tools/regression/netinet/udpzerobyte/udpzerobyte.c
72
if (fcntl(sock_receive, F_SETFL, O_NONBLOCK, 1) < 0)
tools/regression/poll/pipepoll.c
197
fd2 = open(FIFONAME, O_RDONLY | O_NONBLOCK);
tools/regression/poll/pipepoll.c
226
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipepoll.c
251
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipepoll.c
96
fd = open(FIFONAME, O_RDONLY | O_NONBLOCK);
tools/regression/poll/pipeselect.c
190
fd2 = open(FIFONAME, O_RDONLY | O_NONBLOCK);
tools/regression/poll/pipeselect.c
223
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipeselect.c
248
fd = open(FIFONAME, O_WRONLY | O_NONBLOCK);
tools/regression/poll/pipeselect.c
67
fd = open(FIFONAME, O_RDONLY | O_NONBLOCK);
tools/regression/poll/sockpoll.c
88
flags |= O_NONBLOCK;
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
111
i |= O_NONBLOCK;
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
117
if ((i & O_NONBLOCK) != O_NONBLOCK)
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
178
i &= ~O_NONBLOCK;
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
184
if (i & O_NONBLOCK)
tools/regression/sockets/accf_data_attach/accf_data_attach.c
214
i |= O_NONBLOCK;
tools/regression/sockets/kqueue/kqueue.c
270
if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
273
if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
300
if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
302
if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
321
if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
324
if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
345
if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/kqueue/kqueue.c
348
if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
tools/regression/sockets/listenclose/listenclose.c
92
arg = O_NONBLOCK;
tools/regression/sockets/unix_cmsg/uc_common.c
165
if (fcntl(fd, F_SETFL, val | O_NONBLOCK) < 0) {
tools/regression/sockets/unix_cmsg/uc_common.c
385
if (fcntl(fd, F_SETFL, val & ~O_NONBLOCK) < 0) {
tools/regression/sockets/unix_gc/unix_gc.c
202
if (fcntl(s, F_SETFL, O_NONBLOCK) < 0)
tools/regression/sockets/zerosend/zerosend.c
145
if (fcntl(sock2, F_SETFL, O_NONBLOCK) < 0)
tools/regression/sockets/zerosend/zerosend.c
220
fd1 = open(path, O_RDONLY | O_NONBLOCK);
tools/regression/sockets/zerosend/zerosend.c
224
fd2 = open(path, O_WRONLY | O_NONBLOCK);
tools/test/gpioevents/gpioevents.c
573
flags |= O_NONBLOCK;
tools/test/stress2/testcases/mkfifo/mkfifo.c
52
if ((fd = open(path, O_RDONLY | O_NONBLOCK)) < 0)
tools/tools/netrate/tcpp/tcpp_client.c
101
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
tools/tools/netrate/tcpp/tcpp_server.c
252
if (fcntl(listen_sock, F_SETFL, O_NONBLOCK) < 0)
tools/tools/netrate/tcpp/tcpp_server.c
87
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
usr.bin/chat/chat.c
101
#ifndef O_NONBLOCK
usr.bin/chat/chat.c
1038
if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1)
usr.bin/chat/chat.c
1065
if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1)
usr.bin/chat/chat.c
446
if (fcntl(0, F_SETFL, flags | O_NONBLOCK) == -1)
usr.bin/fsync/fsync.c
52
if ((fd = open(argv[i], O_RDONLY | O_NONBLOCK)) == -1) {
usr.bin/ktrace/ktrace.c
136
if ((fd = open(tracefile, O_CREAT | O_WRONLY | O_NONBLOCK,
usr.bin/lockf/lockf.c
226
lockfd = acquire_lock(&subj, flags | O_NONBLOCK, silent);
usr.bin/lockf/lockf.c
232
lockfd = acquire_lock(&subj, flags | O_NONBLOCK,
usr.bin/morse/morse.c
366
if ((line = open(device, O_WRONLY | O_NONBLOCK)) == -1) {
usr.bin/morse/morse.c
376
lflags &= ~O_NONBLOCK;
usr.bin/posixmqcontrol/posixmqcontrol.c
436
flags |= O_NONBLOCK;
usr.bin/posixmqcontrol/posixmqcontrol.c
437
stuff.mq_flags |= O_NONBLOCK;
usr.bin/resizewin/resizewin.c
85
if ((fd = open("/dev/tty", O_RDWR | O_NONBLOCK)) == -1)
usr.bin/script/script.c
224
fcm |= O_NONBLOCK;
usr.bin/tip/tip/hunt.c
79
(boolean(value(DC)) ? O_NONBLOCK : 0)));
usr.bin/tip/tip/tip.c
199
i = fcntl(FD, F_SETFL, i & ~O_NONBLOCK);
usr.bin/wall/ttymsg.c
85
if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) < 0) {
usr.bin/whois/whois.c
449
f &= ~O_NONBLOCK;
usr.sbin/apmd/apmd.c
678
if (fcntl(signal_fd[0], F_SETFL, O_NONBLOCK) < 0)
usr.sbin/bhyve/gdb.c
2253
if (fcntl(s, F_SETFL, flags | O_NONBLOCK) == -1)
usr.sbin/bhyve/net_backend_netgraph.c
118
if (fcntl(be->fd, F_SETFL, flags | O_NONBLOCK) < 0) {
usr.sbin/bhyve/pci_virtio_console.c
333
if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) {
usr.sbin/bhyve/pci_virtio_input.c
658
sc->vsc_fd = open(sc->vsc_evdev, O_RDWR | O_NONBLOCK);
usr.sbin/bhyve/pci_virtio_rnd.c
153
fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
usr.sbin/bhyve/slirp/slirp-helper.c
507
if (pipe2(priv.wakeup, O_CLOEXEC | O_NONBLOCK) != 0)
usr.sbin/bhyve/uart_backend.c
306
if (fcntl(conn_fd, F_SETFL, O_NONBLOCK) != 0)
usr.sbin/bhyve/uart_backend.c
361
if (fcntl(sc->tty.rfd, F_SETFL, O_NONBLOCK) != 0)
usr.sbin/bhyve/uart_backend.c
363
if (fcntl(sc->tty.wfd, F_SETFL, O_NONBLOCK) != 0)
usr.sbin/bhyve/uart_backend.c
388
fd = open(path, O_RDWR | O_NONBLOCK);
usr.sbin/bhyve/uart_backend.c
464
if (fcntl(bind_fd, F_SETFL, O_NONBLOCK) == -1)
usr.sbin/bhyveload/bhyveload.c
703
fd = open(path, O_RDWR | O_NONBLOCK);
usr.sbin/bluetooth/bthidd/btuinput.c
324
fd = open("/dev/uinput", O_RDWR | O_NONBLOCK);
usr.sbin/bluetooth/bthidd/client.c
229
if (fcntl(s, F_SETFL, (m|O_NONBLOCK)) < 0) {
usr.sbin/bsdinstall/runconsoles/runconsoles.c
330
fd = open(dev, O_RDWR | O_NONBLOCK);
usr.sbin/bsdinstall/runconsoles/runconsoles.c
338
error = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c
225
if ((fd = open(dev_path, O_RDONLY|O_NONBLOCK)) == -1) {
usr.sbin/fdcontrol/fdcontrol.c
120
if((fd = open(argv[0], O_RDONLY | O_NONBLOCK)) < 0)
usr.sbin/fdformat/fdformat.c
220
if ((fd = open(device, O_RDWR | O_NONBLOCK)) < 0)
usr.sbin/fdformat/fdformat.c
269
flags &= ~O_NONBLOCK;
usr.sbin/inetd/builtins.c
622
fakeid_fd = open(p, O_RDONLY | O_NONBLOCK);
usr.sbin/lpr/lpd/lpd.c
283
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
usr.sbin/lpr/lpd/printjob.c
193
lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
usr.sbin/moused/moused/moused.c
1863
fd = open(path, O_RDWR | O_NONBLOCK);
usr.sbin/moused/msconvd/msconvd.c
584
rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK);
usr.sbin/moused/msconvd/msconvd.c
793
fd = open("/dev/uinput", O_RDWR | O_NONBLOCK);
usr.sbin/nscd/nscd.c
197
fcntl(retval->sockfd, F_SETFL, O_NONBLOCK);
usr.sbin/nscd/nscdcli.c
199
fcntl(client_socket, F_SETFL, O_NONBLOCK);
usr.sbin/pmcstat/pmcstat.c
1088
if (fcntl(rfd, F_SETFL, O_NONBLOCK) < 0)
usr.sbin/pmcstat/pmcstat.c
1111
if (fcntl(pipefd[READPIPEFD], F_SETFL, O_NONBLOCK) < 0)
usr.sbin/ppp/exec.c
273
stat |= O_NONBLOCK;
usr.sbin/ppp/main.c
99
#ifndef O_NONBLOCK
usr.sbin/ppp/physical.c
1020
p->fd = ID0open(p->name.full, O_RDWR | O_NONBLOCK);
usr.sbin/ppp/prompt.c
425
stat |= O_NONBLOCK;
usr.sbin/ppp/prompt.c
464
stat |= O_NONBLOCK;
usr.sbin/ppp/prompt.c
484
stat &= ~O_NONBLOCK;
usr.sbin/ppp/prompt.c
497
stat &= ~O_NONBLOCK;
usr.sbin/ppp/tty.c
468
fcntl(p->fd, F_SETFL, oldflag | O_NONBLOCK);
usr.sbin/ppp/tty.c
511
fcntl(p->fd, F_SETFL, oldflag & ~O_NONBLOCK);
usr.sbin/ppp/tty.c
765
fcntl(p->fd, F_SETFL, oldflag & ~O_NONBLOCK);
usr.sbin/rpc.lockd/kern.c
132
devfd = open(_PATH_DEV _PATH_NFSLCKDEV, O_RDWR | O_NONBLOCK);
usr.sbin/rtadvd/control.c
244
if ((flags = fcntl(fd, F_SETFL, flags | O_NONBLOCK)) == -1) {
usr.sbin/rtadvd/control.c
328
if ((flags = fcntl(s->si_fd, F_SETFL, flags | O_NONBLOCK)) == -1) {
usr.sbin/syslogd/syslogd.c
3760
if (fcntl(pfd[1], F_SETFL, O_NONBLOCK) == -1) {
usr.sbin/syslogd/syslogd.c
678
s = open(_PATH_KLOG, O_RDONLY | O_NONBLOCK | O_CLOEXEC, 0);
usr.sbin/watch/watch.c
216
snp_tty = open(dev_name, O_RDONLY | O_NONBLOCK);
usr.sbin/ypserv/yp_dnslookup.c
140
if (fcntl(resfd, F_SETFL, O_NONBLOCK) == -1) {