Home
last modified time | relevance | path

Searched refs:PROT_NONE (Results 1 – 25 of 106) sorted by relevance

12345

/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/
Dldso_dlopen_ext_test.cpp64 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
92 void* addr = mmap(nullptr, SIZE_128, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE, 0);
111 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
142 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
182 void* addr = mmap(nullptr, SIZE_128, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE, 0);
287 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
323 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
358 …void* addr = mmap(nullptr, SIZE_1024_SQUARE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE…
394 void* addr = mmap(nullptr, SIZE_128, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, INVALID_VALUE, 0);
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D2-4-buildonly.c19 #ifndef PROT_NONE
20 #error PROT_NONE not defined
/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/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c43 {.flags = MAP_SHARED,.prot = PROT_NONE},
52 {.flags = MAP_PRIVATE,.prot = PROT_NONE},
66 if (t->prot == PROT_NONE) in print_error()
D6-3.c68 pa = mmap(NULL, size, PROT_NONE, MAP_SHARED, fd, 0); in main()
D6-2.c75 pa = mmap(NULL, size, PROT_NONE, MAP_SHARED, fd, 0); in main()
/third_party/musl/libc-test/src/common/
Dvmfill.c21 if ((p=mmap(0, n, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, fd, 0)) == MAP_FAILED) { in mmax()
50 q = mmap(0, m, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, fd, 0); in t_vmfill()
/third_party/node/test/cctest/
Dtest_crypto_clienthello.cc21 #if defined(_SC_PAGE_SIZE) && defined(PROT_NONE) && defined(PROT_READ) && \
60 CHECK_EQ(mprotect(second_page, page, PROT_NONE), 0); in OverrunGuardedBuffer()
/third_party/curl/lib/
Dkrb5.c97 DEBUGASSERT(data_sec > PROT_NONE && data_sec < PROT_LAST); in ftpsend()
403 return PROT_NONE; in name_to_level()
604 DEBUGASSERT(prot_level > PROT_NONE && prot_level < PROT_LAST); in do_sec_send()
693 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); in Curl_sec_read_msg()
738 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); in sec_set_protection_level()
796 if(l == PROT_NONE) in Curl_sec_request_prot()
798 DEBUGASSERT(l > PROT_NONE && l < PROT_LAST); in Curl_sec_request_prot()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c164 bad_addr[0] = mmap(NULL, page_size * 3, PROT_NONE, in setup()
174 bad_addr[1] = mmap(NULL, page_size * 3, PROT_NONE, in setup()
/third_party/musl/libc-test/src/functionalext/supplement/mman/mman_gtest/
Dmman_mmap_test.cpp97 void* mmapping = mmap(nullptr, sb.st_size, PROT_NONE, MAP_PRIVATE | MAP_FIXED, -1, 0);
153 …EXPECT_EQ(MAP_FAILED, mmap(nullptr, (PTRDIFF_MAX) + 1, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1,…
/third_party/mesa3d/include/android_stub/backtrace/
DBacktraceMap.h24 #define PROT_NONE 0 macro
132 return PROT_NONE; in GetFlags()
/third_party/rust/crates/rustix/tests/mm/
Dprot.rs3 assert_eq!(libc::PROT_NONE, 0); in test_prot_flags()
/third_party/ltp/lib/
Dtst_get_bad_addr.c26 bad_addr = mmap(0, 1, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in tst_get_bad_addr()
/third_party/libunwind/include/mingw/sys/
Dmman.h17 #define PROT_NONE 0 macro
/third_party/ltp/tools/sparse/sparse-src/compat/
Dmmap-blob.c35 mprotect(addr, size, PROT_NONE); in blob_free()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise05.c31 TEST(mprotect(p, ALLOC_SIZE, PROT_NONE)); in verify_madvise()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D20-3.c52 ptr = mmap(NULL, BUF_SIZE, PROT_NONE, MAP_SHARED, fd, 0); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D2-1.c44 map_addr = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE, fd, 0); in main()
/third_party/ltp/testcases/kernel/syscalls/write/
Dwrite03.c58 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup()
Dwrite05.c85 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup()
/third_party/ltp/testcases/kernel/mem/thp/
Dthp03.c57 if (mprotect(p, unaligned_size, PROT_NONE) == -1) in thp_test()
/third_party/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile04.c32 {PROT_NONE, 0, "pass_mapped_buffer"},
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmprotect.c71 int ret = mprotect(buffer, getpagesize(), PROT_NONE); in mprotect_0400()
/third_party/ltp/testcases/kernel/syscalls/rename/
Drename08.c169 bad_addr = mmap(0, 1, PROT_NONE, in setup()

12345