Home
last modified time | relevance | path

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

12345678910>>...19

/external/linux-kselftest/tools/testing/selftests/vm/
Dmap_fixed_noreplace.c48 if (p == MAP_FAILED) { in main()
68 if (p == MAP_FAILED) { in main()
88 if (p != MAP_FAILED) { in main()
109 if (p != MAP_FAILED) { in main()
129 if (p != MAP_FAILED) { in main()
149 if (p != MAP_FAILED) { in main()
169 if (p == MAP_FAILED) { in main()
189 if (p == MAP_FAILED) { in main()
Dvirtual_address_range.c91 if (ptr == MAP_FAILED) in validate_lower_address_hint()
108 if (ptr[i] == MAP_FAILED) { in main()
124 if (hptr[i] == MAP_FAILED) in main()
/external/selinux/libselinux/src/
Dsestatus.c98 if (selinux_status == MAP_FAILED) { in selinux_status_updated()
141 if (selinux_status == MAP_FAILED) { in selinux_status_getenforce()
178 if (selinux_status == MAP_FAILED) { in selinux_status_policyload()
213 if (selinux_status == MAP_FAILED) in selinux_status_deny_unknown()
276 if (selinux_status == MAP_FAILED) { in selinux_status_open()
302 selinux_status = MAP_FAILED; in selinux_status_open()
332 if (selinux_status == MAP_FAILED) in selinux_status_close()
/external/compiler-rt/lib/profile/
DWindowsMMap.c35 return MAP_FAILED; in mmap()
38 return MAP_FAILED; in mmap()
40 return MAP_FAILED; in mmap()
64 return MAP_FAILED; in mmap()
78 ret = MAP_FAILED; in mmap()
/external/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()
/external/libffi/testsuite/libffi.call/
Dffitest.h45 # ifndef MAP_FAILED
46 # define MAP_FAILED -1 macro
58 # ifndef MAP_FAILED
59 # define MAP_FAILED -1 macro
/external/python/cpython2/Modules/_ctypes/libffi/testsuite/libffi.call/
Dffitest.h45 # ifndef MAP_FAILED
46 # define MAP_FAILED -1 macro
58 # ifndef MAP_FAILED
59 # define MAP_FAILED -1 macro
/external/tensorflow/tensorflow/lite/
Dmmap_allocation.cc29 : Allocation(error_reporter), mmapped_buffer_(MAP_FAILED) { in MMAPAllocation()
40 if (mmapped_buffer_ == MAP_FAILED) { in MMAPAllocation()
57 bool MMAPAllocation::valid() const { return mmapped_buffer_ != MAP_FAILED; } in valid()
/external/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()
/external/blktrace/btt/
Dmmap.c36 static void *cur_map = MAP_FAILED;
83 if (cur_map != MAP_FAILED) in move_map()
93 if (cur_map == MAP_FAILED) { in move_map()
125 if (cur_map != MAP_FAILED) in cleanup_ifile()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c180 if (bad_addr[0] == MAP_FAILED) in setup()
185 if (good_addr[0] == MAP_FAILED) in setup()
190 if (bad_addr[1] == MAP_FAILED) in setup()
195 if (good_addr[1] == MAP_FAILED) in setup()
/external/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 …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D27-1.c59 if (pa == MAP_FAILED) { in main()
74 if (pa == MAP_FAILED) { in main()
81 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()
D19-1.c34 if (pa == MAP_FAILED && errno == EBADF) { in main()
39 if (pa == MAP_FAILED) in main()
D23-1.c41 if (pa == MAP_FAILED && errno == ENODEV) { in main()
48 if (pa == MAP_FAILED) { in main()
/external/u-boot/tools/
Dmingw_support.c44 return MAP_FAILED; in mmap()
50 return MAP_FAILED; in mmap()
57 return MAP_FAILED; in mmap()
/external/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()
/external/linux-kselftest/tools/testing/selftests/memfd/
Dmemfd_test.c165 if (p == MAP_FAILED) { in mfd_assert_mmap_shared()
183 if (p == MAP_FAILED) { in mfd_assert_mmap_private()
238 if (p == MAP_FAILED) { in mfd_assert_read()
251 if (p == MAP_FAILED) { in mfd_assert_read()
284 if (p == MAP_FAILED) { in mfd_assert_write()
298 if (p == MAP_FAILED) { in mfd_assert_write()
313 if (p == MAP_FAILED) { in mfd_assert_write()
358 if (p != MAP_FAILED) { in mfd_fail_write()
370 if (p != MAP_FAILED) { in mfd_fail_write()
383 if (p != MAP_FAILED) { in mfd_fail_write()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D6-1-buildonly.c18 #ifndef MAP_FAILED
19 #error MAP_FAILED not defined
/external/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_process.c138 if (p == MAP_FAILED) in mmap_anon()
165 if (p == MAP_FAILED) { in mmap_file()
189 if (p == MAP_FAILED) in mmap_lock1()
205 if (p == MAP_FAILED) in mmap_lock2()
/external/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()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c91 if (addr == MAP_FAILED) in test_hugemmap()
104 if (addr2 == MAP_FAILED) { in test_hugemmap()
111 if (addr2 == MAP_FAILED) in test_hugemmap()
/external/autotest/client/tests/aio_dio_bugs/src/
Daio-free-ring-with-bogus-nr-pages.c48 if (map == MAP_FAILED) in main()
52 if (map == MAP_FAILED) in main()
/external/strace/tests-mx32/
Dmmap.c76 if (MAP_FAILED == p) in main()
117 if (MAP_FAILED == addr) in main()
123 if (MAP_FAILED == p) in main()

12345678910>>...19