Defined in 4 files as a macro:
Defined in 1 files as a function:
Referenced in 294 files:
- bin/pax/ar_io.c, line 658
- bin/sh/exec.c, line 417
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c, line 1146
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_work.c, line 217
- contrib/apr/file_io/unix/flock.c, line 54
- contrib/apr/include/apr_errno.h, 2 times
- contrib/apr/locks/unix/proc_mutex.c, line 1098
- contrib/atf/atf-c++/detail/fs.cpp, line 491
- contrib/atf/atf-c/detail/fs.c, line 745
- contrib/atf/atf-c/detail/fs_test.c, 34 times
- contrib/binutils/libiberty/strerror.c, 2 times
- contrib/capsicum-test/fexecve.cc, line 124
- contrib/capsicum-test/linux.cc, line 1043
- contrib/dma/local.c, line 159
- contrib/ee/ee.c, line 2254
- contrib/elftoolchain/libpe/pe_buffer.c, 2 times
- contrib/elftoolchain/libpe/pe_cntl.c, line 49
- contrib/elftoolchain/libpe/pe_coff.c, 3 times
- contrib/elftoolchain/libpe/pe_dos.c, 2 times
- contrib/elftoolchain/libpe/pe_section.c, 3 times
- contrib/elftoolchain/libpe/pe_symtab.c, line 46
- contrib/elftoolchain/libpe/pe_update.c, line 46
- contrib/file/src/magic.c, line 452
- contrib/file/src/seccomp.c, 2 times
- contrib/gdb/gdb/remote-fileio.c, 3 times
- contrib/kyua/engine/atf.cpp, line 105
- contrib/kyua/utils/fs/operations_test.cpp, line 422
- contrib/libpcap/pcap-bpf.c, 4 times
- contrib/libpcap/pcap-dag.c, line 794
- contrib/libpcap/pcap-dlpi.c, 4 times
- contrib/libpcap/pcap-libdlpi.c, 2 times
- contrib/libpcap/pcap-linux.c, 3 times
- contrib/libpcap/pcap-pf.c, 2 times
- contrib/libpcap/pcap-snit.c, 2 times
- contrib/libpcap/pcap-usb-linux.c, 2 times
- contrib/libxo/tests/gettext/gt_01.c, line 104
- contrib/llvm-project/libcxx/include/errno.h, line 397
- contrib/llvm-project/libcxx/src/filesystem/directory_iterator.cpp, 2 times
- contrib/netbsd-tests/fs/nfs/t_mountd.c, 2 times
- contrib/netbsd-tests/fs/psshfs/h_have_puffs.c, line 48
- contrib/netbsd-tests/fs/puffs/h_dtfs/dtfs_vnops.c, line 307
- contrib/netbsd-tests/fs/vfs/t_ro.c, line 103
- contrib/netbsd-tests/fs/vfs/t_unpriv.c, 3 times
- contrib/netbsd-tests/include/t_errno.c, line 63
- contrib/netbsd-tests/include/t_paths.c, line 157
- contrib/netbsd-tests/lib/libc/c063/t_o_search.c, 2 times
- contrib/netbsd-tests/lib/libc/stdio/t_fopen.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_access.c, line 77
- contrib/netbsd-tests/lib/libc/sys/t_connect.c, line 84
- contrib/netbsd-tests/lib/libc/sys/t_link.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_listen.c, line 121
- contrib/netbsd-tests/lib/libc/sys/t_mkdir.c, line 93
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, line 220
- contrib/netbsd-tests/lib/libc/sys/t_mprotect.c, line 136
- contrib/netbsd-tests/lib/libc/sys/t_msgsnd.c, line 333
- contrib/netbsd-tests/lib/libc/sys/t_revoke.c, line 165
- contrib/netbsd-tests/lib/libc/sys/t_truncate.c, line 167
- contrib/netbsd-tests/lib/libc/sys/t_unlink.c, 2 times
- contrib/ntp/lib/isc/unix/errno2result.c, line 49
- contrib/ntp/lib/isc/unix/socket.c, 4 times
- contrib/ntp/lib/isc/win32/errno2result.c, line 50
- contrib/ntp/lib/isc/win32/file.c, line 189
- contrib/nvi/common/exf.c, 2 times
- contrib/openbsm/libbsm/bsm_errno.c, line 94
- contrib/openbsm/test/bsm/generate.c, line 1010
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/libsmdb/smdb.c, line 122
- contrib/sendmail/libsmutil/safefile.c, 4 times
- contrib/sendmail/src/alias.c, line 527
- contrib/sendmail/src/conf.c, line 3667
- contrib/sendmail/src/queue.c, line 7289
- contrib/sendmail/src/udb.c, line 1056
- contrib/sendmail/src/util.c, line 2437
- contrib/smbfs/smbutil/login.c, 2 times
- contrib/sqlite3/sqlite3.c, 3 times
- contrib/tcsh/sh.c, line 1106
- contrib/tnftp/src/ftp.c, 3 times
- contrib/unbound/services/listen_dnsport.c, line 563
- contrib/unbound/smallapp/unbound-checkconf.c, 2 times
- contrib/unbound/util/netevent.c, line 321
- contrib/wpa/src/radius/radius_client.c, line 345
- crypto/heimdal/appl/ftp/ftp/ftp.c, 3 times
- crypto/heimdal/lib/krb5/acl.c, 4 times
- crypto/heimdal/lib/krb5/cache.c, 2 times
- crypto/heimdal/lib/krb5/context.c, line 626
- crypto/heimdal/lib/krb5/fcache.c, line 89
- crypto/heimdal/lib/krb5/kuserok.c, 5 times
- crypto/heimdal/lib/krb5/test_acl.c, 5 times
- crypto/heimdal/lib/roken/flock.c, line 137
- crypto/openssh/sandbox-seccomp-filter.c, 10 times
- crypto/openssh/sftp-server.c, line 198
- crypto/openssl/apps/apps.c, line 2164
- crypto/openssl/e_os.h, line 163
- gnu/usr.bin/grep/grep.c, line 983
- gnu/usr.bin/grep/system.h, 2 times
- lib/libc/gen/exec.c, 2 times
- lib/libc/gen/nice.c, line 56
- lib/libfetch/common.c, line 176
- lib/libmemstat/memstat_malloc.c, 3 times
- lib/libmemstat/memstat_uma.c, 3 times
- lib/libsysdecode/errno.c, line 47
- libexec/bootpd/tools/bootptest/bootptest.c, line 294
- sbin/init/init.c, line 1069
- sbin/ipfw/tables.c, line 1092
- sbin/mdconfig/mdconfig.c, line 308
- sbin/natd/natd.c, 2 times
- sbin/nvmecontrol/devlist.c, line 98
- stand/efi/libefi/errno.c, 2 times
- sys/amd64/amd64/sys_machdep.c, 3 times
- sys/cam/cam_periph.c, line 995
- sys/cam/ctl/ctl_backend_block.c, 4 times
- sys/cam/scsi/scsi_all.c, 10 times
- sys/cam/scsi/scsi_sa.c, line 4914
- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c, 3 times
- sys/compat/cloudabi/cloudabi_errno.c, line 41
- sys/compat/linux/linux_ipc.c, line 765
- sys/compat/linux/linux_mmap.c, line 73
- sys/compat/linuxkpi/common/src/linux_compat.c, 4 times
- sys/contrib/ipfilter/netinet/ip_htable.c, line 570
- sys/contrib/ipfilter/netinet/ip_nat.c, 3 times
- sys/contrib/ipfilter/netinet/ip_pool.c, line 523
- sys/contrib/ipfilter/netinet/ip_state.c, 2 times
- sys/contrib/openzfs/cmd/zed/zed_file.c, line 102
- sys/contrib/openzfs/cmd/zinject/zinject.c, 3 times
- sys/contrib/openzfs/cmd/ztest/ztest.c, 3 times
- sys/contrib/openzfs/lib/libzfs/libzfs_crypto.c, 6 times
- sys/contrib/openzfs/lib/libzfs/libzfs_dataset.c, 3 times
- sys/contrib/openzfs/lib/libzfs/libzfs_diff.c, line 93
- sys/contrib/openzfs/lib/libzfs/libzfs_pool.c, 2 times
- sys/contrib/openzfs/lib/libzfs/libzfs_sendrecv.c, 6 times
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, 2 times
- sys/contrib/openzfs/lib/libzfs/os/freebsd/libzfs_compat.c, 2 times
- sys/contrib/openzfs/lib/libzfs/os/linux/libzfs_mount_os.c, line 410
- sys/contrib/openzfs/lib/libzfs/os/linux/libzfs_util_os.c, line 70
- sys/contrib/openzfs/lib/libzutil/os/linux/zutil_import_os.c, line 143
- sys/contrib/openzfs/module/icp/core/kcf_sched.c, line 1513
- sys/contrib/openzfs/module/icp/io/aes.c, line 214
- sys/contrib/openzfs/module/icp/spi/kcf_spi.c, line 701
- sys/contrib/openzfs/module/os/freebsd/spl/spl_kstat.c, line 75
- sys/contrib/openzfs/module/os/freebsd/spl/spl_policy.c, 4 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_acl.c, 6 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c, 2 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c, 3 times
- sys/contrib/openzfs/module/os/linux/spl/spl-kstat.c, line 337
- sys/contrib/openzfs/module/os/linux/zfs/policy.c, 4 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_acl.c, 9 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_ctldir.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_vfsops.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_vnops.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zpl_ctldir.c, line 44
- sys/contrib/openzfs/module/os/linux/zfs/zpl_file.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zpl_xattr.c, 3 times
- sys/contrib/openzfs/module/zfs/arc.c, 4 times
- sys/contrib/openzfs/module/zfs/dataset_kstats.c, line 49
- sys/contrib/openzfs/module/zfs/dbuf.c, 2 times
- sys/contrib/openzfs/module/zfs/dsl_crypt.c, 12 times
- sys/contrib/openzfs/module/zfs/dsl_dir.c, line 2012
- sys/contrib/openzfs/module/zfs/zcp_global.c, line 43
- sys/contrib/openzfs/module/zfs/zil.c, 2 times
- sys/contrib/openzfs/module/zfs/zio.c, line 539
- sys/contrib/openzfs/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c, line 649
- sys/dev/altera/avgen/altera_avgen.c, 5 times
- sys/dev/bnxt/bnxt_hwrm.c, line 68
- sys/dev/cfi/cfi_core.c, line 579
- sys/dev/drm2/drm_drv.c, line 464
- sys/dev/drm2/drm_vm.c, line 69
- sys/dev/drm2/ttm/ttm_bo_vm.c, line 392
- sys/dev/efidev/efirt.c, line 87
- sys/dev/ice/ice_lib.c, line 7853
- sys/dev/ice/ice_strings.c, line 344
- sys/dev/ixl/i40e_adminq.h, line 135
- sys/dev/ixl/ixl_iw.c, line 390
- sys/dev/ixl/ixl_pf_iov.c, line 1589
- sys/dev/ixl/ixl_pf_main.c, line 2870
- sys/dev/mlx4/mlx4_core/mlx4_cmd.c, line 158
- sys/dev/mlx4/mlx4_core/mlx4_main.c, 2 times
- sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c, 2 times
- sys/dev/netmap/netmap_bdg.c, 2 times
- sys/dev/netmap/netmap_vale.c, 3 times
- sys/dev/pbio/pbio.c, line 313
- sys/dev/pms/freebsd/driver/common/lxencrypt.c, line 92
- sys/dev/ppbus/ppb_msq.c, line 276
- sys/dev/ppbus/ppbconf.c, line 562
- sys/dev/proto/proto_core.c, line 501
- sys/dev/sfxge/common/ef10_filter.c, line 1461
- sys/dev/sfxge/common/ef10_mac.c, line 347
- sys/dev/sfxge/common/ef10_nic.c, 4 times
- sys/dev/sfxge/common/ef10_vpd.c, 2 times
- sys/dev/sfxge/common/efx_mcdi.c, 5 times
- sys/dev/sfxge/common/hunt_nic.c, 3 times
- sys/dev/sfxge/common/medford2_nic.c, 2 times
- sys/dev/sfxge/common/medford_nic.c, 2 times
- sys/dev/sfxge/common/siena_vpd.c, line 487
- sys/dev/sfxge/sfxge.c, line 990
- sys/dev/smbus/smbconf.c, line 180
- sys/dev/xen/blkback/blkback.c, 2 times
- sys/dev/xen/netback/netback.c, line 722
- sys/fs/devfs/devfs_vnops.c, 4 times
- sys/fs/fdescfs/fdesc_vnops.c, line 491
- sys/fs/nfs/nfs_commonkrpc.c, 2 times
- sys/fs/nfsclient/nfs_clrpcops.c, 4 times
- sys/fs/nfsclient/nfs_clstate.c, 7 times
- sys/fs/nfsclient/nfs_clvnops.c, 3 times
- sys/fs/nfsserver/nfs_nfsdport.c, 4 times
- sys/fs/nfsserver/nfs_nfsdsubs.c, 5 times
- sys/fs/smbfs/smbfs_vnops.c, 2 times
- sys/fs/unionfs/union_vnops.c, 6 times
- sys/i386/i386/bios.c, line 379
- sys/i386/i386/sys_machdep.c, 3 times
- sys/kern/kern_acct.c, line 238
- sys/kern/kern_descrip.c, line 3341
- sys/kern/kern_exec.c, 2 times
- sys/kern/kern_ktrace.c, line 961
- sys/kern/kern_prot.c, line 420
- sys/kern/kern_resource.c, line 280
- sys/kern/subr_acl_nfs4.c, 2 times
- sys/kern/subr_acl_posix1e.c, line 356
- sys/kern/sysv_ipc.c, line 153
- sys/kern/tty.c, line 1960
- sys/kern/uipc_mqueue.c, line 1036
- sys/kern/uipc_shm.c, line 1567
- sys/kern/vfs_export.c, line 526
- sys/kern/vfs_lookup.c, line 1174
- sys/kern/vfs_mount.c, line 615
- sys/kern/vfs_subr.c, 2 times
- sys/kern/vfs_vnops.c, 3 times
- sys/net/if_bridge.c, 2 times
- sys/net/if_enc.c, line 311
- sys/net/if_ethersubr.c, line 481
- sys/net/if_spppsubr.c, line 485
- sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c, 2 times
- sys/netinet/cc/cc_newreno.c, 2 times
- sys/netinet/in_pcb.c, line 937
- sys/netinet/ip_input.c, line 1130
- sys/netinet/ip_output.c, 2 times
- sys/netinet/tcp_output.c, line 1632
- sys/netinet/tcp_syncache.c, line 1929
- sys/netinet/tcp_usrreq.c, 3 times
- sys/netinet6/in6_pcb.c, line 217
- sys/netinet6/ip6_mroute.c, line 452
- sys/netinet6/ip6_output.c, line 1031
- sys/netipsec/ipsec.c, line 867
- sys/netipsec/ipsec_input.c, 3 times
- sys/netipsec/ipsec_output.c, 4 times
- sys/netipsec/ipsec_pcb.c, line 300
- sys/netipsec/key.c, line 2306
- sys/netipsec/xform_ah.c, 6 times
- sys/netipsec/xform_esp.c, 3 times
- sys/netipsec/xform_tcp.c, 3 times
- sys/netpfil/ipfw/ip_fw_dynamic.c, line 1920
- sys/netpfil/ipfw/ip_fw_table.c, 4 times
- sys/netpfil/pf/pf_ioctl.c, 3 times
- sys/netsmb/smb_conn.c, 2 times
- sys/netsmb/smb_subr.c, 3 times
- sys/nlm/nlm_advlock.c, line 1144
- sys/ofed/drivers/infiniband/core/ib_cma.c, line 3216
- sys/ofed/drivers/infiniband/core/ib_ucm.c, line 1111
- sys/ofed/drivers/infiniband/core/ib_ucma.c, line 1608
- sys/ofed/drivers/infiniband/core/ib_uverbs_main.c, line 759
- sys/security/audit/bsm_errno.c, line 98
- sys/security/mac/mac_framework.c, 3 times
- sys/security/mac_biba/mac_biba.c, 88 times
- sys/security/mac_bsdextended/mac_bsdextended.c, line 411
- sys/security/mac_lomac/mac_lomac.c, 34 times
- sys/security/mac_mls/mac_mls.c, 86 times
- sys/security/mac_veriexec/mac_veriexec.c, line 328
- sys/ufs/ufs/ufs_quota.c, line 533
- sys/vm/vm_mmap.c, 4 times
- sys/x86/x86/x86_mem.c, 2 times
- sys/xen/error.h, line 48
- sys/xen/interface/errno.h, line 45
- sys/xen/interface/io/xs_wire.h, line 76
- tests/sys/file/flock_helper.c, 4 times
- tests/sys/fs/fusefs/access.cc, 2 times
- tests/sys/fs/fusefs/default_permissions.cc, 15 times
- tests/sys/fs/fusefs/utils.cc, line 83
- tests/sys/posixshm/memfd_test.c, 3 times
- tests/sys/posixshm/posixshm_test.c, line 455
- tests/sys/vm/mmap_test.c, line 168
- tools/regression/priv/priv_netinet_ipsec.c, 3 times
- tools/regression/priv/priv_sched_setpriority.c, 9 times
- tools/regression/priv/priv_vfs_read_write.c, 21 times
- tools/regression/priv/priv_vfs_utimes.c, 2 times
- tools/regression/security/proc_to_proc/scenario.c, line 152
- usr.bin/chpass/chpass.c, line 291
- usr.bin/wall/ttymsg.c, line 92
- usr.sbin/cron/lib/compat.c, line 187
- usr.sbin/lpr/common_source/rmjob.c, line 162
- usr.sbin/mountd/mountd.c, line 1273
- usr.sbin/nscd/mp_rs_query.c, line 191
- usr.sbin/nscd/mp_ws_query.c, line 189
- usr.sbin/nscd/query.c, 3 times
- usr.sbin/rpc.lockd/kern.c, 3 times
- usr.sbin/sesutil/sesutil.c, 4 times