Home
last modified time | relevance | path

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

12345678910>>...18

/third_party/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c79 {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/
D5-1.c45 {.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()
D9-1.c66 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()
D7-2.c65 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()
D7-1.c65 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()
D7-3.c65 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()
D7-4.c68 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()
D27-1.c60 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/
Dtsimpleinj.c90 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()
Dtinjpage.c358 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/
Dmmap.c90 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/
Dprotected_fixedsize_stack.hpp62 … 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/
D2-2-buildonly.c19 #ifndef PROT_WRITE
20 #error PROT_WRITE not defined
/third_party/pcre2/pcre2/src/sljit/
DsljitWXExecAllocator.c99 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/
Dmemcg_process.c120 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/
Dmmapstress03.c146 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/
Dmemfd_create_common.c317 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/
Dmman.c28 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/
Dmmap18.c92 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()
Dmmap17.c65 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/
Dvma01.c96 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/
Dnode_large_page.cc345 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/
Dmigrate_pages02.c144 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/
Dcpuset_memory_test.c161 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/
Dtst_safe_io_uring.c36 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()

12345678910>>...18