Defined in 2 files as a prototype:
Defined in 3 files as a macro:
Defined in 3 files as a function:
Referenced in 264 files:
- bin/mv/mv.c, 2 times
- bin/pax/ar_io.c, line 348
- cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, line 433
- cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/badioctl.c, line 124
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.gcc.c, line 43
- cddl/contrib/opensolaris/cmd/lockstat/lockstat.c, 2 times
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 1955
- contrib/apr/misc/unix/otherchild.c, line 163
- contrib/apr/threadproc/unix/proc.c, line 645
- contrib/apr/threadproc/unix/signals.c, line 63
- contrib/atf/atf-c++/utils_test.cpp, 7 times
- contrib/atf/atf-c/detail/process.c, line 273
- contrib/atf/atf-c/detail/process_test.c, line 592
- contrib/atf/atf-c/utils.c, line 419
- contrib/atf/atf-c/utils_test.c, 7 times
- contrib/blacklist/port/popenve.c, line 268
- contrib/bmake/job.c, 3 times
- contrib/bmake/main.c, line 1809
- contrib/capsicum-test/capability-fd.cc, line 1301
- contrib/capsicum-test/capmode.cc, 4 times
- contrib/capsicum-test/capsicum-test.h, line 81
- contrib/capsicum-test/fcntl.cc, line 245
- contrib/capsicum-test/fexecve.cc, line 202
- contrib/capsicum-test/linux.cc, 9 times
- contrib/capsicum-test/procdesc.cc, 16 times
- contrib/capsicum-test/sctp.cc, 2 times
- contrib/capsicum-test/socket.cc, 3 times
- contrib/capsicum-test/waittest.c, line 33
- contrib/dialog/ui_getc.c, line 637
- contrib/diff/src/diff3.c, line 1266
- contrib/diff/src/sdiff.c, 2 times
- contrib/diff/src/util.c, line 294
- contrib/file/src/compress.c, 2 times
- contrib/gdb/gdb/gdbserver/server.c, line 406
- contrib/gdb/gdb/lin-lwp.c, 11 times
- contrib/gdb/gdb/nto-procfs.c, line 678
- contrib/gdb/gdb/procfs.c, line 4713
- contrib/googletest/googletest/src/gtest-death-test.cc, line 1031
- contrib/googletest/googletest/test/googletest-death-test-test.cc, 2 times
- contrib/kyua/utils/fs/operations.cpp, 2 times
- contrib/kyua/utils/process/child_test.cpp, line 304
- contrib/kyua/utils/process/executor.cpp, line 592
- contrib/kyua/utils/process/executor_test.cpp, line 835
- contrib/kyua/utils/process/status_test.cpp, line 85
- contrib/kyua/utils/process/system.cpp, line 59
- contrib/libarchive/libarchive/archive_read_support_filter_program.c, line 255
- contrib/libarchive/libarchive/archive_write_add_filter_program.c, line 377
- contrib/libedit/vi.c, line 1045
- contrib/libevent/test/regress.c, line 937
- contrib/libevent/test/regress_thread.c, line 216
- contrib/libevent/test/tinytest.c, line 213
- contrib/libpcap/rpcapd/rpcapd.c, line 777
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilDarwin.cpp, line 118
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp, line 362
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp, 2 times
- contrib/llvm-project/lldb/source/Host/common/Host.cpp, line 202
- contrib/llvm-project/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, line 215
- contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, 2 times
- contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp, 3 times
- contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp, line 2566
- contrib/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp, line 326
- contrib/mandoc/main.c, line 746
- contrib/netbsd-tests/fs/common/fstest_puffs.c, 2 times
- contrib/netbsd-tests/fs/fifofs/t_fifo.c, line 197
- contrib/netbsd-tests/kernel/kqueue/read/t_file.c, line 133
- contrib/netbsd-tests/kernel/kqueue/read/t_ttypty.c, line 118
- contrib/netbsd-tests/kernel/kqueue/t_proc1.c, line 147
- contrib/netbsd-tests/kernel/kqueue/t_proc2.c, line 123
- contrib/netbsd-tests/kernel/kqueue/t_proc3.c, line 76
- contrib/netbsd-tests/kernel/kqueue/t_sig.c, line 134
- contrib/netbsd-tests/kernel/kqueue/write/t_fifo.c, line 94
- contrib/netbsd-tests/kernel/kqueue/write/t_pipe.c, line 111
- contrib/netbsd-tests/kernel/kqueue/write/t_ttypty.c, line 100
- contrib/netbsd-tests/kernel/t_lockf.c, 2 times
- contrib/netbsd-tests/kernel/t_ptrace_wait.h, 2 times
- contrib/netbsd-tests/kernel/t_pty.c, line 96
- contrib/netbsd-tests/lib/libc/c063/t_fexecve.c, line 78
- contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c, 7 times
- contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_spawn.c, 3 times
- contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_spawnattr.c, line 166
- contrib/netbsd-tests/lib/libc/sys/t_clone.c, line 133
- contrib/netbsd-tests/lib/libc/sys/t_kevent.c, line 150
- contrib/netbsd-tests/lib/libc/sys/t_kill.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_nanosleep.c, line 251
- contrib/netbsd-tests/lib/libc/sys/t_pipe.c, line 152
- contrib/netbsd-tests/lib/libc/sys/t_select.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c, line 464
- contrib/netbsd-tests/lib/libc/sys/t_sigaction.c, line 73
- contrib/netbsd-tests/lib/libc/sys/t_wait_noproc.c, 6 times
- contrib/netbsd-tests/lib/libpthread/t_fork.c, line 93
- contrib/netbsd-tests/lib/librt/t_sem.c, line 169
- contrib/netbsd-tests/lib/libutil/t_pidfile.c, line 122
- contrib/netbsd-tests/net/icmp/t_ping.c, line 418
- contrib/netbsd-tests/net/mcast/mcast.c, line 365
- contrib/ntp/libntp/work_fork.c, line 192
- contrib/ntp/ntpd/ntpd.c, line 1730
- contrib/ntp/sntp/libevent/test/regress.c, line 900
- contrib/ntp/sntp/libevent/test/regress_thread.c, line 216
- contrib/ntp/sntp/libevent/test/tinytest.c, line 213
- contrib/nvi/ex/ex_cscope.c, line 934
- contrib/nvi/ex/ex_shell.c, line 157
- contrib/ofed/librdmacm/examples/rstream.c, 2 times
- contrib/openbsm/bin/auditd/auditd.c, line 624
- contrib/openbsm/bin/auditdistd/auditdistd.c, line 396
- contrib/openbsm/bin/auditreduce/auditreduce.c, line 868
- contrib/openbsm/bin/praudit/praudit.c, line 225
- contrib/openpam/bin/su/su.c, line 177
- contrib/pf/authpf/authpf.c, line 815
- contrib/sendmail/rmail/rmail.c, line 396
- contrib/sendmail/src/conf.c, line 2819
- contrib/tcsh/mi.wait.h, line 42
- contrib/tcsh/sh.proc.c, 4 times
- contrib/tcsh/tc.func.c, line 2066
- contrib/unbound/libunbound/libunbound.c, line 286
- contrib/unbound/util/locks.c, line 137
- contrib/wpa/src/utils/os_internal.c, line 550
- contrib/wpa/src/utils/os_unix.c, line 865
- crypto/heimdal/appl/ftp/ftp/cmds.c, line 1275
- crypto/heimdal/appl/ftp/ftpd/popen.c, line 227
- crypto/heimdal/appl/gssmask/gssmaestro.c, line 955
- crypto/heimdal/appl/login/login.c, line 97
- crypto/heimdal/appl/login/shadow.c, line 58
- crypto/heimdal/appl/rcp/util.c, line 134
- crypto/heimdal/appl/rsh/rsh.c, line 684
- crypto/heimdal/appl/telnet/telnetd/sys_term.c, line 1610
- crypto/heimdal/kadmin/kadm_conn.c, 2 times
- crypto/heimdal/lib/roken/rkpty.c, line 289
- crypto/heimdal/lib/roken/simple_exec.c, line 99
- crypto/openssh/auth-pam.c, 3 times
- crypto/openssh/auth.c, line 1001
- crypto/openssh/misc.c, line 1739
- crypto/openssh/monitor.c, line 1610
- crypto/openssh/readconf.c, line 539
- crypto/openssh/readpass.c, line 96
- crypto/openssh/sandbox-systrace.c, line 135
- crypto/openssh/scp.c, 5 times
- crypto/openssh/serverloop.c, line 369
- crypto/openssh/sftp.c, 5 times
- crypto/openssh/ssh.c, line 2154
- crypto/openssh/sshconnect.c, 2 times
- crypto/openssh/sshconnect2.c, line 1882
- crypto/openssh/sshd.c, 2 times
- crypto/openssl/apps/ocsp.c, line 939
- gnu/usr.bin/gdb/gdbserver/fbsd-low.c, line 357
- lib/csu/tests/cxx_constructors.cc, line 91
- lib/csu/tests/fini_test.c, 2 times
- lib/libc/gen/waitpid.c, line 55
- lib/libc/include/un-namespace.h, line 223
- lib/libc/tests/gen/fmtmsg_test.c, line 211
- lib/libc/tests/gen/posix_spawn_test.c, 6 times
- lib/libc/tests/gen/wordexp_test.c, line 52
- lib/libc/tests/stdio/gets_s_test.c, line 85
- lib/libdpv/dpv.c, 2 times
- lib/libnv/tests/nvlist_send_recv_test.c, 2 times
- lib/libpam/modules/pam_exec/pam_exec.c, line 407
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 440
- lib/libproc/proc_bkpt.c, line 89
- lib/libproc/proc_create.c, 2 times
- lib/libproc/proc_util.c, 2 times
- lib/libulog/ulog_login_pseudo.c, line 72
- lib/libutil/pw_util.c, 3 times
- lib/libutil/tests/pidfile_test.c, line 228
- libexec/atrun/atrun.c, line 348
- libexec/ftpd/ftpd.c, line 3329
- libexec/ftpd/popen.c, line 193
- libexec/tftpd/tests/functional.c, line 259
- sbin/bectl/bectl_jail.c, line 351
- sbin/decryptcore/decryptcore.c, line 68
- sbin/dump/tape.c, line 546
- sbin/fsck/fsck.c, line 395
- sbin/hastd/control.c, line 124
- sbin/hastd/hastd.c, line 896
- sbin/init/init.c, 9 times
- sbin/ipfw/main.c, line 592
- sbin/mdmfs/mdmfs.c, line 809
- sbin/mount/mount.c, line 162
- sbin/pfctl/tests/pfctl_test.c, line 165
- sbin/swapon/swapon.c, line 736
- sys/contrib/openzfs/cmd/zed/zed_exec.c, line 134
- sys/contrib/openzfs/cmd/ztest/ztest.c, line 7522
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, line 929
- sys/contrib/openzfs/tests/zfs-tests/cmd/user_ns_exec/user_ns_exec.c, line 173
- sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/xattrtest.c, line 283
- tests/sys/fifo/fifo_open.c, 10 times
- tests/sys/file/flock_helper.c, line 120
- tests/sys/file/newfileops_on_fork_test.c, line 81
- tests/sys/kern/kern_descrip_test.c, line 134
- tests/sys/kern/kill_zombie.c, line 55
- tests/sys/kern/pdeathsig.c, 5 times
- tests/sys/kern/pipe/pipe_reverse_test.c, line 141
- tests/sys/kern/pipe/pipe_wraparound_test.c, line 132
- tests/sys/kern/ptrace_test.c, 157 times
- tests/sys/kern/reaper.c, 22 times
- tests/sys/kern/waitpid_nohang.c, 2 times
- tests/sys/netmap/ctrl-api-test.c, line 119
- tests/sys/posixshm/posixshm_test.c, 5 times
- tests/sys/vm/mlock_test.c, 2 times
- tools/regression/capsicum/syscalls/cap_fcntls_limit.c, 6 times
- tools/regression/capsicum/syscalls/cap_getmode.c, line 84
- tools/regression/capsicum/syscalls/cap_ioctls_limit.c, 6 times
- tools/regression/p1003_1b/yield.c, line 171
- tools/regression/posixsem/posixsem.c, 2 times
- tools/regression/posixsem2/semtest.c, 2 times
- tools/regression/priv/main.c, line 510
- tools/regression/priv/priv_sched_rtprio.c, line 319
- tools/regression/priv/priv_sched_setpriority.c, line 163
- tools/regression/security/cap_test/cap_test.c, line 107
- tools/regression/security/cap_test/cap_test_capmode.c, line 161
- tools/regression/security/cap_test/cap_test_pdfork.c, line 106
- tools/regression/security/cap_test/cap_test_pdkill.c, line 94
- tools/regression/security/proc_to_proc/scenario.c, 2 times
- tools/regression/sigqueue/sigqtest2/sigqtest2.c, line 27
- tools/regression/sockets/accept_fd_leak/accept_fd_leak.c, line 199
- tools/regression/sockets/sendfile/sendfile.c, line 440
- tools/regression/sockets/udp_pingpong/udp_pingpong.c, line 554
- tools/regression/sockets/unix_cmsg/uc_common.c, line 560
- tools/regression/sockets/unix_gc/unix_gc.c, line 777
- tools/regression/sysvmsg/msgtest.c, line 222
- tools/regression/sysvshm/shmtest.c, line 186
- tools/test/popss/popss.c, 2 times
- tools/test/pthread_vfork/pthread_vfork_test.c, line 57
- tools/test/ptrace/scescx.c, 5 times
- tools/tools/crypto/cryptotest.c, line 512
- tools/tools/netrate/http/http.c, line 345
- tools/tools/netrate/httpd/httpd.c, line 305
- tools/tools/netrate/juggle/juggle.c, line 442
- tools/tools/netrate/tcpp/tcpp_client.c, line 318
- tools/tools/netrate/tcpp/tcpp_server.c, line 346
- tools/tools/syscall_timing/syscall_timing.c, 8 times
- usr.bin/apply/apply.c, line 241
- usr.bin/find/function.c, line 680
- usr.bin/gcore/elfcore.c, line 218
- usr.bin/lockf/lockf.c, line 161
- usr.bin/login/login.c, line 570
- usr.bin/m4/gnum4.c, line 675
- usr.bin/mail/popen.c, 2 times
- usr.bin/rpcgen/rpc_scan.c, line 169
- usr.bin/script/script.c, line 320
- usr.bin/sdiff/edit.c, line 65
- usr.bin/sdiff/sdiff.c, line 424
- usr.bin/su/su.c, line 458
- usr.bin/timeout/timeout.c, line 285
- usr.bin/truss/setup.c, 3 times
- usr.bin/xargs/xargs.c, line 637
- usr.bin/xinstall/xinstall.c, line 1342
- usr.sbin/apmd/apmd.c, 2 times
- usr.sbin/cron/cron/cron.c, line 489
- usr.sbin/cron/cron/do_command.c, line 667
- usr.sbin/daemon/daemon.c, line 571
- usr.sbin/edquota/edquota.c, line 465
- usr.sbin/jail/command.c, line 260
- usr.sbin/lpr/lpd/lpd.c, line 259
- usr.sbin/newsyslog/newsyslog.c, line 2110
- usr.sbin/pkg/pkg.c, line 164
- usr.sbin/ppp/bundle.c, line 1810
- usr.sbin/ppp/chat.c, line 773
- usr.sbin/ppp/command.c, line 715
- usr.sbin/ppp/exec.c, line 353
- usr.sbin/pw/pw_utils.c, line 92
- usr.sbin/pw/pwupd.c, line 80
- usr.sbin/rwhod/rwhod.c, line 536
- usr.sbin/syslogd/syslogd.c, line 3717
- usr.sbin/uefisign/uefisign.c, line 328
- usr.sbin/ypldap/ypldap.c, line 80