/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 43 {.flags = MAP_SHARED,.prot = PROT_WRITE}, 45 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE}, 47 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE}, 48 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 52 {.flags = MAP_PRIVATE,.prot = PROT_WRITE}, 54 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE}, 56 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE}, 57 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 70 if (t->prot & PROT_WRITE) in print_error()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | virtual_address_range.c | 89 PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in validate_lower_address_hint() 105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main() 121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
|
D | mlock2-tests.c | 298 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock() 407 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault() 450 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present() 497 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 523 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 578 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
|
/external/strace/tests-mx32/ |
D | old_mmap.c | 74 PROT_READ|PROT_WRITE, in main() 104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main() 110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
|
D | mmap.c | 74 p = mmap(addr, length1, PROT_READ | PROT_WRITE, in main() 81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
/external/strace/tests/ |
D | old_mmap.c | 74 PROT_READ|PROT_WRITE, in main() 104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main() 110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
|
D | mmap.c | 74 p = mmap(addr, length1, PROT_READ | PROT_WRITE, in main() 81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
/external/strace/tests-m32/ |
D | old_mmap.c | 74 PROT_READ|PROT_WRITE, in main() 104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main() 110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
|
D | mmap.c | 74 p = mmap(addr, length1, PROT_READ | PROT_WRITE, in main() 81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
/external/libchrome/base/memory/ |
D | shared_memory_handle_android.cc | 92 return (prot >= 0 && (prot & PROT_WRITE) == 0); in IsRegionReadOnly() 101 if ((prot & PROT_WRITE) == 0) { in SetRegionReadOnly() 106 prot &= ~PROT_WRITE; in SetRegionReadOnly()
|
/external/compiler-rt/lib/profile/ |
D | WindowsMMap.c | 34 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap() 43 if (prot & PROT_WRITE) { in mmap() 67 if (prot & PROT_WRITE) in mmap()
|
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
D | 2-2-buildonly.c | 19 #ifndef PROT_WRITE 20 #error PROT_WRITE not defined
|
/external/ltp/testcases/kernel/controllers/memcg/functional/ |
D | memcg_process.c | 136 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_anon() 163 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_file() 187 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock1() 203 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock2()
|
/external/autotest/client/tests/memory_api/ |
D | memory_api.c | 64 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main() 89 PROT_READ | PROT_WRITE)) { in main() 136 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main()
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.c | 327 PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in check_mfd_readable() 343 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 350 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 362 PROT_READ | PROT_WRITE); in check_mfd_writeable() 393 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 397 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 404 if (mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE) >= 0) { in check_mfd_non_writeable()
|
/external/ltp/testcases/kernel/numa/ |
D | support_numa.c | 128 buf = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 147 buf = mmap(NULL, size, PROT_READ | PROT_WRITE, in main() 165 buf = mmap(NULL, hpsz, PROT_READ | PROT_WRITE, in main()
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress03.c | 146 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_FIXED | MAP_SHARED, in main() 168 PROT_READ | PROT_WRITE, in do_test() 176 PROT_READ | PROT_WRITE, in do_test()
|
/external/compiler-rt/test/tsan/ |
D | java_heap_init.cc | 11 jptr jheap = (jptr)mmap(0, kHeapSize, PROT_READ | PROT_WRITE, in main() 17 jheap = (jptr)mmap((void*)jheap, kHeapSize, PROT_READ | PROT_WRITE, in main()
|
D | ignored-interceptors-mmap.cc | 21 void *p = mmap(0, kSize, PROT_READ|PROT_WRITE, in mmap_and_ignore_reads_and_writes() 27 void *new_p = mmap(p, kSize, PROT_READ|PROT_WRITE, in mmap_and_ignore_reads_and_writes()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | memfd_test.c | 161 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared() 247 PROT_READ | PROT_WRITE, in mfd_assert_read() 280 PROT_READ | PROT_WRITE, in mfd_assert_write() 294 PROT_WRITE, in mfd_assert_write() 318 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_assert_write() 354 PROT_READ | PROT_WRITE, in mfd_fail_write() 366 PROT_WRITE, in mfd_fail_write() 384 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_fail_write()
|
/external/ltp/testcases/kernel/mem/vma/ |
D | vma01.c | 96 t = mmap(p, 3 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma() 106 u = mmap(t + 3 * ps, 3 * ps, PROT_WRITE, in check_vma() 153 t = mmap(NULL, 9 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in create_bighole()
|
/external/strace/xlat/ |
D | mmap_prot.h | 23 #if defined(PROT_WRITE) || (defined(HAVE_DECL_PROT_WRITE) && HAVE_DECL_PROT_WRITE) 24 XLAT(PROT_WRITE),
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
D | cpuset_memory_test.c | 161 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_anon() 190 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_file() 214 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock1() 230 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock2()
|
/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages02.c | 168 private = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 180 shared = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 194 PROT_READ | PROT_WRITE, in test_migrate_current_process() 230 PROT_READ | PROT_WRITE, in test_migrate_other_process()
|