Home
last modified time | relevance | path

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

12345

/external/valgrind/main/memcheck/tests/
Daddressable.c43 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()
67 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); in test4()
69 mprotect(m, pgsz, PROT_WRITE); in test4()
80 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE); 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()
Dpointer-trace.c59 map = mmap(0, stepsize * 2, PROT_WRITE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main()
66 map = mmap(0, stepsize * 2, PROT_WRITE|PROT_READ, MAP_PRIVATE, fd, 0); in main()
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()
/external/valgrind/main/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/openssh/openbsd-compat/
Dxmmap.c54 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/qemu/android/utils/
Dmapfile.c193 if ((prot & (PROT_WRITE | PROT_EXEC)) == 0) { in mapfile_map()
196 } else if ((prot & (PROT_WRITE | PROT_EXEC)) == in mapfile_map()
197 (PROT_WRITE | PROT_EXEC)) { in mapfile_map()
200 } else if ((prot & PROT_WRITE) == PROT_WRITE) { in mapfile_map()
Dmapfile.h30 #define PROT_WRITE 0x2 macro
/external/valgrind/main/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/libffi/testsuite/libffi.call/
Dffitest.h69 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.special/
Dffitestcxx.h69 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/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc58 PROT_READ | PROT_WRITE, in MmapOrDie()
91 PROT_READ | PROT_WRITE, in MmapFixedNoReserve()
105 PROT_READ | PROT_WRITE, in MmapFixedOrDie()
/external/webkit/Source/WebKit2/Platform/unix/
DSharedMemoryUnix.cpp139 void* data = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileDescriptor, 0); in create()
161 return PROT_READ | PROT_WRITE; in accessModeMMap()
165 return PROT_READ | PROT_WRITE; in accessModeMMap()
/external/webkit/Source/JavaScriptCore/wtf/
DPageAllocationAligned.cpp45 protection |= PROT_WRITE; in allocate()
50 …mentMask, flags, MEMORY_OBJECT_NULL, 0, FALSE, protection, PROT_READ | PROT_WRITE | PROT_EXEC, VM_… in allocate()
DTCSystemAlloc.cpp180 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/
Djmem-ashmem.c129 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/qemu/distrib/jpeg-6b/
Djmem-ashmem.c128 int err = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in get_ashmem()
132 info->addr = mmap(NULL, total_bytes_needed, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in get_ashmem()
/external/compiler-rt/SDKs/linux/usr/include/sys/
Dmman.h23 #define PROT_WRITE 0x2 macro
/external/valgrind/main/none/tests/amd64/
Dnibz_bennee_mmap.c35 if ((p = mmap((void*)0x1F7F100000, 4096, PROT_READ|PROT_WRITE, in main()
/external/kernel-headers/original/asm-generic/
Dmman-common.h10 #define PROT_WRITE 0x2 /* page can be written */ macro
/external/compiler-rt/lib/
Denable_execute_stack.c56 (void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC); in __enable_execute_stack()
/external/kernel-headers/original/asm-mips/
Dmman.h19 #define PROT_WRITE 0x02 /* page can be written */ macro
/external/skia/src/images/
DSkImageRef_ashmem.cpp93 int err = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in allocPixelRef()
101 addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in allocPixelRef()
/external/valgrind/main/memcheck/tests/linux/
Dstack_switch.c40 …if ( ( stack = mmap( NULL, 2* STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 )… in main()
/external/compiler-rt/lib/asan/lit_tests/
Ddlclose-test.cc78 PROT_READ | PROT_WRITE, in main()

12345