Home
last modified time | relevance | path

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

1234567891011

/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()
Dmempool.c37 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()
Dmempool2.c40 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool()
43 PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool()
62 PROT_READ|PROT_WRITE|PROT_EXEC, in push()
Ddw4.c65 p = mmap( 0, 16 * 1024, PROT_READ|PROT_WRITE, in main()
80 q = mmap(NULL, 100, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
/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/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()
Dmremaps.c36 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main()
64 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/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/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/v8/src/base/platform/
Dplatform-linux.cc136 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
226 PROT_READ, in SignalCodeMovingGC()
228 PROT_READ | PROT_EXEC, in SignalCodeMovingGC()
352 int prot = PROT_READ | PROT_WRITE; in CommitRegion()
354 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-aix.cc67 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate()
221 int prot = PROT_READ | PROT_WRITE; in CommitRegion()
223 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
/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/strace/xlat/
Dmmap_prot.h14 #if defined(PROT_READ) || (defined(HAVE_DECL_PROT_READ) && HAVE_DECL_PROT_READ)
15 XLAT(PROT_READ),
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc118 PROT_READ | PROT_WRITE, in MmapOrDie()
142 PROT_READ | PROT_WRITE, in MmapNoReserveOrDie()
156 PROT_READ | PROT_WRITE, in MmapFixedOrDie()
223 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
230 uptr p = internal_mmap(addr, size, PROT_READ | PROT_WRITE, flags, fd, offset); in MapWritableFileToMemory()
/external/valgrind/helgrind/tests/
Dstackteardown.c97 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()
/external/google-breakpad/src/common/linux/
Dmemory_mapped_file.cc92 void* data = sys_mmap(NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset); in Map()
100 NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset >> 12); in Map()
/external/libunwind/src/
Delfxx.h136 ei->u.mapped.image = mmap (NULL, ei->u.mapped.size, PROT_READ, MAP_PRIVATE, fd, 0); in elf_map_image()
161 if ((map->flags & (PROT_READ | PROT_EXEC)) != (PROT_READ | PROT_EXEC)) { in elf_map_cached_image()
180 if (map->flags & PROT_READ) { in elf_map_cached_image()
/external/libunwind/src/coredump/
D_UCD_elf_map_image.c41 … ei->image = mmap(NULL, phdr->p_memsz, PROT_READ, MAP_PRIVATE, ui->coredump_fd, phdr->p_offset); in CD_elf_map_image()
63 ei->image = mmap(NULL, phdr->backing_filesize, PROT_READ, MAP_PRIVATE, phdr->backing_fd, 0); in CD_elf_map_image()
/external/llvm/lib/Support/Unix/
DMemory.inc46 return PROT_READ;
50 return PROT_READ | PROT_WRITE;
52 return PROT_READ | PROT_EXEC;
55 return PROT_READ | PROT_WRITE | PROT_EXEC;
65 return PROT_READ | PROT_EXEC;
209 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
212 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
/external/mesa3d/src/mesa/main/
Dvsnprintf.c100 PROT_READ|PROT_WRITE|PROT_EXEC) == -1)
102 PROT_READ|PROT_WRITE);

1234567891011