Defined in 2 files as a macro:
Defined in 1 files as a function:
Referenced in 180 files:
- bin/ln/ln.c, line 259
- cddl/compat/opensolaris/misc/deviceid.c, line 68
- cddl/compat/opensolaris/misc/fsshare.c, 2 times
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c, line 149
- contrib/apr/include/apr_errno.h, 2 times
- contrib/apr/locks/unix/proc_mutex.c, line 169
- contrib/binutils/libiberty/strerror.c, 2 times
- contrib/bmake/realpath.c, 2 times
- contrib/elftoolchain/libelftc/elftc_demangle.c, line 98
- contrib/gdb/gdb/remote-fileio.c, line 256
- contrib/lib9p/backend/fs.c, 7 times
- contrib/lib9p/request.c, line 292
- contrib/lib9p/rfuncs.c, 2 times
- contrib/libarchive/libarchive/archive_write_set_format_ustar.c, 4 times
- contrib/libarchive/libarchive/archive_write_set_format_v7tar.c, 2 times
- contrib/llvm-project/libcxx/include/errno.h, line 333
- contrib/mandoc/compat_fts.c, 2 times
- contrib/netbsd-tests/fs/vfs/t_vnops.c, 3 times
- contrib/netbsd-tests/include/t_errno.c, line 355
- contrib/netbsd-tests/lib/libc/net/t_ether_aton.c, line 74
- contrib/netbsd-tests/lib/libc/stdio/t_fopen.c, line 197
- contrib/netbsd-tests/lib/libc/sys/t_access.c, line 203
- contrib/netbsd-tests/lib/libc/sys/t_chroot.c, line 124
- contrib/netbsd-tests/lib/libc/sys/t_link.c, line 127
- contrib/netbsd-tests/lib/libc/sys/t_mkdir.c, line 77
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, line 140
- contrib/netbsd-tests/lib/libc/sys/t_mknod.c, line 72
- contrib/netbsd-tests/lib/libc/sys/t_revoke.c, line 117
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_unlink.c, line 95
- contrib/netbsd-tests/modules/t_modctl.c, line 304
- contrib/netbsd-tests/rump/rumpkern/t_copy.c, line 90
- contrib/netcat/netcat.c, 2 times
- contrib/ntp/lib/isc/unix/errno2result.c, line 44
- contrib/ntp/lib/isc/win32/errno2result.c, line 43
- contrib/openbsm/bin/auditdistd/proto_tcp.c, 3 times
- contrib/openbsm/bin/auditdistd/proto_uds.c, line 86
- contrib/openbsm/bin/auditdistd/trail.c, line 104
- contrib/openbsm/compat/pidfile.h, line 118
- contrib/openbsm/libbsm/bsm_errno.c, line 342
- contrib/openpam/lib/libpam/openpam_configure.c, 2 times
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/libsmutil/safefile.c, line 70
- contrib/sendmail/src/control.c, line 75
- contrib/sendmail/src/daemon.c, 2 times
- contrib/smbfs/lib/smb/ctx.c, 5 times
- contrib/smbfs/lib/smb/nb.c, line 96
- contrib/tnftp/src/main.c, 3 times
- contrib/unbound/ipset/ipset.c, line 68
- crypto/openssh/channels.c, line 4227
- crypto/openssh/misc.c, line 1500
- crypto/openssh/openbsd-compat/basename.c, line 59
- crypto/openssh/openbsd-compat/dirname.c, line 65
- crypto/openssh/openbsd-compat/realpath.c, 6 times
- crypto/openssh/regress/netcat.c, 2 times
- crypto/openssh/sftp-server.c, line 202
- lib/libbe/be.c, line 288
- lib/libbe/be_access.c, 2 times
- lib/libc/db/btree/bt_open.c, line 402
- lib/libc/db/hash/hash_page.c, line 866
- lib/libc/db/hash/ndbm.c, line 74
- lib/libc/gen/basename_compat.c, line 63
- lib/libc/gen/dirname_compat.c, line 73
- lib/libc/gen/exec.c, line 223
- lib/libc/gen/fts-compat.c, 2 times
- lib/libc/gen/gethostname.c, line 51
- lib/libc/gen/glob-compat11.c, 5 times
- lib/libc/gen/glob.c, 5 times
- lib/libc/gen/sem_new.c, 2 times
- lib/libc/locale/setlocale.c, line 320
- lib/libc/nameser/ns_name.c, line 830
- lib/libc/nls/msgcat.c, 2 times
- lib/libc/stdio/mktemp.c, line 138
- lib/libc/stdlib/realpath.c, 6 times
- lib/libcasper/services/cap_fileargs/cap_fileargs.c, line 190
- lib/libfetch/common.c, line 338
- lib/libgeom/geom_util.c, 2 times
- lib/libnetbsd/efun.c, 2 times
- lib/libsysdecode/errno.c, line 82
- lib/libutil/gr_util.c, 4 times
- lib/libutil/pidfile.c, 2 times
- lib/libutil/pw_util.c, 4 times
- lib/libutil/tests/trimdomain-nodomain_test.c, line 54
- lib/libutil/tests/trimdomain_test.c, line 54
- lib/libvmmapi/vmmapi.c, 2 times
- sbin/gbde/gbde.c, line 833
- sbin/hastd/proto_tcp.c, 3 times
- sbin/hastd/proto_uds.c, line 85
- sbin/mount_nfs/mount_nfs.c, line 600
- stand/libsa/dosfs.c, line 565
- stand/libsa/nfs.c, line 376
- stand/libsa/tftp.c, 2 times
- stand/libsa/zfs/zfsimpl.c, 2 times
- sys/amd64/amd64/genassym.c, 2 times
- sys/amd64/amd64/support.S, line 1416
- sys/arm/arm/copystr.S, 2 times
- sys/arm64/arm64/copyinout.S, line 121
- sys/cddl/dev/dtrace/powerpc/dtrace_isa.c, line 601
- sys/compat/cloudabi/cloudabi_errno.c, line 77
- sys/compat/cloudabi/cloudabi_file.c, line 79
- sys/compat/linux/linux.c, line 517
- sys/compat/linux/linux_file.c, line 1854
- sys/compat/linux/linux_mib.c, 2 times
- sys/compat/linux/linux_misc.c, line 2012
- sys/contrib/libnv/bsd_nvpair.c, line 128
- sys/contrib/openzfs/cmd/zed/zed_conf.c, 5 times
- sys/contrib/openzfs/cmd/zed/zed_event.c, line 255
- sys/contrib/openzfs/cmd/zed/zed_exec.c, line 100
- sys/contrib/openzfs/cmd/zfs/zfs_main.c, line 3792
- sys/contrib/openzfs/cmd/zfs/zfs_project.c, line 237
- sys/contrib/openzfs/include/os/linux/spl/sys/vmsystm.h, line 79
- sys/contrib/openzfs/lib/libzfs/libzfs_pool.c, 2 times
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, 2 times
- sys/contrib/openzfs/lib/libzfs/os/freebsd/libzfs_compat.c, line 115
- sys/contrib/openzfs/module/os/freebsd/spl/spl_vfs.c, line 143
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c, 6 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c, 3 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c, 2 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_ctldir.c, line 700
- sys/contrib/openzfs/module/os/linux/zfs/zfs_vnops.c, line 3896
- sys/contrib/openzfs/module/os/linux/zfs/zpl_inode.c, line 51
- sys/contrib/openzfs/module/zfs/dmu_objset.c, 6 times
- sys/contrib/openzfs/module/zfs/dmu_redact.c, line 1083
- sys/contrib/openzfs/module/zfs/dsl_bookmark.c, line 46
- sys/contrib/openzfs/module/zfs/dsl_dataset.c, 4 times
- sys/contrib/openzfs/module/zfs/dsl_dir.c, 5 times
- sys/contrib/openzfs/module/zfs/dsl_prop.c, line 881
- sys/contrib/openzfs/module/zfs/spa.c, line 2262
- sys/contrib/openzfs/module/zfs/vdev_label.c, line 1128
- sys/contrib/openzfs/module/zfs/zap.c, line 754
- sys/contrib/openzfs/module/zfs/zcp_global.c, line 70
- sys/contrib/openzfs/module/zfs/zcp_iter.c, line 558
- sys/contrib/openzfs/module/zfs/zfs_ioctl.c, line 2703
- sys/dev/evdev/uinput.c, line 595
- sys/dev/ice/ice_strings.c, line 496
- sys/dev/ofw/openfirmio.c, 2 times
- sys/fs/ext2fs/ext2_extattr.c, line 155
- sys/fs/ext2fs/ext2_vfsops.c, line 145
- sys/fs/fuse/fuse_vnops.c, line 2227
- sys/fs/msdosfs/msdosfs_conv.c, 2 times
- sys/fs/nfsclient/nfs_clrpcops.c, 11 times
- sys/fs/nfsclient/nfs_clvfsops.c, line 1329
- sys/fs/nfsserver/nfs_nfsdport.c, line 658
- sys/fs/pseudofs/pseudofs_vnops.c, line 1037
- sys/fs/smbfs/smbfs_vnops.c, line 1141
- sys/fs/udf/udf_vnops.c, 2 times
- sys/i386/i386/copyout.c, line 185
- sys/i386/i386/genassym.c, 2 times
- sys/kern/imgact_shell.c, line 156
- sys/kern/kern_conf.c, 2 times
- sys/kern/kern_exec.c, 2 times
- sys/kern/kern_jail.c, 7 times
- sys/kern/kern_prot.c, line 2319
- sys/kern/kern_rctl.c, 2 times
- sys/kern/kern_sysctl.c, line 1289
- sys/kern/kern_thr.c, line 587
- sys/kern/subr_hints.c, line 513
- sys/kern/subr_sbuf.c, line 575
- sys/kern/sys_process.c, line 435
- sys/kern/uipc_syscalls.c, line 1565
- sys/kern/vfs_cache.c, 2 times
- sys/kern/vfs_lookup.c, 2 times
- sys/kern/vfs_mount.c, 2 times
- sys/kern/vfs_subr.c, line 6279
- sys/mips/mips/support.S, line 135
- sys/net/if.c, 2 times
- sys/powerpc/powerpc/copyinout.c, line 247
- sys/powerpc/powerpc/support.S, line 360
- sys/riscv/riscv/copyinout.S, line 181
- sys/security/audit/bsm_errno.c, line 346
- sys/sys/systm.h, line 388
- sys/xen/error.h, line 62
- sys/xen/interface/errno.h, line 59
- tests/sys/posixshm/posixshm_test.c, 2 times
- tools/regression/posixsem/posixsem.c, 2 times
- tools/tools/tionxcl/tionxcl.c, line 71
- usr.bin/csplit/csplit.c, line 241
- usr.bin/diff/diffdir.c, 2 times
- usr.bin/mkstr/mkstr.c, 2 times
- usr.sbin/kldxref/kldxref.c, line 649