Home
last modified time | relevance | path

Searched refs:PROT_NONE (Results 1 – 25 of 113) sorted by relevance

12345

/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D2-4-buildonly.c19 #ifndef PROT_NONE
20 #error PROT_NONE not defined
/external/compiler-rt/test/asan/TestCases/Linux/
Dleak_check_segv.cc14 mprotect((void*)(((unsigned long)p + 4095) & ~4095), 16 * 1024, PROT_NONE); in main()
15 mprotect((void*)(((unsigned long)data + 4095) & ~4095), 16 * 1024, PROT_NONE); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c42 {.flags = MAP_SHARED,.prot = PROT_NONE},
51 {.flags = MAP_PRIVATE,.prot = PROT_NONE},
65 if (t->prot == PROT_NONE) in print_error()
/external/valgrind/none/tests/linux/
Dmremap2.c23 void* r = mmap(start, length, PROT_NONE, in mapanon_fixed()
48 workingarea = mmap(0, 200*PAGE, PROT_NONE, in setup()
79 r = mprotect( workingarea + i * PAGE, PAGE, PROT_NONE ); in show()
Dclonev.c36 if (-1 == mprotect((char *)child_stack, page_size, PROT_NONE)) { in main()
42 page_size, PROT_NONE)) { in main()
/external/strace/xlat/
Dmmap_prot.h11 #if defined(PROT_NONE) || (defined(HAVE_DECL_PROT_NONE) && HAVE_DECL_PROT_NONE)
12 XLAT(PROT_NONE),
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dsignal_segv_handler.cc38 guard = mmap(0, 3 * page_size, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0); in main()
41 mprotect(guard, page_size, PROT_NONE); in main()
/external/curl/lib/
Dsecurity.c84 return PROT_NONE; in name_to_level()
284 DEBUGASSERT(prot_level > PROT_NONE && prot_level < PROT_LAST); in do_sec_send()
372 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); in Curl_sec_read_msg()
421 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); in sec_set_protection_level()
475 if(l == PROT_NONE) in Curl_sec_request_prot()
477 DEBUGASSERT(l > PROT_NONE && l < PROT_LAST); in Curl_sec_request_prot()
/external/valgrind/memcheck/tests/
Dpointer-trace.c54 map = mmap(0, stepsize * 2, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main()
72 map = mmap(0, 256*1024, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main()
Dleak-segv-jmp.c236 mprotect_result = do_syscall_WRK((UWord) addr, len, PROT_NONE, in non_simd_mprotect()
243 (UWord) addr, len, PROT_NONE, in non_simd_mprotect()
258 PROT_NONE); in my_mprotect_none()
Daddressable.c73 mprotect(m, pgsz*5, PROT_NONE); in test4()
87 mprotect(m, pgsz*5, PROT_NONE); in test5()
/external/v8/src/base/platform/
Dplatform-solaris.cc95 PROT_NONE, in VirtualMemory()
167 PROT_NONE, in ReserveRegion()
195 PROT_NONE, in UncommitRegion()
Dplatform-macos.cc136 PROT_NONE, in VirtualMemory()
208 PROT_NONE, in ReserveRegion()
238 PROT_NONE, in UncommitRegion()
Dplatform-aix.cc144 mmapHelper(request_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, kMmapFd, in VirtualMemory()
210 void* result = mmapHelper(size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, in ReserveRegion()
229 return mprotect(base, size, PROT_NONE) != -1; in UncommitRegion()
Dplatform-freebsd.cc143 PROT_NONE, in VirtualMemory()
215 PROT_NONE, in ReserveRegion()
243 PROT_NONE, in UncommitRegion()
Dplatform-qnx.cc200 PROT_NONE, in VirtualMemory()
272 PROT_NONE, in ReserveRegion()
301 PROT_NONE, in UncommitRegion()
Dplatform-openbsd.cc174 PROT_NONE, in VirtualMemory()
246 PROT_NONE, in ReserveRegion()
274 PROT_NONE, in UncommitRegion()
/external/strace/tests-m32/
Dremap_file_pages.c79 prot = (kernel_ulong_t) 0xdefaced00000000ULL | PROT_NONE; in main()
88 prot == PROT_NONE ? "PROT_NONE" : in main()
Dmmap.c63 mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0); in main()
77 if (mprotect(p, length1, PROT_NONE)) in main()
/external/perfetto/src/base/
Dpage_allocator.cc41 int res = mprotect(ptr, kGuardSize, PROT_NONE); in AllocateInternal()
42 res |= mprotect(usable_region + size, kGuardSize, PROT_NONE); in AllocateInternal()
/external/strace/tests/
Dremap_file_pages.c79 prot = (kernel_ulong_t) 0xdefaced00000000ULL | PROT_NONE; in main()
88 prot == PROT_NONE ? "PROT_NONE" : in main()
Dmmap.c63 mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0); in main()
77 if (mprotect(p, length1, PROT_NONE)) in main()
/external/strace/tests-mx32/
Dremap_file_pages.c79 prot = (kernel_ulong_t) 0xdefaced00000000ULL | PROT_NONE; in main()
88 prot == PROT_NONE ? "PROT_NONE" : in main()
Dmmap.c63 mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0); in main()
77 if (mprotect(p, length1, PROT_NONE)) in main()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c178 bad_addr[0] = mmap(NULL, page_size * 3, PROT_NONE, in setup()
188 bad_addr[1] = mmap(NULL, page_size * 3, PROT_NONE, in setup()

12345