/third_party/ltp/testcases/kernel/syscalls/pkeys/ |
D | pkey01.c | 79 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 80 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1}, 81 {PROT_WRITE, MAP_PRIVATE, 0}, 82 {PROT_WRITE, MAP_SHARED, 0}, 83 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 84 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, 93 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 94 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1}, 95 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 96 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 45 {.flags = MAP_SHARED,.prot = PROT_WRITE}, 47 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE}, 49 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE}, 50 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 54 {.flags = MAP_PRIVATE,.prot = PROT_WRITE}, 56 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE}, 58 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE}, 59 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 72 if (t->prot & PROT_WRITE) in print_error()
|
D | 9-1.c | 66 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 79 pa = mmap(illegal_addr, size, PROT_READ | PROT_WRITE, MAP_FIXED, fd, 0); in main()
|
D | 7-2.c | 65 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 82 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
|
D | 7-1.c | 65 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 82 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
|
D | 7-3.c | 65 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 79 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, in main()
|
D | 7-4.c | 68 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main() 81 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
D | 27-1.c | 60 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 75 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
D | tsimpleinj.c | 90 page = mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_POPULATE, 0, 0); in main() 93 page = mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_LOCKED, 0, 0); in main() 110 page = mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main() 122 page = mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main() 142 page = mmap(NULL, PS*NPAGES, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main()
|
D | tinjpage.c | 358 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_POPULATE, 0, 0); in dirty_anonymous() 365 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_POPULATE, 0, 0); in dirty_anonymous_unmap() 373 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_LOCKED, 0, 0); in mlocked_anonymous() 386 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED|flags, in do_file_clean() 472 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in file_hole() 496 page = checked_mmap(NULL, PS*NPAGES, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in nonlinear() 569 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, fd, 0); in under_io_dirty() 592 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, fd, 0); in under_io_clean() 648 shared_page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, in do_shared()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
D | mmap.c | 90 start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_0200() 113 start = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); in mmap_0300() 182 … start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_DENYWRITE, fd, 0); in mmap_0500() 255 start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, OFF_MASK); in mmap_0700() 288 start = mmap(NULL, PTRDIFF_MAX + 1, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_0800() 319 start = mmap(NULL, 0, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_0900() 354 …start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, fd, getpagesiz… in mmap_1000() 391 …start = mmap((void *)(&get), statbuff.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_DENYWRITE… in mmap_1100()
|
/third_party/boost/boost/context/posix/ |
D | protected_fixedsize_stack.hpp | 62 … void * vp = ::mmap( 0, size__, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_STACK, -1, 0); in allocate() 64 void * vp = ::mmap( 0, size__, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in allocate() 66 void * vp = ::mmap( 0, size__, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in allocate()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
D | 2-2-buildonly.c | 19 #ifndef PROT_WRITE 20 #error PROT_WRITE not defined
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitWXExecAllocator.c | 99 return mprotect(ptr, size, PROT_READ | PROT_WRITE); in generic_se_protected() 124 int prot = PROT_READ | PROT_WRITE | SLJIT_PROT_WX; in sljit_malloc_exec() 131 prot |= PROT_MAX(PROT_READ | PROT_WRITE | PROT_EXEC); in sljit_malloc_exec() 169 int prot = PROT_READ | (enable_exec ? PROT_EXEC : PROT_WRITE); in sljit_update_wx_flags()
|
/third_party/ltp/testcases/kernel/controllers/memcg/functional/ |
D | memcg_process.c | 120 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_anon() 147 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_file() 171 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock1() 187 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock2()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress03.c | 146 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_FIXED | MAP_SHARED, in main() 168 PROT_READ | PROT_WRITE, in do_test() 176 PROT_READ | PROT_WRITE, in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.c | 317 PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in check_mfd_readable() 333 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 340 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 352 PROT_READ | PROT_WRITE); in check_mfd_writeable() 383 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 387 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 394 if (mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE) >= 0) { in check_mfd_non_writeable()
|
/third_party/iowow/src/platform/win32/mman/ |
D | mman.c | 28 protect = ((prot & PROT_WRITE)) ? PAGE_EXECUTE_READWRITE : PAGE_EXECUTE_READ; in __map_mmap_prot_page() 30 protect = ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) ? PAGE_READWRITE : PAGE_READONLY; in __map_mmap_prot_page() 40 if ((prot & PROT_WRITE)) { in __map_mmap_prot_file()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap18.c | 92 start = SAFE_MMAP(NULL, reserved_size, PROT_READ | PROT_WRITE, in allocate_stack() 96 SAFE_MMAP((start + reserved_size - mapped_size), mapped_size, PROT_READ | PROT_WRITE, in allocate_stack() 186 SAFE_MMAP(stack, page_size, PROT_READ | PROT_WRITE, in grow_stack_fail()
|
D | mmap17.c | 65 mapped_address = SAFE_MMAP(NULL, str_len, PROT_WRITE, in test_mmap() 70 address = mmap(mapped_address, str_len, PROT_WRITE, in test_mmap()
|
/third_party/ltp/testcases/kernel/mem/vma/ |
D | vma01.c | 96 t = mmap(p, 3 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma() 106 u = mmap(t + 3 * ps, 3 * ps, PROT_WRITE, in check_vma() 153 t = mmap(NULL, 9 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in create_bighole()
|
/third_party/node/src/large_pages/ |
D | node_large_page.cc | 345 PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS); in MoveTextRegionToLargePages() 355 PROT_READ | PROT_WRITE | PROT_EXEC, in MoveTextRegionToLargePages() 362 PROT_READ | PROT_WRITE | PROT_EXEC, in MoveTextRegionToLargePages() 374 PROT_READ | PROT_WRITE | PROT_EXEC, in MoveTextRegionToLargePages() 379 if (mprotect(start, size, PROT_READ | PROT_WRITE | PROT_EXEC) == -1) in MoveTextRegionToLargePages()
|
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages02.c | 144 private = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 156 shared = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 170 PROT_READ | PROT_WRITE, in test_migrate_current_process() 206 PROT_READ | PROT_WRITE, in test_migrate_other_process()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
D | cpuset_memory_test.c | 161 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_anon() 190 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_file() 214 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock1() 230 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock2()
|
/third_party/ltp/lib/ |
D | tst_safe_io_uring.c | 36 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, uring->fd, in safe_io_uring_init() 44 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, uring->fd, in safe_io_uring_init() 51 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, uring->fd, in safe_io_uring_init()
|