Defined in 5 files as a prototype:
Defined in 3 files as a macro:
Defined in 5 files as a function:
Referenced in 240 files:
- crypto/external/bsd/openssh/dist/ssh-agent.c, line 1334
- crypto/external/bsd/openssh/dist/sshd.c, line 1245
- crypto/external/bsd/openssh/dist/sshkey-xmss.c, line 492
- crypto/external/bsd/openssl.old/dist/test/ssltestlib.c, line 28
- crypto/external/bsd/openssl/dist/e_os.h, 3 times
- dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c, line 1087
- external/apache2/llvm/dist/libcxx/include/__support/ibm/nanosleep.h, line 42
- external/apache2/mDNSResponder/dist/mDNSShared/dnssd_clientstub.c, line 752
- external/bsd/am-utils/dist/conf/mtab/mtab_linux.c, 2 times
- external/bsd/kyua-cli/dist/engine/test_case_test.cpp, 2 times
- external/bsd/kyua-cli/dist/utils/datetime_test.cpp, line 253
- external/bsd/libevent/dist/evutil_time.c, line 177
- external/bsd/libfido2/dist/fuzz/wrap.c, line 577
- external/bsd/libfido2/dist/src/u2f.c, 3 times
- external/bsd/ntp/dist/lib/isc/tests/isctest.c, line 172
- external/bsd/ntp/dist/lib/isc/unix/entropy.c, line 189
- external/bsd/ntp/dist/ntpd/refclock_gpsvme.c, 2 times
- external/bsd/ntp/dist/sntp/libevent/evutil_time.c, line 137
- external/bsd/ntp/dist/util/pps-api.c, line 91
- external/bsd/openldap/dist/servers/slapd/syslog.c, line 154
- external/bsd/ppp/dist/chat/chat.c, 2 times
- external/bsd/tmux/dist/tty.c, line 498
- external/bsd/unbound/dist/testcode/asynclook.c, line 543
- external/bsd/unbound/dist/testcode/checklocks.c, line 554
- external/bsd/wpa/dist/src/utils/os_internal.c, line 31
- external/bsd/wpa/dist/src/utils/os_unix.c, line 55
- external/gpl2/lvm2/dist/daemons/cmirrord/cluster.c, 13 times
- external/gpl2/lvm2/dist/test/harness.c, line 106
- external/gpl3/binutils/dist/gprofng/src/collctrl.cc, line 1912
- external/gpl3/binutils/dist/gprofng/src/ipcio.cc, line 930
- external/gpl3/gcc.old/dist/gcc/config/gcn/gcn-run.c, line 776
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc, line 140
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_rtems.cc, line 73
- external/gpl3/gcc.old/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gcc.old/dist/libstdc++-v3/src/c++11/thread.cc, line 207
- external/gpl3/gcc/dist/gcc/config/gcn/gcn-run.c, line 776
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc, line 140
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_rtems.cc, line 73
- external/gpl3/gcc/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gcc/dist/libstdc++-v3/src/c++11/thread.cc, line 207
- external/gpl3/gdb.old/dist/gdb/fbsd-nat.c, line 1586
- external/gpl3/gdb.old/dist/gdb/linux-nat.c, line 598
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/attach-non-pgrp-leader.c, line 41
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.c, line 23
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/interrupt-daemon-attach.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/watch_thread_num.c, line 85
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.mi/ns-stale-regcache.c, line 27
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.mi/nsintrall.c, line 60
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.mi/nsmoribund.c, line 42
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.multi/hangout.c, line 41
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.multi/hello.c, line 62
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.multi/multi-term-settings.c, line 48
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/async.c, line 35
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/break-while-running.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/create-fail.c, line 107
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/fork-thread-pending.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c, line 107
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/hand-call-new-thread.c, line 26
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/kill.c, line 37
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/local-watch-wrong-thread.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/multiple-step-overs.c, line 88
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/next-bp-other-thread.c, line 30
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.c, 3 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/non-ldr-exc-3.c, line 58
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/non-ldr-exc-4.c, line 54
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/queue-signal.c, 3 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/reconnect-signal.c, line 38
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/schedlock.c, line 56
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/signal-command-handle-nopass.c, line 35
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.c, line 51
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/signal-delivered-right-thread.c, line 37
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.c, line 38
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 40
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/tid-reuse.c, line 47
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/watchthreads.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/watchthreads2.c, 2 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/wp-replication.c, 2 times
- external/gpl3/gdb.old/dist/gdbserver/tracepoint.cc, line 7339
- external/gpl3/gdb.old/dist/gnulib/import/unistd.in.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/dist/gdb/fbsd-nat.c, line 1586
- external/gpl3/gdb/dist/gdb/linux-nat.c, line 598
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/attach-non-pgrp-leader.c, line 41
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.c, line 23
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/interrupt-daemon-attach.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/watch_thread_num.c, line 85
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/ns-stale-regcache.c, line 27
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/nsintrall.c, line 60
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/nsmoribund.c, line 42
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/hangout.c, line 41
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/hello.c, line 62
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/multi-term-settings.c, line 48
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/async.c, line 35
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/break-while-running.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/create-fail.c, line 107
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/fork-thread-pending.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c, line 107
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/hand-call-new-thread.c, line 26
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/kill.c, line 37
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/local-watch-wrong-thread.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/multiple-step-overs.c, line 88
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/next-bp-other-thread.c, line 30
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.c, 3 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exc-3.c, line 58
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exc-4.c, line 54
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/queue-signal.c, 3 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/reconnect-signal.c, line 38
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/schedlock.c, line 56
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-command-handle-nopass.c, line 35
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.c, line 51
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-delivered-right-thread.c, line 37
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.c, line 38
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 40
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/tid-reuse.c, line 47
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/watchthreads.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/watchthreads2.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/wp-replication.c, 2 times
- external/gpl3/gdb/dist/gdbserver/tracepoint.cc, line 7339
- external/gpl3/gdb/dist/gnulib/import/unistd.in.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 9 times
- external/ibm-public/postfix/dist/src/smtpstone/qmqp-source.c, line 316
- external/ibm-public/postfix/dist/src/smtpstone/smtp-source.c, line 447
- external/mpl/bind/dist/bin/named/fuzz.c, 7 times
- external/mpl/bind/dist/bin/tests/system/rpz/dnsrps.c, line 149
- external/mpl/bind/dist/bin/tools/mdig.c, line 2228
- external/mpl/bind/dist/lib/dns/tests/db_test.c, 2 times
- external/mpl/bind/dist/lib/isc/netmgr/uv-compat.h, line 77
- external/mpl/bind/dist/lib/isc/task.c, 2 times
- external/public-domain/sqlite/dist/sqlite3.c, 4 times
- games/hack/hack.terminfo.c, line 293
- games/hals_end/hals_end.c, 5 times
- games/larn/nap.c, line 22
- games/rain/rain.c, line 144
- games/robots/move.c, line 105
- games/snake/snake/snake.c, line 101
- games/worms/worms.c, line 497
- lib/libc/gen/usleep.c, 2 times
- lib/libc/gen/xsyslog.c, line 345
- lib/librumpclient/rumpclient.c, line 190
- lib/libskey/skeylogin.c, line 285
- lib/libukfs/ukfs.c, line 607
- libexec/ftpd/ftpd.c, 2 times
- regress/sys/fs/lfs/9994/9994_f.c, line 184
- sbin/amrctl/amrctl.c, line 184
- sbin/newfs/newfs.c, line 727
- sys/arch/evbarm/stand/boot2440/dev_sdmmc.c, line 347
- sys/arch/evbarm/stand/boot2440/dm9000.c, 3 times
- sys/arch/usermode/usermode/thunk.c, line 347
- sys/dev/isapnp/isapnpvar.h, line 57
- sys/external/bsd/acpica/dist/os_specific/service_layers/osunixxf.c, 4 times
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_posix_libcdep.cc, line 144
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_rtems.cc, line 71
- sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/tsan_interceptors.cc, 4 times
- sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/tsan_thread.cc, 2 times
- sys/lib/libsa/net.c, line 66
- sys/rump/net/lib/libshmif/shmif_user.c, line 202
- tests/dev/audio/audiotest.c, 9 times
- tests/dev/md/h_mdserv.c, line 42
- tests/dev/sysmon/t_swwdog.c, line 109
- tests/fs/common/fstest_nfs.c, line 306
- tests/fs/common/fstest_puffs.c, 2 times
- tests/fs/nfs/t_mountd.c, line 100
- tests/kernel/h_segv.c, line 138
- tests/kernel/t_lockf.c, 3 times
- tests/kernel/t_sysv.c, line 581
- tests/kernel/t_zombie.c, line 122
- tests/lib/libc/sys/t_fork.c, line 128
- tests/lib/libc/sys/t_ptrace_wait.h, 5 times
- tests/lib/libpthread/t_sem.c, line 195
- tests/lib/librumpclient/h_execthr.c, line 197
- tests/lib/semaphore/sem.c, 2 times
- tests/net/icmp/t_ping.c, 2 times
- tests/net/mcast/mcast.c, line 300
- tests/rump/rumpkern/h_client/h_reconcli.c, line 33
- tests/rump/rumpkern/h_client/h_simplecli.c, line 23
- tests/rump/rumpkern/h_client/h_stresscli.c, line 193
- usr.bin/ftp/fetch.c, line 1799
- usr.bin/ftp/ftp.c, line 671
- usr.bin/skeyinit/skeyinit.c, line 360
- usr.bin/tip/aculib/ventel.c, 3 times
- usr.sbin/apmd/apmd.c, line 239
- usr.sbin/bta2dpd/bta2dpd/bta2dpd.c, line 867
- usr.sbin/bta2dpd/bta2dpd/sbc_encode.c, 2 times
- usr.sbin/moused/moused.c, 15 times
- usr.sbin/spray/spray.c, line 159
- usr.sbin/syslogd/syslogd.c, line 2628
- usr.sbin/tpctl/tp.c, line 188
- usr.sbin/traceroute/traceroute.c, line 943