/third_party/ltp/testcases/kernel/syscalls/pkeys/ |
D | pkey01.c | 72 {PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 74 {PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 76 {PROT_READ, MAP_PRIVATE, 0}, 79 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 81 {PROT_WRITE, MAP_PRIVATE, 0}, 83 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 86 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 88 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 90 {PROT_EXEC, MAP_PRIVATE, 0}, 93 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1}, [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 52 {.flags = MAP_PRIVATE,.prot = PROT_NONE}, 53 {.flags = MAP_PRIVATE,.prot = PROT_READ}, 54 {.flags = MAP_PRIVATE,.prot = PROT_WRITE}, 55 {.flags = MAP_PRIVATE,.prot = PROT_EXEC}, 56 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE}, 57 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_EXEC}, 58 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE}, 59 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 82 case MAP_PRIVATE: in print_error()
|
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-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()
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 47 mem = SAFE_MMAP(NULL, size, PROT_WRITE, MAP_PRIVATE, fd, 0); in check_huge_mmapable() 53 NULL, size, PROT_WRITE, MAP_PRIVATE, fd, 0); in check_huge_mmapable() 141 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 146 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 150 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 154 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap19.c | 40 mm1 = SAFE_MMAP(0, LEN, PROT_READ, MAP_PRIVATE, f1, 0); in run() 41 mm2 = SAFE_MMAP(0, LEN, PROT_READ, MAP_PRIVATE, f2, 0); in run() 55 mm1 = SAFE_MMAP(save_mm2, LEN, PROT_READ, MAP_PRIVATE, f1, 0); in run() 56 mm2 = SAFE_MMAP(save_mm1, LEN, PROT_READ, MAP_PRIVATE, f2, 0); in run()
|
D | mmap18.c | 93 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in allocate_stack() 97 MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN, in allocate_stack() 187 MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in grow_stack_fail()
|
D | mmap17.c | 66 MAP_PRIVATE, fd_file1, 0); in test_mmap() 71 MAP_PRIVATE | MAP_FIXED_NOREPLACE, fd_file2, 0); in test_mmap()
|
/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 | 3-2-buildonly.c | 18 #ifndef MAP_PRIVATE 19 #error MAP_PRIVATE not defined
|
/third_party/musl/libc-test/src/functionalext/relro/ |
D | dlopen_ext_relro_test.c | 418 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_1600() 455 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_1700() 492 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_1800() 529 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_1900() 564 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_2000() 601 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_2100() 639 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_2200() 678 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_2300() 716 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_2400()
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
D | mlock02.c | 120 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_enomem1() 144 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_enomem2() 173 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_eperm()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress05.c | 180 MAP_FILE | MAP_PRIVATE | MAP_FIXED, fd, in main() 187 MAP_FILE | MAP_PRIVATE | MAP_FIXED, fd, in main() 194 MAP_FILE | MAP_PRIVATE | MAP_FIXED, fd, 0) == (caddr_t) - 1) { in main()
|
D | mmapstress04.c | 32 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in setup() 77 MAP_FILE | MAP_PRIVATE | MAP_FIXED, in mmapstress04()
|
/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() 107 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma() 153 t = mmap(NULL, 9 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in create_bighole()
|
/third_party/musl/libc-test/src/common/ |
D | vmfill.c | 21 if ((p=mmap(0, n, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, fd, 0)) == MAP_FAILED) { in mmax() 50 q = mmap(0, m, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, fd, 0); in t_vmfill()
|
/third_party/libunwind/src/coredump/ |
D | _UCD_elf_map_image.c | 45 … ei->image = mmap(NULL, phdr->p_memsz, PROT_READ, MAP_PRIVATE, ui->coredump_fd, phdr->p_offset); in CD_elf_map_image() 67 ei->image = mmap(NULL, phdr->backing_filesize, PROT_READ, MAP_PRIVATE, phdr->backing_fd, 0); in CD_elf_map_image()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
D | mmap.c | 52 start = mmap(NULL, statbuff.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in mmap_0100() 144 start = mmap(NULL, statbuff.st_size, PROT_EXEC, MAP_PRIVATE | MAP_LOCKED, fd, 0); in mmap_0400() 182 … start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_DENYWRITE, fd, 0); in mmap_0500() 219 start = mmap(NULL, statbuff.st_size, PROT_NONE, MAP_PRIVATE | MAP_FIXED, -1, 0); in mmap_0600() 391 …start = mmap((void *)(&get), statbuff.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_DENYWRITE… in mmap_1100()
|
/third_party/ltp/testcases/kernel/controllers/memcg/functional/ |
D | memcg_process.c | 121 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in mmap_anon() 172 MAP_PRIVATE | MAP_ANONYMOUS | MAP_LOCKED, 0, 0); in mmap_lock1() 188 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in mmap_lock2()
|
/third_party/ltp/testcases/kernel/numa/ |
D | support_numa.c | 120 MAP_PRIVATE | MAP_ANONYMOUS, in main() 138 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in main()
|
/third_party/ltp/testcases/kernel/syscalls/mlock2/ |
D | mlock202.c | 91 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in setup() 93 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in setup()
|
/third_party/boost/boost/coroutine/posix/ |
D | protected_stack_allocator.hpp | 61 void * limit = ::mmap( 0, size_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in allocate() 63 … void * limit = ::mmap( 0, size_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in allocate()
|
/third_party/node/src/large_pages/ |
D | node_large_page.cc | 345 PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS); in MoveTextRegionToLargePages() 356 MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED); in MoveTextRegionToLargePages() 363 MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED | in MoveTextRegionToLargePages() 375 MAP_PRIVATE | MAP_ANONYMOUS, in MoveTextRegionToLargePages()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap06.c | 73 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in do_mmap() 96 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED, in do_mmap()
|
/third_party/ltp/testcases/kernel/syscalls/userfaultfd/ |
D | userfaultfd01.c | 37 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in set_pages() 39 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in set_pages()
|