/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | atexit.c | 75 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit() 79 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit() 97 if (mprotect(p, pgsize, PROT_READ)) in __cxa_atexit() 136 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { in __cxa_finalize() 138 mprotect(p, pgsize, PROT_READ); in __cxa_finalize() 182 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __atexit_register_cleanup() 192 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __atexit_register_cleanup() 198 mprotect(p, pgsize, PROT_READ); in __atexit_register_cleanup()
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 75 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, in _rs_allocate() 79 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE, in _rs_allocate()
|
/bionic/linker/tests/ |
D | linker_allocator_test.cpp | 113 allocator.protect_all(PROT_READ); in protect_all() 114 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all() 119 allocator.protect_all(PROT_READ); in protect_all()
|
/bionic/tests/ |
D | sys_mman_test.cpp | 26 void* map = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 32 void* map = mmap64(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 40 void* map = mmap(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 47 void* map = mmap64(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST() 61 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST() 112 void* map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); in TEST() 120 map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize); in TEST()
|
D | buffer_tests.cpp | 368 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSingleBufferOverreadTest() 390 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSrcDstBufferOverreadTest() 444 ASSERT_TRUE(mprotect(&memory1[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest() 445 ASSERT_TRUE(mprotect(&memory2[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest()
|
D | pthread_test.cpp | 120 void* stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST() 520 void* stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | mman-common.h | 21 #define PROT_READ 0x1 macro
|
/bionic/libc/kernel/uapi/asm-mips/asm/ |
D | mman.h | 22 #define PROT_READ 0x01 macro
|
/bionic/libc/bionic/ |
D | dlmalloc.c | 50 void* map = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in named_anonymous_mmap()
|
D | libc_init_static.cpp | 84 mprotect(reinterpret_cast<void*>(seg_page_start), seg_page_end - seg_page_start, PROT_READ); in apply_gnu_relro()
|
D | pthread_create.cpp | 69 ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in __init_alternate_signal_stack() 106 int prot = PROT_READ | PROT_WRITE; in __create_thread_stack()
|
D | system_properties.cpp | 208 void *const memory_area = mmap(NULL, pa_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw() 239 void* const map_result = mmap(NULL, pa_size, PROT_READ, MAP_SHARED, fd, 0); in map_fd_ro()
|
D | getentropy_linux.c | 444 PROT_READ|PROT_WRITE, in getentropy_fallback()
|
D | libc_logging.cpp | 666 void* map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
|
D | malloc_debug_qemu.cpp | 614 qtrace = mmap(NULL, PAGESIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in malloc_debug_initialize()
|
/bionic/linker/ |
D | linker_phdr.cpp | 119 MAYBE_MAP_FLAG((x), PF_R, PROT_READ) | \ 229 …void* mmap_result = mmap64(nullptr, phdr_size_, PROT_READ, MAP_PRIVATE, fd_, file_offset_ + page_m… in ReadProgramHeader() 521 return _phdr_table_set_gnu_relro_prot(phdr_table, phdr_count, load_bias, PROT_READ); in phdr_table_protect_gnu_relro() 555 void* map = mmap(reinterpret_cast<void*>(seg_page_start), size, PROT_READ, in phdr_table_serialize_gnu_relro() 591 temp_mapping = mmap(nullptr, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in phdr_table_map_gnu_relro() 639 PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, match_offset); in phdr_table_map_gnu_relro()
|
D | linker_allocator.cpp | 97 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0)); in create_new_page()
|
D | linker.cpp | 1057 protect_data(PROT_READ | PROT_WRITE); in do_dlopen() 1062 protect_data(PROT_READ); in do_dlopen() 1067 protect_data(PROT_READ | PROT_WRITE); in do_dlclose() 1069 protect_data(PROT_READ); in do_dlclose() 1647 protect_data(PROT_READ | PROT_WRITE); in CallFunction() 2602 protect_data(PROT_READ);
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vfwprintf.c | 1352 PROT_WRITE|PROT_READ, MAP_ANON|MAP_PRIVATE, -1, 0); in __find_arguments() 1465 *typetable = mmap(NULL, newsize, PROT_WRITE|PROT_READ, in __grow_type_table() 1471 unsigned char *new = mmap(NULL, newsize, PROT_WRITE|PROT_READ, in __grow_type_table()
|
D | vfprintf.c | 1378 PROT_WRITE|PROT_READ, MAP_ANON|MAP_PRIVATE, -1, 0); in __find_arguments() 1499 *typetable = mmap(NULL, newsize, PROT_WRITE|PROT_READ, in __grow_type_table() 1505 unsigned char *new = mmap(NULL, newsize, PROT_WRITE|PROT_READ, in __grow_type_table()
|
/bionic/libc/upstream-dlmalloc/ |
D | malloc.c | 1642 #define MMAP_PROT (PROT_READ|PROT_WRITE)
|