Home
last modified time | relevance | path

Searched refs:PROT_EXEC (Results 1 – 25 of 90) sorted by relevance

1234

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c45 {.flags = MAP_SHARED,.prot = PROT_EXEC},
47 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC},
48 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE},
49 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
54 {.flags = MAP_PRIVATE,.prot = PROT_EXEC},
56 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_EXEC},
57 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE},
58 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
74 if (t->prot & PROT_EXEC) in print_error()
/external/compiler-rt/lib/profile/
DWindowsMMap.c34 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap()
44 if (prot & PROT_EXEC) in mmap()
48 } else if (prot & PROT_EXEC) { in mmap()
51 else if (prot & PROT_EXEC) in mmap()
71 if (prot & PROT_EXEC) in mmap()
DWindowsMMap.h24 #define PROT_EXEC 0x0 macro
/external/autotest/client/site_tests/security_mprotect/
Dcontrol7 PURPOSE = "Verify mprotect+PROT_EXEC works on noexec filesystem"
8 CRITERIA = "Fails if PROT_EXEC cannot be mapped on noexec filesystem"
17 Checks that mprotect can use PROT_EXEC on noexec filesystems,
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D2-3-buildonly.c19 #ifndef PROT_EXEC
20 #error PROT_EXEC not defined
/external/strace/xlat/
Dmmap_prot.h20 #if defined(PROT_EXEC) || (defined(HAVE_DECL_PROT_EXEC) && HAVE_DECL_PROT_EXEC)
21 XLAT(PROT_EXEC),
Dmmap_prot.in4 PROT_EXEC
/external/valgrind/memcheck/tests/
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()
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/autotest/client/site_tests/security_mprotect/src/
Dprot_exec.c43 PROT_READ | PROT_EXEC, MAP_SHARED, in main()
51 if (mprotect(areaex, sizeof(int), PROT_READ | PROT_EXEC)) in main()
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DMemory.inc52 return PROT_READ | PROT_EXEC;
55 return PROT_READ | PROT_WRITE | PROT_EXEC;
65 return PROT_READ | PROT_EXEC;
67 return PROT_EXEC;
196 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
199 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
/external/llvm/lib/Support/Unix/
DMemory.inc52 return PROT_READ | PROT_EXEC;
55 return PROT_READ | PROT_WRITE | PROT_EXEC;
65 return PROT_READ | PROT_EXEC;
67 return PROT_EXEC;
209 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
212 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
/external/v8/src/base/platform/
Dplatform-openbsd.cc61 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
146 void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, in SignalCodeMovingGC()
258 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-linux.cc115 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
199 void* addr = mmap(OS::GetRandomMmapAddr(), size, PROT_READ | PROT_EXEC, in SignalCodeMovingGC()
299 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-solaris.cc58 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 CommitRegion()
Dplatform-macos.cc58 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
222 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
/external/libunwind/src/
Dos-linux.c81 && (flags & (PROT_EXEC | PROT_READ)) == (PROT_EXEC | PROT_READ) in map_create_list()
/external/valgrind/none/tests/
Dmunmap_exe.c14 m = mmap(NULL, 100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile04.c89 PROT_EXEC, PASS_MAPPED_BUFFER}, {
90 PROT_EXEC | PROT_READ, PASS_MAPPED_BUFFER}, {
/external/strace/tests-m32/
Dremap_file_pages.c44 const unsigned long prot = PROT_READ|PROT_WRITE|PROT_EXEC; in main()
/external/strace/tests-mx32/
Dremap_file_pages.c44 const unsigned long prot = PROT_READ|PROT_WRITE|PROT_EXEC; in main()
/external/strace/tests/
Dremap_file_pages.c44 const unsigned long prot = PROT_READ|PROT_WRITE|PROT_EXEC; in main()
/external/python/cpython2/Modules/_ctypes/libffi/src/
Dclosures.c451 ptr = mmap (NULL, length, (prot & ~PROT_WRITE) | PROT_EXEC, in dlmmap_locked()
502 ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset); in dlmmap()
508 ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); in dlmmap()
/external/kernel-headers/original/uapi/asm-generic/
Dmman-common.h11 #define PROT_EXEC 0x4 /* page can be executed */ macro
/external/libchrome/base/memory/
Dshared_memory_android.cc41 PROT_READ | PROT_WRITE | PROT_EXEC); in Create()

1234