/external/valgrind/memcheck/tests/ |
D | addressable.c | 35 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()
|
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 | mempool2.c | 40 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()
|
D | dw4.c | 65 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/valgrind/none/tests/amd64/ |
D | nibz_bennee_mmap.c | 35 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/ |
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/openssh/openbsd-compat/ |
D | xmmap.c | 54 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, in xmmap() 57 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED, in xmmap() 76 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED, in xmmap()
|
/external/v8/src/base/platform/ |
D | platform-linux.cc | 136 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 169 PROT_READ | PROT_WRITE, in open() 189 PROT_READ | PROT_WRITE, in create() 284 PROT_READ, in SignalCodeMovingGC() 286 PROT_READ | PROT_EXEC, in SignalCodeMovingGC() 407 int prot = PROT_READ | PROT_WRITE; in CommitRegion() 409 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
|
D | platform-openbsd.cc | 60 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 91 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 106 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create() 193 void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, in SignalCodeMovingGC() 305 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
|
D | platform-solaris.cc | 77 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 108 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 123 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create() 246 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
|
D | platform-macos.cc | 58 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 95 PROT_READ | PROT_WRITE, in open() 115 PROT_READ | PROT_WRITE, in create() 278 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
|
D | platform-freebsd.cc | 62 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate() 93 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 108 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create() 274 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
|
D | platform-qnx.cc | 111 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 144 PROT_READ | PROT_WRITE, in open() 164 PROT_READ | PROT_WRITE, in create() 341 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
|
/external/elfutils/src/lib/ |
D | crc32_file.c | 52 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/valgrind/none/tests/ |
D | map_unaligned.c | 10 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/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.cc | 117 PROT_READ | PROT_WRITE, in MmapOrDie() 154 PROT_READ | PROT_WRITE, in MmapNoReserveOrDie() 172 PROT_READ | PROT_WRITE, in MmapFixedNoReserve() 188 PROT_READ | PROT_WRITE, in MmapFixedOrDie() 262 uptr map = internal_mmap(0, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory() 269 uptr p = internal_mmap(addr, size, PROT_READ | PROT_WRITE, flags, fd, offset); in MapWritableFileToMemory()
|
/external/strace/xlat/ |
D | mmap_prot.h | 7 #if defined(PROT_READ) || (defined(HAVE_DECL_PROT_READ) && HAVE_DECL_PROT_READ) 8 XLAT(PROT_READ),
|
/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()
|
/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/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()
|
/external/google-breakpad/src/common/linux/ |
D | memory_mapped_file.cc | 87 void* data = sys_mmap(NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset); in Map() 95 NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset >> 12); in Map()
|
/external/libunwind/src/coredump/ |
D | _UCD_elf_map_image.c | 41 … 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/ |
D | Memory.inc | 46 return PROT_READ; 50 return PROT_READ | PROT_WRITE; 52 return PROT_READ | PROT_EXEC; 56 return PROT_READ | PROT_WRITE | PROT_EXEC; 66 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/ |
D | vsnprintf.c | 100 PROT_READ|PROT_WRITE|PROT_EXEC) == -1) 102 PROT_READ|PROT_WRITE);
|
/external/libunwind/src/ |
D | os-linux.c | 79 && (flags & (PROT_EXEC | PROT_READ)) == (PROT_EXEC | PROT_READ) in map_create_list()
|