Home
last modified time | relevance | path

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

123456789

/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/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/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/tests/
Dmapper.c39 #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
40 # define MAP_ANONYMOUS MAP_ANON macro
58 MAP_PRIVATE | MAP_ANONYMOUS in main()
/third_party/mesa3d/src/mapi/
Du_execmem.c59 #ifndef MAP_ANONYMOUS
60 #define MAP_ANONYMOUS MAP_ANON macro
82 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in init_map()
/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/mesa/main/
Dexecmem.c56 #ifndef MAP_ANONYMOUS
57 #define MAP_ANONYMOUS MAP_ANON macro
85 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in init_heap()
/third_party/boost/boost/interprocess/
Danonymous_shared_memory.hpp79 #if defined(MAP_ANONYMOUS) //Use MAP_ANONYMOUS in anonymous_shared_memory()
80 flags = MAP_ANONYMOUS | MAP_SHARED; in anonymous_shared_memory()
81 #elif !defined(MAP_ANONYMOUS) && defined(MAP_ANON) //use MAP_ANON in anonymous_shared_memory()
/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/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/libunwind/include/win/sys/
Dmman.h14 #define MAP_ANONYMOUS 1 macro
15 #define MAP_ANON MAP_ANONYMOUS
/third_party/libunwind/include/mingw/sys/
Dmman.h13 #define MAP_ANONYMOUS 1 macro
14 #define MAP_ANON MAP_ANONYMOUS
/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/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/iowow/src/platform/win32/mman/
Dmman.h52 #define MAP_ANONYMOUS 0x20 macro
53 #define MAP_ANON MAP_ANONYMOUS
/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/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/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/libffi/testsuite/libffi.call/
Dffitest.h49 # if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
50 # define MAP_ANONYMOUS MAP_ANON macro
/third_party/libffi/testsuite/libffi.closures/
Dffitest.h49 # if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
50 # define MAP_ANONYMOUS MAP_ANON macro
/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()
/third_party/pulseaudio/src/pulsecore/
Dshm.c41 #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
42 # define MAP_ANONYMOUS MAP_ANON macro
120 #ifdef MAP_ANONYMOUS in privatemem_create()
121 …if ((m->ptr = mmap(NULL, m->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, (off_t) 0))… in privatemem_create()
249 #ifdef MAP_ANONYMOUS in privatemem_free()
/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()

123456789