/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/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() 136 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { 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()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | mman-common.h | 22 #define PROT_WRITE 0x2 macro
|
/bionic/libc/kernel/uapi/asm-mips/asm/ |
D | mman.h | 24 #define PROT_WRITE 0x02 macro
|
/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() 76 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); in TEST() 148 void* map = mmap(NULL, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, pagesize); in TEST() 156 map = mmap(NULL, pagesize, PROT_WRITE, 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/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 | 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 | getentropy_linux.c | 444 PROT_READ|PROT_WRITE, in getentropy_fallback()
|
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()
|
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/tests/ |
D | linker_allocator_test.cpp | 114 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all()
|
/bionic/linker/ |
D | linker_allocator.cpp | 97 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0)); in create_new_page()
|
D | linker_phdr.cpp | 120 MAYBE_MAP_FLAG((x), PF_W, PROT_WRITE)) 459 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments()
|
D | linker.cpp | 1057 protect_data(PROT_READ | PROT_WRITE); in do_dlopen() 1067 protect_data(PROT_READ | PROT_WRITE); in do_dlclose() 1647 protect_data(PROT_READ | PROT_WRITE); in CallFunction()
|
/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)
|