Home
last modified time | relevance | path

Searched refs:MAP_FAILED (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/freebsd/contrib/unbound/compat/
H A Dgetentropy_osx.c312 { 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 Dgetentropy_solaris.c334 { 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 Dgetentropy_linux.c412 { 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 Dmmap_test.c100 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 Dpage_fault_signal.c75 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 Dmlock_test.c94 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 Dmmap_map_32bit_helper.c31 if (s32 == MAP_FAILED) in main()
42 if (s32 == MAP_FAILED) in main()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mmap.c94 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 Dt_msync.c53 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 Dt_mincore.c123 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 Dt_mprotect.c130 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 Dmemfd_test.c108 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 Dposixshm_test.c136 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 DWindowsMMap.c31 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.c267 (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 Dkcov.c104 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 Dkern_copyin.c103 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 Dparse_reply-test.c62 #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 Dmmap6.sh84 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 Dshm.sh96 if (shmp != MAP_FAILED)
112 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
154 shmp = MAP_FAILED;
168 shmp = MAP_FAILED;
H A Dmmap7.sh107 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 Dmmap2.sh91 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 Dupsdl.c76 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 Dguarded_pool_allocator_posix.cpp49 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 Dmmapwrite.c52 mmap(0, 8192, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) { in mapper()
58 MAP_SHARED|MAP_FIXED, fd, 0) == MAP_FAILED) { in mapper()

12345678910>>...15