Home
last modified time | relevance | path

Searched refs:MAP_ANONYMOUS (Results 1 – 25 of 261) sorted by relevance

1234567891011

/third_party/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c72 {PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1},
73 {PROT_READ, MAP_ANONYMOUS | MAP_SHARED, -1},
74 {PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
75 {PROT_READ, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
79 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1},
80 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1},
83 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
84 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
86 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1},
87 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED, -1},
[all …]
/third_party/musl/Benchmark/musl/
Dlibc_mman.cpp32 MAP_PRIVATE | MAP_ANONYMOUS,
34 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB,
35 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGE_2MB,
36 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGE_1GB,
37 MAP_PRIVATE | MAP_ANONYMOUS | MAP_POPULATE,
38 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_POPULATE,
39 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGE_2MB | MAP_POPULATE,
40 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGE_1GB | MAP_POPULATE,
204 …int *addr = (int*)mmap(nullptr, length, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in Bm_function_Madvise()
219 …id *oldAddr = mmap(nullptr, oldLength, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Bm_function_Mremap()
[all …]
/third_party/musl/libc-test/src/common/
Dvmfill.c10 #ifndef MAP_ANONYMOUS
11 #define MAP_ANONYMOUS 0 macro
21 if ((p=mmap(0, n, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, fd, 0)) == MAP_FAILED) { in mmax()
40 int fd = MAP_ANONYMOUS ? -1 : open("/dev/zero", O_RDWR); in t_vmfill()
50 q = mmap(0, m, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, fd, 0); in t_vmfill()
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Dmemorypool.c28 #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
29 #define MAP_ANONYMOUS MAP_ANON macro
94 #if defined(MAP_ANONYMOUS) || defined(_WIN32) in MHD_pool_create()
98 #if defined(MAP_ANONYMOUS) && !defined(_WIN32) in MHD_pool_create()
100 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in MHD_pool_create()
142 #if defined(MAP_ANONYMOUS) && !defined(_WIN32) in MHD_pool_destroy()
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/
Dldso_dlopen_ext_test.cpp64 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
92 void* addr = mmap(nullptr, SIZE_128, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE, 0);
111 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
142 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
182 void* addr = mmap(nullptr, SIZE_128, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE, 0);
287 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
323 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
358 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
394 void* addr = mmap(nullptr, SIZE_128, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE, 0);
/third_party/ltp/tools/sparse/sparse-src/compat/
Dmmap-blob.c8 #ifndef MAP_ANONYMOUS
9 #define MAP_ANONYMOUS MAP_ANON macro
22 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in blob_alloc()
/third_party/libunwind/libunwind/tests/
Dmapper.c39 #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
40 # define MAP_ANONYMOUS MAP_ANON macro
67 MAP_PRIVATE | MAP_ANONYMOUS in main()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c165 MAP_PRIVATE_EXCEPT_UCLINUX | MAP_ANONYMOUS, 0, 0); in setup()
170 MAP_PRIVATE_EXCEPT_UCLINUX | MAP_ANONYMOUS, 0, 0); in setup()
175 MAP_PRIVATE_EXCEPT_UCLINUX | MAP_ANONYMOUS, 0, 0); in setup()
180 MAP_PRIVATE_EXCEPT_UCLINUX | MAP_ANONYMOUS, 0, 0); in setup()
/third_party/mesa3d/src/mapi/
Du_execmem.c58 #ifndef MAP_ANONYMOUS
59 #define MAP_ANONYMOUS MAP_ANON macro
81 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in init_map()
/third_party/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_execmem.c41 #ifndef MAP_ANONYMOUS
42 #define MAP_ANONYMOUS MAP_ANON macro
81 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in init_heap()
/third_party/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c41 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_enomem1()
55 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_enomem2()
72 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_eperm()
/third_party/python/Modules/_ctypes/
Dmalloc_closure.c8 # if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
9 # define MAP_ANONYMOUS MAP_ANON macro
70 MAP_PRIVATE | MAP_ANONYMOUS, in more_core()
/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/mem/mmapstress/
Dmmapstress03.c146 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_FIXED | MAP_SHARED, in main()
169 MAP_ANONYMOUS | MAP_FIXED | MAP_PRIVATE, 0, 0) in do_test()
177 MAP_ANONYMOUS | MAP_FIXED | MAP_PRIVATE, 0, 0) in do_test()
/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/rust/crates/nix/test/sys/
Dtest_mman.rs11 MapFlags::MAP_PRIVATE | MapFlags::MAP_ANONYMOUS, in test_mmap_anonymous()
36 MapFlags::MAP_ANONYMOUS | MapFlags::MAP_PRIVATE, in test_mremap_grow()
94 MapFlags::MAP_ANONYMOUS | MapFlags::MAP_PRIVATE, in test_mremap_shrink()
/third_party/ltp/testcases/kernel/syscalls/mmap/
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()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages02.c145 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_migrate_current_process()
157 MAP_ANONYMOUS | MAP_SHARED, 0, 0); in test_migrate_current_process()
171 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_migrate_current_process()
207 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_migrate_other_process()
/third_party/vixl/test/
Dtest-utils.cc46 #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
47 #define MAP_ANONYMOUS MAP_ANON macro
/third_party/ltp/testcases/kernel/containers/utsname/
Dutsname01.c41 …hostname1 = SAFE_MMAP(NULL, HOST_NAME_MAX, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1,… in setup()
42 …hostname2 = SAFE_MMAP(NULL, HOST_NAME_MAX, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1,… in setup()
Dutsname02.c58 …hostname1 = SAFE_MMAP(NULL, HOST_NAME_MAX, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1,… in setup()
59 …hostname2 = SAFE_MMAP(NULL, HOST_NAME_MAX, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1,… in setup()
/third_party/pulseaudio/src/pulsecore/
Dshm.c44 #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
45 # define MAP_ANONYMOUS MAP_ANON macro
128 #ifdef MAP_ANONYMOUS in privatemem_create()
129 …if ((m->ptr = mmap(NULL, m->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, (off_t) 0))… in privatemem_create()
257 #ifdef MAP_ANONYMOUS in privatemem_free()
/third_party/rust/crates/rustix/src/backend/linux_raw/mm/
Dsyscalls.rs21 use linux_raw_sys::general::MAP_ANONYMOUS;
100 c_uint(flags.bits() | MAP_ANONYMOUS), in mmap_anonymous()
112 c_uint(flags.bits() | MAP_ANONYMOUS), in mmap_anonymous()
/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/cve/
Dcve-2017-17052.c34 MAP_SHARED | MAP_ANONYMOUS, -1, 0); in setup()
48 MAP_POPULATE|MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in mmap_thread()

1234567891011