Defined in 2 files as a prototype:
Defined in 2 files as a member:
Defined in 9 files as a macro:
Defined in 4 files as a function:
Referenced in 220 files:
- bin/csh/misc.c, 2 times
- bin/ksh/io.c, line 236
- bin/pax/ar_io.c, 6 times
- bin/sh/redir.c, 2 times
- crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c, 2 times
- crypto/external/bsd/heimdal/dist/kdc/connect.c, line 994
- crypto/external/bsd/heimdal/dist/lib/roken/daemon.c, 3 times
- crypto/external/bsd/heimdal/dist/lib/roken/detach.c, 5 times
- crypto/external/bsd/heimdal/dist/lib/roken/mini_inetd.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c, 3 times
- crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c, 3 times
- crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.c, line 153
- crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.h, 2 times
- crypto/external/bsd/openssh/dist/auth.c, 3 times
- crypto/external/bsd/openssh/dist/misc.c, line 1189
- crypto/external/bsd/openssh/dist/monitor.c, line 1520
- crypto/external/bsd/openssh/dist/mux.c, 2 times
- crypto/external/bsd/openssh/dist/readconf.c, 2 times
- crypto/external/bsd/openssh/dist/readpass.c, line 76
- crypto/external/bsd/openssh/dist/scp.c, 4 times
- crypto/external/bsd/openssh/dist/session.c, 9 times
- crypto/external/bsd/openssh/dist/sftp.c, 2 times
- crypto/external/bsd/openssh/dist/ssh-agent.c, 4 times
- crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c, 2 times
- crypto/external/bsd/openssh/dist/ssh.c, 4 times
- crypto/external/bsd/openssh/dist/sshconnect.c, 5 times
- crypto/external/bsd/openssh/dist/sshconnect2.c, 2 times
- crypto/external/bsd/openssh/dist/sshd.c, 9 times
- crypto/external/cpl/tpm-tools/dist/src/tpm_mgmt/tpm_version.c, 2 times
- distrib/utils/ssh/ssh.c, line 574
- external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c, 3 times
- external/bsd/am-utils/dist/amd/info_exec.c, 2 times
- external/bsd/am-utils/dist/libamu/xutil.c, 3 times
- external/bsd/atf/dist/atf-c/detail/process.c, 2 times
- external/bsd/atf/dist/atf-c/detail/process_test.c, line 272
- external/bsd/atf/dist/atf-c/utils.c, line 368
- external/bsd/atf/dist/tools/io.cpp, line 128
- external/bsd/atf/dist/tools/io_test.cpp, 2 times
- external/bsd/atf/dist/tools/process.cpp, line 91
- external/bsd/blacklist/port/popenve.c, 3 times
- external/bsd/cron/dist/do_command.c, 3 times
- external/bsd/cron/dist/misc.c, line 322
- external/bsd/cron/dist/popen.c, 3 times
- external/bsd/dhcpcd/dist/src/dhcpcd.c, 3 times
- external/bsd/file/dist/src/compress.c, 2 times
- external/bsd/file/dist/src/seccomp.c, line 169
- external/bsd/flex/dist/src/filter.c, 2 times
- external/bsd/ipf/dist/tools/ipfsyncd.c, 3 times
- external/bsd/kyua-cli/dist/utils/cmdline/parser_test.cpp, 4 times
- external/bsd/kyua-cli/dist/utils/cmdline/ui_test.cpp, 2 times
- external/bsd/kyua-cli/dist/utils/process/child_test.cpp, line 270
- external/bsd/kyua-cli/dist/utils/process/system.cpp, line 42
- external/bsd/kyua-testers/dist/atf_main.c, 2 times
- external/bsd/kyua-testers/dist/stacktrace.c, 2 times
- external/bsd/libarchive/dist/libarchive/filter_fork_posix.c, 2 times
- external/bsd/libarchive/dist/libarchive/test/test_read_set_format.c, line 240
- external/bsd/libbind/dist/bsd/daemon.c, 3 times
- external/bsd/libbind/dist/tests/dig8.c, 3 times
- external/bsd/libevent/dist/test/regress.c, line 2926
- external/bsd/libpcap/dist/rpcapd/rpcapd.c, 2 times
- external/bsd/llvm/dist/llvm/utils/unittest/googletest/src/gtest-port.cc, 2 times
- external/bsd/mdocml/dist/main.c, line 1234
- external/bsd/mdocml/dist/mandocd.c, 6 times
- external/bsd/mdocml/dist/mandocdb.c, line 392
- external/bsd/mdocml/dist/tag.c, line 103
- external/bsd/mdocml/dist/test-wchar.c, line 51
- external/bsd/nsd/dist/nsd.c, 3 times
- external/bsd/ntp/dist/ntpd/ntpd.c, 2 times
- external/bsd/ntp/dist/parseutil/dcfd.c, 2 times
- external/bsd/ntp/dist/sntp/libevent/test/regress.c, line 2790
- external/bsd/ntp/dist/sntp/libopts/makeshell.c, 2 times
- external/bsd/ntp/dist/sntp/libopts/pgusage.c, 2 times
- external/bsd/nvi/dist/common/recover.c, line 917
- external/bsd/nvi/dist/ex/ex_argv.c, line 624
- external/bsd/nvi/dist/ex/ex_cscope.c, 3 times
- external/bsd/nvi/dist/ex/ex_filter.c, 3 times
- external/bsd/nvi/dist/ex/ex_script.c, 3 times
- external/bsd/nvi/dist/ip/ip_funcs.c, 3 times
- external/bsd/openldap/dist/libraries/liblutil/detach.c, 3 times
- external/bsd/openldap/dist/servers/slapd/back-shell/fork.c, 2 times
- external/bsd/pkg_install/dist/lib/gpgsig.c, 2 times
- external/bsd/ppp/dist/pppd/main.c, 6 times
- external/bsd/ppp/dist/pppd/tty.c, 3 times
- external/bsd/tmux/dist/cmd-pipe-pane.c, 5 times
- external/bsd/tmux/dist/job.c, 3 times
- external/bsd/unbound/dist/daemon/unbound.c, 3 times
- external/bsd/wpa/dist/src/utils/os_unix.c, 3 times
- external/cddl/osnet/dist/cmd/zfs/zfs_main.c, line 3974
- external/cddl/osnet/dist/lib/libdtrace/common/dt_cc.c, 2 times
- external/gpl2/diffutils/dist/src/diff3.c, line 1178
- external/gpl2/diffutils/dist/src/sdiff.c, line 666
- external/gpl2/diffutils/dist/src/util.c, line 215
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/execute.c, 9 times
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/pipe.c, 13 times
- external/gpl2/gmake/dist/job.c, 6 times
- external/gpl2/gmake/dist/remote-cstms.c, line 247
- external/gpl2/groff/dist/src/preproc/html/pre-html.cpp, 5 times
- external/gpl2/groff/dist/src/roff/groff/pipeline.c, 10 times
- external/gpl2/lvm2/dist/daemons/clvmd/clvmd.c, 3 times
- external/gpl2/lvm2/dist/test/harness.c, 2 times
- external/gpl2/rcs/dist/src/rcsfnms.c, line 956
- external/gpl2/rcs/dist/src/rcsutil.c, 3 times
- external/gpl2/texinfo/dist/info/man.c, 3 times
- external/gpl2/xcvs/dist/diff/util.c, line 233
- external/gpl2/xcvs/dist/src/run.c, 7 times
- external/gpl2/xcvs/dist/src/server.c, 3 times
- external/gpl3/binutils/dist/binutils/resrc.c, 2 times
- external/gpl3/binutils/dist/libiberty/pex-djgpp.c, 6 times
- external/gpl3/binutils/dist/libiberty/pex-unix.c, 7 times
- external/gpl3/gcc/dist/fixincludes/fixincl.c, 2 times
- external/gpl3/gcc/dist/fixincludes/procopen.c, 2 times
- external/gpl3/gcc/dist/libcc1/libcc1.cc, 2 times
- external/gpl3/gcc/dist/libcc1/libcp1.cc, 2 times
- external/gpl3/gcc/dist/libiberty/pex-djgpp.c, 6 times
- external/gpl3/gcc/dist/libiberty/pex-unix.c, 7 times
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc, line 339
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mac.cc, line 156
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc, line 133
- external/gpl3/gcc/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gdb/dist/gdb/gdbserver/linux-low.c, line 984
- external/gpl3/gdb/dist/gdb/gnulib/import/cloexec.c, line 65
- external/gpl3/gdb/dist/gdb/gnulib/import/dup2.c, 4 times
- external/gpl3/gdb/dist/gdb/gnulib/import/fchdir.c, line 192
- external/gpl3/gdb/dist/gdb/gnulib/import/fcntl.c, 2 times
- external/gpl3/gdb/dist/gdb/gnulib/import/unistd.in.h, 8 times
- external/gpl3/gdb/dist/gdb/ser-pipe.c, 3 times
- external/gpl3/gdb/dist/gdb/windows-nat.c, 6 times
- external/gpl3/gdb/dist/libiberty/pex-djgpp.c, 6 times
- external/gpl3/gdb/dist/libiberty/pex-unix.c, 7 times
- external/gpl3/gdb/dist/readline/examples/rlfe/rlfe.c, 3 times
- external/gpl3/gdb/dist/sim/bfin/interp.c, line 312
- external/gpl3/gdb/dist/sim/m32r/traps-linux.c, line 475
- external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c, 2 times
- external/gpl3/gdb/dist/sim/ppc/emul_unix.c, line 556
- external/ibm-public/postfix/dist/src/util/dup2_pass_on_exec.c, line 48
- external/ibm-public/postfix/dist/src/util/sys_compat.c, line 246
- external/ibm-public/postfix/dist/src/util/sys_defs.h, line 1327
- external/lgpl3/mpc/dist/tests/tio_str.c, 2 times
- external/mpl/bind/dist/bin/named/unix/os.c, 3 times
- games/cribbage/instr.c, line 84
- games/fish/fish.c, line 467
- games/wump/wump.c, line 775
- lib/libc/db/btree/bt_delete.c, 3 times
- lib/libc/gen/daemon.c, 3 times
- lib/libc/gen/popen.c, 3 times
- lib/libc/gen/wordexp.c, 2 times
- lib/libc/net/rcmd.c, 4 times
- lib/libc/stdio/freopen.c, line 150
- lib/libpam/modules/pam_ssh/pam_ssh.c, 2 times
- lib/libpuffs/puffs.c, 3 times
- lib/librumpclient/rumpclient.c, 3 times
- lib/librumpuser/rumpuser_daemonize.c, 3 times
- lib/libutil/login_tty.c, 3 times
- libexec/fingerd/fingerd.c, line 203
- libexec/ftpd/ftpd.c, 3 times
- libexec/ftpd/popen.c, 3 times
- libexec/httpd/cgi-bozo.c, 2 times
- libexec/httpd/daemon-bozo.c, 2 times
- libexec/makewhatis/makewhatis.c, 3 times
- libexec/rexecd/rexecd.c, 3 times
- libexec/rshd/rshd.c, 4 times
- libexec/telnetd/telnetd.c, line 400
- sbin/init/init.c, line 1707
- sbin/mount/mount.c, line 491
- sbin/routed/trace.c, 5 times
- sys/arch/atari/stand/tostools/libtos/eprintf.c, line 48
- sys/compat/netbsd32/netbsd32_execve.c, 2 times
- sys/external/bsd/compiler_rt/dist/lib/fuzzer/FuzzerIOPosix.cpp, line 106
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux.cc, line 392
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_mac.cc, line 182
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_netbsd.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/tsan_interceptors.cc, 4 times
- sys/rump/librump/rumpkern/rump_syscalls.c, line 1273
- sys/sys/spawn.h, line 66
- tests/fs/common/fstest_nfs.c, line 114
- tests/kernel/kqueue/read/t_file2.c, line 71
- tests/lib/libc/misc/t_ubsan.c, line 86
- tests/lib/libc/sys/t_dup.c, 7 times
- tests/lib/librumpclient/t_fd.c, 6 times
- tests/modules/t_kcov.c, 2 times
- tests/rump/rumpkern/t_kern.c, 2 times
- usr.bin/calendar/calendar.c, 3 times
- usr.bin/m4/gnum4.c, line 673
- usr.bin/mail/complete.c, line 1198
- usr.bin/mail/lex.c, 2 times
- usr.bin/mail/mime_attach.c, 2 times
- usr.bin/mail/popen.c, 2 times
- usr.bin/make/job.c, 3 times
- usr.bin/make/main.c, line 1640
- usr.bin/make/meta.c, 2 times
- usr.bin/mkdep/mkdep.c, line 139
- usr.bin/nohup/nohup.c, 2 times
- usr.bin/patch/inp.c, line 232
- usr.bin/pmap/main.c, line 376
- usr.bin/progress/progress.c, 4 times
- usr.bin/rpcgen/rpc_main.c, line 386
- usr.bin/sdiff/sdiff.c, line 298
- usr.bin/tip/cmds.c, 4 times
- usr.bin/vacation/vacation.c, line 611
- usr.bin/write/write.c, line 231
- usr.bin/xargs/xargs.c, line 561
- usr.bin/xlint/xlint/xlint.c, line 759
- usr.sbin/autofs/common.c, line 1182
- usr.sbin/autofs/popen.c, 2 times
- usr.sbin/btpand/btpand.c, 3 times
- usr.sbin/faithd/faithd.c, 3 times
- usr.sbin/inetd/inetd.c, 3 times
- usr.sbin/lpr/lpd/lpd.c, line 344
- usr.sbin/lpr/lpd/printjob.c, 10 times
- usr.sbin/lpr/lpd/recvjob.c, line 98
- usr.sbin/nfsd/nfsd.c, 5 times
- usr.sbin/puffs/mount_psshfs/psshfs.c, 3 times
- usr.sbin/rpc.pcnfsd/pcnfsd_misc.c, 2 times
- usr.sbin/sliplogin/sliplogin.c, 3 times
- usr.sbin/sup/source/run.c, 6 times
- usr.sbin/sup/source/supfilesrv.c, 3 times
- usr.sbin/sysinst/run.c, line 440
- usr.sbin/syslogd/syslogd.c, 3 times