Defined in 4 files as a macro:
Defined in 1 files as a function:
Referenced in 263 files:
- bin/pax/ar_io.c, line 658
- bin/sh/exec.c, line 389
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c, line 1146
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_work.c, line 217
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c, line 3444
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c, line 340
- contrib/amd/amd/amq_subr.c, line 192
- contrib/amd/amd/info_exec.c, 4 times
- contrib/amd/amd/nfs_subr.c, 2 times
- contrib/amd/amd/ops_nfs.c, 3 times
- 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 611
- 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/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 464
- contrib/file/src/seccomp.c, 2 times
- contrib/gcclibs/libiberty/strerror.c, 2 times
- contrib/gdb/gdb/remote-fileio.c, 3 times
- contrib/libc++/include/errno.h, line 368
- contrib/libc++/src/experimental/filesystem/directory_iterator.cpp, 2 times
- contrib/libpcap/pcap-bpf.c, 4 times
- 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 103
- 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 3602
- contrib/sendmail/src/queue.c, line 7112
- contrib/sendmail/src/udb.c, line 1050
- contrib/sendmail/src/util.c, line 2436
- contrib/smbfs/smbutil/login.c, 2 times
- contrib/sqlite3/sqlite3.c, 3 times
- contrib/tcsh/sh.c, line 1108
- contrib/tnftp/src/ftp.c, 3 times
- contrib/unbound/services/listen_dnsport.c, line 568
- contrib/unbound/smallapp/unbound-checkconf.c, 2 times
- contrib/unbound/util/netevent.c, line 319
- contrib/wpa/src/radius/radius_client.c, line 340
- 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/heimdal/lib/sqlite/sqlite3.c, 2 times
- crypto/openssh/sandbox-seccomp-filter.c, 10 times
- crypto/openssh/sftp-server.c, line 198
- crypto/openssl/apps/apps.c, line 2137
- crypto/openssl/e_os.h, line 135
- 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 116
- lib/libmemstat/memstat_malloc.c, 3 times
- lib/libmemstat/memstat_uma.c, 3 times
- lib/libsysdecode/errno.c, line 48
- libexec/bootpd/tools/bootptest/bootptest.c, line 294
- release/picobsd/tinyware/msh/sh3.c, line 608
- release/picobsd/tinyware/passwd/local_passwd.c, 2 times
- sbin/init/init.c, line 1087
- sbin/ipfw/tables.c, line 1061
- sbin/mdconfig/mdconfig.c, line 299
- sbin/natd/natd.c, 2 times
- sbin/nvmecontrol/devlist.c, line 94
- stand/efi/libefi/errno.c, 2 times
- sys/amd64/amd64/sys_machdep.c, 3 times
- sys/cam/cam_periph.c, line 963
- sys/cam/ctl/ctl_backend_block.c, 4 times
- sys/cam/scsi/scsi_all.c, 10 times
- sys/cam/scsi/scsi_sa.c, line 4926
- sys/cddl/compat/opensolaris/kern/opensolaris_policy.c, 4 times
- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c, 3 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c, line 6816
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c, line 796
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zcp_global.c, line 43
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c, 7 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c, 2 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c, 7 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.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 139
- sys/compat/linuxkpi/common/src/linux_compat.c, 4 times
- sys/contrib/ipfilter/netinet/ip_htable.c, line 574
- sys/contrib/ipfilter/netinet/ip_nat.c, 3 times
- sys/contrib/ipfilter/netinet/ip_pool.c, line 529
- sys/contrib/ipfilter/netinet/ip_state.c, 2 times
- sys/dev/altera/avgen/altera_avgen.c, 5 times
- sys/dev/bnxt/bnxt_hwrm.c, line 68
- sys/dev/cfi/cfi_core.c, line 538
- sys/dev/drm/drm_bufs.c, 4 times
- sys/dev/drm/drm_drv.c, line 766
- sys/dev/drm/drm_vm.c, line 55
- sys/dev/drm/mach64_state.c, line 533
- sys/dev/drm/via_dmablit.c, line 240
- 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 398
- sys/dev/efidev/efirt.c, line 84
- sys/dev/ixl/i40e_adminq.h, line 135
- sys/dev/ixl/ixl_iw.c, line 390
- sys/dev/ixl/ixl_pf_iov.c, line 1719
- sys/dev/ixl/ixl_pf_main.c, line 3715
- sys/dev/mlx4/mlx4_core/mlx4_cmd.c, line 158
- sys/dev/mlx4/mlx4_core/mlx4_main.c, 2 times
- sys/dev/netmap/netmap_bdg.c, 3 times
- sys/dev/netmap/netmap_vale.c, 2 times
- sys/dev/pbio/pbio.c, line 314
- sys/dev/pms/freebsd/driver/common/lxencrypt.c, line 92
- sys/dev/ppbus/ppb_msq.c, line 276
- sys/dev/ppbus/ppbconf.c, line 563
- sys/dev/proto/proto_core.c, line 473
- sys/dev/sfxge/common/ef10_mac.c, line 352
- sys/dev/sfxge/common/ef10_nic.c, 3 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, 4 times
- sys/dev/sfxge/common/medford_nic.c, 3 times
- sys/dev/sfxge/common/siena_vpd.c, line 480
- sys/dev/sfxge/sfxge.c, line 989
- sys/dev/smbus/smbconf.c, line 180
- sys/dev/usb/misc/ufm.c, line 316
- sys/dev/xen/blkback/blkback.c, 2 times
- sys/dev/xen/netback/netback.c, line 728
- sys/fs/devfs/devfs_vnops.c, 4 times
- sys/fs/fdescfs/fdesc_vnops.c, line 491
- sys/fs/fuse/fuse_internal.c, line 139
- 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, 2 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 386
- sys/i386/i386/sys_machdep.c, 3 times
- sys/kern/kern_acct.c, line 237
- sys/kern/kern_descrip.c, line 3062
- sys/kern/kern_exec.c, 2 times
- sys/kern/kern_ktrace.c, line 948
- sys/kern/kern_prot.c, line 425
- sys/kern/kern_resource.c, line 268
- sys/kern/subr_acl_nfs4.c, 2 times
- sys/kern/subr_acl_posix1e.c, line 369
- sys/kern/sysv_ipc.c, line 151
- sys/kern/tty.c, line 1864
- sys/kern/uipc_mqueue.c, line 1036
- sys/kern/uipc_shm.c, line 900
- sys/kern/vfs_export.c, line 516
- sys/kern/vfs_lookup.c, line 989
- sys/kern/vfs_mount.c, line 568
- sys/kern/vfs_vnops.c, 3 times
- sys/net/if_enc.c, line 307
- sys/net/if_ethersubr.c, line 472
- 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 891
- sys/netinet/ip_input.c, line 1128
- sys/netinet/ip_output.c, line 534
- sys/netinet/tcp_output.c, line 1544
- sys/netinet/tcp_syncache.c, line 1797
- sys/netinet6/in6_pcb.c, line 217
- sys/netinet6/ip6_mroute.c, line 450
- sys/netipsec/ipsec.c, line 865
- 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 2314
- 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 1910
- sys/netpfil/ipfw/ip_fw_pfil.c, 9 times
- sys/netpfil/ipfw/ip_fw_table.c, 4 times
- sys/netpfil/pf/pf_ioctl.c, 7 times
- sys/netsmb/smb_conn.c, 2 times
- sys/netsmb/smb_subr.c, 3 times
- sys/nlm/nlm_advlock.c, line 1145
- sys/ofed/drivers/infiniband/core/ib_cma.c, line 3051
- 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 412
- 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 324
- sys/ufs/ufs/ufs_quota.c, line 531
- 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 46
- sys/xen/interface/io/xs_wire.h, line 76
- tests/sys/file/flock_helper.c, 4 times
- tests/sys/posixshm/posixshm_test.c, line 199
- 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 199
- usr.sbin/lpr/common_source/rmjob.c, line 162
- usr.sbin/mountd/mountd.c, line 1133
- 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, 3 times