Home
last modified time | relevance | path

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

1234

/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()
Dsigaltstack.c21 char *stk = (char *)mmap(0, size, PROT_READ|PROT_WRITE|PROT_EXEC, in main()
Dcustom_alloc.c16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
/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/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/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/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/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/v8/src/
Dplatform-solaris.cc169 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
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()
Dplatform-openbsd.cc153 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()
Dplatform-cygwin.cc149 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
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()
/external/kernel-headers/original/asm-generic/
Dmman.h10 #define PROT_WRITE 0x2 /* page can be written */ macro
/external/valgrind/main/none/tests/amd64/
Dnibz_bennee_mmap.c35 if ((p = mmap((void*)0x1F7F100000, 4096, PROT_READ|PROT_WRITE, in main()
/external/valgrind/main/memcheck/tests/linux/
Dstack_switch.c39 …if ( ( stack = mmap( NULL, 2* STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 )… in main()
/external/skia/src/ports/
DSkImageRef_ashmem.cpp85 int err = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in allocPixelRef()
92 addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in allocPixelRef()
/external/valgrind/main/massif/tests/
Dcustom_alloc.c16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
/external/valgrind/main/drd/tests/
Dcustom_alloc.c16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
/external/chromium/net/disk_cache/
Dmapped_file_posix.cc24 buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, in Init()
/external/srec/srec/clib/
Dvoc_read.c289 *buf = mmap(0, inflateSize(statbuf.st_size), PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in mmap_zip()
311 buf2 = mmap(0, inflateSize(size2), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_zip()

1234