Defined in 1 files as a prototype:
Defined in 2 files as a member:
Defined in 5 files as a macro:
Defined in 1 files as a function:
Referenced in 176 files:
- bin/pax/ar_io.c, 6 times
- bin/sh/eval.c, 4 times
- bin/sh/jobs.c, line 1032
- bin/sh/redir.c, 3 times
- cddl/contrib/opensolaris/cmd/dtrace/test/cmd/baddof/baddof.c, line 107
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, 2 times
- contrib/apr/file_io/unix/filedup.c, line 42
- contrib/apr/threadproc/unix/proc.c, 3 times
- contrib/atf/atf-c/detail/process.c, 2 times
- contrib/atf/atf-c/detail/process_test.c, line 271
- contrib/atf/atf-c/utils.c, line 401
- contrib/binutils/binutils/resrc.c, 2 times
- contrib/blacklist/port/popenve.c, 3 times
- contrib/bmake/job.c, 3 times
- contrib/bmake/main.c, line 1769
- contrib/bmake/meta.c, 2 times
- contrib/capsicum-test/capability-fd.cc, line 236
- contrib/capsicum-test/capmode.cc, line 120
- contrib/capsicum-test/capsicum.h, line 133
- contrib/dialog/prgbox.c, 3 times
- contrib/dialog/util.c, 3 times
- contrib/diff/src/diff3.c, line 1174
- contrib/diff/src/sdiff.c, line 668
- contrib/diff/src/util.c, line 212
- contrib/file/src/compress.c, 2 times
- contrib/file/src/seccomp.c, line 170
- contrib/flex/src/filter.c, 2 times
- contrib/gdb/gdb/ser-pipe.c, 2 times
- contrib/gdb/gdb/win32-nat.c, 6 times
- contrib/googletest/googletest/src/gtest-port.cc, 2 times
- contrib/ipfilter/tools/ipfsyncd.c, 3 times
- contrib/kyua/utils/cmdline/parser_test.cpp, 4 times
- contrib/kyua/utils/cmdline/ui_test.cpp, 2 times
- contrib/kyua/utils/process/child_test.cpp, line 290
- contrib/kyua/utils/process/system.cpp, line 43
- contrib/kyua/utils/stacktrace.cpp, line 160
- contrib/libarchive/libarchive/filter_fork_posix.c, 2 times
- contrib/libarchive/libarchive/test/test_read_set_format.c, line 240
- contrib/libevent/test/regress.c, line 2923
- contrib/libpcap/rpcapd/rpcapd.c, 3 times
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilDarwin.cpp, line 164
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp, line 560
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp, line 35
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp, line 385
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp, line 184
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp, 4 times
- contrib/llvm-project/lldb/source/Host/common/PseudoTerminal.cpp, 3 times
- contrib/llvm-project/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, 2 times
- contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, line 1377
- contrib/mandoc/main.c, line 1267
- contrib/mandoc/mandocd.c, 6 times
- contrib/mandoc/mandocdb.c, line 391
- contrib/mandoc/tag.c, line 106
- contrib/mandoc/test-wchar.c, line 51
- contrib/ncurses/ncurses/base/lib_initscr.c, line 89
- contrib/netbsd-tests/fs/common/fstest_nfs.c, line 114
- contrib/netbsd-tests/kernel/kqueue/read/t_file2.c, line 71
- contrib/netbsd-tests/lib/libc/net/h_dns_server.c, 5 times
- contrib/netbsd-tests/lib/libc/sys/t_dup.c, 7 times
- contrib/netbsd-tests/lib/librumpclient/t_fd.c, 6 times
- contrib/netbsd-tests/rump/rumpkern/t_kern.c, 2 times
- contrib/ntp/ntpd/ntpd.c, 2 times
- contrib/ntp/parseutil/dcfd.c, 2 times
- contrib/ntp/sntp/libevent/test/regress.c, line 2788
- contrib/ntp/sntp/libopts/makeshell.c, 2 times
- contrib/ntp/sntp/libopts/pgusage.c, 2 times
- contrib/nvi/ex/ex_argv.c, line 737
- contrib/nvi/ex/ex_cscope.c, 3 times
- contrib/nvi/ex/ex_filter.c, 3 times
- contrib/nvi/ex/ex_script.c, 3 times
- contrib/ofed/librdmacm/preload.c, 2 times
- contrib/ofed/opensm/opensm/main.c, 3 times
- contrib/ofed/opensm/opensm/osm_log.c, 3 times
- contrib/openbsm/bin/auditdistd/proto_tls.c, 5 times
- contrib/opie/popen.c, 3 times
- contrib/sendmail/rmail/rmail.c, line 369
- contrib/sendmail/src/deliver.c, 3 times
- contrib/sendmail/src/main.c, 3 times
- contrib/sendmail/src/srvrsmtp.c, line 4550
- contrib/sendmail/src/util.c, 2 times
- contrib/sendmail/vacation/vacation.c, line 1026
- contrib/tcsh/sh.misc.c, line 589
- contrib/telnet/telnetd/telnetd.c, line 367
- contrib/unbound/daemon/unbound.c, 3 times
- contrib/wpa/src/utils/os_unix.c, 3 times
- crypto/heimdal/appl/ftp/ftpd/popen.c, 3 times
- crypto/heimdal/appl/rcp/rcp.c, 2 times
- crypto/heimdal/appl/rsh/rshd.c, 5 times
- crypto/heimdal/appl/telnet/telnetd/sys_term.c, 3 times
- crypto/heimdal/kadmin/kadm_conn.c, 2 times
- crypto/heimdal/lib/roken/daemon.c, 3 times
- crypto/heimdal/lib/roken/mini_inetd.c, 2 times
- crypto/heimdal/lib/roken/rkpty.c, 3 times
- crypto/heimdal/lib/roken/simple_exec.c, 3 times
- crypto/heimdal/lib/roken/socket_wrapper.c, line 151
- crypto/heimdal/lib/roken/socket_wrapper.h, 2 times
- crypto/openssh/auth.c, 3 times
- crypto/openssh/misc.c, line 1123
- crypto/openssh/monitor.c, line 1531
- crypto/openssh/mux.c, 2 times
- crypto/openssh/openbsd-compat/daemon.c, 3 times
- crypto/openssh/readconf.c, 2 times
- crypto/openssh/readpass.c, line 76
- crypto/openssh/scp.c, 4 times
- crypto/openssh/session.c, 9 times
- crypto/openssh/sftp.c, 2 times
- crypto/openssh/ssh-agent.c, 3 times
- crypto/openssh/ssh-pkcs11-client.c, 2 times
- crypto/openssh/ssh.c, 4 times
- crypto/openssh/sshconnect.c, 4 times
- crypto/openssh/sshconnect2.c, 2 times
- crypto/openssh/sshd.c, 9 times
- lib/libc/db/btree/bt_delete.c, 3 times
- lib/libc/gen/posix_spawn.c, line 79
- lib/libc/include/un-namespace.h, line 46
- lib/libc/tests/gen/fmtmsg_test.c, line 178
- lib/libc/tests/stdio/gets_s_test.c, line 73
- lib/libcasper/libcasper/service.c, 3 times
- lib/libcasper/services/cap_net/cap_net.c, line 168
- lib/libcasper/services/cap_syslog/cap_syslog.c, 3 times
- lib/libpam/modules/pam_exec/pam_exec.c, 3 times
- lib/libpam/modules/pam_ssh/pam_ssh.c, 2 times
- lib/libulog/ulog_login_pseudo.c, line 64
- lib/libutil/login_tty.c, 3 times
- libexec/fingerd/fingerd.c, 2 times
- libexec/ftpd/ftpd.c, 2 times
- libexec/ftpd/popen.c, 3 times
- libexec/pppoed/pppoed.c, 2 times
- libexec/tftpd/tests/functional.c, 3 times
- sbin/dhclient/dhclient.c, 3 times
- sbin/hastd/hooks.c, 3 times
- sbin/init/init.c, 4 times
- sbin/ipfw/main.c, 2 times
- sbin/mdmfs/mdmfs.c, 4 times
- sbin/routed/trace.c, 5 times
- sbin/swapon/swapon.c, 4 times
- sys/contrib/openzfs/cmd/zed/zed.c, 3 times
- sys/contrib/openzfs/cmd/zed/zed_exec.c, 4 times
- sys/contrib/openzfs/cmd/zfs/zfs_main.c, line 4570
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, 3 times
- sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/xattrtest.c, 2 times
- tests/sys/file/closefrom_test.c, line 253
- tests/sys/file/dup_test.c, 3 times
- tests/sys/kern/kern_descrip_test.c, 2 times
- tools/regression/security/open_to_operation/open_to_operation.c, line 244
- tools/tools/indent_wrapper/indent_wrapper.c, 2 times
- usr.bin/calendar/io.c, line 671
- usr.bin/diff/pr.c, 3 times
- usr.bin/diff3/diff3.c, line 230
- usr.bin/m4/gnum4.c, line 659
- usr.bin/mail/popen.c, 2 times
- usr.bin/nohup/nohup.c, 2 times
- usr.bin/rpcgen/rpc_main.c, line 312
- usr.bin/sdiff/sdiff.c, line 375
- usr.bin/tip/tip/cmds.c, 4 times
- usr.bin/xargs/xargs.c, line 608
- usr.sbin/autofs/common.c, line 1196
- usr.sbin/autofs/popen.c, 2 times
- usr.sbin/bluetooth/btpand/btpand.c, 3 times
- usr.sbin/cron/cron/do_command.c, 3 times
- usr.sbin/cron/cron/popen.c, 3 times
- usr.sbin/daemon/daemon.c, 2 times
- usr.sbin/inetd/inetd.c, 3 times
- usr.sbin/jail/command.c, 2 times
- usr.sbin/lpr/lpd/lpd.c, line 411
- usr.sbin/lpr/lpd/printjob.c, 12 times
- usr.sbin/nghook/main.c, 2 times
- usr.sbin/ppp/chap.c, 2 times
- usr.sbin/ppp/chat.c, 3 times
- usr.sbin/ppp/command.c, 3 times
- usr.sbin/ppp/exec.c, 3 times
- usr.sbin/rpc.ypxfrd/ypxfrd_main.c, 2 times
- usr.sbin/rtsold/cap_script.c, line 74
- usr.sbin/syslogd/syslogd.c, 6 times