/bionic/tests/ |
D | sys_mman_test.cpp | 31 void* map = mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 45 void* map = mmap(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 66 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST() 81 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); in TEST() 117 void* map = mmap(nullptr, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); in TEST() 125 map = mmap(nullptr, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize); in TEST() 153 void* map = mmap(nullptr, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, pagesize); in TEST() 161 map = mmap(nullptr, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, 2 * pagesize); in TEST() 188 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, tempfile.fd, 0); in TEST() 206 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST() [all …]
|
D | sys_prctl_test.cpp | 39 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
|
D | android_unsafe_frame_pointer_chase_test.cpp | 136 mmap(nullptr, kStackSize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
|
D | dlext_test.cpp | 326 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 345 void* new_start = mmap(start, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 350 void* start = mmap(nullptr, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 361 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 394 void* start = mmap(nullptr, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 405 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 422 void* start = mmap(nullptr, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 441 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in SetUp() 2045 uintptr_t reserved_addr = reinterpret_cast<uintptr_t>(mmap(nullptr, addr_end - addr_start, in TEST() 2059 void* map = mmap(addr, size, PROT_READ | PROT_WRITE, in TEST()
|
/bionic/libc/include/sys/ |
D | mman.h | 53 void* _Nonnull mmap(void* _Nullable __addr, size_t __size, int __prot, int __flags, int __fd, off_t… 55 void* _Nonnull mmap(void* _Nullable __addr, size_t __size, int __prot, int __flags, int __fd, off_t…
|
/bionic/benchmarks/ |
D | syscall_mm_benchmark.cpp | 52 void* addr = mmap(area, params.size, params.prot, params.flags, fd, 0); in MmapBenchmarkImpl() 89 mmap(nullptr, area_size, params.prot, params.flags & ~MAP_FIXED, fd, 0)); in MmapFixedBenchmark() 267 void* addr = mmap(nullptr, params.size, params.prot, params.flags, 0, 0); in MadviseBenchmark() 348 void* addr = mmap(nullptr, params.size, params.initial_prot, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in MprotectBenchmarkWithMmapAnon() 404 void* addr = mmap(nullptr, params.size, params.initial_prot, MAP_PRIVATE, tf.fd, 0); in MprotectBenchmarkWithMmapFile()
|
/bionic/libc/bionic/ |
D | pthread_create.cpp | 76 void* allocation = mmap(nullptr, allocation_size, in __allocate_temp_bionic_tls() 98 void* stack_base = mmap(nullptr, SIGNAL_STACK_SIZE, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in __init_alternate_signal_stack() 122 mmap(nullptr, SCS_GUARD_REGION_SIZE, 0, MAP_PRIVATE | MAP_ANON, -1, 0)); in __init_shadow_call_stack() 229 char* const space = static_cast<char*>(mmap(nullptr, mmap_size, PROT_NONE, flags, -1, 0)); in __allocate_thread_mapping()
|
D | android_set_abort_message.cpp | 88 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
|
D | android_crash_detail.cpp | 78 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_crash_detail_register()
|
D | bionic_allocator.cpp | 193 mmap(nullptr, page_size(), PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in alloc_page() 272 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
|
D | legacy_32_bit_support.cpp | 136 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() function
|
D | atexit.cpp | 192 new_pages = mmap(nullptr, new_capacity_bytes, PROT_READ | PROT_WRITE, in expand_capacity()
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 69 if ((p = mmap(NULL, sizeof(*p), PROT_READ|PROT_WRITE, in _rs_allocate()
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_APP.TXT | 48 # b/36726183. Note arm does not support mmap 49 void* mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) x86
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_157.S | 54 CALL(mmap)
|
D | liblinker_reloc_bench_125.S | 93 CALL(mmap)
|
/bionic/tests/headers/posix/ |
D | sys_mman_h.c | 76 FUNCTION(mmap, void* (*f)(void*, size_t, int, int, int, off_t)); in sys_mman_h()
|
/bionic/tests/libs/ |
D | heap_tagging_helper.cpp | 73 void* p = mmap(nullptr, page_size, PROT_READ | PROT_WRITE | PROT_MTE, in main()
|
/bionic/linker/ |
D | linker_phdr.cpp | 590 void* mmap_ptr = mmap(nullptr, size, PROT_NONE, mmap_flags, -1, 0); in ReserveWithAlignmentPadding() 610 reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding() 626 mmap_ptr = reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding() 950 void* zeromap = mmap(reinterpret_cast<void*>(seg_file_end), in LoadSegments() 1223 void* map = mmap(reinterpret_cast<void*>(seg_page_start), size, PROT_READ, in phdr_table_serialize_gnu_relro() 1263 temp_mapping = mmap(nullptr, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in phdr_table_map_gnu_relro() 1309 void* map = mmap(mem_base + match_offset, mismatch_offset - match_offset, in phdr_table_map_gnu_relro()
|
D | linker_cfi.cpp | 56 reinterpret_cast<char*>(mmap(nullptr, aligned_end - aligned_start, PROT_READ | PROT_WRITE, in ShadowWrite() 157 mmap(nullptr, kShadowSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in MapShadow()
|
D | linker_block_allocator.cpp | 122 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
|
/bionic/libc/system_properties/ |
D | contexts_serialized.cpp | 49 void* const map_result = mmap(nullptr, context_nodes_mmap_size, PROT_READ | PROT_WRITE, in InitializeContextNodes()
|
D | prop_area.cpp | 99 void* const memory_area = mmap(nullptr, pa_size_, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw() 126 void* const map_result = mmap(nullptr, pa_size_, PROT_READ, MAP_SHARED, fd, 0); in map_fd_ro()
|
/bionic/libc/stdio/ |
D | printf_common.h | 565 *argtable = static_cast<arg*>(mmap(nullptr, *argtablesiz, in __find_arguments() 676 *typetable = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table() 682 unsigned char* new_table = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
|
/bionic/docs/ |
D | 32-bit-abi.md | 33 available. API 12 adds some of the `<unistd.h>` functions, API 21 adds `mmap`, 39 and `mmap` (but no other functions that are unavailable at your target
|