Defined in 8 files as a prototype:
Defined in 3 files as a macro:
Defined in 1 files as a function:
Referenced in 286 files:
- bin/dd/misc.c, line 117
- bin/mv/mv.c, 2 times
- bin/rcp/util.c, line 118
- bin/sh/error.c, line 124
- bin/sh/jobs.c, line 971
- bin/sh/redir.c, line 296
- bin/sh/trap.c, line 553
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.vfork.c, line 61
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 1992
- 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 175
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc, line 2746
- contrib/dialog/prgbox.c, line 75
- contrib/dialog/ui_getc.c, 2 times
- contrib/dialog/util.c, line 1760
- 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/groff/src/libs/libgroff/new.cpp, line 52
- contrib/groff/src/roff/groff/pipeline.c, 2 times
- contrib/libarchive/libarchive/filter_fork_posix.c, 3 times
- contrib/libpcap/pcap-dos.c, line 615
- contrib/libreadline/examples/rlfe/os.h, line 168
- contrib/llvm/tools/lld/Common/ErrorHandler.cpp, line 59
- contrib/llvm/tools/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, line 61
- contrib/llvm/tools/lldb/tools/driver/Driver.cpp, line 1190
- contrib/mdocml/tag.c, line 248
- 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/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 2328
- 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/auth2-pubkey.c, 6 times
- crypto/openssh/cleanup.c, line 31
- crypto/openssh/clientloop.c, line 2778
- crypto/openssh/log.c, line 176
- crypto/openssh/openbsd-compat/daemon.c, line 62
- crypto/openssh/readconf.c, line 535
- crypto/openssh/sandbox-seccomp-filter.c, line 283
- 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 268
- crypto/openssh/sshconnect.c, line 1505
- crypto/openssh/sshd.c, line 2309
- crypto/openssl/crypto/cryptlib.c, line 1017
- gnu/usr.bin/gdb/gdbserver/fbsd-low.c, 2 times
- gnu/usr.bin/rcs/ci/ci.c, line 848
- gnu/usr.bin/rcs/co/co.c, line 535
- gnu/usr.bin/rcs/lib/rcsfnms.c, 2 times
- gnu/usr.bin/rcs/lib/rcslex.c, line 1565
- gnu/usr.bin/rcs/lib/rcsrev.c, line 909
- gnu/usr.bin/rcs/lib/rcssyn.c, line 679
- gnu/usr.bin/rcs/lib/rcsutil.c, 4 times
- gnu/usr.bin/rcs/merge/merge.c, line 112
- gnu/usr.bin/rcs/rcs/rcs.c, line 660
- gnu/usr.bin/rcs/rcsclean/rcsclean.c, line 259
- gnu/usr.bin/rcs/rcsdiff/rcsdiff.c, line 455
- gnu/usr.bin/rcs/rcsmerge/rcsmerge.c, line 285
- 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 75
- lib/libc/stdlib/system.c, line 88
- lib/libc/tests/gen/fmtmsg_test.c, 3 times
- lib/libedit/TEST/tc1.c, line 281
- lib/libedit/TEST/wtc1.c, line 257
- lib/libpam/modules/pam_exec/pam_exec.c, line 222
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 308
- 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, 4 times
- lib/msun/tests/fenv_test.c, 2 times
- libexec/comsat/comsat.c, 2 times
- libexec/fingerd/fingerd.c, line 217
- libexec/ftpd/ftpd.c, line 2789
- libexec/ftpd/popen.c, 2 times
- libexec/pppoed/pppoed.c, 13 times
- libexec/rtld-elf/rtld.c, 2 times
- libexec/rtld-elf/xmalloc.c, 2 times
- libexec/talkd/table.c, line 168
- libexec/talkd/talkd.c, 3 times
- release/picobsd/tinyware/oinit/oinit.c, 5 times
- release/picobsd/tinyware/passwd/pw_util.c, line 215
- sbin/devd/devd.cc, line 265
- sbin/fsck/fsck.c, 2 times
- sbin/init/init.c, 14 times
- sbin/mdmfs/mdmfs.c, 2 times
- sbin/ping/ping.c, line 1024
- sbin/ping6/ping6.c, line 2223
- sbin/swapon/swapon.c, line 711
- sys/dev/nxge/if_nxge.c, 47 times
- sys/dev/vxge/vxgehal/vxgehal-virtualpath.c, 4 times
- sys/teken/demo/teken_demo.c, line 306
- tests/freebsd_test_suite/macros.h, 2 times
- tests/sys/aio/local.h, 2 times
- tests/sys/capsicum/ioctls_test.c, line 59
- 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, 22 times
- tests/sys/kern/reaper.c, 42 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
- tools/regression/sockets/accept_fd_leak/accept_fd_leak.c, line 173
- tools/regression/sockets/accf_data_attach/accf_data_attach.c, line 75
- tools/regression/sockets/pr_atomic/pr_atomic.c, line 87
- tools/regression/sockets/sendfile/sendfile.c, 2 times
- tools/regression/sockets/unix_cmsg/unix_cmsg.c, line 486
- tools/test/pthread_vfork/pthread_vfork_test.c, line 53
- tools/test/ptrace/scescx.c, line 368
- tools/tools/nxge/xge_info.c, 27 times
- tools/tools/nxge/xge_log.c, 18 times
- tools/tools/syscall_timing/syscall_timing.c, 4 times
- usr.bin/apply/apply.c, line 242
- usr.bin/at/at.c, line 136
- usr.bin/calendar/io.c, 4 times
- usr.bin/cmp/regular.c, line 171
- usr.bin/csplit/csplit.c, line 230
- usr.bin/diff/diffreg.c, line 349
- usr.bin/find/function.c, 2 times
- usr.bin/gzip/gzip.c, line 1222
- usr.bin/ldd/ldd.c, 2 times
- usr.bin/lockf/lockf.c, line 152
- usr.bin/m4/misc.c, line 248
- usr.bin/mail/cmd2.c, line 364
- usr.bin/mail/popen.c, line 242
- usr.bin/mail/send.c, line 411
- usr.bin/newkey/update.c, 2 times
- usr.bin/rsh/rsh.c, line 341
- usr.bin/sdiff/edit.c, line 63
- usr.bin/tip/tip/cmds.c, line 950
- usr.bin/wall/ttymsg.c, 3 times
- usr.bin/xargs/xargs.c, line 595
- usr.bin/xlint/xlint/xlint.c, line 746
- 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 2208
- usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, line 192
- usr.sbin/cxgbetool/cxgbetool.c, line 2322
- usr.sbin/inetd/inetd.c, 11 times
- usr.sbin/iscsid/iscsid.c, line 367
- usr.sbin/kgzip/kgzcmp.c, line 153
- usr.sbin/kgzip/kgzld.c, line 96
- usr.sbin/lpr/lpd/printjob.c, line 1577
- usr.sbin/pkg/pkg.c, line 160
- 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/security.c, line 226
- 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 176
- usr.sbin/ypserv/yp_server.c, 2 times