/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
D | mprotect.c | 32 int ret = mprotect(buffer, getpagesize(), PROT_READ); in mprotect_0100() 45 int ret = mprotect(buffer, getpagesize(), PROT_WRITE); in mprotect_0200() 58 int ret = mprotect(buffer, getpagesize(), PROT_EXEC); in mprotect_0300() 71 int ret = mprotect(buffer, getpagesize(), PROT_NONE); in mprotect_0400() 84 int ret = mprotect(buffer, getpagesize(), PROT_READ | PROT_WRITE); in mprotect_0500() 96 int ret = mprotect((void *)0x0001, getpagesize(), PROT_READ); in mprotect_0600()
|
D | test_src_functionalext_supplement_mman.gni | 22 "mprotect",
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitWXExecAllocator.c | 98 if (SLJIT_LIKELY(!mprotect(ptr, size, PROT_EXEC))) in generic_se_protected() 99 return mprotect(ptr, size, PROT_READ | PROT_WRITE); in generic_se_protected() 176 mprotect((void*)start, end - start, prot); in sljit_update_wx_flags()
|
/third_party/ltp/testcases/kernel/syscalls/mprotect/ |
D | mprotect04.c | 106 TEST(mprotect(addr, page_sz, PROT_NONE)); in testfunc_protnone() 208 TEST(mprotect(page_to_copy, page_sz, PROT_READ | PROT_EXEC)); in get_func() 256 TEST(mprotect(p, page_sz, PROT_EXEC)); in testfunc_protexec()
|
D | mprotect03.c | 95 TEST(mprotect(addr, strlen(buf), PROT_READ)); in main()
|
/third_party/libunwind/tests/ |
D | Ltest-mem-validate.c | 55 mprotect((void*)((uintptr_t)stack_start & ~(PAGE_SIZE - 1)), in do_backtrace() 90 mprotect((void*)((uintptr_t)stack_start & ~(PAGE_SIZE - 1)), in do_backtrace()
|
/third_party/rust/crates/rustix/tests/mm/ |
D | mmap.rs | 78 use rustix::mm::{mmap_anonymous, mprotect, munmap, MapFlags, MprotectFlags, ProtFlags}; in test_mprotect() 85 mprotect(addr, 8192, MprotectFlags::empty()).unwrap(); in test_mprotect() 86 mprotect(addr, 8192, MprotectFlags::READ).unwrap(); in test_mprotect()
|
/third_party/ltp/testcases/kernel/syscalls/signal/ |
D | signal06.c | 102 TEST(mprotect(altstack, sizeof(altstack), PROT_READ)); in tfunc() 107 TEST(mprotect(altstack, sizeof(altstack), PROT_READ | PROT_WRITE)); in tfunc()
|
/third_party/rust/crates/rustix/src/mm/ |
D | mmap.rs | 155 pub unsafe fn mprotect(ptr: *mut c_void, len: usize, flags: MprotectFlags) -> io::Result<()> { in mprotect() function 156 backend::mm::syscalls::mprotect(ptr, len, flags) in mprotect()
|
D | mod.rs | 13 mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
D | 14-1-buildonly.c | 24 dummyvar = mprotect; in dummyfcn()
|
/third_party/rust/crates/rustix/src/backend/libc/mm/ |
D | syscalls.rs | 117 pub(crate) unsafe fn mprotect( in mprotect() function 122 ret(c::mprotect(ptr, len, flags.bits())) in mprotect()
|
/third_party/musl/src/mman/ |
D | mprotect.c | 13 weak_alias(__mprotect, mprotect);
|
/third_party/ltp/tools/sparse/sparse-src/compat/ |
D | mmap-blob.c | 35 mprotect(addr, size, PROT_NONE); in blob_free()
|
/third_party/mesa3d/src/panfrost/lib/genxml/ |
D | decode_common.c | 93 mprotect(mem->addr, mem->length, PROT_READ); in pandecode_find_mapped_gpu_mem_containing() 108 mprotect((*mem)->addr, (*mem)->length, PROT_READ | PROT_WRITE); in pandecode_map_read_write()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise05.c | 31 TEST(mprotect(p, ALLOC_SIZE, PROT_NONE)); in verify_madvise()
|
/third_party/ltp/testcases/kernel/syscalls/brk/ |
D | brk02.c | 39 if (mprotect(addr - page_size, page_size, PROT_READ)) { in brk_down_vmas()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/ |
D | SDL_stretch.c | 109 if (mprotect(copy_row, sizeof(copy_row), PROT_READ | PROT_WRITE) < 0) { in generate_rowbytes() 141 if (mprotect(copy_row, sizeof(copy_row), PROT_READ | PROT_EXEC) < 0) { in generate_rowbytes()
|
/third_party/ltp/testcases/kernel/mem/thp/ |
D | thp03.c | 57 if (mprotect(p, unaligned_size, PROT_NONE) == -1) in thp_test()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | ExecutableMemory.cpp | 386 mprotect(memory, bytes, permissionsToMmapProt(permissions)); in protectMemoryPages() 411 int result = mprotect(memory, bytes, PROT_READ | PROT_WRITE); in deallocateMemoryPages()
|
/third_party/ltp/testcases/kernel/syscalls/ |
D | Makefile | 15 mincore mprotect nftw profil remap_file_pages sbrk
|
/third_party/node/src/large_pages/ |
D | node_large_page.cc | 379 if (mprotect(start, size, PROT_READ | PROT_WRITE | PROT_EXEC) == -1) in MoveTextRegionToLargePages() 384 if (mprotect(start, size, PROT_READ | PROT_EXEC) == -1) goto fail; in MoveTextRegionToLargePages()
|
/third_party/musl/libc-test/src/api/ |
D | sys_mman.c | 49 {int(*p)(void*,size_t,int) = mprotect;} in f()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | mman.h | 117 int mprotect (void *, size_t, int);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | mman.h | 117 int mprotect (void *, size_t, int);
|