Defined in 2 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 171 files:
- bin/pax/ar_io.c, 6 times
- bin/sh/eval.c, 4 times
- bin/sh/jobs.c, line 1030
- bin/sh/redir.c, 3 times
- cddl/contrib/opensolaris/cmd/dtrace/test/cmd/baddof/baddof.c, line 107
- cddl/contrib/opensolaris/cmd/zfs/zfs_main.c, line 4021
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, 2 times
- contrib/amd/amd/info_exec.c, 2 times
- contrib/amd/libamu/xutil.c, 3 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 1672
- 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/compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp, line 106
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc, line 392
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc, line 182
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc, 2 times
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc, 2 times
- contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc, 4 times
- 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 163
- contrib/flex/filter.c, 2 times
- contrib/gcclibs/libiberty/pex-djgpp.c, 6 times
- contrib/gcclibs/libiberty/pex-unix.c, 4 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/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/llvm/tools/lldb/source/Host/common/PseudoTerminal.cpp, 3 times
- contrib/llvm/tools/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, 2 times
- contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, line 1396
- contrib/mandoc/main.c, line 1265
- contrib/mandoc/mandocd.c, 6 times
- contrib/mandoc/mandocdb.c, line 391
- contrib/mandoc/tag.c, line 99
- contrib/mandoc/test-wchar.c, line 51
- contrib/ncurses/ncurses/base/lib_initscr.c, line 82
- 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 733
- 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 4406
- contrib/sendmail/src/util.c, 2 times
- contrib/sendmail/vacation/vacation.c, line 1026
- contrib/tcsh/sh.misc.c, line 579
- contrib/telnet/telnetd/telnetd.c, line 372
- 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 1119
- 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 78
- 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_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
- release/picobsd/tinyware/msh/sh3.c, 4 times
- release/picobsd/tinyware/msh/sh4.c, line 380
- release/picobsd/tinyware/oinit/oinit.c, 12 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
- 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 469
- usr.bin/diff/pr.c, 3 times
- usr.bin/diff3/diff3.c, line 229
- usr.bin/m4/gnum4.c, line 640
- usr.bin/mail/popen.c, 2 times
- usr.bin/nohup/nohup.c, 2 times
- usr.bin/rpcgen/rpc_main.c, line 329
- usr.bin/sdiff/sdiff.c, line 375
- usr.bin/tip/tip/cmds.c, 4 times
- usr.bin/xargs/xargs.c, line 591
- usr.sbin/autofs/common.c, line 1197
- 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