/third_party/ltp/testcases/kernel/syscalls/pkeys/ |
D | pkey01.c | 73 {PROT_READ, MAP_ANONYMOUS | MAP_SHARED, -1}, 75 {PROT_READ, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, 77 {PROT_READ, MAP_SHARED, 0}, 80 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1}, 82 {PROT_WRITE, MAP_SHARED, 0}, 84 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, 87 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED, -1}, 89 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, 91 {PROT_EXEC, MAP_SHARED, 0}, 94 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1}, [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 43 {.flags = MAP_SHARED,.prot = PROT_NONE}, 44 {.flags = MAP_SHARED,.prot = PROT_READ}, 45 {.flags = MAP_SHARED,.prot = PROT_WRITE}, 46 {.flags = MAP_SHARED,.prot = PROT_EXEC}, 47 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE}, 48 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC}, 49 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE}, 50 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 79 case MAP_SHARED: in print_error()
|
D | 7-1.c | 65 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 82 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
|
D | 27-1.c | 75 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 81 pa = mmap(pa, len / 2, PROT_READ, MAP_SHARED | MAP_FIXED, fd, 0); in main()
|
D | 24-2.c | 71 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 93 pa = mmap(addr, len, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_SHARED, fd, in main()
|
D | 3-1.c | 95 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 109 mmap(pa, size2, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd2, in main()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
D | tsimpleinj.c | 98 page = mmap(NULL, PS, PROT_READ, MAP_SHARED|MAP_POPULATE, fd, 0); in main() 110 page = mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main() 122 page = mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main() 142 page = mmap(NULL, PS*NPAGES, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main()
|
D | tinjpage.c | 386 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED|flags, in do_file_clean() 421 MAP_SHARED|MAP_POPULATE|flags, fd, 0); in do_file_dirty() 429 page = checked_mmap(NULL, PS, PROT_READ, MAP_SHARED|MAP_POPULATE|flags, in do_file_dirty() 437 page = checked_mmap(NULL, PS, PROT_READ, MAP_SHARED|flags, fd, 0); in do_file_dirty() 472 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in file_hole() 496 page = checked_mmap(NULL, PS*NPAGES, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in nonlinear() 569 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, fd, 0); in under_io_dirty() 592 page = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, fd, 0); in under_io_clean() 649 MAP_SHARED|MAP_ANONYMOUS|MAP_POPULATE, 0, 0); in do_shared()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | remap_file_pages.c | 121 char *start = mmap(NULL, LEN, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in remap_file_pages_0100() 142 int result = remap_file_pages(start, LEN >> 1, 0, 1, MAP_SHARED); in remap_file_pages_0100() 149 result = remap_file_pages(start + 4096, LEN >> 1, 0, 0, MAP_SHARED); in remap_file_pages_0100()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap02.c | 61 MAP_SHARED, nfildes, 0); in test_hugemmap() 73 MAP_SHARED | MAP_FIXED, nfildes, 0); in test_hugemmap() 85 MAP_SHARED, fildes, 0); in test_hugemmap()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
D | 3-1-buildonly.c | 18 #ifndef MAP_SHARED 19 #error MAP_SHARED not defined
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
D | mmap.c | 90 start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_0200() 113 start = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); in mmap_0300() 255 start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, OFF_MASK); in mmap_0700() 288 start = mmap(NULL, PTRDIFF_MAX + 1, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_0800() 319 start = mmap(NULL, 0, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_0900() 354 …start = mmap(NULL, statbuff.st_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, fd, getpagesiz… in mmap_1000()
|
D | madvise.c | 51 void *ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in madvise_0100() 74 void *ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in madvise_0200()
|
D | mremap.c | 43 void *map = mmap(NULL, TEST_M_SIZE, PROT_READ, MAP_SHARED, fd, 0); in mremap_0100() 76 void *map = mmap(NULL, TEST_M_SIZE, PROT_READ, MAP_SHARED, fd, 0); in mremap_0200()
|
D | posix_madvise.c | 53 void *ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in posix_madvise_0100() 74 void *ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in posix_madvise_0200()
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.c | 333 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 340 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable() 349 PROT_READ, MAP_SHARED, fd, 0); in check_mfd_writeable() 383 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 387 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable() 392 p = mmap(NULL, MFD_DEF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in check_mfd_non_writeable()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise02.c | 149 file1 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup() 150 file2 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup() 152 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 14-2.c | 50 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 64 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 1-1.c | 51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 67 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 28-3.c | 52 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 74 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 5-1.c | 60 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in child_process() 93 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 28-1.c | 51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 84 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
/third_party/ltp/lib/ |
D | tst_safe_io_uring.c | 36 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, uring->fd, in safe_io_uring_init() 44 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, uring->fd, in safe_io_uring_init() 51 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, uring->fd, in safe_io_uring_init()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 2-1.c | 74 MAP_SHARED, shm_fd, 0); in main() 133 MAP_SHARED, shm_fd, 0); in main()
|
D | 2-2.c | 82 MAP_SHARED, shm_fd, 0); in main() 139 MAP_SHARED, shm_fd, 0); in main()
|