Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/selinux/libselinux/src/
Dsestatus.c102 if (selinux_status == MAP_FAILED) { in selinux_status_updated()
162 if (selinux_status == MAP_FAILED) { in selinux_status_getenforce()
199 if (selinux_status == MAP_FAILED) { in selinux_status_policyload()
234 if (selinux_status == MAP_FAILED) in selinux_status_deny_unknown()
286 return (selinux_status == MAP_FAILED) ? 1 : 0; in selinux_status_open()
305 if (selinux_status == MAP_FAILED) { in selinux_status_open()
340 selinux_status = MAP_FAILED; in selinux_status_open()
375 if (selinux_status == MAP_FAILED) in selinux_status_close()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmmap.c54 EXPECT_TRUE("mmap_0100", start != MAP_FAILED); in mmap_0100()
92 EXPECT_TRUE("mmap_0200", start != MAP_FAILED); in mmap_0200()
114 EXPECT_TRUE("mmap_0300", start != MAP_FAILED); in mmap_0300()
146 EXPECT_TRUE("mmap_0400", start != MAP_FAILED); in mmap_0400()
184 EXPECT_TRUE("mmap_0500", start != MAP_FAILED); in mmap_0500()
221 EXPECT_EQ("mmap_0600", start, MAP_FAILED); in mmap_0600()
257 EXPECT_EQ("mmap_0700", start, MAP_FAILED); in mmap_0700()
289 EXPECT_EQ("mmap_0800", start, MAP_FAILED); in mmap_0800()
320 EXPECT_EQ("mmap_0900", start, MAP_FAILED); in mmap_0900()
356 EXPECT_EQ("mmap_1000", start, MAP_FAILED); in mmap_1000()
[all …]
Dmadvise.c52 EXPECT_PTRNE("madvise_0100", ptr, MAP_FAILED); in madvise_0100()
53 if (ptr == MAP_FAILED || ptr == NULL) { in madvise_0100()
75 EXPECT_PTRNE("madvise_0200", ptr, MAP_FAILED); in madvise_0200()
76 if (ptr == MAP_FAILED || ptr == NULL) { in madvise_0200()
Dposix_madvise.c54 EXPECT_PTRNE("posix_madvise_0100", ptr, MAP_FAILED); in posix_madvise_0100()
55 if (ptr != MAP_FAILED) { in posix_madvise_0100()
75 EXPECT_PTRNE("posix_madvise_0200", ptr, MAP_FAILED); in posix_madvise_0200()
76 if (ptr != MAP_FAILED) { in posix_madvise_0200()
/third_party/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c80 .exp_ret = MAP_FAILED,
89 .exp_ret = MAP_FAILED,
98 .exp_ret = MAP_FAILED,
131 if (p == MAP_FAILED) in get_test_area()
144 if (t->ret != MAP_FAILED) { in test_mremap()
199 if (t->ret == MAP_FAILED) in cleanup0()
207 if (t->ret == MAP_FAILED) { in cleanup1()
/third_party/libffi/testsuite/libffi.call/
Dffitest.h46 # ifndef MAP_FAILED
47 # define MAP_FAILED -1 macro
59 # ifndef MAP_FAILED
60 # define MAP_FAILED -1 macro
/third_party/libffi/testsuite/libffi.closures/
Dffitest.h46 # ifndef MAP_FAILED
47 # define MAP_FAILED -1 macro
59 # ifndef MAP_FAILED
60 # define MAP_FAILED -1 macro
/third_party/iowow/src/platform/win32/mman/
Dmman.c57 void *map = MAP_FAILED; in mmap()
83 return MAP_FAILED; in mmap()
87 return MAP_FAILED; in mmap()
92 return MAP_FAILED; in mmap()
98 return MAP_FAILED; in mmap()
/third_party/musl/porting/liteos_a/user/src/time/
D__map_file.c10 const unsigned char *map = MAP_FAILED; in __map_file()
17 if (map == MAP_FAILED) { in __map_file()
20 return map == MAP_FAILED ? 0 : map; in __map_file()
/third_party/mesa3d/src/gallium/winsys/sw/kms-dri/
Dkms_dri_sw_winsys.c184 kms_sw_dt->mapped = MAP_FAILED; in kms_sw_displaytarget_create()
185 kms_sw_dt->ro_mapped = MAP_FAILED; in kms_sw_displaytarget_create()
278 if (*ptr == MAP_FAILED) { in kms_sw_displaytarget_map()
281 if (tmp == MAP_FAILED) in kms_sw_displaytarget_map()
353 kms_sw_dt->mapped = MAP_FAILED; in kms_sw_displaytarget_add_from_prime()
354 kms_sw_dt->ro_mapped = MAP_FAILED; in kms_sw_displaytarget_add_from_prime()
394 if (kms_sw_dt->mapped != MAP_FAILED) { in kms_sw_displaytarget_unmap()
396 kms_sw_dt->mapped = MAP_FAILED; in kms_sw_displaytarget_unmap()
398 if (kms_sw_dt->ro_mapped != MAP_FAILED) { in kms_sw_displaytarget_unmap()
400 kms_sw_dt->ro_mapped = MAP_FAILED; in kms_sw_displaytarget_unmap()
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Dmemorypool.c31 #ifndef MAP_FAILED
32 #define MAP_FAILED ((void*)-1) macro
96 pool->memory = MAP_FAILED; in MHD_pool_create()
106 pool->memory = MAP_FAILED; in MHD_pool_create()
108 if ((pool->memory == MAP_FAILED) || (pool->memory == NULL)) in MHD_pool_create()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c166 if (bad_addr[0] == MAP_FAILED) in setup()
171 if (good_addr[0] == MAP_FAILED) in setup()
176 if (bad_addr[1] == MAP_FAILED) in setup()
181 if (good_addr[1] == MAP_FAILED) in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D28-3.c53 if (buf == MAP_FAILED) { in main()
75 if (buf == MAP_FAILED && errno == EBADF) { in main()
78 } else if (buf == MAP_FAILED) { in main()
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
Dsegment.c147 if (segp->seg_start == MAP_FAILED) in unmap_segment()
165 segp->seg_start = MAP_FAILED; in unmap_segment()
267 if (memp == MAP_FAILED) { in map_anon_segment()
400 if (memp == MAP_FAILED) { in map_file_segment()
448 if (segp->seg_start == MAP_FAILED) { in map_shm_segment()
525 segp->seg_start = MAP_FAILED; in segment_register()
592 if (segp->seg_start != MAP_FAILED) { in show_one_segment()
734 if (segp->seg_start == MAP_FAILED) in segment_unmap()
751 segp->seg_start = MAP_FAILED; in segment_unmap()
773 if (segp->seg_start != MAP_FAILED) { in segment_map()
[all …]
/third_party/musl/src/mman/
Dmmap.c19 return MAP_FAILED; in __mmap()
23 return MAP_FAILED; in __mmap()
27 return MAP_FAILED; in __mmap()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D27-1.c61 if (pa == MAP_FAILED) { in main()
76 if (pa == MAP_FAILED) { in main()
83 if (pa == MAP_FAILED) { in main()
D24-2.c72 if (pa == MAP_FAILED) { in main()
95 if (pa == MAP_FAILED && errno == ENOMEM) { in main()
100 if (pa == MAP_FAILED) in main()
/third_party/elfutils/lib/
Dcrc32_file.c54 if (mapped == MAP_FAILED && errno == ENOMEM) in crc32_file()
60 fd, 0)) == MAP_FAILED && errno == ENOMEM) in crc32_file()
63 if (mapped != MAP_FAILED) in crc32_file()
/third_party/pulseaudio/src/pulsecore/
Dshm.c123 …ap(NULL, m->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, (off_t) 0)) == MAP_FAILED) { in privatemem_create()
191 …GE_ALIGN(m->size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_NORESERVE, fd, (off_t) 0)) == MAP_FAILED) { in sharedmem_create()
266 #ifdef MAP_FAILED in pa_shm_free()
267 pa_assert(m->ptr != MAP_FAILED); in pa_shm_free()
314 #ifdef MAP_FAILED in pa_shm_punch()
315 pa_assert(m->ptr != MAP_FAILED); in pa_shm_punch()
395 …((m->ptr = mmap(NULL, PA_PAGE_ALIGN(st.st_size), prot, MAP_SHARED, fd, (off_t) 0)) == MAP_FAILED) { in shm_attach()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D6-1-buildonly.c18 #ifndef MAP_FAILED
19 #error MAP_FAILED not defined
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c74 if (addr == MAP_FAILED) in test_hugemmap()
87 if (addr2 == MAP_FAILED) { in test_hugemmap()
94 if (addr2 == MAP_FAILED) in test_hugemmap()
/third_party/musl/Benchmark/musl/
Dlibc_mman.cpp101 if (mem != MAP_FAILED) { in Bm_function_Mmap_anonymous()
119 if (mem != MAP_FAILED) { in Bm_function_Munmap_anonymous()
138 if (mem != MAP_FAILED) { in Bm_function_Mmap_fd()
162 if (mem != MAP_FAILED) { in Bm_function_Munmap_fd()
/third_party/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_process.c122 if (p == MAP_FAILED) in mmap_anon()
149 if (p == MAP_FAILED) { in mmap_file()
173 if (p == MAP_FAILED) in mmap_lock1()
189 if (p == MAP_FAILED) in mmap_lock2()
/third_party/musl/libc-test/src/functionalext/relro/
Ddlopen_ext_relro_test.c419 if (map == MAP_FAILED) { in dlopen_ext_relro_1600()
456 if (map == MAP_FAILED) { in dlopen_ext_relro_1700()
493 if (map == MAP_FAILED) { in dlopen_ext_relro_1800()
530 if (map == MAP_FAILED) { in dlopen_ext_relro_1900()
565 if (map == MAP_FAILED) { in dlopen_ext_relro_2000()
602 if (map == MAP_FAILED) { in dlopen_ext_relro_2100()
640 if (map == MAP_FAILED) { in dlopen_ext_relro_2200()
679 if (map == MAP_FAILED) { in dlopen_ext_relro_2300()
717 if (map == MAP_FAILED) { in dlopen_ext_relro_2400()
/third_party/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect02.c55 static char *addr = MAP_FAILED;
143 addr = MAP_FAILED; in main()
173 if (addr != MAP_FAILED) { in cleanup()

12345678910>>...17