Defined in 4 files as a prototype:
Defined in 7 files as a member:
Defined in 2 files as a macro:
Defined in 2 files as a function:
Referenced in 246 files:
- bin/cp/utils.c, line 189
- cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/badioctl.c, line 69
- cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c, line 36
- cddl/contrib/opensolaris/tools/ctf/dump/dump.c, line 918
- contrib/apr-util/buckets/apr_buckets_mmap.c, 8 times
- contrib/apr/locks/unix/proc_mutex.c, line 595
- contrib/apr/memory/unix/apr_pools.c, 2 times
- contrib/apr/mmap/unix/common.c, 3 times
- contrib/apr/mmap/unix/mmap.c, line 133
- contrib/apr/shmem/unix/shm.c, 5 times
- contrib/binutils/bfd/bfdwin.c, line 178
- contrib/binutils/binutils/objdump.c, line 971
- contrib/bmake/parse.c, line 476
- contrib/capsicum-test/capability-fd.cc, 13 times
- contrib/capsicum-test/capmode.cc, line 340
- contrib/capsicum-test/linux.cc, 3 times
- contrib/elftoolchain/libelf/elf_update.c, line 1140
- contrib/elftoolchain/libelf/libelf_open.c, line 194
- contrib/elftoolchain/libelftc/elftc_copyfile.c, line 72
- contrib/expat/xmlwf/unixfilemap.c, line 92
- contrib/file/src/apprentice.c, line 3121
- contrib/file/src/der.c, line 440
- contrib/file/src/seccomp.c, line 201
- contrib/googletest/googletest/src/gtest-death-test.cc, line 1291
- contrib/ipfilter/l4check/l4check.c, line 475
- contrib/jemalloc/src/pages.c, 3 times
- contrib/libevent/buffer.c, line 3050
- contrib/libpcap/pcap-bpf.c, 2 times
- contrib/libpcap/pcap-linux.c, line 4813
- contrib/libpcap/pcap-usb-linux.c, line 470
- contrib/libucl/src/ucl_util.c, line 148
- contrib/libucl/tests/test_speed.c, line 86
- contrib/llvm-project/compiler-rt/lib/dfsan/dfsan_interceptors.cpp, 3 times
- contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/profile/GCDAProfiling.c, line 279
- contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c, 3 times
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp, line 171
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp, line 128
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_openbsd.cpp, line 46
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/scudo/standalone/linux.cpp, line 67
- contrib/llvm-project/compiler-rt/lib/tsan/go/test.c, line 67
- contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp, 2 times
- contrib/llvm-project/lldb/tools/compact-unwind/compact-unwind-dumper.c, line 1446
- contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp, line 345
- contrib/mandoc/dbm_map.c, line 78
- contrib/mandoc/mandocdb.c, 2 times
- contrib/mandoc/read.c, line 452
- contrib/netbsd-tests/fs/puffs/h_dtfs/dtfs.c, line 198
- contrib/netbsd-tests/kernel/t_sysv.c, line 874
- contrib/netbsd-tests/lib/libc/sys/t_clone.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mincore.c, 7 times
- contrib/netbsd-tests/lib/libc/sys/t_minherit.c, line 51
- contrib/netbsd-tests/lib/libc/sys/t_mlock.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mmap.c, 18 times
- contrib/netbsd-tests/lib/libc/sys/t_mprotect.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_msync.c, 2 times
- contrib/netbsd-tests/lib/libcurses/director/director.c, line 215
- contrib/netbsd-tests/net/bpf/t_bpf.c, line 132
- contrib/ntp/ntpd/ntpd.c, 2 times
- contrib/ntp/ntpd/refclock_oncore.c, line 1059
- contrib/ntp/ntpd/refclock_tt560.c, line 96
- contrib/ntp/sntp/libevent/buffer.c, line 3042
- contrib/ntp/sntp/libopts/text_mmap.c, 3 times
- contrib/nvi/ex/ex_tag.c, line 1042
- contrib/ofed/libcxgb4/dev.c, line 136
- contrib/ofed/libcxgb4/verbs.c, 11 times
- contrib/ofed/libmlx4/buf.c, line 46
- contrib/ofed/libmlx4/mlx4.c, 3 times
- contrib/ofed/libmlx5/buf.c, line 508
- contrib/ofed/libmlx5/mlx5.c, 2 times
- contrib/ofed/librdmacm/examples/rcopy.c, 2 times
- contrib/ofed/librdmacm/preload.c, line 1162
- contrib/processor-trace/libipt/src/posix/pt_section_posix.c, line 134
- contrib/serf/buckets/mmap_buckets.c, 4 times
- contrib/serf/serf_bucket_types.h, 2 times
- contrib/sqlite3/sqlite3.c, line 34044
- contrib/telnet/telnetd/telnetd.c, line 925
- contrib/unbound/compat/arc4random.c, 2 times
- contrib/unbound/compat/getentropy_linux.c, line 421
- contrib/unbound/compat/getentropy_osx.c, line 321
- contrib/unbound/compat/getentropy_solaris.c, line 343
- crypto/heimdal/appl/ftp/ftp/ftp.c, line 619
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, line 1384
- crypto/heimdal/lib/asn1/check-common.c, line 104
- crypto/heimdal/lib/roken/parse_reply-test.c, line 109
- crypto/heimdal/lib/roken/test-mem.c, line 134
- crypto/openssl/crypto/mem_sec.c, 2 times
- gnu/usr.bin/grep/grep.c, line 428
- lib/lib80211/lib80211_regdomain.c, line 645
- lib/libc/db/recno/rec_open.c, line 170
- lib/libc/gen/arc4random.h, line 110
- lib/libc/gen/nlist.c, 2 times
- lib/libc/gen/sem_new.c, line 225
- lib/libc/gmon/gmon.c, line 92
- lib/libc/iconv/citrus_mmap.c, line 76
- lib/libc/locale/collate.c, line 150
- lib/libc/locale/rune.c, line 95
- lib/libc/nls/msgcat.c, line 429
- lib/libc/tests/gen/arc4random_test.c, line 61
- lib/libc/tests/string/stpncpy_test.c, line 45
- lib/libc/tests/string/wcsnlen_test.c, line 46
- lib/libc/tests/sys/sendfile_test.c, 3 times
- lib/libc/x86/sys/__vdso_gettc.c, 2 times
- lib/libcuse/cuse_lib.c, line 215
- lib/libgeom/geom_stats.c, 2 times
- lib/libkvm/kvm_powerpc.c, 2 times
- lib/libkvm/kvm_powerpc64.c, 2 times
- lib/libkvm/kvm_private.c, 2 times
- lib/libnetmap/nmport.c, 2 times
- lib/libpmc/pmu-events/json.c, line 65
- lib/libthr/thread/thr_init.c, line 390
- lib/libthr/thread/thr_kern.c, line 161
- lib/libthr/thread/thr_pshared.c, line 228
- lib/libthr/thread/thr_stack.c, line 276
- lib/libvgl/main.c, 2 times
- lib/libvmmapi/vmmapi.c, 4 times
- libexec/rtld-elf/map_object.c, 6 times
- libexec/rtld-elf/powerpc64/reloc.c, line 331
- libexec/rtld-elf/rtld_malloc.c, line 275
- sbin/dump/cache.c, line 69
- sbin/fsck_msdosfs/fat.c, line 716
- sbin/ldconfig/elfhints.c, line 212
- sbin/ldconfig/ldconfig.c, 2 times
- sys/amd64/amd64/bpf_jit_machdep.c, line 609
- sys/arm/broadcom/bcm2835/bcm2835_fb.c, line 262
- sys/arm/freescale/imx/imx51_ipuv3.c, line 492
- sys/arm/mv/mv_common.c, 7 times
- sys/arm/ti/am335x/am335x_lcd_syscons.c, line 177
- sys/arm/versatile/versatile_clcd.c, line 425
- sys/compat/freebsd32/freebsd32_sysent.c, line 136
- sys/compat/linuxkpi/common/include/linux/fs.h, line 301
- sys/compat/linuxkpi/common/src/linux_compat.c, 2 times
- sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c, line 96
- sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c, line 45
- sys/contrib/libsodium/src/libsodium/sodium/utils.c, line 461
- sys/contrib/octeon-sdk/cvmx-app-hotplug.c, line 550
- sys/contrib/octeon-sdk/cvmx-app-init-linux.c, 2 times
- sys/contrib/octeon-sdk/cvmx-malloc/malloc.c, 4 times
- sys/contrib/octeon-sdk/cvmx-shmem.c, line 495
- sys/contrib/openzfs/cmd/ztest/ztest.c, 3 times
- sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h, line 215
- sys/contrib/openzfs/module/os/linux/zfs/zpl_file.c, line 1046
- sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_exec/mmap_exec.c, line 64
- sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_libaio/mmap_libaio.c, line 71
- sys/contrib/openzfs/tests/zfs-tests/cmd/mmapwrite/mmapwrite.c, line 118
- sys/contrib/openzfs/tests/zfs-tests/cmd/readmmap/readmmap.c, line 89
- sys/contrib/zlib/test/minigzip.c, line 412
- sys/contrib/zstd/zlibWrapper/examples/minigzip.c, line 417
- sys/dev/cxgbe/iw_cxgbe/provider.c, line 479
- sys/dev/fb/fbreg.h, line 234
- sys/dev/fb/s3_pci.c, line 396
- sys/dev/fb/vesa.c, line 1654
- sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c, line 2603
- sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c, line 3178
- sys/dev/mthca/mthca_provider.c, line 1233
- sys/dev/qlnx/qlnxr/qlnxr_os.c, line 220
- sys/dev/spibus/spigen.c, 28 times
- sys/dev/terasic/mtl/terasic_mtl_syscons.c, line 458
- sys/dev/xen/privcmd/privcmd.c, 16 times
- sys/geom/raid/md_intel.c, 85 times
- sys/i386/i386/bpf_jit_machdep.c, line 639
- sys/kern/init_sysent.c, 2 times
- sys/kern/tty.c, 2 times
- sys/net/netmap_user.h, 2 times
- sys/ofed/drivers/infiniband/core/ib_uverbs_main.c, 3 times
- sys/powerpc/ofw/ofw_syscons.c, line 127
- tests/sys/audit/file-close.c, line 65
- tests/sys/cddl/zfs/bin/mmapwrite.c, 2 times
- tests/sys/cddl/zfs/bin/readmmap.c, line 91
- tests/sys/cddl/zfs/tests/exec/mmap_exec.c, line 63
- tests/sys/cddl/zfs/tests/txg_integrity/txg_integrity.c, line 529
- tests/sys/file/closefrom_test.c, line 210
- tests/sys/fs/fusefs/interrupt.cc, line 164
- tests/sys/fs/fusefs/io.cc, 2 times
- tests/sys/fs/fusefs/read.cc, 3 times
- tests/sys/fs/fusefs/utils.cc, line 579
- tests/sys/fs/fusefs/write.cc, 3 times
- tests/sys/kern/coredump_phnum_helper.c, line 52
- tests/sys/kern/kcov.c, 9 times
- tests/sys/netmap/ctrl-api-test.c, line 1029
- tests/sys/posixshm/memfd_test.c, 9 times
- tests/sys/posixshm/posixshm_test.c, 29 times
- tests/sys/vm/mlock_test.c, 3 times
- tests/sys/vm/mmap_test.c, 9 times
- tests/sys/vm/page_fault_signal.c, 5 times
- tools/bus_space/bus.c, line 126
- tools/bus_space/busdma.c, line 425
- tools/regression/fsx/fsx.c, 3 times
- tools/regression/geom/ConfCmp/ConfCmp.c, line 195
- tools/regression/geom/MdLoad/MdLoad.c, line 221
- tools/regression/mlock/mlock.c, line 67
- tools/regression/nfsmmap/test1/test1.c, line 36
- tools/regression/nfsmmap/test2/test2.c, line 34
- tools/regression/p1003_1b/fifo.c, line 113
- tools/regression/p1003_1b/sched.c, line 230
- tools/regression/p1003_1b/yield.c, line 93
- tools/regression/posixsem2/semtest.c, line 28
- tools/regression/security/cap_test/cap_test_capabilities.c, 9 times
- tools/regression/security/open_to_operation/open_to_operation.c, 4 times
- tools/test/upsdl/upsdl.c, 3 times
- tools/test/vm86/vm86_test.c, 2 times
- tools/tools/ath/athdecode/main.c, line 75
- tools/tools/crypto/cryptotest.c, line 482
- tools/tools/ncpus/acpi.c, line 199
- tools/tools/netmap/nmreplay.c, line 334
- tools/tools/netrate/http/http.c, line 281
- tools/tools/netrate/httpd/httpd.c, line 225
- tools/tools/pciroms/pciroms.c, line 316
- tools/tools/pirtool/pirtool.c, line 96
- tools/tools/syscall_timing/syscall_timing.c, line 625
- usr.bin/ar/write.c, line 202
- usr.bin/cmp/regular.c, line 170
- usr.bin/dtc/input_buffer.cc, line 116
- usr.bin/elfdump/elfdump.c, line 598
- usr.bin/gprof/elf.c, line 83
- usr.bin/grep/file.c, line 195
- usr.bin/ktrdump/ktrdump.c, line 218
- usr.bin/ldd/sods.c, line 193
- usr.bin/locate/locate/locate.c, line 306
- usr.bin/look/look.c, line 158
- usr.bin/mkimg/image.c, line 328
- usr.bin/patch/inp.c, line 190
- usr.bin/sdiotool/sdiotool.c, line 438
- usr.bin/sort/file.c, line 652
- usr.bin/sort/sort.c, line 89
- usr.bin/tail/misc.c, line 115
- usr.bin/xinstall/xinstall.c, 3 times
- usr.sbin/acpi/acpidb/acpidb.c, line 402
- usr.sbin/acpi/acpidump/acpi.c, 19 times
- usr.sbin/acpi/acpidump/acpi_user.c, 2 times
- usr.sbin/bhyve/pci_passthru.c, line 492
- usr.sbin/bhyve/snapshot.c, line 287
- usr.sbin/bhyvectl/bhyvectl.c, line 516
- usr.sbin/btxld/btxld.c, line 342
- usr.sbin/config/main.c, 2 times
- usr.sbin/cpucontrol/cpucontrol.c, line 380
- usr.sbin/cxgbetool/cxgbetool.c, 4 times
- usr.sbin/makefs/msdos/msdosfs_vnops.c, line 474
- usr.sbin/mlx5tool/mlx5tool.c, line 172
- usr.sbin/mpsutil/mps_flash.c, line 164
- usr.sbin/mptable/mptable.c, line 737
- usr.sbin/pmcstat/pmcpl_gprof.c, line 216
- usr.sbin/rpc.statd/file.c, line 193
- usr.sbin/uathload/uathload.c, line 166