Home
last modified time | relevance | path

Searched refs:MAP_SHARED (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/third_party/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c73 {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/
D5-1.c43 {.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()
D7-1.c65 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()
D27-1.c75 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()
D24-2.c71 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()
D3-1.c95 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/
Dtsimpleinj.c98 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()
Dtinjpage.c386 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/
Dremap_file_pages.c121 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/
Dhugemmap02.c61 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/
D3-1-buildonly.c18 #ifndef MAP_SHARED
19 #error MAP_SHARED not defined
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmmap.c90 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()
Dmadvise.c51 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()
Dmremap.c43 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()
Dposix_madvise.c53 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/
Dmemfd_create_common.c333 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/
Dmadvise02.c149 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/
D14-2.c50 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()
D1-1.c51 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()
D28-3.c52 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()
D5-1.c60 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()
D28-1.c51 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/
Dtst_safe_io_uring.c36 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/
D2-1.c74 MAP_SHARED, shm_fd, 0); in main()
133 MAP_SHARED, shm_fd, 0); in main()
D2-2.c82 MAP_SHARED, shm_fd, 0); in main()
139 MAP_SHARED, shm_fd, 0); in main()

12345678910>>...14