Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 25 of 112) sorted by relevance

12345

/glibc-2.36/posix/
Dtst-mmap.c44 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()
Dtst-mmap-offset.c58 const int prot = PROT_READ | PROT_WRITE; in do_test_bz18877()
88 const int prot = PROT_READ | PROT_WRITE; in do_test_large_offset()
Dtst-fnmatch3.c30 char *pattern = mmap (0, 2 * pagesize, PROT_READ|PROT_WRITE, in do_bz18036()
/glibc-2.36/sysdeps/mach/hurd/
Dmmap.c49 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()
Ddl-execstack.c38 PROT_READ|PROT_WRITE|PROT_EXEC) != 0) in _dl_make_stack_executable()
/glibc-2.36/malloc/
Dtst-free-errno.c84 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/
Dtst-syscalls.c47 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/
Dtst-process_madvise.c50 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()
Dtst-pkey.c180 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()
Dtst-mlock2.c28 return xmmap (NULL, 1, PROT_READ | PROT_WRITE, in get_page()
/glibc-2.36/sysdeps/pthread/
Dtst-cond12.c67 } *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/
Dtst-memmove-overflow.c110 PROT_READ | PROT_WRITE, in test_main()
113 PROT_READ | PROT_WRITE, in test_main()
Dtest-string.h199 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()
Dtest-memmove.c254 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/
Dtst-bz21269.c94 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/
Dloadarchive.c227 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/
Dblob_repeat.c186 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()
Dsupport_shared_allocate.c45 struct header *result = xmmap (NULL, total_size, PROT_READ | PROT_WRITE, in support_shared_allocate()
/glibc-2.36/sysdeps/x86/
Dtst-cet-legacy-7.c29 funcp = xmmap (NULL, 0x1000, PROT_EXEC | PROT_READ | PROT_WRITE, in do_test()
Dtst-cet-legacy-9.c32 funcp = xmmap (NULL, 0x1000, PROT_EXEC | PROT_READ | PROT_WRITE, in do_test()
Dtst-cet-legacy-8.c38 funcp = xmmap (NULL, 0x1000, PROT_EXEC | PROT_READ | PROT_WRITE, in do_test()
/glibc-2.36/sysdeps/mach/
Dmprotect.c34 if (prot & PROT_READ) in __mprotect()
/glibc-2.36/bits/
Dmman.h33 #define PROT_READ 0x04 /* Pages can be read. */ macro
/glibc-2.36/sysdeps/generic/
Dldsodefs.h165 ((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/
Ddl-fptr.c85 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()

12345