Defined in 5 files as a prototype:
Defined in 3 files as a macro:
Defined in 1 files as a function:
Referenced in 291 files:
- bin/dd/misc.c, line 156
- bin/mv/mv.c, 2 times
- bin/sh/error.c, line 124
- bin/sh/jobs.c, line 1028
- bin/sh/redir.c, line 298
- bin/sh/trap.c, line 553
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.vfork.c, line 62
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 1949
- contrib/apr/threadproc/unix/proc.c, 6 times
- contrib/binutils/bfd/bfd.c, 2 times
- contrib/blacklist/port/popenve.c, line 214
- contrib/bmake/compat.c, line 152
- contrib/bmake/main.c, 2 times
- contrib/byacc/main.c, line 148
- 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/file/src/compress.c, line 894
- contrib/gdb/gdb/cli/cli-cmds.c, line 534
- 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/kyua/engine/atf.cpp, 3 times
- contrib/kyua/engine/plain.cpp, line 66
- contrib/kyua/engine/scheduler.cpp, 2 times
- contrib/kyua/engine/scheduler_test.cpp, line 138
- contrib/kyua/engine/tap.cpp, line 113
- contrib/kyua/utils/process/executor_test.cpp, line 101
- contrib/kyua/utils/process/operations.cpp, line 230
- contrib/kyua/utils/stacktrace.cpp, 2 times
- contrib/kyua/utils/stacktrace_test.cpp, line 124
- contrib/libarchive/libarchive/filter_fork_posix.c, 3 times
- contrib/libedit/TEST/tc1.c, line 280
- contrib/libedit/TEST/wtc1.c, line 251
- contrib/libpcap/pcap-dos.c, line 631
- contrib/llvm-project/compiler-rt/lib/lsan/lsan_interceptors.cpp, 3 times
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp, line 200
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_rtems.cpp, line 41
- 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, line 2770
- contrib/llvm-project/lld/Common/ErrorHandler.cpp, line 70
- contrib/llvm-project/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, line 55
- contrib/llvm-project/lldb/tools/driver/Driver.cpp, line 711
- contrib/llvm-project/openmp/runtime/src/kmp_affinity.cpp, 19 times
- contrib/llvm-project/openmp/runtime/src/kmp_runtime.cpp, line 433
- contrib/mandoc/main.c, 2 times
- contrib/mandoc/tag.c, line 295
- contrib/ncurses/ncurses/tty/lib_tstp.c, line 283
- 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 401
- 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 751
- contrib/nvi/ex/ex_cscope.c, 2 times
- contrib/nvi/ex/ex_filter.c, 3 times
- contrib/nvi/ex/ex_script.c, line 173
- contrib/nvi/ex/ex_shell.c, line 127
- 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/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 93
- contrib/tcpdump/tcpdump.c, line 2316
- contrib/tcsh/sh.c, line 2461
- contrib/tcsh/sh.sem.c, line 771
- contrib/tcsh/tc.alloc.c, line 70
- contrib/tcsh/tc.func.c, 3 times
- contrib/telnet/telnet/commands.c, line 1376
- contrib/telnet/telnetd/sys_term.c, line 1251
- contrib/telnet/telnetd/telnetd.c, line 383
- 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 2357
- crypto/openssh/log.c, line 182
- crypto/openssh/openbsd-compat/daemon.c, line 62
- crypto/openssh/readconf.c, line 531
- crypto/openssh/sandbox-seccomp-filter.c, line 305
- 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 1544
- crypto/openssh/sshd.c, line 2430
- 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/arc4random.c, line 98
- 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 131
- 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 66
- 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/libnv/tests/nvlist_send_recv_test.c, 2 times
- lib/libpam/modules/pam_exec/pam_exec.c, line 326
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 309
- lib/libproc/proc_create.c, 2 times
- lib/libutil/pw_util.c, line 264
- 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 2799
- 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
- sbin/devd/devd.cc, line 265
- sbin/fsck/fsck.c, 2 times
- sbin/init/init.c, 15 times
- sbin/mdmfs/mdmfs.c, 2 times
- sbin/ping/ping.c, line 1026
- sbin/ping6/ping6.c, line 2314
- sbin/swapon/swapon.c, line 730
- sys/contrib/openzfs/cmd/zed/zed.c, 2 times
- sys/contrib/openzfs/cmd/zed/zed_exec.c, line 119
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, 2 times
- sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/xattrtest.c, 2 times
- 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/fs/fusefs/utils.cc, line 607
- tests/sys/kern/kern_descrip_test.c, 2 times
- tests/sys/kern/kill_zombie.c, line 45
- 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, 14 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, line 678
- 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 155
- 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 614
- usr.sbin/apmd/apmd.c, line 127
- usr.sbin/bluetooth/btpand/btpand.c, line 241
- usr.sbin/cron/cron/do_command.c, 14 times
- usr.sbin/cron/cron/popen.c, 5 times
- usr.sbin/ctld/ctld.c, line 2316
- usr.sbin/cxgbetool/cxgbetool.c, line 2478
- usr.sbin/inetd/inetd.c, 11 times
- usr.sbin/iscsid/iscsid.c, line 439
- 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 124
- usr.sbin/ypldap/ypldap_dns.c, line 70
- usr.sbin/ypserv/yp_main.c, line 178
- usr.sbin/ypserv/yp_server.c, 2 times