Home
last modified time | relevance | path

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

12345

/external/valgrind/main/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()
Dmmaptest.c13 mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0); in main()
/external/valgrind/main/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/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/valgrind/main/exp-ptrcheck/tests/
Dmm.c22 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/
DSharedMemoryUnix.cpp139 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/
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()
Dmunmap_exe.c14 m = mmap(NULL, 100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
/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/JavaScriptCore/wtf/
DPageAllocationAligned.cpp43 int protection = PROT_READ; in allocate()
50 …, size, alignmentMask, flags, MEMORY_OBJECT_NULL, 0, FALSE, protection, PROT_READ | PROT_WRITE | P… 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()
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()
Dplatform-linux.cc315 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()
Dplatform-cygwin.cc149 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()
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()
/external/oprofile/libdb/
Ddb_manage.c81 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/
Dmman.h9 #define PROT_READ 0x1 /* page can be read */ macro
/external/valgrind/main/tests/
Dsys_mman.h25 ptr = mmap(0, pagesz, PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in get_unmapped_page()
/external/icu4c/common/
Dumapfile.c185 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/
Delf_mapped_section.cc38 mapped_at_ = mapfile_map(handle, offset, size, PROT_READ, in map()
/external/qemu/android/utils/
Dmapfile.h29 #define PROT_READ 0x1 macro
/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()

12345