Defined in 9 files as a macro:
Referenced in 249 files:
- bin/sh/exec.c, line 186
- bin/sh/input.c, 2 times
- bin/sh/redir.c, line 281
- bin/stty/stty.c, line 83
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c, line 85
- cddl/usr.sbin/zfsd/zfsd.cc, 2 times
- contrib/apr/file_io/unix/open.c, 2 times
- contrib/apr/file_io/unix/pipe.c, 4 times
- contrib/apr/network_io/unix/sockopt.c, 4 times
- contrib/bearssl/tools/client.c, line 137
- contrib/bearssl/tools/server.c, line 219
- contrib/bearssl/tools/sslio.c, 2 times
- contrib/blacklist/bin/state.c, line 80
- contrib/blacklist/lib/bl.c, line 164
- contrib/bmake/filemon/filemon_ktrace.c, line 206
- contrib/bmake/job.c, line 544
- contrib/bsnmp/lib/snmpclient.c, 3 times
- contrib/capsicum-test/capability-fd-pair.cc, 5 times
- contrib/dma/spool.c, line 362
- contrib/dma/util.c, line 297
- contrib/file/src/file.h, line 658
- contrib/file/src/magic.c, line 439
- contrib/gdb/gdb/inflow.c, 3 times
- contrib/gdb/gdb/tui/tui-io.c, 2 times
- contrib/ipfilter/l4check/l4check.c, 2 times
- contrib/ipfilter/samples/relay.c, 3 times
- contrib/ldns/net.c, 2 times
- contrib/lib9p/backend/fs.c, line 383
- contrib/libarchive/libarchive/archive_read_disk_entry_from_file.c, 6 times
- contrib/libarchive/libarchive/archive_read_disk_posix.c, line 1007
- contrib/libarchive/libarchive/archive_write_disk_posix.c, line 3890
- contrib/libarchive/libarchive/filter_fork_posix.c, 2 times
- contrib/libarchive/libarchive/test/main.c, 3 times
- contrib/libarchive/tar/test/test_option_fflags.c, line 41
- contrib/libarchive/test_utils/test_main.c, 5 times
- contrib/libevent/evutil.c, 4 times
- contrib/libevent/sample/event-read-fifo.c, line 123
- contrib/libpcap/pcap-linux.c, line 7415
- contrib/libpcap/pcap.c, 3 times
- contrib/libxo/libxo/xo_syslog.c, line 257
- contrib/llvm-project/libcxx/src/filesystem/operations.cpp, line 747
- contrib/llvm-project/lldb/source/Host/common/File.cpp, line 747
- contrib/llvm-project/lldb/source/Host/common/FileSystem.cpp, line 401
- contrib/llvm-project/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp, 2 times
- contrib/llvm-project/lldb/source/Host/posix/PipePosix.cpp, 2 times
- contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, line 948
- contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp, line 155
- contrib/netbsd-tests/kernel/t_pty.c, line 181
- contrib/netbsd-tests/kernel/tty/t_pr.c, line 111
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mmap.c, line 130
- contrib/netbsd-tests/lib/libc/sys/t_pipe2.c, 6 times
- contrib/netbsd-tests/lib/libc/sys/t_socketpair.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, line 347
- contrib/netbsd-tests/lib/libcurses/director/director.c, line 265
- contrib/netbsd-tests/net/icmp/t_ping.c, line 156
- contrib/netbsd-tests/net/net/t_tcp.c, 5 times
- contrib/netcat/netcat.c, line 728
- contrib/ngatm/sscop/common.c, 2 times
- contrib/ntp/include/ntp_io.h, 2 times
- contrib/ntp/lib/isc/win32/unistd.h, line 22
- contrib/ntp/libntp/audio.c, line 266
- contrib/ntp/libntp/socket.c, 3 times
- contrib/ntp/libntp/work_thread.c, line 580
- contrib/ntp/ntpd/ntp_refclock.c, 4 times
- contrib/ntp/ntpd/refclock_gpsdjson.c, line 1878
- contrib/ntp/ntpd/refclock_nmea.c, 2 times
- contrib/ntp/ntpd/refclock_parse.c, 3 times
- contrib/ntp/ntpdate/ntpdate.c, 2 times
- contrib/ntp/sntp/libevent/evutil.c, 4 times
- contrib/ntp/sntp/libopts/compat/compat.h, line 148
- contrib/ntp/util/audio-pcm.c, line 103
- contrib/nvi/common/exf.c, line 246
- contrib/nvi/common/log.c, line 109
- contrib/ofed/libibumad/umad.c, line 640
- contrib/ofed/librdmacm/examples/riostream.c, line 340
- contrib/ofed/librdmacm/examples/rstream.c, line 299
- contrib/ofed/librdmacm/examples/udpong.c, line 166
- contrib/ofed/librdmacm/rsocket.c, 13 times
- contrib/ofed/opensm/libvendor/osm_vendor_ibumad.c, line 1243
- contrib/openbsm/bin/auditdistd/proto_common.c, line 58
- contrib/openbsm/bin/auditdistd/proto_tcp.c, 3 times
- contrib/openbsm/bin/auditdistd/proto_tls.c, 2 times
- contrib/openbsm/compat/flopen.h, line 58
- contrib/openbsm/compat/pidfile.h, 2 times
- contrib/pf/ftp-proxy/ftp-proxy.c, line 471
- contrib/pf/libevent/signal.c, line 103
- contrib/pf/pflogd/privsep.c, line 153
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/libmilter/worker.c, line 246
- contrib/sendmail/libsm/local.h, 2 times
- contrib/sendmail/src/srvrsmtp.c, 4 times
- contrib/tcsh/tc.func.c, 2 times
- contrib/tnftp/src/ftp.c, line 1665
- contrib/tnftp/src/util.c, line 1390
- contrib/unbound/util/net_help.c, 2 times
- contrib/wpa/src/common/dpp.c, 5 times
- contrib/wpa/src/common/wpa_ctrl.c, line 236
- contrib/wpa/src/crypto/random.c, 2 times
- contrib/wpa/src/drivers/driver_nl80211_android.c, line 187
- contrib/wpa/src/wps/http_client.c, line 152
- contrib/wpa/src/wps/http_server.c, 2 times
- contrib/wpa/src/wps/wps_upnp_ssdp.c, 2 times
- contrib/wpa/wpa_supplicant/ctrl_iface_unix.c, 2 times
- contrib/xz/src/xz/file_io.c, 8 times
- crypto/heimdal/lib/ipc/server.c, line 643
- crypto/openssh/auth-rhosts.c, line 67
- crypto/openssh/auth.c, line 518
- crypto/openssh/misc.c, 4 times
- crypto/openssh/regress/netcat.c, line 675
- crypto/openssh/scp.c, line 1074
- crypto/openssl/crypto/bio/b_sock.c, 5 times
- crypto/openssl/crypto/bio/bss_dgram.c, 2 times
- crypto/openssl/engines/e_afalg.c, line 176
- gnu/usr.bin/grep/grep.c, 2 times
- lib/libc/db/db/db.c, line 59
- lib/libc/gen/opendir.c, line 84
- lib/libc/gen/syslog.c, line 343
- lib/libc/net/nscachedcli.c, line 216
- lib/libc/rpc/svc_vc.c, line 343
- lib/libpam/modules/pam_exec/pam_exec.c, 3 times
- lib/libprocstat/libprocstat.c, line 1647
- lib/libsysdecode/flags.c, line 710
- lib/libtacplus/taclib.c, line 247
- lib/libusb/libusb10.c, line 114
- lib/libutil/flopen.c, line 67
- lib/libutil/gr_util.c, line 106
- lib/libutil/pidfile.c, 2 times
- lib/libutil/pw_util.c, line 179
- lib/libutil/tests/flopen_test.c, 3 times
- libexec/ftpd/ftpd.c, 2 times
- libexec/getty/main.c, 2 times
- libexec/phttpget/phttpget.c, line 398
- sbin/comcontrol/comcontrol.c, line 69
- sbin/devd/devd.cc, line 919
- sbin/hastd/proto_common.c, line 61
- sbin/hastd/proto_tcp.c, 3 times
- sbin/init/init.c, 3 times
- sbin/routed/main.c, 2 times
- sys/arm/ti/ti_pruss.c, line 260
- sys/cam/cam_xpt.c, line 374
- sys/cam/scsi/scsi_pass.c, line 742
- sys/cam/scsi/scsi_sa.c, line 699
- sys/compat/cloudabi/cloudabi_fd.c, 2 times
- sys/compat/cloudabi/cloudabi_file.c, line 243
- sys/compat/linux/linux_file.c, 4 times
- sys/contrib/openzfs/cmd/zed/zed_disk_event.c, 2 times
- sys/contrib/openzfs/lib/libzutil/os/freebsd/zutil_import_os.c, line 127
- sys/dev/adb/adb_mouse.c, line 511
- sys/dev/aic7xxx/aicasm/aicasm_symbol.c, line 137
- sys/dev/cmx/cmx.c, line 513
- sys/dev/drm2/drm_fops.c, line 515
- sys/dev/evdev/cdev.c, line 213
- sys/dev/evdev/uinput.c, line 257
- sys/dev/iicbus/iic.c, 4 times
- sys/dev/kbd/kbd.c, line 617
- sys/dev/ppbus/pcfclock.c, line 166
- sys/dev/ppbus/ppi.c, line 303
- sys/dev/random/randomdev.c, line 114
- sys/dev/smbus/smb.c, line 166
- sys/dev/snp/snp.c, line 177
- sys/dev/sound/midi/midi.c, 2 times
- sys/dev/sound/midi/sequencer.c, 4 times
- sys/dev/sound/pcm/dsp.c, 2 times
- sys/dev/vkbd/vkbd.c, 2 times
- sys/dev/vt/vt_sysmouse.c, line 338
- sys/fs/cuse/cuse.c, line 1719
- sys/fs/devfs/devfs_vnops.c, 3 times
- sys/fs/fifofs/fifo_vnops.c, 2 times
- sys/fs/fuse/fuse_device.c, line 308
- sys/kern/sys_pipe.c, 2 times
- sys/kern/tty.c, line 348
- sys/kern/tty_pts.c, 2 times
- sys/kern/uipc_mqueue.c, 9 times
- sys/net/bpf.c, line 997
- sys/net/if_tuntap.c, line 1724
- sys/ofed/drivers/infiniband/core/ib_ucm.c, line 407
- sys/ofed/drivers/infiniband/core/ib_ucma.c, line 403
- sys/ofed/drivers/infiniband/core/ib_user_mad.c, 2 times
- sys/ofed/drivers/infiniband/core/ib_uverbs_main.c, line 391
- sys/sys/fcntl.h, 3 times
- tests/sys/aio/aio_test.c, line 393
- tests/sys/fifo/fifo_io.c, 4 times
- tests/sys/fifo/fifo_kqueue.c, 13 times
- tests/sys/fifo/fifo_misc.c, 2 times
- tests/sys/fifo/fifo_open.c, 2 times
- tests/sys/file/fcntlflags_test.c, 3 times
- tests/sys/fs/fusefs/mockfs.cc, line 395
- tests/sys/kern/pipe/big_pipe_test.c, line 57
- tests/sys/kern/pipe/pipe_kqueue_test.c, 5 times
- tests/sys/kern/unix_passfd_test.c, line 423
- tests/sys/kern/unix_seqpacket_test.c, 3 times
- tests/sys/mqueue/mqtest5.c, line 72
- tests/sys/netinet/udp_dontroute.c, line 83
- tools/regression/capsicum/syscalls/cap_fcntls_limit.c, 14 times
- tools/regression/netinet/msocket/msocket.c, line 365
- tools/regression/netinet/tcpconnect/tcpconnect.c, line 140
- tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c, 2 times
- tools/regression/netinet/udpzerobyte/udpzerobyte.c, line 74
- tools/regression/poll/pipepoll.c, 4 times
- tools/regression/poll/pipeselect.c, 4 times
- tools/regression/poll/sockpoll.c, line 68
- tools/regression/sockets/accept_fd_leak/accept_fd_leak.c, 5 times
- tools/regression/sockets/accf_data_attach/accf_data_attach.c, line 216
- tools/regression/sockets/kqueue/kqueue.c, 8 times
- tools/regression/sockets/listenclose/listenclose.c, line 94
- tools/regression/sockets/unix_cmsg/uc_common.c, 2 times
- tools/regression/sockets/unix_gc/unix_gc.c, line 204
- tools/regression/sockets/zerosend/zerosend.c, 3 times
- tools/tools/netrate/tcpp/tcpp_client.c, line 103
- tools/tools/netrate/tcpp/tcpp_server.c, 2 times
- usr.bin/chat/chat.c, 4 times
- usr.bin/ktrace/ktrace.c, line 151
- usr.bin/lockf/lockf.c, 2 times
- usr.bin/morse/morse.c, 2 times
- usr.bin/resizewin/resizewin.c, line 84
- usr.bin/tip/tip/hunt.c, line 89
- usr.bin/tip/tip/tip.c, line 215
- usr.bin/wall/ttymsg.c, line 91
- usr.bin/whois/whois.c, line 464
- usr.sbin/apmd/apmd.c, line 683
- usr.sbin/bhyve/gdb.c, line 1855
- usr.sbin/bhyve/net_backends.c, line 500
- usr.sbin/bhyve/pci_virtio_console.c, line 323
- usr.sbin/bhyve/pci_virtio_rnd.c, line 159
- usr.sbin/bhyve/uart_emul.c, 3 times
- usr.sbin/bhyveload/bhyveload.c, line 674
- usr.sbin/bluetooth/bthidd/btuinput.c, line 326
- usr.sbin/bluetooth/bthidd/client.c, line 230
- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c, line 227
- usr.sbin/fdcontrol/fdcontrol.c, line 122
- usr.sbin/fdformat/fdformat.c, 2 times
- usr.sbin/inetd/builtins.c, line 622
- usr.sbin/lpr/lpd/lpd.c, line 285
- usr.sbin/lpr/lpd/printjob.c, line 207
- usr.sbin/moused/moused.c, line 872
- usr.sbin/nscd/nscd.c, line 201
- usr.sbin/nscd/nscdcli.c, line 203
- usr.sbin/pmcstat/pmcstat.c, 2 times
- usr.sbin/ppp/exec.c, line 275
- usr.sbin/ppp/main.c, line 101
- usr.sbin/ppp/physical.c, line 1022
- usr.sbin/ppp/prompt.c, 4 times
- usr.sbin/ppp/tty.c, 3 times
- usr.sbin/rpc.lockd/kern.c, line 134
- usr.sbin/rtadvd/control.c, 2 times
- usr.sbin/syslogd/syslogd.c, 3 times
- usr.sbin/watch/watch.c, line 219
- usr.sbin/ypserv/yp_dnslookup.c, line 142