Defined in 3 files as a prototype:
Defined in 1 files as a macro:
Defined in 2 files as a function:
Referenced in 196 files:
- bin/pax/file_subs.c, line 679
- bin/rm/rm.c, line 158
- bin/sh/exec.c, line 428
- bin/sh/options.c, line 98
- bin/sh/parser.c, 2 times
- bin/sh/show.c, line 390
- bin/sh/var.c, line 182
- bin/test/test.c, 2 times
- cddl/compat/opensolaris/include/priv.h, line 17
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c, line 1376
- contrib/apr/threadproc/unix/proc.c, 3 times
- contrib/atf/atf-c/detail/fs_test.c, line 677
- contrib/atf/atf-c/detail/user.c, 3 times
- contrib/atf/atf-c/detail/user_test.c, 3 times
- contrib/capsicum-test/fexecve.cc, line 130
- contrib/capsicum-test/mini-me.c, 2 times
- contrib/capsicum-test/procdesc.cc, line 535
- contrib/capsicum-test/syscalls.h, line 90
- contrib/dma/dma.c, 2 times
- contrib/kyua/utils/fs/operations_test.cpp, 2 times
- contrib/libarchive/cpio/cpio.c, line 180
- contrib/libarchive/libarchive/archive_write_disk_posix.c, line 1952
- contrib/libarchive/libarchive/test/test_extattr_freebsd.c, line 126
- contrib/libarchive/tar/bsdtar.c, line 216
- contrib/libevent/evutil.c, line 2379
- contrib/llvm-project/lldb/source/Host/posix/HostInfoPosix.cpp, 2 times
- contrib/ncurses/ncurses/tinfo/access.c, 2 times
- contrib/netbsd-tests/kernel/t_sysv.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_msgget.c, line 156
- contrib/netbsd-tests/lib/libc/sys/t_setuid.c, line 70
- contrib/ntp/include/timepps-SCO.h, line 495
- contrib/ntp/include/timepps-Solaris.h, line 561
- contrib/ntp/include/timepps-SunOS.h, line 496
- contrib/ntp/ntpd/ntpd.c, line 814
- contrib/ntp/sntp/libevent/evutil.c, line 2349
- contrib/nvi/ex/ex_init.c, line 363
- contrib/ofed/libibverbs/init.c, line 249
- contrib/ofed/libibverbs/sysfs.c, line 59
- contrib/openbsm/bin/audit/audit.c, line 87
- contrib/openbsm/bin/auditdistd/sandbox.c, line 196
- contrib/openbsm/libauditd/auditd_lib.c, line 1076
- contrib/openbsm/libbsm/bsm_token.c, 2 times
- contrib/openbsm/libbsm/bsm_wrappers.c, 2 times
- contrib/openpam/lib/libpam/openpam_borrow_cred.c, 5 times
- contrib/openpam/lib/libpam/openpam_check_owner_perms.c, 2 times
- contrib/openpam/lib/libpam/openpam_restore_cred.c, line 75
- contrib/opie/libopie/generator.c, line 68
- contrib/opie/libopie/lock.c, line 97
- contrib/opie/opieauto.c, line 277
- contrib/opie/opielogin.c, line 665
- contrib/opie/opiesu.c, line 342
- contrib/opie/opietest.c, line 271
- contrib/sendmail/editmap/editmap.c, line 303
- contrib/sendmail/libmilter/listener.c, line 605
- contrib/sendmail/libsm/mpeix.c, 2 times
- contrib/sendmail/libsmdb/smdb.c, 2 times
- contrib/sendmail/libsmutil/safefile.c, line 631
- contrib/sendmail/mail.local/mail.local.c, 5 times
- contrib/sendmail/makemap/makemap.c, 2 times
- contrib/sendmail/src/collect.c, line 1029
- contrib/sendmail/src/conf.c, 4 times
- contrib/sendmail/src/control.c, line 114
- contrib/sendmail/src/deliver.c, 7 times
- contrib/sendmail/src/envelope.c, line 607
- contrib/sendmail/src/main.c, 21 times
- contrib/sendmail/src/map.c, 2 times
- contrib/sendmail/src/queue.c, 14 times
- contrib/sendmail/src/recipient.c, 15 times
- contrib/sendmail/src/util.c, 2 times
- contrib/sendmail/test/t_pathconf.c, line 42
- contrib/sendmail/test/t_seteuid.c, 6 times
- contrib/sendmail/test/t_setreuid.c, 6 times
- contrib/sendmail/test/t_setuid.c, 4 times
- contrib/smbfs/lib/smb/ctx.c, line 99
- contrib/smbfs/lib/smb/subr.c, line 319
- contrib/sqlite3/sqlite3.c, line 34037
- contrib/tcp_wrappers/safe_finger.c, line 66
- contrib/tcpdump/tcpdump.c, 3 times
- contrib/tcsh/sh.c, line 370
- contrib/tcsh/sh.types.h, line 112
- contrib/tcsh/tc.os.h, line 498
- contrib/xz/src/xz/file_io.c, line 106
- crypto/heimdal/appl/afsutil/pagsh.c, 2 times
- crypto/heimdal/appl/login/login.c, line 603
- crypto/heimdal/kdc/main.c, line 68
- crypto/heimdal/lib/krb5/context.c, line 1467
- crypto/heimdal/lib/krb5/replay.c, line 311
- crypto/heimdal/lib/roken/iruserok.c, line 249
- crypto/heimdal/lib/roken/issuid.c, line 46
- crypto/openssh/audit-linux.c, line 64
- crypto/openssh/audit.c, 5 times
- crypto/openssh/auth-krb5.c, line 248
- crypto/openssh/loginrec.c, 2 times
- crypto/openssh/logintest.c, line 128
- crypto/openssh/openbsd-compat/bsd-getpeereid.c, line 66
- crypto/openssh/openbsd-compat/glob.c, line 394
- crypto/openssh/openbsd-compat/port-aix.c, 2 times
- crypto/openssh/platform.c, 5 times
- crypto/openssh/session.c, line 1480
- crypto/openssh/ssh-agent.c, line 1116
- crypto/openssh/sshd.c, 2 times
- crypto/openssh/uidswap.c, 6 times
- crypto/openssl/crypto/uid.c, line 46
- lib/libc/gen/getpwent.c, 2 times
- lib/libc/net/rcmd.c, 2 times
- lib/libc/rpc/auth_unix.c, line 200
- lib/libc/rpc/key_call.c, 6 times
- lib/libc/rpc/netname.c, line 88
- lib/libc/rpc/rpcb_clnt.c, 2 times
- lib/libcompat/4.4/cuserid.c, line 46
- lib/libpam/modules/pam_krb5/pam_krb5.c, line 416
- lib/libpam/modules/pam_ksu/pam_ksu.c, line 199
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 301
- lib/libutil/login_cap.c, line 212
- libexec/ftpd/popen.c, 2 times
- libexec/rpc.rwalld/rwalld.c, line 77
- libexec/rtld-elf/rtld.c, line 498
- sbin/reboot/reboot.c, line 130
- sbin/route/route.c, line 219
- sbin/routed/main.c, line 252
- sbin/routed/rtquery/rtquery.c, line 331
- sbin/shutdown/shutdown.c, line 118
- sys/contrib/openzfs/cmd/zed/zed.c, line 226
- sys/contrib/openzfs/cmd/zpool/zpool_main.c, 3 times
- sys/contrib/openzfs/contrib/pam_zfs_key/pam_zfs_key.c, 3 times
- sys/contrib/openzfs/lib/libspl/include/unistd.h, line 36
- sys/contrib/openzfs/lib/libzfs/os/linux/libzfs_mount_os.c, line 410
- sys/contrib/openzfs/lib/libzutil/zutil_import.c, line 1511
- sys/rpc/rpcb_clnt.c, 2 times
- sys/security/audit/bsm_token.c, 2 times
- tests/sys/fifo/fifo_create.c, line 260
- tests/sys/fifo/fifo_misc.c, line 282
- tests/sys/fifo/fifo_open.c, line 459
- tests/sys/file/flock_helper.c, line 896
- tests/sys/fs/fusefs/allow_other.cc, 3 times
- tests/sys/fs/fusefs/default_permissions.cc, 21 times
- tests/sys/fs/fusefs/default_permissions_privileged.cc, 2 times
- tests/sys/fs/fusefs/forget.cc, line 52
- tests/sys/fs/fusefs/mknod.cc, 2 times
- tests/sys/fs/fusefs/mount.cc, 2 times
- tests/sys/fs/fusefs/nfs.cc, line 53
- tests/sys/fs/fusefs/utils.cc, line 103
- tests/sys/kern/unix_socketpair_test.c, line 51
- tools/regression/ethernet/ethermulti/ethermulti.c, 3 times
- tools/regression/mlock/mlock.c, line 54
- tools/regression/netinet/ipbroadcast/ipbroadcast.c, line 210
- tools/regression/netinet/ipsockopt/ipsockopt.c, 10 times
- tools/regression/netinet/msocket/msocket.c, line 437
- tools/regression/priv/main.c, line 545
- tools/regression/security/access/testaccess.c, line 173
- tools/regression/security/cap_test/cap_test_capmode.c, line 147
- tools/regression/sockets/so_setfib/so_setfib.c, line 173
- tools/regression/sockets/unix_cmsg/unix_cmsg.c, line 311
- tools/regression/sysvmsg/msgtest.c, line 262
- tools/regression/sysvsem/semtest.c, line 281
- tools/regression/sysvshm/shmtest.c, line 226
- tools/tools/tionxcl/tionxcl.c, line 59
- usr.bin/at/perm.c, line 89
- usr.bin/at/privs.h, 2 times
- usr.bin/find/function.c, line 459
- usr.bin/finger/finger.c, line 167
- usr.bin/id/id.c, 3 times
- usr.bin/keylogout/keylogout.c, line 52
- usr.bin/login/login.c, line 205
- usr.bin/login/login_audit.c, 4 times
- usr.bin/newgrp/newgrp.c, line 77
- usr.bin/newkey/newkey.c, line 114
- usr.bin/su/su.c, line 220
- usr.bin/tip/tip/tip.c, line 80
- usr.bin/wall/wall.c, line 116
- usr.sbin/chown/chown.c, 2 times
- usr.sbin/clear_locks/clear_locks.c, line 53
- usr.sbin/cron/lib/misc.c, 2 times
- usr.sbin/inetd/inetd.c, line 466
- usr.sbin/keyserv/keyserv.c, line 160
- usr.sbin/lpr/lpc/lpc.c, line 96
- usr.sbin/lpr/lpd/lpd.c, line 142
- usr.sbin/lpr/lpq/lpq.c, line 91
- usr.sbin/lpr/lpr/lpr.c, line 148
- usr.sbin/lpr/lprm/lprm.c, line 98
- usr.sbin/lpr/pac/pac.c, line 116
- usr.sbin/newsyslog/newsyslog.c, line 316
- usr.sbin/nscd/nscd.c, line 720
- usr.sbin/pmc/cmd_pmc_stat.c, line 169
- usr.sbin/pnfsdscopymr/pnfsdscopymr.c, line 85
- usr.sbin/pnfsdsfile/pnfsdsfile.c, 3 times
- usr.sbin/pnfsdskill/pnfsdskill.c, line 65
- usr.sbin/powerd/powerd.c, line 512
- usr.sbin/ppp/id.c, line 67
- usr.sbin/pw/pw_user.c, 3 times
- usr.sbin/pw/pw_vpw.c, line 78
- usr.sbin/route6d/route6d.c, line 382
- usr.sbin/rpc.lockd/lock_proc.c, line 280
- usr.sbin/rpc.lockd/lockd.c, line 183
- usr.sbin/rpcbind/rpcbind.c, line 161
- usr.sbin/ypldap/ypldap.c, line 558