Defined in 4 files as a prototype:
Defined in 2 files as a macro:
Defined in 3 files as a function:
Referenced in 218 files:
- bin/ls/ls.c, line 455
- bin/ps/ps.c, 2 times
- bin/sh/options.c, 2 times
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c, line 1388
- contrib/amd/fsinfo/fsinfo.c, line 200
- contrib/apr/user/unix/userinfo.c, line 95
- contrib/binutils/bfd/archive.c, 2 times
- contrib/blacklist/bin/conf.c, line 415
- contrib/capsicum-test/capability-fd.cc, 2 times
- contrib/capsicum-test/capmode.cc, 3 times
- contrib/capsicum-test/capsicum-test.h, line 255
- contrib/capsicum-test/fcntl.cc, line 35
- contrib/capsicum-test/linux.cc, line 1018
- contrib/capsicum-test/procdesc.cc, line 535
- contrib/capsicum-test/syscalls.h, line 91
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc, line 53
- contrib/dma/dma.c, 2 times
- contrib/dma/spool.c, line 242
- contrib/dma/util.c, line 208
- contrib/ee/ee.c, line 4898
- contrib/gdb/gdb/procfs.c, 3 times
- contrib/gdb/gdb/remote-fileio.c, line 1132
- contrib/ipfilter/ip_fil.c, line 66
- contrib/ipfilter/tools/ipfstat.c, 2 times
- contrib/ipfilter/tools/ipnat.c, 2 times
- contrib/libarchive/cpio/test/test_format_newc.c, line 95
- contrib/libarchive/libarchive/archive_write_set_format_iso9660.c, 2 times
- contrib/libarchive/libarchive/test/test_write_disk_perms.c, 19 times
- contrib/libevent/evutil.c, line 2379
- contrib/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp, line 713
- contrib/llvm/tools/lldb/source/Host/freebsd/Host.cpp, line 153
- contrib/llvm/tools/lldb/source/Host/netbsd/Host.cpp, line 156
- contrib/llvm/tools/lldb/source/Host/openbsd/Host.cpp, line 164
- contrib/llvm/tools/lldb/source/Host/posix/HostInfoPosix.cpp, line 114
- contrib/mtree/create.c, line 120
- contrib/ncurses/ncurses/tinfo/access.c, 2 times
- contrib/netbsd-tests/include/t_paths.c, line 135
- contrib/netbsd-tests/lib/libc/gen/t_siginfo.c, line 155
- contrib/netbsd-tests/lib/libc/sys/t_msgctl.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_setuid.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, line 254
- contrib/netbsd-tests/lib/libc/sys/t_wait.c, 9 times
- contrib/netbsd-tests/lib/libc/ttyio/t_ptm.c, 2 times
- contrib/ntp/ntpd/ntpd.c, line 866
- contrib/ntp/sntp/libevent/evutil.c, line 2349
- contrib/nvi/common/exf.c, 2 times
- contrib/nvi/common/recover.c, line 349
- contrib/nvi/common/util.c, line 175
- contrib/nvi/ex/ex_cd.c, line 63
- contrib/ofed/libibverbs/sysfs.c, line 59
- contrib/openbsm/bin/auditdistd/sandbox.c, line 195
- contrib/openbsm/libauditd/auditd_lib.c, line 1075
- contrib/openbsm/libbsm/bsm_token.c, 2 times
- contrib/openbsm/libbsm/bsm_wrappers.c, 2 times
- contrib/opie/libopie/generator.c, line 68
- contrib/opie/libopie/lock.c, line 97
- contrib/opie/opieauto.c, line 277
- contrib/opie/opieinfo.c, line 81
- contrib/opie/opielogin.c, 3 times
- contrib/opie/opiepasswd.c, 4 times
- contrib/opie/opiesu.c, 3 times
- contrib/opie/opietest.c, 3 times
- contrib/pam_modules/pam_passwdqc/pam_passwdqc.c, 5 times
- contrib/pf/authpf/authpf.c, 2 times
- contrib/pf/ftp-proxy/ftp-proxy.c, line 698
- contrib/sendmail/editmap/editmap.c, line 119
- contrib/sendmail/libsm/t-shm.c, 2 times
- contrib/sendmail/mail.local/mail.local.c, 2 times
- contrib/sendmail/makemap/makemap.c, line 125
- contrib/sendmail/praliases/praliases.c, line 75
- contrib/sendmail/smrsh/smrsh.c, 7 times
- contrib/sendmail/src/deliver.c, 4 times
- contrib/sendmail/src/main.c, 11 times
- contrib/sendmail/src/recipient.c, 9 times
- contrib/sendmail/test/t_seteuid.c, 5 times
- contrib/sendmail/test/t_setreuid.c, 7 times
- contrib/sendmail/test/t_setuid.c, 5 times
- contrib/sendmail/vacation/vacation.c, 5 times
- contrib/smbfs/lib/smb/subr.c, line 320
- contrib/sqlite3/shell.c, line 16459
- contrib/tcp_wrappers/safe_finger.c, line 66
- contrib/tcpdump/tcpdump.c, 5 times
- contrib/tcsh/sh.c, line 370
- contrib/telnet/telnet/commands.c, 9 times
- contrib/tnftp/src/main.c, line 460
- contrib/traceroute/traceroute.c, line 555
- crypto/heimdal/appl/ftp/ftp/ftp.c, line 174
- crypto/heimdal/appl/ftp/ftp/main.c, line 138
- crypto/heimdal/appl/push/push.c, line 648
- crypto/heimdal/appl/rcp/rcp.c, line 110
- crypto/heimdal/appl/rsh/rsh.c, line 854
- crypto/heimdal/appl/su/su.c, 2 times
- crypto/heimdal/lib/hx509/softp11.c, line 826
- crypto/heimdal/lib/kafs/afskrb5.c, 2 times
- crypto/heimdal/lib/kafs/afssys.c, line 102
- crypto/heimdal/lib/krb5/config_file.c, line 442
- crypto/heimdal/lib/krb5/expand_path.c, line 303
- crypto/heimdal/lib/krb5/get_default_principal.c, line 69
- crypto/heimdal/lib/roken/get_default_username.c, line 63
- crypto/heimdal/lib/roken/geteuid.c, line 43
- crypto/heimdal/lib/roken/glob.c, line 368
- crypto/heimdal/lib/roken/issuid.c, line 46
- crypto/openssh/authfile.c, line 154
- crypto/openssh/channels.c, 2 times
- crypto/openssh/logintest.c, 3 times
- crypto/openssh/openbsd-compat/glob.c, 2 times
- crypto/openssh/platform.c, 5 times
- crypto/openssh/readconf.c, line 1790
- crypto/openssh/regress/check-perm.c, line 193
- crypto/openssh/scp.c, line 516
- crypto/openssh/servconf.c, 3 times
- crypto/openssh/session.c, 2 times
- crypto/openssh/sftp-server-main.c, 2 times
- crypto/openssh/sftp.c, line 1625
- crypto/openssh/ssh-add.c, 2 times
- crypto/openssh/ssh-agent.c, 2 times
- crypto/openssh/ssh-keygen.c, 2 times
- crypto/openssh/ssh-keysign.c, line 199
- crypto/openssh/ssh.c, 8 times
- crypto/openssh/sshd.c, 2 times
- crypto/openssh/uidswap.c, 4 times
- crypto/openssl/crypto/uid.c, line 46
- lib/libc/gen/glob-compat11.c, line 429
- lib/libc/gen/glob.c, line 460
- lib/libc/gen/posix_spawn.c, line 119
- lib/libedit/filecomplete.c, 3 times
- lib/libedit/readline.c, line 246
- lib/libfetch/common.c, line 1383
- lib/libipsec/test-policy.c, line 237
- lib/libpam/modules/pam_ksu/pam_ksu.c, line 198
- lib/libpam/modules/pam_rootok/pam_rootok.c, line 58
- lib/libpam/modules/pam_self/pam_self.c, line 71
- lib/libpam/modules/pam_unix/pam_unix.c, 3 times
- lib/libutil/login_class.c, line 556
- lib/libutil/pw_util.c, line 312
- lib/libypclnt/ypclnt_passwd.c, line 82
- libexec/ftpd/popen.c, line 144
- libexec/rpc.rwalld/rwalld.c, line 82
- libexec/talkd/talkd.c, line 92
- libexec/ulog-helper/ulog-helper.c, line 64
- release/picobsd/tinyware/login/pico-login.c, line 200
- release/picobsd/tinyware/oinit/oinit.c, line 884
- release/picobsd/tinyware/passwd/local_passwd.c, line 213
- release/picobsd/tinyware/passwd/passwd.c, 2 times
- release/picobsd/tinyware/passwd/pw_copy.c, line 159
- release/picobsd/tinyware/passwd/pw_util.c, line 213
- sbin/bsdlabel/bsdlabel.c, line 720
- sbin/dump/dumprmt.c, line 144
- sbin/dump/main.c, line 302
- sbin/init/init.c, line 213
- sbin/mksnap_ffs/mksnap_ffs.c, line 138
- sbin/mount/mount.c, line 483
- sbin/ping/ping.c, 2 times
- sbin/ping6/ping6.c, 5 times
- sbin/reboot/reboot.c, line 155
- sbin/restore/dirs.c, line 590
- sbin/restore/tape.c, 2 times
- sbin/shutdown/shutdown.c, line 230
- sys/security/audit/bsm_token.c, 2 times
- tests/sys/cddl/zfs/tests/ctime/ctime_001_pos.c, 2 times
- tests/sys/mac/bsdextended/ugidfw_test.c, line 207
- tools/regression/ethernet/ethermulti/ethermulti.c, 2 times
- tools/regression/netinet/ipsockopt/ipsockopt.c, 5 times
- tools/regression/priv/main.c, line 545
- tools/regression/security/cap_test/cap_test_capmode.c, 2 times
- tools/regression/sockets/unix_cmsg/unix_cmsg.c, line 310
- tools/tools/syscall_timing/syscall_timing.c, 2 times
- usr.bin/at/privs.h, line 74
- usr.bin/calendar/calendar.c, line 98
- usr.bin/calendar/io.c, line 474
- usr.bin/chkey/chkey.c, line 120
- usr.bin/chpass/chpass.c, line 142
- usr.bin/chpass/edit.c, line 195
- usr.bin/env/envopts.c, line 75
- usr.bin/finger/finger.c, line 167
- usr.bin/from/from.c, line 101
- usr.bin/id/id.c, 6 times
- usr.bin/killall/killall.c, 2 times
- usr.bin/ktrace/ktrace.c, line 154
- usr.bin/limits/limits.c, line 420
- usr.bin/lock/lock.c, 5 times
- usr.bin/login/login.c, line 204
- usr.bin/mail/lex.c, line 72
- usr.bin/mail/v7.local.c, line 94
- usr.bin/msgs/msgs.c, line 180
- usr.bin/newgrp/newgrp.c, 5 times
- usr.bin/passwd/passwd.c, line 96
- usr.bin/quota/quota.c, line 155
- usr.bin/rwall/rwall.c, line 146
- usr.bin/su/su.c, line 258
- usr.bin/talk/get_names.c, line 78
- usr.bin/tip/tip/log.c, line 67
- usr.bin/tip/tip/tip.c, line 78
- usr.bin/tip/tip/value.c, line 266
- usr.bin/wall/wall.c, line 216
- usr.bin/which/which.c, line 114
- usr.bin/who/who.c, line 286
- usr.bin/write/write.c, line 132
- usr.sbin/bluetooth/hcsecd/hcsecd.c, line 102
- usr.sbin/bluetooth/sdpd/main.c, line 157
- usr.sbin/cron/crontab/crontab.c, 5 times
- usr.sbin/cron/lib/misc.c, 2 times
- usr.sbin/edquota/edquota.c, 3 times
- usr.sbin/jail/command.c, 2 times
- usr.sbin/jexec/jexec.c, line 169
- usr.sbin/kgmon/kgmon.c, 5 times
- usr.sbin/lpr/common_source/rmjob.c, line 100
- usr.sbin/lpr/lpc/lpc.c, 3 times
- usr.sbin/lpr/lpd/lpd.c, line 143
- usr.sbin/lpr/lpq/lpq.c, line 92
- usr.sbin/lpr/lpr/lpr.c, 2 times
- usr.sbin/lpr/lprm/lprm.c, 3 times
- usr.sbin/lpr/pac/pac.c, line 117
- usr.sbin/newsyslog/newsyslog.c, line 316
- usr.sbin/ppp/id.c, line 66
- usr.sbin/rwhod/rwhod.c, line 188
- usr.sbin/traceroute6/traceroute6.c, line 594
- usr.sbin/watchdogd/watchdogd.c, line 126