Defined in 3 files as a prototype:
Defined in 1 files as a member:
Defined in 5 files as a macro:
Defined in 2 files as a function:
Referenced in 273 files:
- bin/cat/cat.c, line 143
- bin/sh/input.c, 3 times
- bin/sh/jobs.c, 2 times
- bin/sh/redir.c, 4 times
- bin/sh/show.c, 2 times
- cddl/compat/opensolaris/include/fcntl.h, line 33
- cddl/contrib/opensolaris/lib/libzpool/common/kernel.c, line 506
- cddl/usr.sbin/zfsd/zfsd.cc, 2 times
- contrib/amd/amd/info_exec.c, 2 times
- contrib/amd/amd/rpc_fwd.c, line 185
- contrib/apr/file_io/unix/filedup.c, 2 times
- contrib/apr/file_io/unix/flock.c, 2 times
- contrib/apr/file_io/unix/mktemp.c, 2 times
- contrib/apr/file_io/unix/open.c, 4 times
- contrib/apr/file_io/unix/pipe.c, 4 times
- contrib/apr/include/arch/unix/apr_arch_inherit.h, 4 times
- contrib/apr/locks/unix/proc_mutex.c, 3 times
- contrib/apr/network_io/unix/sockets.c, 4 times
- contrib/apr/network_io/unix/sockopt.c, 4 times
- contrib/apr/poll/unix/epoll.c, 4 times
- contrib/apr/poll/unix/kqueue.c, 4 times
- contrib/apr/poll/unix/pollset.c, 4 times
- contrib/apr/poll/unix/port.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/binutils/bfd/opncls.c, line 308
- contrib/blacklist/lib/bl.c, 3 times
- contrib/blacklist/port/popenve.c, 6 times
- contrib/bmake/job.c, 12 times
- contrib/bmake/main.c, 2 times
- contrib/bmake/meta.c, 4 times
- contrib/bsnmp/lib/snmpclient.c, 3 times
- contrib/capsicum-test/capability-fd.cc, 3 times
- contrib/capsicum-test/fcntl.cc, 33 times
- contrib/capsicum-test/linux.cc, 14 times
- contrib/compiler-rt/lib/profile/InstrProfilingUtil.c, 2 times
- contrib/dialog/ui_getc.c, line 334
- contrib/diff/src/system.h, line 106
- contrib/ee/new_curse.c, 3 times
- contrib/file/src/magic.c, 2 times
- contrib/file/src/seccomp.c, line 166
- contrib/gcc/gcov-io.c, line 93
- contrib/gcclibs/libiberty/pex-unix.c, line 518
- contrib/gdb/gdb/gdbserver/gdbreplay.c, line 153
- contrib/gdb/gdb/gdbserver/remote-utils.c, 3 times
- contrib/gdb/gdb/inflow.c, 10 times
- contrib/gdb/gdb/tui/tui-io.c, 2 times
- contrib/googletest/googletest/src/gtest-death-test.cc, 4 times
- contrib/hyperv/tools/hv_kvp_daemon.c, 2 times
- contrib/ipfilter/ipsend/lsock.c, line 210
- contrib/ipfilter/ipsend/sock.c, line 406
- contrib/ipfilter/l4check/l4check.c, 2 times
- contrib/jemalloc/src/pages.c, 6 times
- contrib/ldns/net.c, 4 times
- contrib/libarchive/libarchive/archive_read_disk_posix.c, line 2075
- contrib/libarchive/libarchive/archive_read_support_filter_program.c, 2 times
- contrib/libarchive/libarchive/archive_util.c, 2 times
- contrib/libarchive/libarchive/archive_write_add_filter_program.c, 4 times
- contrib/libarchive/libarchive/archive_write_disk_posix.c, line 3282
- contrib/libarchive/libarchive/filter_fork_posix.c, 2 times
- contrib/libevent/evutil.c, 7 times
- contrib/libpcap/pcap-linux.c, 4 times
- contrib/libpcap/pcap.c, 3 times
- contrib/llvm/tools/lldb/source/Host/common/File.cpp, line 194
- contrib/llvm/tools/lldb/source/Host/common/Socket.cpp, 2 times
- contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp, 2 times
- contrib/llvm/tools/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp, 3 times
- contrib/llvm/tools/lldb/source/Host/posix/LockFilePosix.cpp, line 31
- contrib/llvm/tools/lldb/source/Host/posix/PipePosix.cpp, 2 times
- contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp, 3 times
- contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, 2 times
- contrib/llvm/tools/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp, 2 times
- contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp, 2 times
- contrib/llvm/tools/lldb/tools/lldb-server/lldb-gdbserver.cpp, line 243
- contrib/netbsd-tests/kernel/t_lockf.c, line 102
- contrib/netbsd-tests/kernel/t_pty.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_closefrom.c, 6 times
- contrib/netbsd-tests/lib/libc/sys/t_mmap.c, line 130
- contrib/netbsd-tests/lib/libc/sys/t_pipe2.c, 12 times
- contrib/netbsd-tests/lib/libc/sys/t_socketpair.c, 8 times
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, 2 times
- contrib/netbsd-tests/lib/libcurses/director/director.c, line 265
- contrib/netbsd-tests/lib/librumphijack/h_client.c, line 130
- contrib/netbsd-tests/net/net/t_tcp.c, 5 times
- contrib/netcat/netcat.c, 4 times
- contrib/ngatm/sscop/common.c, 3 times
- contrib/ntp/lib/isc/unix/entropy.c, 2 times
- contrib/ntp/lib/isc/unix/socket.c, 5 times
- contrib/ntp/libntp/iosignal.c, 6 times
- contrib/ntp/libntp/machines.c, 2 times
- contrib/ntp/libntp/ntp_worker.c, line 114
- contrib/ntp/libntp/socket.c, 4 times
- contrib/ntp/libntp/work_thread.c, 2 times
- contrib/ntp/ntpd/ntp_io.c, line 3099
- contrib/ntp/ntpd/refclock_arc.c, line 663
- contrib/ntp/ntpd/refclock_datum.c, line 254
- contrib/ntp/ntpd/refclock_gpsdjson.c, line 1878
- contrib/ntp/ntpdate/ntpdate.c, 2 times
- contrib/ntp/sntp/libevent/evutil.c, 7 times
- contrib/nvi/common/exf.c, line 1516
- contrib/ofed/librdmacm/examples/common.h, line 60
- contrib/ofed/librdmacm/preload.c, 10 times
- contrib/ofed/librdmacm/rsocket.c, 7 times
- contrib/openbsm/bin/auditdistd/proto_common.c, line 56
- contrib/openbsm/bin/auditdistd/proto_tcp.c, 5 times
- contrib/openbsm/bin/auditdistd/proto_tls.c, 7 times
- contrib/openbsm/compat/pidfile.h, line 155
- contrib/opie/opieftpd.c, line 1667
- contrib/pf/ftp-proxy/ftp-proxy.c, 2 times
- contrib/pf/libevent/signal.c, 2 times
- contrib/sendmail/libmilter/listener.c, 5 times
- contrib/sendmail/libmilter/worker.c, 2 times
- contrib/sendmail/libsm/local.h, 4 times
- contrib/sendmail/libsm/mpeix.c, 2 times
- contrib/sendmail/libsm/stdio.c, line 439
- contrib/sendmail/libsmdb/smdb.c, 3 times
- contrib/sendmail/libsmutil/lockfile.c, line 59
- contrib/sendmail/src/conf.c, 15 times
- contrib/sendmail/src/daemon.c, 2 times
- contrib/sendmail/src/srvrsmtp.c, 5 times
- contrib/sendmail/src/util.c, line 1828
- contrib/sqlite3/sqlite3.c, line 32914
- contrib/subversion/subversion/libsvn_subr/io.c, line 2492
- contrib/tcsh/sh.sem.c, 4 times
- contrib/tcsh/tc.func.c, 2 times
- contrib/tcsh/tc.os.h, line 198
- contrib/tnftp/src/ftp.c, 3 times
- contrib/tnftp/src/util.c, 3 times
- contrib/unbound/compat/arc4random.c, 2 times
- contrib/unbound/compat/getentropy_linux.c, 2 times
- contrib/unbound/compat/getentropy_osx.c, 2 times
- contrib/unbound/compat/getentropy_solaris.c, 2 times
- contrib/unbound/util/net_help.c, 4 times
- contrib/wpa/src/common/wpa_ctrl.c, 2 times
- contrib/wpa/src/drivers/driver_nl80211_android.c, line 187
- contrib/wpa/src/utils/os_unix.c, line 488
- contrib/wpa/src/utils/wpa_debug.c, line 573
- 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, 4 times
- contrib/xz/src/common/tuklib_open_stdxxx.c, 2 times
- contrib/xz/src/lzmainfo/lzmainfo.c, line 24
- contrib/xz/src/xz/file_io.c, 9 times
- contrib/xz/src/xz/suffix.c, line 16
- contrib/xz/src/xzdec/xzdec.c, line 26
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, line 377
- crypto/heimdal/lib/ipc/server.c, 2 times
- crypto/heimdal/lib/krb5/fcache.c, 2 times
- crypto/heimdal/lib/roken/cloexec.c, 2 times
- crypto/heimdal/lib/roken/flock.c, 3 times
- crypto/openssh/authfd.c, line 108
- crypto/openssh/channels.c, 3 times
- crypto/openssh/misc.c, 5 times
- crypto/openssh/monitor.c, line 1731
- crypto/openssh/openbsd-compat/bsd-closefrom.c, line 65
- crypto/openssh/openbsd-compat/bsd-flock.c, line 70
- crypto/openssh/regress/netcat.c, 4 times
- crypto/openssh/serverloop.c, 2 times
- crypto/openssh/sshconnect.c, line 352
- crypto/openssh/sshconnect2.c, line 1814
- crypto/openssh/sshd.c, 3 times
- crypto/openssl/crypto/bio/b_sock.c, 2 times
- crypto/openssl/crypto/bio/bss_dgram.c, 6 times
- crypto/openssl/engines/e_afalg.c, line 179
- gnu/usr.bin/grep/grep.c, 2 times
- lib/libc/include/un-namespace.h, line 48
- lib/libc/sys/interposing_table.c, line 47
- lib/libc/tests/gen/popen_test.c, line 59
- lib/libc/tests/stdio/fopen_test.c, 2 times
- lib/libc/tests/stdio/mkostemp_test.c, 2 times
- lib/libcasper/libcasper/libcasper_impl.c, line 45
- lib/libcasper/services/cap_fileargs/cap_fileargs.c, line 123
- lib/libedit/read.c, 2 times
- lib/libedit/readline.c, 3 times
- lib/libfetch/common.c, line 225
- lib/libnv/common_impl.h, line 45
- lib/libnv/msgio.c, line 347
- lib/libnv/tests/cnv_tests.cc, line 40
- lib/libnv/tests/nv_array_tests.cc, line 45
- lib/libnv/tests/nvlist_get_test.c, line 49
- lib/libnv/tests/nvlist_send_recv_test.c, line 55
- lib/libpam/modules/pam_exec/pam_exec.c, 3 times
- lib/libtacplus/taclib.c, 2 times
- lib/libthr/thread/thr_syscalls.c, line 654
- lib/libusb/libusb10.c, 2 times
- lib/libutil/flopen.c, line 114
- libexec/atrun/atrun.c, 2 times
- libexec/ftpd/ftpd.c, 5 times
- libexec/rtld-elf/rtld.c, line 2441
- release/picobsd/tinyware/passwd/pw_util.c, line 130
- release/picobsd/tinyware/view/view.c, line 571
- sbin/devd/devd.cc, line 920
- sbin/hastd/proto_common.c, line 59
- sbin/hastd/proto_tcp.c, 5 times
- sbin/init/init.c, 2 times
- sbin/routed/main.c, 2 times
- sys/contrib/libnv/nvpair.c, 3 times
- sys/contrib/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c, 2 times
- sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c, 2 times
- sys/dev/sfxge/common/ef10_phy.c, 9 times
- sys/dev/sfxge/common/efx.h, line 591
- sys/dev/sfxge/common/efx_mac.c, 5 times
- sys/dev/sfxge/common/siena_mac.c, 5 times
- sys/dev/sfxge/common/siena_phy.c, 8 times
- sys/dev/sfxge/sfxge_port.c, 8 times
- tests/sys/audit/file-attribute-modify.c, 2 times
- tests/sys/cddl/zfs/bin/randfree_file.c, line 93
- tests/sys/fifo/fifo_io.c, 4 times
- tests/sys/file/dup_test.c, 17 times
- tests/sys/file/fcntlflags_test.c, 5 times
- tests/sys/file/flock_helper.c, 47 times
- tests/sys/kern/pipe/big_pipe_test.c, 2 times
- tests/sys/kern/unix_passfd_test.c, line 423
- tests/sys/kern/unix_seqpacket_test.c, 3 times
- tools/regression/capsicum/syscalls/cap_fcntls_limit.c, 96 times
- tools/regression/capsicum/syscalls/cap_ioctls_limit.c, 50 times
- tools/regression/netinet/msocket/msocket.c, line 365
- tools/regression/netinet/tcpconnect/tcpconnect.c, line 140
- tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c, 4 times
- tools/regression/netinet/udpzerobyte/udpzerobyte.c, line 74
- tools/regression/poll/sockpoll.c, 2 times
- tools/regression/security/cap_test/cap_test.c, line 51
- tools/regression/security/cap_test/cap_test_capabilities.c, 4 times
- tools/regression/security/cap_test/cap_test_fcntl.c, 3 times
- tools/regression/sockets/accept_fd_leak/accept_fd_leak.c, 6 times
- tools/regression/sockets/accf_data_attach/accf_data_attach.c, 2 times
- tools/regression/sockets/kqueue/kqueue.c, 8 times
- tools/regression/sockets/listenclose/listenclose.c, line 95
- tools/regression/sockets/unix_cmsg/uc_common.c, 4 times
- tools/regression/sockets/unix_gc/unix_gc.c, line 204
- tools/regression/sockets/zerosend/zerosend.c, line 147
- tools/tools/crypto/cryptocheck.c, line 346
- tools/tools/crypto/cryptokeytest.c, line 35
- tools/tools/crypto/cryptotest.c, 2 times
- tools/tools/netrate/tcpconnect/tcpconnect.c, line 86
- tools/tools/netrate/tcpp/tcpp_client.c, line 103
- tools/tools/netrate/tcpp/tcpp_server.c, 2 times
- usr.bin/at/at.c, 2 times
- usr.bin/chat/chat.c, 6 times
- usr.bin/mail/lex.c, 2 times
- usr.bin/mail/names.c, line 331
- usr.bin/mail/popen.c, 4 times
- usr.bin/morse/morse.c, 2 times
- usr.bin/tip/tip/tip.c, 2 times
- usr.bin/wall/ttymsg.c, line 148
- usr.bin/whois/whois.c, 2 times
- usr.bin/xinstall/xinstall.c, 2 times
- usr.sbin/apmd/apmd.c, 3 times
- usr.sbin/bhyve/gdb.c, 2 times
- usr.sbin/bhyve/pci_virtio_console.c, line 322
- usr.sbin/bhyve/uart_emul.c, 2 times
- usr.sbin/bluetooth/bthidd/client.c, 2 times
- usr.sbin/cron/lib/misc.c, line 419
- usr.sbin/dconschat/dconschat.c, 2 times
- usr.sbin/fdformat/fdformat.c, 2 times
- usr.sbin/inetd/inetd.c, line 797
- usr.sbin/lpr/lpd/lpd.c, line 293
- usr.sbin/lpr/lpd/printjob.c, line 223
- usr.sbin/nscd/nscd.c, line 201
- usr.sbin/nscd/nscdcli.c, line 203
- usr.sbin/pmcstat/pmcstat.c, 2 times
- usr.sbin/portsnap/phttpget/phttpget.c, 3 times
- usr.sbin/ppp/chap.c, line 317
- usr.sbin/ppp/chat.c, line 751
- usr.sbin/ppp/command.c, line 672
- usr.sbin/ppp/exec.c, 3 times
- usr.sbin/ppp/prompt.c, 8 times
- usr.sbin/ppp/tty.c, 6 times
- usr.sbin/rtadvd/control.c, 4 times
- usr.sbin/syslogd/syslogd.c, line 3306
- usr.sbin/ypserv/yp_dnslookup.c, line 142