Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 20 of 20) sorted by relevance

/bionic/libc/upstream-openbsd/android/include/
Darc4random.h75 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/
Datexit.c75 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/
Dmman-common.h22 #define PROT_WRITE 0x2 macro
/bionic/libc/kernel/uapi/asm-mips/asm/
Dmman.h24 #define PROT_WRITE 0x02 macro
/bionic/tests/
Dsys_mman_test.cpp26 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()
Dbuffer_tests.cpp368 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()
Dpthread_test.cpp120 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/
Ddlmalloc.c50 void* map = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in named_anonymous_mmap()
Dpthread_create.cpp69 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()
Dgetentropy_linux.c444 PROT_READ|PROT_WRITE, in getentropy_fallback()
Dsystem_properties.cpp208 void *const memory_area = mmap(NULL, pa_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw()
Dlibc_logging.cpp666 void* map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
Dmalloc_debug_qemu.cpp614 qtrace = mmap(NULL, PAGESIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in malloc_debug_initialize()
/bionic/linker/tests/
Dlinker_allocator_test.cpp114 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all()
/bionic/linker/
Dlinker_allocator.cpp97 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0)); in create_new_page()
Dlinker_phdr.cpp120 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()
Dlinker.cpp1057 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/
Dvfwprintf.c1352 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()
Dvfprintf.c1378 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/
Dmalloc.c1642 #define MMAP_PROT (PROT_READ|PROT_WRITE)