Defined in 6 files as a prototype:
Defined in 2 files as a macro:
Defined in 1 files as a function:
Referenced in 281 files:
- bin/dd/misc.c, line 156
- bin/mv/mv.c, 2 times
- bin/sh/error.c, line 124
- bin/sh/jobs.c, line 1026
- bin/sh/redir.c, line 298
- bin/sh/trap.c, line 552
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.vfork.c, line 61
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 1949
- contrib/amd/amd/amd.c, line 157
- contrib/amd/hlfsd/hlfsd.c, 2 times
- contrib/apr/threadproc/unix/proc.c, 5 times
- contrib/binutils/bfd/bfd.c, 2 times
- contrib/blacklist/port/popenve.c, line 214
- contrib/bmake/compat.c, 2 times
- contrib/bmake/job.c, 9 times
- contrib/bmake/main.c, line 1678
- contrib/bmake/meta.c, line 1625
- contrib/byacc/main.c, line 147
- contrib/compiler-rt/lib/lsan/lsan_interceptors.cc, 3 times
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc, line 198
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc, 2 times
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_rtems.cc, line 42
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc, line 2774
- contrib/dialog/prgbox.c, line 75
- contrib/dialog/ui_getc.c, 2 times
- contrib/dialog/util.c, line 1798
- contrib/diff/lib/c-stack.c, line 129
- contrib/diff/src/diff3.c, line 1182
- contrib/diff/src/sdiff.c, 2 times
- contrib/diff/src/util.c, line 218
- contrib/gcclibs/libiberty/pex-unix.c, line 351
- contrib/gcclibs/libssp/ssp.c, line 153
- contrib/gdb/gdb/cli/cli-cmds.c, line 535
- contrib/gdb/gdb/fork-child.c, 2 times
- contrib/gdb/gdb/inflow.c, line 549
- contrib/gdb/gdb/procfs.c, 4 times
- contrib/gdb/gdb/ser-pipe.c, line 102
- contrib/googletest/googlemock/src/gmock-spec-builders.cc, line 639
- contrib/googletest/googletest/src/gtest-death-test.cc, 3 times
- contrib/googletest/googletest/test/googletest-death-test-test.cc, 33 times
- contrib/libarchive/libarchive/filter_fork_posix.c, 3 times
- contrib/libpcap/pcap-dos.c, line 631
- contrib/llvm/tools/lld/Common/ErrorHandler.cpp, line 61
- contrib/llvm/tools/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, line 56
- contrib/llvm/tools/lldb/tools/driver/Driver.cpp, line 792
- contrib/mandoc/tag.c, line 276
- contrib/ncurses/ncurses/tty/lib_tstp.c, line 280
- contrib/netbsd-tests/dev/sysmon/t_swwdog.c, 2 times
- contrib/netbsd-tests/kernel/arch/amd64/t_ptrace_wait.c, 16 times
- contrib/netbsd-tests/kernel/arch/i386/t_ptrace_wait.c, line 85
- contrib/netbsd-tests/kernel/kqueue/read/t_file.c, line 77
- contrib/netbsd-tests/kernel/kqueue/read/t_ttypty.c, line 78
- contrib/netbsd-tests/kernel/kqueue/t_proc1.c, line 110
- contrib/netbsd-tests/kernel/kqueue/t_proc2.c, 2 times
- contrib/netbsd-tests/kernel/kqueue/t_proc3.c, line 72
- contrib/netbsd-tests/kernel/kqueue/t_sig.c, line 85
- contrib/netbsd-tests/kernel/kqueue/write/t_fifo.c, line 75
- contrib/netbsd-tests/kernel/kqueue/write/t_ttypty.c, line 75
- contrib/netbsd-tests/kernel/t_lockf.c, line 156
- contrib/netbsd-tests/kernel/t_ptrace.c, line 177
- contrib/netbsd-tests/kernel/t_ptrace_wait.c, 98 times
- contrib/netbsd-tests/lib/libc/gen/t_alarm.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_assert.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_closefrom.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_getgrent.c, 4 times
- contrib/netbsd-tests/lib/libc/gen/t_nice.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_pause.c, line 91
- contrib/netbsd-tests/lib/libc/net/h_dns_server.c, 3 times
- contrib/netbsd-tests/lib/libc/stdlib/t_exit.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_chroot.c, 17 times
- contrib/netbsd-tests/lib/libc/sys/t_dup.c, 6 times
- contrib/netbsd-tests/lib/libc/sys/t_getgroups.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_getlogin.c, 16 times
- contrib/netbsd-tests/lib/libc/sys/t_getpid.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_getsid.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_issetugid.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_kill.c, 13 times
- contrib/netbsd-tests/lib/libc/sys/t_minherit.c, line 118
- contrib/netbsd-tests/lib/libc/sys/t_mkdir.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mlock.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_mmap.c, line 159
- contrib/netbsd-tests/lib/libc/sys/t_mprotect.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_msgctl.c, 9 times
- contrib/netbsd-tests/lib/libc/sys/t_msgget.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_msgrcv.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_msgsnd.c, 7 times
- contrib/netbsd-tests/lib/libc/sys/t_nanosleep.c, 7 times
- contrib/netbsd-tests/lib/libc/sys/t_poll.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_revoke.c, 5 times
- contrib/netbsd-tests/lib/libc/sys/t_select.c, line 130
- contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c, 20 times
- contrib/netbsd-tests/lib/libc/sys/t_setuid.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_umask.c, 2 times
- contrib/netbsd-tests/lib/libc/termios/t_tcsetpgrp.c, 2 times
- contrib/netbsd-tests/lib/libpthread/t_fork.c, 2 times
- contrib/netbsd-tests/lib/librt/t_sem.c, line 155
- contrib/netbsd-tests/libexec/ld.elf_so/h_locking.c, 11 times
- contrib/netbsd-tests/net/icmp/t_ping.c, 2 times
- contrib/ntp/ntpd/ntp_config.c, line 389
- contrib/ntp/sntp/libopts/find.c, 7 times
- contrib/ntp/sntp/libopts/makeshell.c, line 894
- contrib/ntp/sntp/libopts/pgusage.c, line 152
- contrib/nvi/ex/ex_argv.c, line 747
- contrib/nvi/ex/ex_cscope.c, 2 times
- contrib/nvi/ex/ex_filter.c, 3 times
- contrib/nvi/ex/ex_script.c, line 175
- contrib/nvi/ex/ex_shell.c, line 132
- contrib/ofed/opensm/opensm/osm_node_info_rcv.c, 9 times
- contrib/ofed/opensm/opensm/osm_perfmgr.c, 5 times
- contrib/ofed/opensm/opensm/osm_state_mgr.c, 2 times
- contrib/ofed/opensm/opensm/osm_ucast_dnup.c, 2 times
- contrib/ofed/opensm/opensm/osm_ucast_updn.c, 6 times
- contrib/openmp/runtime/src/kmp_affinity.cpp, 19 times
- contrib/openmp/runtime/src/kmp_runtime.cpp, line 442
- contrib/openpam/bin/su/su.c, 4 times
- contrib/opie/popen.c, line 164
- contrib/pf/authpf/authpf.c, line 811
- contrib/pf/pflogd/privsep.c, 4 times
- contrib/sendmail/libsm/mpeix.c, 2 times
- contrib/sendmail/src/deliver.c, 5 times
- contrib/sendmail/src/main.c, 2 times
- contrib/sendmail/src/util.c, 4 times
- contrib/tcp_wrappers/shell_cmd.c, line 94
- contrib/tcpdump/tcpdump.c, line 2339
- contrib/tcsh/sh.c, line 2456
- contrib/tcsh/sh.sem.c, line 775
- contrib/tcsh/tc.alloc.c, line 73
- contrib/tcsh/tc.func.c, 3 times
- contrib/telnet/telnet/commands.c, line 1379
- contrib/telnet/telnetd/sys_term.c, line 1257
- contrib/telnet/telnetd/telnetd.c, line 388
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, line 1880
- crypto/heimdal/appl/ftp/ftpd/popen.c, line 188
- crypto/heimdal/appl/rcp/util.c, line 130
- crypto/heimdal/appl/telnet/telnet/commands.c, line 1304
- crypto/heimdal/appl/telnet/telnetd/telnetd.c, line 436
- crypto/heimdal/lib/asn1/check-common.c, line 192
- crypto/heimdal/lib/krb5/expand_path.c, 8 times
- crypto/heimdal/lib/roken/daemon.c, line 61
- crypto/heimdal/lib/roken/test-mem.c, line 82
- crypto/openssh/auth-pam.c, 2 times
- crypto/openssh/auth.c, 7 times
- crypto/openssh/cleanup.c, line 31
- crypto/openssh/clientloop.c, line 2344
- crypto/openssh/log.c, line 182
- crypto/openssh/openbsd-compat/daemon.c, line 62
- crypto/openssh/readconf.c, line 530
- crypto/openssh/sandbox-seccomp-filter.c, line 302
- crypto/openssh/scp.c, 2 times
- crypto/openssh/sftp-server.c, line 1482
- crypto/openssh/sftp.c, 4 times
- crypto/openssh/ssh-agent.c, 3 times
- crypto/openssh/ssh-pkcs11-client.c, 2 times
- crypto/openssh/ssh-pkcs11-helper.c, line 287
- crypto/openssh/sshconnect.c, line 1535
- crypto/openssh/sshd.c, line 2431
- crypto/openssl/apps/ocsp.c, 2 times
- crypto/openssl/crypto/cryptlib.c, line 429
- gnu/usr.bin/gdb/gdbserver/fbsd-low.c, 2 times
- lib/csu/tests/cxx_constructors.cc, line 60
- lib/csu/tests/fini_test.c, 2 times
- lib/libc/gen/daemon.c, line 71
- lib/libc/gen/popen.c, line 163
- lib/libc/gen/posix_spawn.c, 3 times
- lib/libc/gen/wordexp.c, 3 times
- lib/libc/net/rcmdsh.c, 5 times
- lib/libc/secure/stack_protector.c, line 111
- lib/libc/stdlib/_Exit.c, line 21
- lib/libc/stdlib/exit.c, line 77
- lib/libc/stdlib/system.c, line 90
- lib/libc/tests/gen/fmtmsg_test.c, 3 times
- lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c, line 64
- lib/libc/tests/sys/sendfile_test.c, 4 times
- lib/libcasper/libcasper/libcasper_service.c, 7 times
- lib/libcasper/libcasper/service.c, 3 times
- lib/libcasper/libcasper/zygote.c, 3 times
- lib/libedit/TEST/tc1.c, line 281
- lib/libedit/TEST/wtc1.c, line 257
- lib/libnv/tests/nvlist_send_recv_test.c, line 355
- lib/libpam/modules/pam_exec/pam_exec.c, line 315
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 309
- lib/libproc/proc_create.c, 2 times
- lib/libutil/pw_util.c, 2 times
- lib/libutil/tests/flopen_test.c, 2 times
- lib/libutil/tests/pidfile_test.c, 7 times
- lib/msun/tests/fenv_test.c, 2 times
- libexec/comsat/comsat.c, 2 times
- libexec/fingerd/fingerd.c, line 219
- libexec/ftpd/ftpd.c, line 2791
- libexec/ftpd/popen.c, 2 times
- libexec/pppoed/pppoed.c, 13 times
- libexec/rtld-elf/rtld.c, 3 times
- libexec/rtld-elf/xmalloc.c, 2 times
- libexec/talkd/table.c, line 170
- libexec/talkd/talkd.c, 3 times
- release/picobsd/tinyware/oinit/oinit.c, 5 times
- release/picobsd/tinyware/passwd/pw_util.c, line 217
- sbin/devd/devd.cc, line 266
- sbin/fsck/fsck.c, 2 times
- sbin/init/init.c, 15 times
- sbin/mdmfs/mdmfs.c, 2 times
- sbin/ping/ping.c, line 997
- sbin/ping6/ping6.c, line 2225
- sbin/swapon/swapon.c, line 713
- sys/teken/demo/teken_demo.c, line 308
- tests/freebsd_test_suite/macros.h, 2 times
- tests/sys/aio/local.h, 2 times
- tests/sys/audit/process-control.c, 6 times
- tests/sys/capsicum/ioctls_test.c, line 60
- tests/sys/kern/kern_descrip_test.c, line 104
- tests/sys/kern/pdeathsig.c, 7 times
- tests/sys/kern/pipe/pipe_fstat_bug_test.c, 4 times
- tests/sys/kern/pipe/pipe_reverse_test.c, line 113
- tests/sys/kern/pipe/pipe_wraparound_test.c, line 109
- tests/sys/kern/ptrace_test.c, 24 times
- tests/sys/kern/reaper.c, 44 times
- tests/sys/kern/waitpid_nohang.c, line 46
- tests/sys/mqueue/mqtest2.c, line 23
- tests/sys/mqueue/mqtest3.c, line 24
- tests/sys/mqueue/mqtest4.c, line 25
- tests/sys/mqueue/mqtest5.c, line 25
- tests/sys/posixshm/posixshm_test.c, 4 times
- tests/sys/vm/mlock_test.c, 5 times
- tools/regression/sockets/accept_fd_leak/accept_fd_leak.c, line 173
- tools/regression/sockets/accf_data_attach/accf_data_attach.c, line 77
- tools/regression/sockets/pr_atomic/pr_atomic.c, line 87
- tools/regression/sockets/sendfile/sendfile.c, 2 times
- tools/regression/sockets/unix_cmsg/uc_common.c, line 543
- tools/test/pthread_vfork/pthread_vfork_test.c, line 53
- tools/test/ptrace/scescx.c, line 368
- tools/tools/syscall_timing/syscall_timing.c, 4 times
- usr.bin/apply/apply.c, line 237
- usr.bin/at/at.c, line 136
- usr.bin/calendar/io.c, 4 times
- usr.bin/cmp/regular.c, line 182
- usr.bin/csplit/csplit.c, line 230
- usr.bin/diff/pr.c, line 76
- usr.bin/find/function.c, 2 times
- usr.bin/gzip/gzip.c, line 1239
- usr.bin/ldd/ldd.c, 2 times
- usr.bin/lockf/lockf.c, line 152
- usr.bin/m4/misc.c, line 250
- usr.bin/mail/cmd2.c, line 373
- usr.bin/mail/popen.c, line 234
- usr.bin/mail/send.c, line 413
- usr.bin/newkey/update.c, 2 times
- usr.bin/sdiff/edit.c, line 63
- usr.bin/tip/tip/cmds.c, line 952
- usr.bin/wall/ttymsg.c, 3 times
- usr.bin/xargs/xargs.c, line 597
- usr.sbin/apmd/apmd.c, line 127
- usr.sbin/bluetooth/btpand/btpand.c, line 241
- usr.sbin/cron/cron/do_command.c, 6 times
- usr.sbin/cron/cron/popen.c, 5 times
- usr.sbin/ctld/ctld.c, line 2256
- usr.sbin/cxgbetool/cxgbetool.c, line 2478
- usr.sbin/inetd/inetd.c, 11 times
- usr.sbin/iscsid/iscsid.c, line 399
- usr.sbin/lpr/lpd/printjob.c, line 1579
- usr.sbin/pkg/pkg.c, line 159
- usr.sbin/ppp/bundle.c, 2 times
- usr.sbin/ppp/chap.c, 3 times
- usr.sbin/ppp/chat.c, line 757
- usr.sbin/ppp/command.c, line 708
- usr.sbin/ppp/exec.c, 4 times
- usr.sbin/pw/pw_utils.c, line 90
- usr.sbin/pw/pwupd.c, line 78
- usr.sbin/rpc.lockd/kern.c, line 231
- usr.sbin/rpc.ypupdated/update.c, 2 times
- usr.sbin/rpcbind/rpcbind.c, line 785
- usr.sbin/rpcbind/security.c, line 223
- usr.sbin/rtsold/cap_script.c, 3 times
- usr.sbin/syslogd/syslogd.c, 2 times
- usr.sbin/ypbind/ypbind.c, 2 times
- usr.sbin/ypldap/ldapclient.c, line 343
- usr.sbin/ypldap/ypldap.c, line 122
- usr.sbin/ypldap/ypldap_dns.c, line 70
- usr.sbin/ypserv/yp_main.c, line 178
- usr.sbin/ypserv/yp_server.c, 2 times