/bionic/tests/ |
D | sys_mman_test.cpp | 27 void* map = mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 33 void* map = mmap64(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 202 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST() 227 ASSERT_EQ(MAP_FAILED, mmap(nullptr, kHuge, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST() 231 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST() 241 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0)); in TEST() 247 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST() 260 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
|
D | sys_prctl_test.cpp | 38 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
|
D | dlext_test.cpp | 324 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 343 void* new_start = mmap(start, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 348 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 359 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 392 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 403 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 420 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() 440 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in SetUp() 2049 PROT_NONE, MAP_ANON | MAP_PRIVATE, in TEST() 2058 MAP_ANON | MAP_PRIVATE | MAP_FIXED, -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 | pthread_test.cpp | 165 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST() 710 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST() 1848 …void* sig_stack = mmap(nullptr, sig_stack_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOU… in TEST() 2838 void* page = mmap(nullptr, kPageSize, prot, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST()
|
/bionic/libc/bionic/ |
D | mmap.cpp | 58 (flags & (MAP_PRIVATE | MAP_ANONYMOUS)) == (MAP_PRIVATE | MAP_ANONYMOUS); in mmap64()
|
D | pthread_create.cpp | 74 MAP_PRIVATE | MAP_ANONYMOUS, in __allocate_temp_bionic_tls() 89 …void* stack_base = mmap(nullptr, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOU… in __init_alternate_signal_stack() 113 mmap(nullptr, SCS_GUARD_REGION_SIZE, 0, MAP_PRIVATE | MAP_ANON, -1, 0)); in __init_shadow_call_stack() 215 const int flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE; in __allocate_thread_mapping()
|
D | android_set_abort_message.cpp | 81 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
|
D | bionic_allocator.cpp | 196 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in alloc_page() 276 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
|
D | atexit.cpp | 175 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in expand_capacity()
|
D | fdsan.cpp | 87 mmap(nullptr, aligned_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in at()
|
/bionic/libc/kernel/uapi/linux/ |
D | mman.h | 30 #define MAP_PRIVATE 0x02 macro
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 70 MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED) in _rs_allocate()
|
/bionic/linker/ |
D | linker_phdr.cpp | 525 int mmap_flags = MAP_PRIVATE | MAP_ANONYMOUS; in ReserveWithAlignmentPadding() 694 MAP_FIXED|MAP_PRIVATE, in LoadSegments() 720 MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE, in LoadSegments() 902 MAP_PRIVATE|MAP_FIXED, fd, *file_offset); in phdr_table_serialize_gnu_relro() 941 temp_mapping = mmap(nullptr, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in phdr_table_map_gnu_relro() 988 PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, *file_offset + match_offset); in phdr_table_map_gnu_relro()
|
D | linker_mapped_file_fragment.cpp | 62 mmap64(nullptr, map_size, PROT_READ, MAP_PRIVATE, fd, page_min)); in Map()
|
D | linker_cfi.cpp | 57 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in ShadowWrite() 158 mmap(nullptr, kShadowSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in MapShadow()
|
D | linker_block_allocator.cpp | 124 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
|
D | linker.cpp | 310 MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in soinfo_free()
|
/bionic/tests/headers/posix/ |
D | sys_mman_h.c | 40 MACRO(MAP_PRIVATE); in sys_mman_h()
|
/bionic/libc/system_properties/ |
D | contexts_serialized.cpp | 49 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in InitializeContextNodes()
|
/bionic/libc/stdio/ |
D | printf_common.h | 542 MAP_ANON | MAP_PRIVATE, -1, 0)); in __find_arguments() 653 MAP_ANON | MAP_PRIVATE, -1, 0)); in __grow_type_table() 659 MAP_ANON | MAP_PRIVATE, -1, 0)); in __grow_type_table()
|