Defined in 3 files as a prototype:
Defined in 1 files as a member:
Defined in 3 files as a macro:
Defined in 6 files as a function:
Referenced in 293 files:
- bin/ksh/jobs.c, line 1268
- bin/mv/mv.c, 2 times
- bin/pax/ar_io.c, line 422
- bin/rcp/util.c, line 141
- bin/sh/eval.c, line 1179
- bin/sh/jobs.c, line 1638
- crypto/dist/ipsec-tools/src/racoon/session.c, line 452
- crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c, 2 times
- crypto/external/bsd/heimdal/dist/kdc/connect.c, line 1031
- crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-timer.c, line 153
- crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_common.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/kdfs/k5dfspag.c, line 320
- crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c, line 291
- crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c, line 101
- crypto/external/bsd/openssh/dist/auth-pam.c, 3 times
- crypto/external/bsd/openssh/dist/misc.c, 2 times
- crypto/external/bsd/openssh/dist/monitor.c, line 1688
- crypto/external/bsd/openssh/dist/readconf.c, line 601
- crypto/external/bsd/openssh/dist/readpass.c, 2 times
- crypto/external/bsd/openssh/dist/scp.c, 9 times
- crypto/external/bsd/openssh/dist/serverloop.c, line 342
- crypto/external/bsd/openssh/dist/sftp.c, 5 times
- crypto/external/bsd/openssh/dist/ssh-sk-client.c, line 120
- crypto/external/bsd/openssh/dist/ssh.c, line 2456
- crypto/external/bsd/openssh/dist/sshconnect.c, 2 times
- crypto/external/bsd/openssh/dist/sshconnect2.c, line 2155
- crypto/external/bsd/openssh/dist/sshd.c, 2 times
- crypto/external/bsd/openssl.old/dist/apps/ocsp.c, line 939
- crypto/external/bsd/openssl.old/dist/test/drbgtest.c, line 697
- crypto/external/bsd/openssl/dist/apps/lib/http_server.c, line 144
- crypto/external/bsd/openssl/dist/test/drbgtest.c, line 359
- dist/pf/usr.sbin/authpf/authpf.c, line 706
- distrib/utils/ssh/ssh.c, 2 times
- external/apache2/llvm/dist/clang/tools/scan-build-py/tests/functional/exec/main.c, line 87
- external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/gtest-death-test.cc, line 1103
- external/bsd/am-utils/dist/amd/info_exec.c, line 328
- external/bsd/am-utils/dist/amd/sched.c, line 261
- external/bsd/am-utils/dist/hlfsd/homedir.c, line 293
- external/bsd/atf/dist/atf-c++/utils_test.cpp, 7 times
- external/bsd/atf/dist/atf-c/detail/process.c, line 277
- external/bsd/atf/dist/atf-c/detail/process_test.c, line 593
- external/bsd/atf/dist/atf-c/utils.c, line 386
- external/bsd/atf/dist/atf-c/utils_test.c, 7 times
- external/bsd/atf/dist/tools/io_test.cpp, line 412
- external/bsd/atf/dist/tools/process.cpp, line 457
- external/bsd/blocklist/port/popenve.c, line 268
- external/bsd/cron/dist/cron.c, line 516
- external/bsd/cron/dist/crontab.c, line 491
- external/bsd/cron/dist/do_command.c, 2 times
- external/bsd/cron/dist/popen.c, line 191
- external/bsd/dhcpcd/dist/src/dhcpcd.c, line 1476
- external/bsd/dhcpcd/dist/src/privsep-root.c, 2 times
- external/bsd/dhcpcd/dist/src/script.c, line 695
- external/bsd/file/dist/src/compress.c, 2 times
- external/bsd/jemalloc/dist/test/unit/fork.c, line 12
- external/bsd/kyua-cli/dist/utils/process/child_test.cpp, line 284
- external/bsd/kyua-cli/dist/utils/process/status_test.cpp, line 84
- external/bsd/kyua-cli/dist/utils/process/system.cpp, line 58
- external/bsd/kyua-testers/dist/atf_result_test.c, 2 times
- external/bsd/kyua-testers/dist/fs.c, line 394
- external/bsd/kyua-testers/dist/fs_test.c, 2 times
- external/bsd/kyua-testers/dist/run.c, line 470
- external/bsd/libarchive/dist/libarchive/archive_read_support_filter_program.c, line 255
- external/bsd/libarchive/dist/libarchive/archive_write_add_filter_program.c, line 400
- external/bsd/libevent/dist/test/regress.c, 2 times
- external/bsd/libevent/dist/test/regress_thread.c, line 222
- external/bsd/libevent/dist/test/tinytest.c, line 295
- external/bsd/libpcap/dist/rpcapd/rpcapd.c, line 777
- external/bsd/libproc/dist/proc_bkpt.c, line 62
- external/bsd/libproc/dist/proc_create.c, 2 times
- external/bsd/libproc/dist/proc_util.c, 2 times
- external/bsd/mdocml/dist/main.c, line 651
- external/bsd/nsd/dist/server.c, 3 times
- external/bsd/nsd/dist/verify.c, line 301
- external/bsd/nsd/dist/xfrd.c, 2 times
- external/bsd/ntp/dist/libntp/work_fork.c, line 194
- external/bsd/ntp/dist/ntpd/ntpd.c, line 1731
- external/bsd/ntp/dist/sntp/libevent/test/regress.c, line 902
- external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c, line 218
- external/bsd/ntp/dist/sntp/libevent/test/tinytest.c, line 215
- external/bsd/nvi/dist/common/recover.c, line 924
- external/bsd/nvi/dist/ex/ex_cscope.c, line 899
- external/bsd/nvi/dist/ex/ex_shell.c, line 163
- external/bsd/openldap/dist/servers/lloadd/main.c, line 944
- external/bsd/openldap/dist/servers/slapd/main.c, line 1188
- external/bsd/openpam/dist/bin/su/su.c, line 177
- external/bsd/pcc/dist/pcc/cc/cc/cc.c, line 1462
- external/bsd/pcc/dist/pcc/cc/driver/driver.c, line 214
- external/bsd/pcc/dist/pcc/f77/f77/f77.c, line 518
- external/bsd/pkg_install/dist/lib/fexec.c, line 90
- external/bsd/pkg_install/dist/lib/gpgsig.c, line 185
- external/bsd/ppp/dist/pppd/main.c, 3 times
- external/bsd/tmux/dist/client.c, line 533
- external/bsd/tmux/dist/server.c, line 463
- external/bsd/unbound/dist/libunbound/libunbound.c, line 289
- external/bsd/unbound/dist/util/locks.c, line 137
- external/bsd/wpa/dist/src/utils/os_internal.c, line 550
- external/bsd/wpa/dist/src/utils/os_unix.c, line 838
- external/cddl/osnet/dist/cmd/dtrace/dtrace.c, line 433
- external/cddl/osnet/dist/cmd/ztest/ztest.c, line 6131
- external/cddl/osnet/dist/lib/libdtrace/common/dt_cc.c, line 1955
- external/gpl2/diffutils/dist/src/diff3.c, line 1258
- external/gpl2/diffutils/dist/src/sdiff.c, 2 times
- external/gpl2/diffutils/dist/src/util.c, line 296
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/wait-process.c, line 348
- external/gpl2/gmake/dist/job.c, line 122
- external/gpl2/lvm2/dist/daemons/cmirrord/clogd.c, line 200
- external/gpl2/lvm2/dist/daemons/dmeventd/dmeventd.c, line 1617
- external/gpl2/lvm2/dist/daemons/dmeventd/libdevmapper-event.c, line 445
- external/gpl2/lvm2/dist/test/harness.c, line 104
- external/gpl2/lvm2/dist/test/not.c, line 28
- external/gpl2/lvm2/dist/tools/dmsetup.c, line 1335
- external/gpl2/rcs/dist/src/rcsfnms.c, line 996
- external/gpl2/rcs/dist/src/rcsutil.c, line 1129
- external/gpl2/xcvs/dist/diff/util.c, line 311
- external/gpl2/xcvs/dist/src/buffer.c, line 2178
- external/gpl2/xcvs/dist/src/release.c, line 103
- external/gpl2/xcvs/dist/src/run.c, 2 times
- external/gpl2/xcvs/dist/src/server.c, 3 times
- external/gpl3/binutils.old/dist/libiberty/pex-unix.c, 4 times
- external/gpl3/binutils/dist/gprofng/libcollector/collector.c, line 1378
- external/gpl3/binutils/dist/gprofng/libcollector/libcol_util.c, line 1305
- external/gpl3/binutils/dist/gprofng/src/gp-collect-app.cc, 2 times
- external/gpl3/binutils/dist/libiberty/pex-unix.c, 4 times
- external/gpl3/gcc.old/dist/gcc/lto/lto.c, line 197
- external/gpl3/gcc.old/dist/libcc1/libcc1.cc, line 549
- external/gpl3/gcc.old/dist/libcc1/libcp1.cc, line 573
- external/gpl3/gcc.old/dist/libgfortran/intrinsics/execute_command_line.c, line 77
- external/gpl3/gcc.old/dist/libiberty/pex-unix.c, 4 times
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_mac.cc, line 267
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_solaris.cc, 2 times
- external/gpl3/gcc/dist/gcc/lto/lto.c, line 197
- external/gpl3/gcc/dist/libcc1/libcc1.cc, line 549
- external/gpl3/gcc/dist/libcc1/libcp1.cc, line 573
- external/gpl3/gcc/dist/libgfortran/intrinsics/execute_command_line.c, line 77
- external/gpl3/gcc/dist/libiberty/pex-unix.c, 4 times
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mac.cc, line 267
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_solaris.cc, 2 times
- external/gpl3/gdb.old/dist/gdb/cli/cli-cmds.c, line 907
- external/gpl3/gdb.old/dist/gdb/darwin-nat.c, line 1585
- external/gpl3/gdb.old/dist/gdb/fbsd-nat.c, line 1417
- external/gpl3/gdb.old/dist/gdb/inf-ptrace.c, 3 times
- external/gpl3/gdb.old/dist/gdb/linux-fork.c, 2 times
- external/gpl3/gdb.old/dist/gdb/nat/linux-namespaces.c, line 731
- external/gpl3/gdb.old/dist/gdb/nat/linux-ptrace.c, line 182
- external/gpl3/gdb.old/dist/gdb/nat/linux-waitpid.c, line 61
- external/gpl3/gdb.old/dist/gdb/nbsd-nat.c, line 565
- external/gpl3/gdb.old/dist/gdb/nto-procfs.c, line 870
- external/gpl3/gdb.old/dist/gdb/obsd-nat.c, 2 times
- external/gpl3/gdb.old/dist/gdb/procfs.c, line 2583
- external/gpl3/gdb.old/dist/gdb/rs6000-nat.c, line 509
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/inferior-died.c, line 35
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.multi/watchpoint-multi-exit.c, line 52
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/waitpid-reverse.c, line 41
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/clone-thread_db.c, line 58
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c, line 66
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/process-dies-while-detaching.c, line 82
- external/gpl3/gdb.old/dist/gdb/utils.c, 2 times
- external/gpl3/gdb.old/dist/gdbserver/netbsd-low.cc, 2 times
- external/gpl3/gdb.old/dist/libiberty/pex-unix.c, 4 times
- external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/pipe2.c, line 132
- external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/pipe6.c, line 100
- external/gpl3/gdb/dist/gdb/cli/cli-cmds.c, line 907
- external/gpl3/gdb/dist/gdb/darwin-nat.c, line 1585
- external/gpl3/gdb/dist/gdb/fbsd-nat.c, line 1417
- external/gpl3/gdb/dist/gdb/inf-ptrace.c, 3 times
- external/gpl3/gdb/dist/gdb/linux-fork.c, 2 times
- external/gpl3/gdb/dist/gdb/nat/linux-namespaces.c, line 731
- external/gpl3/gdb/dist/gdb/nat/linux-ptrace.c, line 182
- external/gpl3/gdb/dist/gdb/nat/linux-waitpid.c, line 61
- external/gpl3/gdb/dist/gdb/nbsd-nat.c, line 565
- external/gpl3/gdb/dist/gdb/nto-procfs.c, line 870
- external/gpl3/gdb/dist/gdb/obsd-nat.c, 2 times
- external/gpl3/gdb/dist/gdb/procfs.c, line 2583
- external/gpl3/gdb/dist/gdb/rs6000-nat.c, line 509
- external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/inferior-died.c, line 35
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/watchpoint-multi-exit.c, line 52
- external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/waitpid-reverse.c, line 41
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/clone-thread_db.c, line 58
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c, line 66
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/process-dies-while-detaching.c, line 82
- external/gpl3/gdb/dist/gdb/utils.c, 2 times
- external/gpl3/gdb/dist/gdbserver/netbsd-low.cc, 2 times
- external/gpl3/gdb/dist/libiberty/pex-unix.c, 4 times
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/pipe2.c, line 132
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/pipe6.c, line 100
- external/ibm-public/postfix/dist/src/global/mail_run.c, line 103
- external/ibm-public/postfix/dist/src/global/pipe_command.c, line 369
- external/ibm-public/postfix/dist/src/master/master_spawn.c, line 302
- external/ibm-public/postfix/dist/src/postlock/postlock.c, line 278
- external/ibm-public/postfix/dist/src/postmulti/postmulti.c, line 1467
- external/ibm-public/postfix/dist/src/util/spawn_command.c, line 309
- external/ibm-public/postfix/dist/src/util/timed_wait.c, line 111
- external/ibm-public/postfix/dist/src/util/vstream_popen.c, line 303
- external/mit/libuv/dist/src/unix/process.c, 3 times
- external/mit/libuv/dist/test/runner-unix.c, line 202
- external/mit/libuv/dist/test/test-fork.c, line 80
- external/mit/libuv/dist/test/test-pipe-close-stdout-read-stdin.c, line 100
- external/mit/libuv/dist/test/test-spawn.c, line 217
- external/mpl/dhcp/dist/common/execute.c, line 258
- external/mpl/dhcp/dist/tests/t_api.c, line 344
- games/cribbage/instr.c, line 93
- games/fish/fish.c, line 471
- games/rogue/machdep.c, line 487
- games/wump/wump.c, line 782
- lib/libc/gen/arc4random.c, line 758
- lib/libc/gen/popen.c, line 298
- lib/libc/gen/utmpx.c, line 325
- lib/libc/gen/waitpid.c, 2 times
- lib/libc/gen/wordexp.c, 5 times
- lib/libc/net/rcmd.c, line 496
- lib/libc/stdlib/system.c, line 129
- lib/libedit/vi.c, line 1048
- lib/libpam/modules/pam_exec/pam_exec.c, line 133
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 477
- lib/libutil/passwd.c, 2 times
- lib/libutil/ttyaction.c, line 146
- libexec/atrun/atrun.c, line 336
- libexec/ftpd/popen.c, line 236
- libexec/httpd/daemon-bozo.c, line 76
- libexec/lfs_cleanerd/coalesce.c, line 431
- libexec/makewhatis/makewhatis.c, 2 times
- libexec/rshd/rshd.c, line 621
- regress/sys/kern/getcwd/getcwd.c, line 315
- sbin/devpubd/devpubd.c, line 115
- sbin/fsck/fsck.c, line 383
- sbin/init/init.c, 8 times
- sbin/mount/mount.c, line 544
- sbin/mount_portal/puffs_portal.c, line 101
- sbin/newfs/newfs.c, line 742
- sys/external/bsd/compiler_rt/dist/lib/fuzzer/FuzzerUtilDarwin.cpp, line 118
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_mac.cc, line 280
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- tests/dev/audio/audiotest.c, 2 times
- tests/fs/common/fstest_puffs.c, 2 times
- tests/fs/fifofs/t_fifo.c, line 197
- tests/kernel/kqueue/read/t_file.c, line 129
- tests/kernel/kqueue/read/t_ttypty.c, line 115
- tests/kernel/kqueue/t_proc1.c, line 147
- tests/kernel/kqueue/t_proc2.c, line 123
- tests/kernel/kqueue/t_proc3.c, line 76
- tests/kernel/kqueue/t_sig.c, line 124
- tests/kernel/kqueue/write/t_pipe.c, line 111
- tests/kernel/kqueue/write/t_ttypty.c, line 100
- tests/kernel/t_lockf.c, 2 times
- tests/kernel/t_proccwd.c, line 142
- tests/kernel/t_pty.c, line 98
- tests/kernel/t_zombie.c, 2 times
- tests/lib/libc/c063/t_fexecve.c, line 78
- tests/lib/libc/gen/posix_spawn/t_fileactions.c, 7 times
- tests/lib/libc/gen/posix_spawn/t_spawn.c, 2 times
- tests/lib/libc/gen/posix_spawn/t_spawnattr.c, 2 times
- tests/lib/libc/sys/t_clone.c, line 133
- tests/lib/libc/sys/t_fork.c, 4 times
- tests/lib/libc/sys/t_futex_ops.c, line 146
- tests/lib/libc/sys/t_kevent.c, line 138
- tests/lib/libc/sys/t_kill.c, 4 times
- tests/lib/libc/sys/t_pipe.c, line 152
- tests/lib/libc/sys/t_ptrace_wait.h, 2 times
- tests/lib/libc/sys/t_select.c, 2 times
- tests/lib/libc/sys/t_setrlimit.c, line 436
- tests/lib/libc/sys/t_sigaction.c, line 73
- tests/lib/libc/sys/t_wait_noproc.c, 6 times
- tests/lib/libcurses/director/director.c, line 288
- tests/lib/libpthread/t_fork.c, line 93
- tests/lib/librt/t_sem.c, 2 times
- tests/lib/libutil/t_pidfile.c, line 122
- tests/net/icmp/t_ping.c, line 438
- tests/net/mcast/mcast.c, line 368
- tests/net/net/t_mapped.c, line 231
- tests/net/net/t_unix.c, line 364
- tests/usr.sbin/inetd/t_inetd.c, line 279
- usr.bin/apply/apply.c, line 245
- usr.bin/find/function.c, 3 times
- usr.bin/gcore/gcore.c, line 102
- usr.bin/ktrace/ktrace.c, line 372
- usr.bin/login/login_pam.c, line 524
- usr.bin/mail/popen.c, 2 times
- usr.bin/make/job.c, 3 times
- usr.bin/make/main.c, line 1750
- usr.bin/newsyslog/newsyslog.c, line 790
- usr.bin/patch/inp.c, 2 times
- usr.bin/rlogin/rlogin.c, line 414
- usr.bin/sdiff/edit.c, line 54
- usr.bin/sdiff/sdiff.c, line 330
- usr.bin/su/su_pam.c, line 413
- usr.bin/xargs/xargs.c, line 579
- usr.sbin/edquota/edquota.c, line 762
- usr.sbin/powerd/powerd.c, line 219
- usr.sbin/puffs/mount_psshfs/psshfs.c, line 396
- usr.sbin/syslogd/syslogd.c, line 4255