/glibc-2.36/posix/ |
D | tst-mmap.c | 44 ptr = mmap (NULL, 1000, PROT_READ, MAP_SHARED, fd, ps - 1); in do_test() 57 ptr = mmap64 (NULL, 1000, PROT_READ, MAP_SHARED, fd, ps - 1); in do_test() 70 ptr = mmap (NULL, 1000, PROT_READ, MAP_PRIVATE, fd, ps - 1); in do_test() 83 ptr = mmap64 (NULL, 1000, PROT_READ, MAP_PRIVATE, fd, ps - 1); in do_test() 100 ptr = mmap (mem + 1, 1000, PROT_READ, MAP_SHARED | MAP_FIXED, fd, ps); in do_test() 113 ptr = mmap64 (mem + 1, 1000, PROT_READ, MAP_SHARED | MAP_FIXED, fd, ps); in do_test() 126 ptr = mmap (mem + 1, 1000, PROT_READ, MAP_PRIVATE | MAP_FIXED, fd, ps); in do_test() 139 ptr = mmap64 (mem + 1, 1000, PROT_READ, MAP_PRIVATE | MAP_FIXED, fd, ps); in do_test() 156 ptr = mmap (NULL, 1000, PROT_READ, MAP_SHARED, fd, ps); in do_test() 176 ptr = mmap64 (NULL, 1000, PROT_READ, MAP_SHARED, fd, ps); in do_test()
|
D | tst-mmap-offset.c | 58 const int prot = PROT_READ | PROT_WRITE; in do_test_bz18877() 88 const int prot = PROT_READ | PROT_WRITE; in do_test_large_offset()
|
D | tst-fnmatch3.c | 30 char *pattern = mmap (0, 2 * pagesize, PROT_READ|PROT_WRITE, in do_bz18036()
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | mmap.c | 49 if (prot & PROT_READ) in __mmap() 78 switch (prot & (PROT_READ|PROT_WRITE)) in __mmap() 87 case PROT_READ: in __mmap() 103 case PROT_READ|PROT_WRITE: in __mmap()
|
D | dl-execstack.c | 38 PROT_READ|PROT_WRITE|PROT_EXEC) != 0) in _dl_make_stack_executable()
|
/glibc-2.36/malloc/ |
D | tst-free-errno.c | 84 xmmap (NULL, 0x1000000, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1); in do_test() 102 PROT_READ | PROT_WRITE, in do_test() 112 if (mmap (NULL, pagesize, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0) in do_test()
|
/glibc-2.36/misc/ |
D | tst-syscalls.c | 47 void *p = mmap (0x0, bytes, PROT_READ | PROT_WRITE, in allocate() 73 return mmap (addr, length, PROT_READ | PROT_WRITE, in do_mmap() 99 PROT_READ | PROT_WRITE | PROT_EXEC)) in protect()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | tst-process_madvise.c | 50 void *p1 = xmmap (NULL, page_size * 2, PROT_READ | PROT_WRITE, in subprocess() 53 void *p2 = xmmap (NULL, page_size, PROT_READ | PROT_WRITE, in subprocess()
|
D | tst-pkey.c | 180 TEST_COMPARE (pkey_mprotect (page, pagesize, PROT_READ | PROT_WRITE, -1), in do_test() 226 pages[i] = xmmap (NULL, pagesize, PROT_READ | PROT_WRITE, in do_test() 229 PROT_READ | PROT_WRITE, keys[i]), 0); in do_test()
|
D | tst-mlock2.c | 28 return xmmap (NULL, 1, PROT_READ | PROT_WRITE, in get_page()
|
/glibc-2.36/sysdeps/pthread/ |
D | tst-cond12.c | 67 } *p = mmap (NULL, sizeof (*p), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in do_test() 136 p = mmap (NULL, sizeof (*p), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in do_test()
|
/glibc-2.36/string/ |
D | tst-memmove-overflow.c | 110 PROT_READ | PROT_WRITE, in test_main() 113 PROT_READ | PROT_WRITE, in test_main()
|
D | test-string.h | 199 buf1 = mmap (0, (BUF1PAGES + 1) * page_size, PROT_READ | PROT_WRITE, in test_init() 205 buf2 = mmap (0, 2 * page_size, PROT_READ | PROT_WRITE, in test_init()
|
D | test-memmove.c | 254 large_buf = mmap ((void*) 0x70000000, size, PROT_READ | PROT_WRITE, in do_test2() 320 buf = mmap (NULL, size, PROT_READ | PROT_WRITE, in do_test3() 365 buf = mmap(NULL, size, PROT_READ | PROT_WRITE, in do_test4()
|
/glibc-2.36/sysdeps/unix/sysv/linux/i386/ |
D | tst-bz21269.c | 94 unsigned int *page = xmmap (NULL, page_size, PROT_READ | PROT_WRITE, in setup_counter_page() 105 PROT_READ | PROT_WRITE, in setup_low_user_desc()
|
/glibc-2.36/locale/ |
D | loadarchive.c | 227 result = __mmap64 (NULL, mapsize, PROT_READ, MAP_FILE|MAP_COPY, fd, 0); in _nl_load_locale_from_archive() 245 result = __mmap64 (NULL, mapsize, PROT_READ, MAP_FILE|MAP_COPY, in _nl_load_locale_from_archive() 417 addr = __mmap64 (NULL, to - from, PROT_READ, MAP_FILE|MAP_COPY, in _nl_load_locale_from_archive()
|
/glibc-2.36/support/ |
D | blob_repeat.c | 186 void *ptr = mmap (target, stride_size, PROT_READ | PROT_WRITE, in allocate_big() 230 void *ptr = mmap (current, to_map, PROT_READ | PROT_WRITE, in allocate_big()
|
D | support_shared_allocate.c | 45 struct header *result = xmmap (NULL, total_size, PROT_READ | PROT_WRITE, in support_shared_allocate()
|
/glibc-2.36/sysdeps/x86/ |
D | tst-cet-legacy-7.c | 29 funcp = xmmap (NULL, 0x1000, PROT_EXEC | PROT_READ | PROT_WRITE, in do_test()
|
D | tst-cet-legacy-9.c | 32 funcp = xmmap (NULL, 0x1000, PROT_EXEC | PROT_READ | PROT_WRITE, in do_test()
|
D | tst-cet-legacy-8.c | 38 funcp = xmmap (NULL, 0x1000, PROT_EXEC | PROT_READ | PROT_WRITE, in do_test()
|
/glibc-2.36/sysdeps/mach/ |
D | mprotect.c | 34 if (prot & PROT_READ) in __mprotect()
|
/glibc-2.36/bits/ |
D | mman.h | 33 #define PROT_READ 0x04 /* Pages can be read. */ macro
|
/glibc-2.36/sysdeps/generic/ |
D | ldsodefs.h | 165 ((PROT_READ << (PF_R * 4)) \ 168 | ((PROT_READ | PROT_WRITE) << ((PF_R | PF_W) * 4)) \ 169 | ((PROT_READ | PROT_EXEC) << ((PF_R | PF_X) * 4)) \ 171 | ((PROT_READ | PROT_WRITE | PROT_EXEC) << ((PF_R | PF_W | PF_X) * 4)))
|
/glibc-2.36/elf/ |
D | dl-fptr.c | 85 PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in new_fdesc_table() 188 PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, in ElfW()
|