Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 25 of 547) sorted by relevance

12345678910>>...22

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c43 {.flags = MAP_SHARED,.prot = PROT_READ},
46 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE},
47 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC},
49 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
52 {.flags = MAP_PRIVATE,.prot = PROT_READ},
55 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE},
56 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_EXEC},
58 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
68 if (t->prot & PROT_READ) in print_error()
D27-1.c59 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
74 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
80 pa = mmap(pa, len / 2, PROT_READ, MAP_SHARED | MAP_FIXED, fd, 0); in main()
/external/valgrind/memcheck/tests/
Daddressable.c35 char *m = mm(0, pgsz * 5, PROT_READ); in test1()
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()
60 mm(&m[pgsz], pgsz, PROT_READ); in test3()
67 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test4()
80 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test5()
88 mprotect(m, pgsz*5, PROT_READ); in test5()
/external/autotest/client/site_tests/security_mprotect/src/
Dprot_exec.c37 PROT_READ | PROT_WRITE, MAP_SHARED, in main()
43 PROT_READ | PROT_EXEC, MAP_SHARED, in main()
48 PROT_READ, MAP_SHARED, in main()
51 if (mprotect(areaex, sizeof(int), PROT_READ | PROT_EXEC)) in main()
/external/valgrind/none/tests/amd64/
Dnibz_bennee_mmap.c35 if ((p = mmap((void*)0x1F7F100000, 4096, PROT_READ|PROT_WRITE, in main()
46 if ((p = mmap((void*)0x1F7F101000, 4096, PROT_READ, in main()
52 if ((p = mmap((void*)0x1F7F101000, 4096, PROT_READ, in main()
/external/valgrind/memcheck/tests/x86-linux/
Dbug133694.c9 …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/kernel/syscalls/memmap/
Dmem03.c92 mm1 = mmap(0, 64, PROT_READ, MAP_PRIVATE, f1, 0); in main()
93 mm2 = mmap(0, 64, PROT_READ, MAP_PRIVATE, f2, 0); in main()
110 mm1 = mmap(save_mm2, 64, PROT_READ, MAP_PRIVATE, f1, 0); in main()
111 mm2 = mmap(save_mm1, 64, PROT_READ, MAP_PRIVATE, f2, 0); in main()
/external/autotest/client/tests/memory_api/
Dmemory_api.c64 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main()
78 if (-1 == mprotect(mem, HALF_MEM(memsize), PROT_READ)) { in main()
89 PROT_READ | PROT_WRITE)) { in main()
136 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main()
/external/elfutils/lib/
Dcrc32_file.c52 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0); in crc32_file()
58 && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, in crc32_file()
75 } while (mmap (mapped, mapsize, PROT_READ, MAP_FIXED|MAP_PRIVATE, in crc32_file()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D2-1-buildonly.c19 #ifndef PROT_READ
20 #error PROT_READ not defined
/external/linux-kselftest/tools/testing/selftests/memfd/
Dmemfd_test.c154 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared()
172 PROT_READ, in mfd_assert_mmap_private()
227 PROT_READ, in mfd_assert_read()
240 PROT_READ | PROT_WRITE, in mfd_assert_read()
267 PROT_READ | PROT_WRITE, in mfd_assert_write()
296 PROT_READ, 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()
366 PROT_READ, in mfd_fail_write()
371 r = mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE); in mfd_fail_write()
/external/libchrome/base/files/
Dmemory_mapped_file_posix.cc72 flags |= PROT_READ; in MapFileRegionToMemory()
75 flags |= PROT_READ | PROT_WRITE; in MapFileRegionToMemory()
82 flags |= PROT_READ | PROT_WRITE; in MapFileRegionToMemory()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.c296 p = check_mmap(filename, lineno, NULL, MFD_DEF_SIZE, PROT_READ, in check_mfd_readable()
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()
335 PROT_READ, 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()
378 p = mmap(NULL, MFD_DEF_SIZE, PROT_READ, 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/syscalls/mprotect/
Dmprotect01.c68 {NULL, 0, PROT_READ, ENOMEM, setup1},
74 {NULL, 1024, PROT_READ, EINVAL, setup2},
148 self->addr = mmap(0, self->len, PROT_READ, MAP_SHARED, fd, 0); in setup3()
/external/compiler-rt/test/esan/TestCases/
Dmmap-shadow-conflict.c9 void *Map = mmap((void *)0x0000016000000000ULL, 0x1000, PROT_READ, in main()
15 Map = mmap((void *)0x0000016000000000ULL, 0x1000, PROT_READ, in main()
/external/valgrind/none/tests/
Dmap_unaligned.c10 if ( ( p1 = mmap( 0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED ) in main()
25 …if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0 ) ) == M… in main()
/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/libchrome/sandbox/linux/seccomp-bpf/
Dsyscall_unittest.cc184 PROT_READ, in TEST()
196 PROT_READ | PROT_WRITE, in TEST()
214 kMMapNr, (void*)NULL, 8192L, PROT_READ, MAP_PRIVATE, fd, 0L))); in TEST()
219 PROT_READ, in TEST()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc128 PROT_READ | PROT_WRITE, in MmapOrDie()
172 PROT_READ | PROT_WRITE, in MmapNoReserveOrDie()
186 PROT_READ | PROT_WRITE, in MmapFixedOrDie()
205 return 0 == internal_mprotect((void *)addr, size, PROT_READ); in MprotectReadOnly()
257 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
264 uptr p = internal_mmap(addr, size, PROT_READ | PROT_WRITE, flags, fd, offset); in MapWritableFileToMemory()
/external/valgrind/none/tests/amd64-linux/
Dmap_32bits.c15 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/
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()
/external/valgrind/none/tests/linux/
Dmremap3.c11 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/
Dhugetlb_vs_thp_test.c17 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/
Dmmap_prot.h14 #if defined(PROT_READ) || (defined(HAVE_DECL_PROT_READ) && HAVE_DECL_PROT_READ)
15 XLAT(PROT_READ),
/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()

12345678910>>...22