/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 44 {.flags = MAP_SHARED,.prot = PROT_WRITE}, 46 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE}, 48 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE}, 49 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 53 {.flags = MAP_PRIVATE,.prot = PROT_WRITE}, 55 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE}, 57 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE}, 58 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 71 if (t->prot & PROT_WRITE) in print_error()
|
D | 7-4.c | 69 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main() 82 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
D | 7-3.c | 66 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 80 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, in main()
|
D | 7-2.c | 64 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 81 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
|
/external/valgrind/memcheck/tests/ |
D | addressable.c | 43 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test2() 57 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test3() 67 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test4() 69 mprotect(m, pgsz, PROT_WRITE); in test4() 80 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test5()
|
D | mempool.c | 37 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool() 40 PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool() 59 PROT_READ|PROT_WRITE|PROT_EXEC, in push()
|
D | pointer-trace.c | 59 map = mmap(0, stepsize * 2, PROT_WRITE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main() 66 map = mmap(0, stepsize * 2, PROT_WRITE|PROT_READ, MAP_PRIVATE, fd, 0); in main()
|
/external/valgrind/memcheck/tests/x86-linux/ |
D | bug133694.c | 9 …if ((a1 = mmap((void *)0x200000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, … in main() 21 …if (mmap((void *)0x100000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0)… in main() 27 …if (mmap((void *)0x100000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) == MAP_FA… in main()
|
/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/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/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()
|
D | mremaps.c | 36 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main() 64 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main()
|
/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/valgrind/none/tests/amd64-linux/ |
D | map_32bits.c | 15 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, in main() 34 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in main()
|
/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/valgrind/none/tests/linux/ |
D | mremap3.c | 11 void *initial_area = mmap((void *)0x10000000, 40960, PROT_READ|PROT_WRITE, in main() 21 void *area = mmap(initial_area, 4096, PROT_READ|PROT_WRITE, in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|
/external/strace/xlat/ |
D | mmap_prot.h | 17 #if defined(PROT_WRITE) || (defined(HAVE_DECL_PROT_WRITE) && HAVE_DECL_PROT_WRITE) 18 XLAT(PROT_WRITE),
|
/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/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.c | 303 PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in check_mfd_readable() 319 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 326 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 338 PROT_READ | PROT_WRITE); in check_mfd_writeable() 369 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 373 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 380 if (mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE) >= 0) { in check_mfd_non_writeable()
|
/external/ltp/testcases/kernel/mem/vma/ |
D | vma01.c | 95 t = mmap(p, 3 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma() 105 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/linux-kselftest/tools/testing/selftests/memfd/ |
D | memfd_test.c | 154 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared() 240 PROT_READ | PROT_WRITE, in mfd_assert_read() 267 PROT_READ | PROT_WRITE, in mfd_assert_write() 281 PROT_WRITE, in mfd_assert_write() 305 r = mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE); in mfd_assert_write() 341 PROT_READ | PROT_WRITE, in mfd_fail_write() 353 PROT_WRITE, in mfd_fail_write() 371 r = mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE); in mfd_fail_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/valgrind/helgrind/tests/ |
D | stackteardown.c | 97 stack = mmap(NULL, sz, PROT_READ|PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, in main() 100 stack = mmap(NULL, sz, PROT_READ|PROT_WRITE, MAP_PRIVATE | MAP_ANON, in main()
|