Defined in 3 files as a macro:
Defined in 1 files as a function:
Referenced in 375 files:
- bin/mkdir/mkdir.c, 2 times
- bin/mv/mv.c, line 296
- bin/rm/rm.c, line 363
- bin/sh/redir.c, 2 times
- cddl/compat/opensolaris/misc/fsshare.c, line 59
- cddl/compat/opensolaris/misc/mkdirp.c, 2 times
- cddl/contrib/opensolaris/cmd/zfs/zfs_main.c, line 7204
- cddl/contrib/opensolaris/cmd/zhack/zhack.c, line 190
- cddl/contrib/opensolaris/cmd/ztest/ztest.c, 14 times
- cddl/contrib/opensolaris/lib/libuutil/common/uu_open.c, line 60
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_config.c, line 138
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c, 6 times
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c, 2 times
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c, 7 times
- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c, 3 times
- cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.c, line 282
- cddl/usr.sbin/zfsd/zfsd.cc, line 422
- contrib/amd/libamu/xutil.c, line 1137
- contrib/apr/include/apr_errno.h, 2 times
- contrib/atf/atf-c/detail/fs.c, line 856
- contrib/binutils/libiberty/rename.c, line 29
- contrib/binutils/libiberty/strerror.c, 2 times
- contrib/blacklist/bin/state.c, line 189
- contrib/capsicum-test/capability-fd.cc, 2 times
- contrib/capsicum-test/capmode.cc, 2 times
- contrib/capsicum-test/linux.cc, line 415
- contrib/capsicum-test/openat.cc, 2 times
- contrib/gcc/libgcov.c, line 114
- contrib/gcclibs/libiberty/rename.c, line 29
- contrib/gcclibs/libiberty/strerror.c, 2 times
- contrib/gdb/gdb/remote-fileio.c, 3 times
- contrib/hyperv/tools/hv_kvp_daemon.c, line 293
- contrib/ipfilter/ip_dstlist.c, line 839
- contrib/libarchive/libarchive/archive_util.c, line 474
- contrib/libarchive/libarchive/archive_write_disk_posix.c, 3 times
- contrib/libc++/include/errno.h, line 326
- contrib/libc++/src/filesystem/operations.cpp, 2 times
- contrib/libevent/epoll.c, line 315
- contrib/libevent/sample/event-read-fifo.c, line 111
- contrib/llvm/tools/lldb/source/Host/posix/PipePosix.cpp, line 144
- contrib/mandoc/catman.c, line 182
- contrib/mandoc/compat_mkdtemp.c, 3 times
- contrib/ncurses/ncurses/tinfo/write_entry.c, line 469
- contrib/netbsd-tests/fs/common/fstest_puffs.c, line 364
- contrib/netbsd-tests/fs/ptyfs/t_nullpts.c, 5 times
- contrib/netbsd-tests/fs/ptyfs/t_ptyfs.c, line 28
- contrib/netbsd-tests/fs/vfs/t_renamerace.c, line 52
- contrib/netbsd-tests/fs/vfs/t_vnops.c, line 583
- contrib/netbsd-tests/include/t_errno.c, line 207
- contrib/netbsd-tests/lib/libc/db/t_db_hash_seq.c, line 202
- contrib/netbsd-tests/lib/libc/sys/t_link.c, line 124
- contrib/netbsd-tests/lib/libc/sys/t_mkdir.c, line 70
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mknod.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_msgget.c, line 86
- contrib/netbsd-tests/lib/libppath/t_ppath.c, line 1013
- contrib/netbsd-tests/lib/semaphore/sem.c, line 258
- contrib/ntp/adjtimed/adjtimed.c, line 183
- contrib/ntp/lib/isc/unix/dir.c, 2 times
- contrib/ntp/lib/isc/unix/errno2result.c, line 52
- contrib/ntp/lib/isc/unix/file.c, 2 times
- contrib/ntp/lib/isc/unix/socket.c, line 832
- contrib/ntp/lib/isc/win32/dir.c, 2 times
- contrib/ntp/lib/isc/win32/errno2result.c, line 54
- contrib/ntp/lib/isc/win32/file.c, line 87
- contrib/ntp/ntpd/ntp_filegen.c, line 326
- contrib/ntp/sntp/kod_management.c, line 147
- contrib/ntp/sntp/libevent/epoll.c, line 305
- contrib/openbsm/bin/auditdistd/auditdistd.c, line 729
- contrib/openbsm/compat/pidfile.h, line 148
- contrib/openbsm/libbsm/bsm_errno.c, line 98
- contrib/openbsm/test/bsm/generate.c, 2 times
- contrib/opie/libopie/lock.c, line 115
- contrib/pf/pflogd/privsep.c, line 218
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/libsmutil/safefile.c, line 736
- contrib/sendmail/mail.local/mail.local.c, 2 times
- contrib/sendmail/src/bf.c, 2 times
- contrib/sendmail/src/collect.c, 3 times
- contrib/sendmail/src/deliver.c, line 1032
- contrib/sendmail/src/queue.c, 2 times
- contrib/sendmail/src/srvrsmtp.c, 3 times
- contrib/smbfs/lib/smb/ctx.c, line 492
- contrib/sqlite3/shell.c, line 2389
- contrib/sqlite3/sqlite3.c, 2 times
- contrib/tcsh/dotlock.c, 4 times
- contrib/tcsh/sh.dol.c, line 978
- contrib/tzcode/zic/zic.c, line 2677
- contrib/wpa/hostapd/ctrl_iface.c, 2 times
- contrib/wpa/hs20/client/osu_client.c, 2 times
- contrib/wpa/src/ap/vlan_full.c, 2 times
- contrib/wpa/src/utils/os_unix.c, line 238
- contrib/wpa/src/wps/wps_upnp_ssdp.c, line 832
- contrib/wpa/wpa_supplicant/ctrl_iface_unix.c, line 525
- crypto/heimdal/lib/roken/mkstemp.c, line 65
- crypto/openssh/mux.c, line 1347
- crypto/openssh/openbsd-compat/mktemp.c, 3 times
- crypto/openssh/sftp-client.c, line 1491
- lib/libc/stdio/mktemp.c, 2 times
- lib/libfetch/common.c, line 133
- lib/libjail/jail.c, line 1063
- lib/libsysdecode/errno.c, line 65
- lib/libutil/kld.c, line 75
- lib/libutil/pidfile.c, 2 times
- lib/libutil/uucplock.c, line 84
- lib/libvmmapi/vmmapi.c, line 225
- libexec/bootpd/rtmsg.c, line 225
- libexec/ftpd/ftpd.c, 2 times
- libexec/tftpd/tftpd.c, line 673
- sbin/devd/devd.cc, line 529
- sbin/dhclient/dhclient.c, line 429
- sbin/fsck_ffs/main.c, line 394
- sbin/geom/core/geom.c, line 200
- sbin/ggate/ggated/ggated.c, 3 times
- sbin/ggate/shared/ggate.c, line 219
- sbin/hastd/hastd.c, 3 times
- sbin/hastd/primary.c, line 939
- sbin/ifconfig/ifgroup.c, line 62
- sbin/ifconfig/iflagg.c, line 50
- sbin/ipfw/altq.c, line 63
- sbin/ipfw/tables.c, 3 times
- sbin/kldload/kldload.c, 2 times
- sbin/mount/mount.c, line 237
- sbin/mount_msdosfs/mount_msdosfs.c, 3 times
- sbin/pfctl/pfctl.c, 2 times
- sbin/pfctl/pfctl_osfp.c, line 647
- sbin/route/route.c, 2 times
- stand/common/module.c, 4 times
- stand/libsa/tftp.c, line 130
- sys/amd64/amd64/trap.c, line 1086
- sys/amd64/vmm/vmm.c, line 655
- sys/amd64/vmm/vmm_dev.c, 2 times
- sys/arm/ti/ti_pinmux.c, line 385
- sys/arm/ti/ti_scm.c, line 103
- sys/arm/versatile/versatile_scm.c, line 79
- sys/arm64/arm64/mp_machdep.c, line 778
- sys/cddl/compat/opensolaris/kern/opensolaris_zone.c, line 86
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c, line 2179
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c, 4 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c, 2 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c, 2 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_bookmark.c, line 140
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c, 5 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_destroy.c, 2 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c, line 1882
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c, 2 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_userhold.c, line 73
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c, line 2070
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c, 6 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c, line 803
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c, 2 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zcp_global.c, line 47
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_dir.c, 3 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c, line 1694
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c, line 746
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c, 4 times
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c, line 2693
- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c, 3 times
- sys/compat/cloudabi/cloudabi_errno.c, line 59
- sys/compat/linux/linux_event.c, line 509
- sys/compat/linuxkpi/common/src/linux_compat.c, 2 times
- sys/compat/linuxkpi/common/src/linux_radix.c, line 259
- sys/contrib/ipfilter/netinet/fil.c, 2 times
- sys/contrib/ipfilter/netinet/ip_dns_pxy.c, line 141
- sys/contrib/ipfilter/netinet/ip_dstlist.c, line 840
- sys/contrib/ipfilter/netinet/ip_htable.c, 3 times
- sys/contrib/ipfilter/netinet/ip_nat.c, 3 times
- sys/contrib/ipfilter/netinet/ip_pool.c, 3 times
- sys/contrib/ipfilter/netinet/ip_scan.c, line 127
- sys/contrib/libnv/nvlist.c, 2 times
- sys/contrib/ncsw/inc/error_ext.h, line 114
- sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c, line 573
- sys/contrib/zstd/tests/regression/data.c, line 255
- sys/dev/ata/ata-all.c, line 108
- sys/dev/bhnd/bhnd_subr.c, 2 times
- sys/dev/bhnd/nvram/bhnd_nvram_plist.c, line 422
- sys/dev/bhnd/nvram/bhnd_nvram_store.c, line 563
- sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c, 2 times
- sys/dev/bxe/bxe.c, line 12210
- sys/dev/cxgb/cxgb_main.c, line 3448
- sys/dev/cxgbe/t4_filter.c, line 1543
- sys/dev/cxgbe/t4_main.c, line 10252
- sys/dev/cxgbe/t4_tracer.c, line 163
- sys/dev/cxgbe/tom/t4_tom.c, line 495
- sys/dev/evdev/cdev.c, line 703
- sys/dev/filemon/filemon.c, line 375
- sys/dev/hwpmc/hwpmc_mod.c, 4 times
- sys/dev/iscsi_initiator/iscsi.c, line 779
- sys/dev/ixl/i40e_adminq.h, line 138
- sys/dev/ixl/if_iavf.c, 2 times
- sys/dev/ixl/ixl_iw.c, line 236
- sys/dev/ixl/ixl_pf_iov.c, line 1725
- sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c, 3 times
- sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c, line 1951
- sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c, line 221
- sys/dev/mlx5/mlx5_en/mlx5_en_rl.c, line 1286
- sys/dev/mlx5/mlx5_fpga/mlx5fpga_ipsec.c, line 119
- sys/dev/nand/nandsim.c, 2 times
- sys/dev/netmap/netmap_pipe.c, line 715
- sys/dev/netmap/netmap_vale.c, 2 times
- sys/dev/sfxge/common/ef10_filter.c, line 693
- sys/dev/sfxge/common/ef10_vpd.c, line 250
- sys/dev/sfxge/common/efx_filter.c, line 1511
- sys/dev/sfxge/common/efx_mcdi.c, 2 times
- sys/dev/sfxge/common/efx_tunnel.c, line 300
- sys/dev/sfxge/common/siena_vpd.c, line 357
- sys/dev/xen/xenstore/xenstore.c, line 1591
- sys/fs/devfs/devfs_rule.c, line 194
- sys/fs/devfs/devfs_vnops.c, line 1764
- sys/fs/ext2fs/ext2_lookup.c, line 1247
- sys/fs/msdosfs/msdosfs_lookup.c, 3 times
- sys/fs/nandfs/nandfs_vnops.c, line 1469
- sys/fs/nfsclient/nfs_clrpcops.c, 2 times
- sys/fs/nfsclient/nfs_clvnops.c, line 2168
- sys/fs/nfsserver/nfs_nfsdport.c, 7 times
- sys/fs/nfsserver/nfs_nfsdserv.c, 4 times
- sys/fs/smbfs/smbfs_vnops.c, line 771
- sys/fs/tmpfs/tmpfs_vnops.c, line 1425
- sys/fs/unionfs/union_subr.c, 6 times
- sys/geom/concat/g_concat.c, line 531
- sys/geom/gate/g_gate.c, 2 times
- sys/geom/geom_ctl.c, line 103
- sys/geom/geom_subr.c, 2 times
- sys/geom/linux_lvm/g_linux_lvm.c, line 412
- sys/geom/mirror/g_mirror.c, line 2919
- sys/geom/mountver/g_mountver.c, line 257
- sys/geom/multipath/g_multipath.c, line 579
- sys/geom/nop/g_nop.c, line 304
- sys/geom/part/g_part.c, 4 times
- sys/geom/raid3/g_raid3.c, line 2932
- sys/geom/sched/g_sched.c, 2 times
- sys/geom/shsec/g_shsec.c, line 477
- sys/geom/stripe/g_stripe.c, line 763
- sys/geom/virstor/g_virstor.c, line 1147
- sys/i386/i386/k6_mem.c, line 150
- sys/kern/imgact_binmisc.c, line 265
- sys/kern/kern_conf.c, line 742
- sys/kern/kern_event.c, line 1302
- sys/kern/kern_hhook.c, 2 times
- sys/kern/kern_jail.c, 2 times
- sys/kern/kern_linker.c, 5 times
- sys/kern/kern_module.c, line 163
- sys/kern/kern_poll.c, line 501
- sys/kern/kern_syscalls.c, line 127
- sys/kern/kern_sysctl.c, line 890
- sys/kern/kern_uuid.c, line 226
- sys/kern/subr_bus.c, line 1659
- sys/kern/sysv_msg.c, line 668
- sys/kern/sysv_sem.c, line 982
- sys/kern/sysv_shm.c, line 676
- sys/kern/uipc_accf.c, line 84
- sys/kern/uipc_domain.c, line 367
- sys/kern/uipc_mqueue.c, line 2082
- sys/kern/uipc_sem.c, line 555
- sys/kern/uipc_shm.c, line 805
- sys/kern/vfs_bio.c, line 4019
- sys/kern/vfs_init.c, 2 times
- sys/kern/vfs_syscalls.c, 6 times
- sys/kern/vfs_vnops.c, line 264
- sys/libkern/iconv.c, line 193
- sys/net/if.c, 6 times
- sys/net/if_bridge.c, 2 times
- sys/net/if_clone.c, 5 times
- sys/net/if_enc.c, line 170
- sys/net/if_epair.c, 2 times
- sys/net/if_ipsec.c, 5 times
- sys/net/if_lagg.c, line 678
- sys/net/if_tuntap.c, line 447
- sys/net/if_vlan.c, 2 times
- sys/net/if_vxlan.c, 2 times
- sys/net/pfil.c, 2 times
- sys/net/radix_mpath.c, line 207
- sys/net/route.c, 2 times
- sys/net80211/ieee80211_acl.c, line 199
- sys/net80211/ieee80211_mesh.c, 2 times
- sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c, 2 times
- sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c, line 2930
- sys/netgraph/ng_base.c, 4 times
- sys/netgraph/ng_etf.c, line 311
- sys/netgraph/ng_ether.c, line 816
- sys/netgraph/ng_gif.c, line 548
- sys/netgraph/ng_ipfw.c, line 112
- sys/netgraph/ng_pppoe.c, line 840
- sys/netgraph/ng_vlan.c, 2 times
- sys/netinet/cc/cc.c, line 268
- sys/netinet/in.c, 2 times
- sys/netinet/in_gif.c, 2 times
- sys/netinet/ip_gre.c, 3 times
- sys/netinet/ip_input.c, line 889
- sys/netinet/libalias/alias.c, 2 times
- sys/netinet/libalias/alias_mod.c, 2 times
- sys/netinet/toecore.c, line 299
- sys/netinet6/in6_gif.c, 2 times
- sys/netinet6/in6_src.c, line 1130
- sys/netinet6/ip6_gre.c, 3 times
- sys/netinet6/ip6_input.c, line 313
- sys/netinet6/nd6_rtr.c, 3 times
- sys/netinet6/send.c, line 87
- sys/netipsec/key.c, 6 times
- sys/netpfil/ipfw/ip_dummynet.c, line 2600
- sys/netpfil/ipfw/ip_fw_bpf.c, 2 times
- sys/netpfil/ipfw/ip_fw_dynamic.c, 3 times
- sys/netpfil/ipfw/ip_fw_eaction.c, line 213
- sys/netpfil/ipfw/ip_fw_sockopt.c, 3 times
- sys/netpfil/ipfw/ip_fw_table.c, 3 times
- sys/netpfil/ipfw/ip_fw_table_algo.c, 5 times
- sys/netpfil/ipfw/nat64/nat64clat_control.c, 2 times
- sys/netpfil/ipfw/nat64/nat64lsn_control.c, 2 times
- sys/netpfil/ipfw/nat64/nat64stl_control.c, 4 times
- sys/netpfil/ipfw/nptv6/nptv6.c, line 679
- sys/netpfil/pf/pf.c, 2 times
- sys/netpfil/pf/pf_ioctl.c, line 1510
- sys/netpfil/pf/pf_osfp.c, line 311
- sys/netsmb/smb_conn.c, line 763
- sys/netsmb/smb_subr.c, 2 times
- sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c, line 697
- sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c, line 422
- sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_multicast.c, line 145
- sys/powerpc/powerpc/mem.c, line 244
- sys/security/audit/bsm_errno.c, line 102
- sys/security/mac/mac_framework.c, 2 times
- sys/security/mac_veriexec/veriexec_fingerprint.c, line 370
- sys/sparc64/sparc64/intr_machdep.c, 2 times
- sys/ufs/ffs/ffs_snapshot.c, line 267
- sys/ufs/ufs/ufs_extattr.c, line 617
- sys/ufs/ufs/ufs_lookup.c, line 1460
- sys/x86/pci/qpi.c, line 115
- sys/x86/x86/intr_machdep.c, 2 times
- sys/x86/x86/ucode.c, line 141
- sys/xen/error.h, line 51
- sys/xen/interface/errno.h, line 49
- sys/xen/interface/io/xs_wire.h, line 77
- tests/sys/cddl/zfs/bin/dir_rd_update.c, line 74
- tests/sys/fifo/fifo_create.c, line 146
- tests/sys/posixshm/posixshm_test.c, 2 times
- tools/regression/doat/doat.c, 4 times
- tools/regression/netinet/msocket_ifnet_remove/msocket_ifnet_remove.c, line 78
- tools/regression/posixsem/posixsem.c, line 323
- tools/regression/posixsem2/semtest.c, line 111
- tools/regression/sysvsem/semtest.c, 2 times
- usr.bin/patch/mkpath.c, line 66
- usr.bin/unzip/unzip.c, line 337
- usr.bin/uudecode/uudecode.c, 2 times
- usr.bin/xinstall/xinstall.c, line 1348
- usr.sbin/autofs/automountd.c, line 489
- usr.sbin/autofs/autounmountd.c, line 307
- usr.sbin/autofs/common.c, line 154
- usr.sbin/bhyve/bhyverun.c, line 919
- usr.sbin/bhyve/mem.c, line 117
- usr.sbin/bhyveload/bhyveload.c, line 769
- usr.sbin/binmiscctl/binmiscctl.c, line 452
- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c, line 137
- usr.sbin/cron/cron/cron.c, line 87
- usr.sbin/ctld/ctld.c, line 1907
- usr.sbin/daemon/daemon.c, 2 times
- usr.sbin/inetd/inetd.c, line 481
- usr.sbin/iscsid/iscsid.c, line 565
- usr.sbin/jail/jail.c, line 660
- usr.sbin/makefs/msdos/msdosfs_vnops.c, line 287
- usr.sbin/mountd/mountd.c, line 383
- usr.sbin/moused/moused.c, line 1012
- usr.sbin/nandsim/nandsim_cfgparse.c, 2 times
- usr.sbin/nscd/nscd.c, line 745
- usr.sbin/pnfsdscopymr/pnfsdscopymr.c, line 297
- usr.sbin/powerd/powerd.c, line 598
- usr.sbin/ppp/route.c, 2 times
- usr.sbin/pw/cpdir.c, line 57
- usr.sbin/pw/pw_user.c, line 127
- usr.sbin/rarpd/rarpd.c, line 802
- usr.sbin/route6d/route6d.c, line 2873
- usr.sbin/rtadvd/rtadvd.c, line 248
- usr.sbin/snapinfo/snapinfo.c, 2 times
- usr.sbin/syslogd/syslogd.c, line 716
- usr.sbin/watchdogd/watchdogd.c, line 149
- usr.sbin/ypserv/yp_server.c, line 64