Defined in 2 files as a prototype:
Defined in 5 files as a macro:
Defined in 3 files as a function:
Referenced in 309 files:
- bin/cp/cp.c, line 202
- bin/csh/csh.c, line 237
- bin/ksh/main.c, line 279
- bin/ksh/misc.c, line 324
- bin/ls/ls.c, line 150
- bin/ps/ps.c, line 231
- bin/rcp/rcp.c, line 150
- bin/sh/expand.c, line 442
- bin/sh/main.c, line 132
- bin/sh/options.c, 2 times
- crypto/dist/ipsec-tools/src/racoon/safefile.c, 2 times
- crypto/external/bsd/heimdal/dist/kcm/client.c, line 180
- crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-fortuna.c, line 529
- crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c, line 843
- crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/kafs/afssys.c, line 139
- crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c, line 449
- crypto/external/bsd/heimdal/dist/lib/krb5/expand_path.c, line 299
- crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c, line 71
- crypto/external/bsd/heimdal/dist/lib/roken/get_default_username.c, line 65
- crypto/external/bsd/heimdal/dist/lib/roken/geteuid.c, line 45
- crypto/external/bsd/heimdal/dist/lib/roken/glob.c, line 370
- crypto/external/bsd/heimdal/dist/lib/roken/issuid.c, line 208
- crypto/external/bsd/openssh/dist/authfile.c, line 102
- crypto/external/bsd/openssh/dist/channels.c, 2 times
- crypto/external/bsd/openssh/dist/hostfile.c, line 486
- crypto/external/bsd/openssh/dist/misc.c, line 2578
- crypto/external/bsd/openssh/dist/readconf.c, line 2347
- crypto/external/bsd/openssh/dist/scp.c, line 579
- crypto/external/bsd/openssh/dist/servconf.c, 3 times
- crypto/external/bsd/openssh/dist/session.c, 3 times
- crypto/external/bsd/openssh/dist/sftp-server-main.c, 2 times
- crypto/external/bsd/openssh/dist/sftp.c, line 1695
- crypto/external/bsd/openssh/dist/ssh-add.c, 3 times
- crypto/external/bsd/openssh/dist/ssh-agent.c, 2 times
- crypto/external/bsd/openssh/dist/ssh-keygen.c, 2 times
- crypto/external/bsd/openssh/dist/ssh-keysign.c, line 207
- crypto/external/bsd/openssh/dist/ssh.c, 11 times
- crypto/external/bsd/openssh/dist/sshconnect2.c, line 2358
- crypto/external/bsd/openssh/dist/sshd.c, line 431
- crypto/external/bsd/openssh/dist/uidswap.c, 2 times
- crypto/external/bsd/openssl.old/dist/crypto/uid.c, line 52
- crypto/external/bsd/openssl.old/lib/libcrypto/rnd_keys.c, line 81
- crypto/external/bsd/openssl.old/lib/libdes/ornd_keys.c, line 82
- crypto/external/bsd/openssl/dist/crypto/uid.c, line 52
- crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c, line 81
- crypto/external/bsd/openssl/lib/libdes/ornd_keys.c, line 82
- crypto/external/cpl/trousers/dist/src/tspi/tsp_policy.c, 2 times
- dist/pf/usr.sbin/authpf/authpf.c, 2 times
- dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c, line 727
- external/bsd/am-utils/dist/fsinfo/fsinfo.c, line 202
- external/bsd/cron/dist/crontab.c, 2 times
- external/bsd/cron/dist/externs.h, line 85
- external/bsd/fetch/dist/libfetch/common.c, line 916
- external/bsd/ipf/dist/ip_fil.c, line 84
- external/bsd/ipf/dist/tools/ipfstat.c, 2 times
- external/bsd/ipf/dist/tools/ipnat.c, 2 times
- external/bsd/kyua-cli/dist/engine/test_case_atf_helpers.cpp, line 115
- external/bsd/kyua-cli/dist/utils/passwd.cpp, line 109
- external/bsd/kyua-cli/dist/utils/passwd_test.cpp, 8 times
- external/bsd/kyua-testers/dist/cli_test.c, line 53
- external/bsd/kyua-testers/dist/run.c, 6 times
- external/bsd/kyua-testers/dist/run_test.c, 9 times
- external/bsd/libarchive/dist/cpio/test/test_format_newc.c, line 96
- external/bsd/libarchive/dist/libarchive/archive_write_set_format_iso9660.c, 2 times
- external/bsd/libarchive/dist/libarchive/test/test_write_disk_perms.c, 19 times
- external/bsd/libbind/dist/isc/eventlib.c, line 583
- external/bsd/libbind/dist/isc/logging.c, line 637
- external/bsd/libevent/dist/evutil.c, line 2455
- external/bsd/nsd/dist/nsd.c, line 1414
- external/bsd/ntp/dist/ntpd/ntpd.c, line 930
- external/bsd/ntp/dist/sntp/libevent/evutil.c, line 2351
- external/bsd/nvi/dist/common/exf.c, line 1158
- external/bsd/nvi/dist/common/recover.c, 2 times
- external/bsd/nvi/dist/ex/ex_cd.c, line 69
- external/bsd/nvi/dist/ex/ex_script.c, line 729
- external/bsd/openldap/dist/libraries/libldap/init.c, line 772
- external/bsd/openldap/dist/servers/slapd/user.c, line 129
- external/bsd/pam-u2f/dist/pam-u2f.c, line 392
- external/bsd/pam-u2f/dist/pamu2fcfg/pamu2fcfg.c, line 104
- external/bsd/ppp/dist/pppd/auth.c, 3 times
- external/bsd/ppp/dist/pppd/eap.c, line 1583
- external/bsd/ppp/dist/pppd/main.c, 2 times
- external/bsd/ppp/dist/pppd/options.c, 4 times
- external/bsd/ppp/dist/pppd/tty.c, line 929
- external/bsd/tcpdump/dist/tcpdump.c, 6 times
- external/bsd/tmux/dist/cmd-queue.c, line 572
- external/bsd/tmux/dist/cmd-server-access.c, line 97
- external/bsd/tmux/dist/compat/daemon-darwin.c, line 70
- external/bsd/tmux/dist/compat/getpeereid.c, line 52
- external/bsd/tmux/dist/format.c, 2 times
- external/bsd/tmux/dist/server-acl.c, 2 times
- external/bsd/tmux/dist/tmux.c, 3 times
- external/bsd/top/dist/commands.c, 3 times
- external/bsd/top/dist/machine/m_decosf1.c, line 975
- external/bsd/top/dist/machine/m_sunos5.c, 2 times
- external/bsd/top/dist/top.c, 2 times
- external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c, line 1497
- external/gpl2/gettext/dist/djgpp/getpwnam.c, line 27
- external/gpl2/gettext/dist/gettext-runtime/intl/dcigettext.c, 3 times
- external/gpl2/gettext/dist/gettext-tools/src/msginit.c, 2 times
- external/gpl2/gmake/dist/misc.c, 2 times
- external/gpl2/grep/dist/intl/dcigettext.c, 3 times
- external/gpl2/lvm2/dist/tools/lvmcmdline.c, 2 times
- external/gpl2/rcs/dist/src/rcsutil.c, line 1317
- external/gpl2/texinfo/dist/info/tilde.c, line 199
- external/gpl2/texinfo/dist/intl/dcigettext.c, 3 times
- external/gpl2/xcvs/dist/src/filesubr.c, line 850
- external/gpl2/xcvs/dist/src/run.c, line 248
- external/gpl2/xcvs/dist/src/server.c, 3 times
- external/gpl2/xcvs/dist/src/subr.c, line 314
- external/gpl3/binutils.old/dist/bfd/archive.c, 2 times
- external/gpl3/binutils.old/dist/intl/dcigettext.c, 3 times
- external/gpl3/binutils/dist/bfd/archive.c, 2 times
- external/gpl3/binutils/dist/bfd/coff-rs6000.c, 2 times
- external/gpl3/binutils/dist/gprofng/libcollector/linetrace.c, line 558
- external/gpl3/binutils/dist/gprofng/src/DbeSession.cc, line 492
- external/gpl3/binutils/dist/intl/dcigettext.c, 3 times
- external/gpl3/gcc.old/dist/intl/dcigettext.c, 3 times
- external/gpl3/gcc.old/dist/libgfortran/intrinsics/getXid.c, 4 times
- external/gpl3/gcc.old/dist/libgfortran/runtime/environ.c, line 54
- external/gpl3/gcc.old/dist/libgomp/plugin/plugin-gcn.c, line 96
- external/gpl3/gcc.old/dist/libgomp/secure_getenv.h, line 51
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc, line 51
- external/gpl3/gcc/dist/intl/dcigettext.c, 3 times
- external/gpl3/gcc/dist/libgfortran/intrinsics/getXid.c, 4 times
- external/gpl3/gcc/dist/libgfortran/runtime/environ.c, line 54
- external/gpl3/gcc/dist/libgomp/plugin/plugin-gcn.c, line 96
- external/gpl3/gcc/dist/libgomp/secure_getenv.h, line 51
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc, line 51
- external/gpl3/gdb.old/dist/bfd/archive.c, 2 times
- external/gpl3/gdb.old/dist/gdb/aarch64-linux-tdep.c, line 1233
- external/gpl3/gdb.old/dist/gdb/procfs.c, 2 times
- external/gpl3/gdb.old/dist/gdb/remote-fileio.c, line 949
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/recvmsg-reverse.c, line 78
- external/gpl3/gdb.old/dist/intl/dcigettext.c, 3 times
- external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/rlfe.c, line 210
- external/gpl3/gdb.old/dist/readline/readline/shell.c, line 168
- external/gpl3/gdb.old/dist/sim/bfin/interp.c, 2 times
- external/gpl3/gdb.old/dist/sim/cris/traps.c, line 1610
- external/gpl3/gdb.old/dist/sim/m32r/traps-linux.c, line 364
- external/gpl3/gdb.old/dist/sim/ppc/emul_netbsd.c, 2 times
- external/gpl3/gdb.old/dist/sim/ppc/emul_unix.c, 2 times
- external/gpl3/gdb/dist/bfd/archive.c, 2 times
- external/gpl3/gdb/dist/gdb/aarch64-linux-tdep.c, line 1233
- external/gpl3/gdb/dist/gdb/procfs.c, 2 times
- external/gpl3/gdb/dist/gdb/remote-fileio.c, line 949
- external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/recvmsg-reverse.c, line 78
- external/gpl3/gdb/dist/intl/dcigettext.c, 3 times
- external/gpl3/gdb/dist/readline/readline/examples/rlfe/rlfe.c, line 210
- external/gpl3/gdb/dist/readline/readline/shell.c, line 168
- external/gpl3/gdb/dist/sim/bfin/interp.c, 2 times
- external/gpl3/gdb/dist/sim/cris/traps.c, line 1610
- external/gpl3/gdb/dist/sim/m32r/traps-linux.c, line 364
- external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c, 2 times
- external/gpl3/gdb/dist/sim/ppc/emul_unix.c, 2 times
- external/ibm-public/postfix/dist/src/master/master.c, 2 times
- external/ibm-public/postfix/dist/src/master/master_listen.c, 4 times
- external/ibm-public/postfix/dist/src/master/master_wakeup.c, line 148
- external/ibm-public/postfix/dist/src/pickup/pickup.c, line 588
- external/ibm-public/postfix/dist/src/postalias/postalias.c, line 343
- external/ibm-public/postfix/dist/src/postdrop/postdrop.c, line 329
- external/ibm-public/postfix/dist/src/postfix/postfix.c, line 535
- external/ibm-public/postfix/dist/src/postlog/postlog.c, line 349
- external/ibm-public/postfix/dist/src/postmap/postmap.c, line 436
- external/ibm-public/postfix/dist/src/postqueue/postqueue.c, 4 times
- external/ibm-public/postfix/dist/src/postsuper/postsuper.c, line 1346
- external/ibm-public/postfix/dist/src/qmqpd/qmqpd_peer.c, 2 times
- external/ibm-public/postfix/dist/src/sendmail/sendmail.c, 4 times
- external/ibm-public/postfix/dist/src/smtpd/smtpd.c, 4 times
- external/ibm-public/postfix/dist/src/smtpd/smtpd.h, 2 times
- external/ibm-public/postfix/dist/src/smtpd/smtpd_peer.c, 2 times
- external/ibm-public/postfix/dist/src/util/dict_stream.c, line 139
- external/ibm-public/postfix/dist/src/util/fullname.c, line 74
- external/ibm-public/postfix/dist/src/util/unsafe.c, 2 times
- external/ibm-public/postfix/dist/src/util/username.c, line 45
- external/mit/libuv/dist/test/run-tests.c, line 256
- external/mit/libuv/dist/test/test-spawn.c, 3 times
- external/mpl/bind/dist/bin/named/unix/os.c, 4 times
- external/public-domain/sqlite/dist/shell.c, line 15783
- games/atc/log.c, 2 times
- games/battlestar/init.c, line 84
- games/canfield/canfield/canfield.c, line 1645
- games/canfield/cfscores/cfscores.c, line 80
- games/ching/castching/castching.c, line 85
- games/dm/dm.c, line 319
- games/hack/hack.end.c, 2 times
- games/hack/hack.main.c, 2 times
- games/hack/hack.pager.c, line 450
- games/hack/hack.save.c, 2 times
- games/hunt/hunt/connect.c, line 54
- games/larn/main.c, line 99
- games/phantasia/main.c, 2 times
- games/robots/score.c, line 133
- games/rogue/machdep.c, line 317
- games/sail/main.c, line 87
- games/sail/misc.c, line 231
- games/snake/snake/snake.c, line 526
- games/tetris/scores.c, line 725
- games/warp/intrp.c, line 63
- games/warp/sig.c, line 84
- lib/libc/gen/extattr.c, line 314
- lib/libc/gen/glob.c, 2 times
- lib/libc/gmon/gmon.c, line 401
- lib/libc/stdlib/malloc.c, line 338
- lib/libedit/filecomplete.c, 3 times
- lib/libedit/readline.c, line 241
- lib/libpam/modules/pam_ksu/pam_ksu.c, line 223
- lib/libpam/modules/pam_rootok/pam_rootok.c, line 61
- lib/libpam/modules/pam_self/pam_self.c, line 77
- lib/libpam/modules/pam_unix/pam_unix.c, 2 times
- lib/librmt/rmtlib.c, line 347
- lib/libutil/passwd.c, 2 times
- lib/libutil/pty.c, line 116
- libexec/ld.elf_so/rtld.c, line 569
- libexec/mail.local/mail.local.c, line 114
- libexec/rpc.rwalld/rwalld.c, line 87
- libexec/tftpd/tftpd.c, line 173
- libexec/utmp_update/utmp_update.c, line 85
- regress/sys/kern/unfdpass/unfdpass.c, line 309
- sbin/disklabel/main.c, line 1586
- sbin/dump/dumprmt.c, line 118
- sbin/init/init.c, line 238
- sbin/mount/mount.c, line 316
- sbin/mount_portal/pt_file.c, 5 times
- sbin/mount_portal/pt_filter.c, 2 times
- sbin/ping/ping_hostops.c, line 51
- sbin/ping/prog_ops.h, line 75
- sbin/ping6/ping6_hostops.c, line 53
- sbin/ping6/prog_ops.h, line 84
- sbin/reboot/reboot.c, line 151
- sbin/restore/dirs.c, line 622
- sbin/restore/tape.c, line 659
- sbin/shutdown/shutdown.c, line 224
- share/examples/refuse/ian/libfetch/common.c, line 685
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_posix_libcdep.cc, line 53
- sys/rump/librump/rumpkern/rump_syscalls.c, line 480
- tests/dev/audio/audiotest.c, line 1234
- tests/include/t_paths.c, line 135
- tests/lib/libc/gen/posix_spawn/h_spawn.c, 2 times
- tests/lib/libc/gen/t_siginfo.c, line 150
- tests/lib/libc/sys/t_msgctl.c, 2 times
- tests/lib/libc/sys/t_ptrace_core_wait.h, line 199
- tests/lib/libc/sys/t_ptrace_sigchld.c, line 94
- tests/lib/libc/sys/t_setuid.c, 3 times
- tests/lib/libc/sys/t_stat.c, line 254
- tests/lib/libc/sys/t_wait.c, 9 times
- tests/lib/libc/ttyio/t_ptm.c, 2 times
- usr.bin/at/privs.c, line 89
- usr.bin/calendar/calendar.c, line 142
- usr.bin/chpass/chpass.c, line 128
- usr.bin/chpass/edit.c, line 140
- usr.bin/error/filter.c, line 80
- usr.bin/from/from.c, line 97
- usr.bin/ftp/main.c, line 474
- usr.bin/id/id.c, 3 times
- usr.bin/lock/lock.c, 2 times
- usr.bin/login/login.c, 2 times
- usr.bin/login/login_pam.c, 2 times
- usr.bin/mail/complete.c, line 432
- usr.bin/mail/lex.c, line 209
- usr.bin/mail/v7.local.c, line 96
- usr.bin/make/main.c, line 1399
- usr.bin/msgs/msgs.c, line 178
- usr.bin/newgrp/grutil.c, line 114
- usr.bin/newgrp/newgrp.c, 3 times
- usr.bin/passwd/local_passwd.c, 2 times
- usr.bin/passwd/pam_passwd.c, line 79
- usr.bin/passwd/yp_passwd.c, 2 times
- usr.bin/patch/inp.c, line 184
- usr.bin/pmap/main.c, line 125
- usr.bin/quota/quota.c, line 118
- usr.bin/rdist/main.c, line 94
- usr.bin/resize/resize.c, line 379
- usr.bin/rfcomm_sppd/rfcomm_sppd.c, line 325
- usr.bin/rlogin/rlogin.c, line 209
- usr.bin/rsh/rsh.c, 2 times
- usr.bin/rwall/rwall.c, line 170
- usr.bin/skeyinfo/skeyinfo.c, line 60
- usr.bin/skeyinit/skeyinit.c, 4 times
- usr.bin/su/su.c, line 184
- usr.bin/su/su_pam.c, line 178
- usr.bin/talk/get_names.c, line 73
- usr.bin/telnet/commands.c, 2 times
- usr.bin/tip/tip.c, line 145
- usr.bin/tip/value.c, line 258
- usr.bin/vacation/vacation.c, 3 times
- usr.bin/wall/wall.c, 3 times
- usr.bin/who/who.c, line 254
- usr.bin/write/write.c, line 85
- usr.sbin/bthcid/bthcid.c, line 101
- usr.sbin/edquota/edquota.c, 4 times
- usr.sbin/kgmon/kgmon.c, 5 times
- usr.sbin/lpr/common_source/rmjob.c, line 92
- usr.sbin/lpr/lpc/lpc.c, 2 times
- usr.sbin/lpr/lpd/lpd.c, line 157
- usr.sbin/lpr/lpq/lpq.c, line 84
- usr.sbin/lpr/lpr/lpr.c, 2 times
- usr.sbin/lpr/lprm/lprm.c, 2 times
- usr.sbin/mrinfo/mrinfo.c, line 333
- usr.sbin/mtrace/mtrace.c, line 1163
- usr.sbin/mtree/create.c, line 120
- usr.sbin/puffs/mount_9p/ninepuffs.c, line 266
- usr.sbin/quotacheck/quotacheck.c, line 514
- usr.sbin/rwhod/rwhod.c, line 137
- usr.sbin/sdpd/main.c, line 162
- usr.sbin/sliplogin/sliplogin.c, line 229
- usr.sbin/traceroute/traceroute.c, 3 times
- usr.sbin/traceroute6/traceroute6.c, 2 times