Home
last modified time | relevance | path

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

12345678910>>...22

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c43 {.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/
Dvirtual_address_range.c89 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()
Dmlock2-tests.c298 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/
Dold_mmap.c74 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()
Dmmap.c74 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/
Dold_mmap.c74 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()
Dmmap.c74 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/
Dold_mmap.c74 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()
Dmmap.c74 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/
Dshared_memory_handle_android.cc92 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/
DWindowsMMap.c34 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/
D2-2-buildonly.c19 #ifndef PROT_WRITE
20 #error PROT_WRITE not defined
/external/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_process.c136 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/
Dmemory_api.c64 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/
Dmemfd_create_common.c327 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/
Dsupport_numa.c128 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/
Dmmapstress03.c146 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/
Djava_heap_init.cc11 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()
Dignored-interceptors-mmap.cc21 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/
Dhugetlb_vs_thp_test.c18 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/
Dmemfd_test.c161 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/
Dvma01.c96 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/
Dmmap_prot.h23 #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/
Dcpuset_memory_test.c161 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/
Dmigrate_pages02.c168 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()

12345678910>>...22