Home
last modified time | relevance | path

Searched refs:MAP_PRIVATE (Results 1 – 25 of 269) sorted by relevance

1234567891011

/third_party/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c72 {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/
D5-1.c52 {.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()
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-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()
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c47 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/
Dmmap19.c40 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()
Dmmap18.c93 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()
Dmmap17.c66 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/
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/
D3-2-buildonly.c18 #ifndef MAP_PRIVATE
19 #error MAP_PRIVATE not defined
/third_party/musl/libc-test/src/functionalext/relro/
Ddlopen_ext_relro_test.c418 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/
Dmlock02.c120 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/
Dmmapstress05.c180 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()
Dmmapstress04.c32 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in setup()
77 MAP_FILE | MAP_PRIVATE | MAP_FIXED, in mmapstress04()
/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()
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/
Dvmfill.c21 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.c45 … 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/
Dmmap.c52 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/
Dmemcg_process.c121 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/
Dsupport_numa.c120 MAP_PRIVATE | MAP_ANONYMOUS, in main()
138 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in main()
/third_party/ltp/testcases/kernel/syscalls/mlock2/
Dmlock202.c91 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in setup()
93 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in setup()
/third_party/boost/boost/coroutine/posix/
Dprotected_stack_allocator.hpp61 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/
Dnode_large_page.cc345 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/
Dhugemmap06.c73 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/
Duserfaultfd01.c37 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in set_pages()
39 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in set_pages()

1234567891011