/freebsd/contrib/unbound/compat/ |
H A D | getentropy_osx.c | 312 { 17, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 313 { 11, MAP_FAILED }, { 2, MAP_FAILED }, in getentropy_fallback() 314 { 5, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 315 { 7, MAP_FAILED }, { 1, MAP_FAILED }, in getentropy_fallback() 316 { 57, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 317 { 131, MAP_FAILED }, { 1, MAP_FAILED }, in getentropy_fallback() 326 if (mm[m].p != MAP_FAILED) { in getentropy_fallback() 352 if (mm[m].p != MAP_FAILED) in getentropy_fallback() 354 mm[m].p = MAP_FAILED; in getentropy_fallback()
|
H A D | getentropy_solaris.c | 334 { 17, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 335 { 11, MAP_FAILED }, { 2, MAP_FAILED }, in getentropy_fallback() 336 { 5, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 337 { 7, MAP_FAILED }, { 1, MAP_FAILED }, in getentropy_fallback() 338 { 57, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 339 { 131, MAP_FAILED }, { 1, MAP_FAILED }, in getentropy_fallback() 348 if (mm[m].p != MAP_FAILED) { in getentropy_fallback() 378 if (mm[m].p != MAP_FAILED) in getentropy_fallback() 380 mm[m].p = MAP_FAILED; in getentropy_fallback()
|
H A D | getentropy_linux.c | 412 { 17, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 413 { 11, MAP_FAILED }, { 2, MAP_FAILED }, in getentropy_fallback() 414 { 5, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 415 { 7, MAP_FAILED }, { 1, MAP_FAILED }, in getentropy_fallback() 416 { 57, MAP_FAILED }, { 3, MAP_FAILED }, in getentropy_fallback() 417 { 131, MAP_FAILED }, { 1, MAP_FAILED }, in getentropy_fallback() 426 if (mm[m].p != MAP_FAILED) { in getentropy_fallback() 456 if (mm[m].p != MAP_FAILED) in getentropy_fallback() 458 mm[m].p = MAP_FAILED; in getentropy_fallback()
|
/freebsd/tests/sys/vm/ |
H A D | mmap_test.c | 100 if (p == MAP_FAILED) { in ATF_TC_BODY() 119 if (p == MAP_FAILED) { in checked_mmap() 214 ATF_REQUIRE(p1 != MAP_FAILED); in ATF_TC_BODY() 217 ATF_REQUIRE(p2 != MAP_FAILED); in ATF_TC_BODY() 233 ATF_REQUIRE(p3 != MAP_FAILED); in ATF_TC_BODY() 253 ATF_REQUIRE(p1 != MAP_FAILED); in ATF_TC_BODY() 256 ATF_REQUIRE(p2 != MAP_FAILED); in ATF_TC_BODY() 273 ATF_REQUIRE(p3 != MAP_FAILED); in ATF_TC_BODY() 291 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() 308 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() [all …]
|
H A D | page_fault_signal.c | 75 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() 94 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() 112 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() 133 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() 158 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY()
|
H A D | mlock_test.c | 94 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 133 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 162 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 210 ATF_REQUIRE_MSG(addr1 != MAP_FAILED, "mmap: %s", strerror(errno)); in ATF_TC_BODY() 215 ATF_REQUIRE_MSG(addr2 != MAP_FAILED, "mmap: %s", strerror(errno)); in ATF_TC_BODY()
|
H A D | mmap_map_32bit_helper.c | 31 if (s32 == MAP_FAILED) in main() 42 if (s32 == MAP_FAILED) in main()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mmap.c | 94 ATF_REQUIRE(map == MAP_FAILED); in map_check() 98 ATF_REQUIRE(map != MAP_FAILED); in map_check() 199 ATF_REQUIRE(map != MAP_FAILED); in ATF_TC_BODY() 223 ATF_REQUIRE(map == MAP_FAILED); in ATF_TC_BODY() 229 ATF_REQUIRE(map == MAP_FAILED); in ATF_TC_BODY() 235 ATF_REQUIRE(map == MAP_FAILED); in ATF_TC_BODY() 260 ATF_REQUIRE(vp != MAP_FAILED); in ATF_TC_BODY() 275 ATF_REQUIRE(vp != MAP_FAILED); in ATF_TC_BODY() 276 ATF_REQUIRE(vp2 != MAP_FAILED); in ATF_TC_BODY() 343 ATF_REQUIRE(map != MAP_FAILED); in ATF_TC_BODY() [all …]
|
H A D | t_msync.c | 53 char *buf, *map = MAP_FAILED; in msync_sync() 82 if (map == MAP_FAILED) { in msync_sync() 124 if (map != MAP_FAILED) in msync_sync() 155 char *map = MAP_FAILED; in ATF_TC_BODY() 177 ATF_REQUIRE(map != MAP_FAILED); in ATF_TC_BODY()
|
H A D | t_mincore.c | 123 ATF_REQUIRE(map != MAP_FAILED); in ATF_TC_BODY() 181 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 207 if (addr == MAP_FAILED) in ATF_TC_BODY() 224 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 246 if (addr2 == MAP_FAILED || addr3 == MAP_FAILED) in ATF_TC_BODY()
|
H A D | t_mprotect.c | 130 if (map == MAP_FAILED) in ATF_TC_BODY() 210 ATF_REQUIRE(map != MAP_FAILED); in ATF_TC_BODY() 295 if (map == MAP_FAILED) in ATF_TC_BODY() 334 ATF_REQUIRE(map != MAP_FAILED); in ATF_TC_BODY()
|
/freebsd/tests/sys/posixshm/ |
H A D | memfd_test.c | 108 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 117 fd, 0) == MAP_FAILED); in ATF_TC_BODY() 134 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 136 ATF_REQUIRE(paddr != MAP_FAILED); in ATF_TC_BODY() 138 ATF_REQUIRE(raddr != MAP_FAILED); in ATF_TC_BODY() 159 fd, 0) == MAP_FAILED); in ATF_TC_BODY() 164 ATF_REQUIRE(paddr != MAP_FAILED); in ATF_TC_BODY() 166 ATF_REQUIRE(raddr != MAP_FAILED); in ATF_TC_BODY() 246 fdx, 0) == MAP_FAILED); in ATF_TC_BODY()
|
H A D | posixshm_test.c | 136 if (page == MAP_FAILED) in scribble_object() 165 if (page == MAP_FAILED) in verify_object() 313 if (page == MAP_FAILED) in ATF_TC_BODY() 549 if (page == MAP_FAILED) in ATF_TC_BODY() 577 if (page != MAP_FAILED) in ATF_TC_BODY() 768 if (page == MAP_FAILED) in ATF_TC_BODY() 789 if (page == MAP_FAILED) in ATF_TC_BODY() 930 ATF_REQUIRE_MSG(region != MAP_FAILED, "mmap failed; errno=%d", errno); in ATF_TC_BODY() 1206 ATF_REQUIRE(p != MAP_FAILED); in ATF_TC_BODY() 1209 ATF_REQUIRE_ERRNO(EACCES, p == MAP_FAILED); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | WindowsMMap.c | 31 return MAP_FAILED; in mmap() 34 return MAP_FAILED; in mmap() 36 return MAP_FAILED; in mmap() 60 return MAP_FAILED; in mmap() 74 ret = MAP_FAILED; in mmap()
|
/freebsd/lib/libsys/x86/ |
H A D | __vdso_gettc.c | 267 (uintptr_t)old_map, (uintptr_t)MAP_FAILED); in __vdso_init_hpet() 275 new_map != MAP_FAILED) in __vdso_init_hpet() 310 hyperv_ref_tsc = MAP_FAILED; in __vdso_init_hyperv_tsc() 386 timeinfos = MAP_FAILED; in __vdso_init_pvclock_timeinfos() 397 (uintptr_t)timeinfos) == 0 && timeinfos != MAP_FAILED) in __vdso_init_pvclock_timeinfos() 424 if (map == MAP_FAILED) in __vdso_gettc() 432 if (hyperv_ref_tsc == MAP_FAILED) in __vdso_gettc() 439 if (pvclock_timeinfos == MAP_FAILED) in __vdso_gettc()
|
/freebsd/tests/sys/kern/ |
H A D | kcov.c | 104 fd, 0) == MAP_FAILED); in ATF_TC_BODY() 110 fd, 0) == MAP_FAILED); in ATF_TC_BODY() 112 fd, 0) == MAP_FAILED); in ATF_TC_BODY() 114 MAP_SHARED, fd, 0)) != MAP_FAILED); in ATF_TC_BODY() 116 MAP_SHARED, fd, 0)) != MAP_FAILED); in ATF_TC_BODY() 145 fd, 0) != MAP_FAILED); in ATF_TC_BODY() 165 fd, 0) != MAP_FAILED); in ATF_TC_BODY() 180 fd, 0) != MAP_FAILED); in kcov_mmap_enable_thread() 290 ATF_REQUIRE_MSG(data != MAP_FAILED, "Unable to mmap the kcov buffer"); in common_head()
|
H A D | kern_copyin.c | 103 addr = MAP_FAILED; in ATF_TC_BODY() 125 ATF_REQUIRE(addr != MAP_FAILED); in ATF_TC_BODY() 146 if (addr != MAP_FAILED) in ATF_TC_BODY()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | parse_reply-test.c | 62 #ifndef MAP_FAILED 63 #define MAP_FAILED (-1) macro 111 if (p1 == (unsigned char *)MAP_FAILED) in main()
|
/freebsd/tools/test/stress2/misc/ |
H A D | mmap6.sh | 84 if ((p1 = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) 86 if ((p2 = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) 115 MAP_FAILED) 118 MAP_FAILED)
|
H A D | shm.sh | 96 if (shmp != MAP_FAILED) 112 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED) 154 shmp = MAP_FAILED; 168 shmp = MAP_FAILED;
|
H A D | mmap7.sh | 107 if ((p1 = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) 109 if ((p2 = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) 111 if ((p3 = mmap(NULL, len, PROT_READ , MAP_SHARED, fd, 0)) == MAP_FAILED)
|
H A D | mmap2.sh | 91 MAP_FAILED) { 98 MAP_FAILED) { 108 if ((p = mmap(p, len, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0)) == MAP_FAILED) {
|
/freebsd/tools/test/upsdl/ |
H A D | upsdl.c | 76 if (addr == MAP_FAILED) in prepareFile() 103 if (addr == MAP_FAILED) in mapBuffer() 113 if (addr == MAP_FAILED) in mapBuffer()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
H A D | guarded_pool_allocator_posix.cpp | 49 check(Ptr != MAP_FAILED, "Failed to map guarded pool allocator memory"); in map() 65 check(Ptr != MAP_FAILED, "Failed to reserve guarded pool allocator memory"); in reserveGuardedPool() 91 0) != MAP_FAILED, in deallocateInGuardedPool()
|
/freebsd/tests/sys/cddl/zfs/bin/ |
H A D | mmapwrite.c | 52 mmap(0, 8192, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) { in mapper() 58 MAP_SHARED|MAP_FIXED, fd, 0) == MAP_FAILED) { in mapper()
|