/external/valgrind/main/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 | mmaptest.c | 13 mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0); in main()
|
/external/valgrind/main/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/main/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/valgrind/main/exp-ptrcheck/tests/ |
D | mm.c | 22 char* res1 = mmap(0, 0, PROT_READ, MAP_PRIVATE, -1, 0 ); in main() 28 char* res2 = mmap(0, 0, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 ); in main() 31 char* res3 = mmap(0, getpagesize(), PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
|
/external/webkit/Source/WebKit2/Platform/unix/ |
D | SharedMemoryUnix.cpp | 139 void* data = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileDescriptor, 0); in create() 159 return PROT_READ; in accessModeMMap() 161 return PROT_READ | PROT_WRITE; in accessModeMMap() 165 return PROT_READ | PROT_WRITE; in accessModeMMap()
|
/external/valgrind/main/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()
|
D | munmap_exe.c | 14 m = mmap(NULL, 100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
|
/external/libffi/testsuite/libffi.special/ |
D | ffitestcxx.h | 69 page = mmap (NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, in allocate_mmap() 73 page = mmap (NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, in allocate_mmap()
|
/external/libffi/testsuite/libffi.call/ |
D | ffitest.h | 69 page = mmap (NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, in allocate_mmap() 73 page = mmap (NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, in allocate_mmap()
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | PageAllocationAligned.cpp | 43 int protection = PROT_READ; in allocate() 50 …, size, alignmentMask, flags, MEMORY_OBJECT_NULL, 0, FALSE, protection, PROT_READ | PROT_WRITE | P… in allocate()
|
D | TCSystemAlloc.cpp | 180 PROT_READ | PROT_WRITE, in TryMmap() 312 void *result = mmap(0, size + extra, PROT_READ | PROT_WRITE, in TryDevMem() 446 …void* newAddress = mmap(start, length, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_F… in TCMalloc_SystemRelease()
|
/external/jpeg/ |
D | jmem-ashmem.c | 129 int err = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in get_ashmem() 133 info->addr = mmap(NULL, total_bytes_needed, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in get_ashmem()
|
/external/v8/src/ |
D | platform-solaris.cc | 169 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 194 mprotect(address, size, PROT_READ); in Protect() 200 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Unprotect() 246 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 261 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create() 358 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Commit()
|
D | platform-linux.cc | 315 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 340 mprotect(address, size, PROT_READ); in Protect() 346 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Unprotect() 402 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 417 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create() 505 void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, in SignalCodeMovingGC() 573 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Commit()
|
D | platform-cygwin.cc | 149 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() 173 mprotect(address, size, PROT_READ); in Protect() 179 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Unprotect() 225 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 240 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create()
|
D | platform-openbsd.cc | 153 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate() 232 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in open() 247 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0); in create() 343 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Commit()
|
/external/oprofile/libdb/ |
D | db_manage.c | 81 new_map = mmap(0, new_file_size, PROT_READ | PROT_WRITE, in odb_grow_hashtable() 185 int mmflags = (rw == ODB_RDWR) ? (PROT_READ | PROT_WRITE) : PROT_READ; in odb_open()
|
/external/kernel-headers/original/asm-generic/ |
D | mman.h | 9 #define PROT_READ 0x1 /* page can be read */ macro
|
/external/valgrind/main/tests/ |
D | sys_mman.h | 25 ptr = mmap(0, pagesz, PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in get_unmapped_page()
|
/external/icu4c/common/ |
D | umapfile.c | 185 data=mmap(0, length, PROT_READ, MAP_SHARED, fd, 0); in uprv_mapFile() 187 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile() 397 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
|
/external/qemu/elff/ |
D | elf_mapped_section.cc | 38 mapped_at_ = mapfile_map(handle, offset, size, PROT_READ, in map()
|
/external/qemu/android/utils/ |
D | mapfile.h | 29 #define PROT_READ 0x1 macro
|
/external/valgrind/main/memcheck/tests/linux/ |
D | stack_switch.c | 39 …if ( ( stack = mmap( NULL, 2* STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 )… in main()
|