Home
last modified time | relevance | path

Searched refs:mprotect (Results 1 – 25 of 137) sorted by relevance

123456

/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmprotect.c32 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()
Dtest_src_functionalext_supplement_mman.gni22 "mprotect",
/third_party/pcre2/pcre2/src/sljit/
DsljitWXExecAllocator.c98 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/
Dmprotect04.c106 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()
Dmprotect03.c95 TEST(mprotect(addr, strlen(buf), PROT_READ)); in main()
/third_party/libunwind/tests/
DLtest-mem-validate.c55 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/
Dmmap.rs78 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/
Dsignal06.c102 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/
Dmmap.rs155 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()
Dmod.rs13 mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags,
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D14-1-buildonly.c24 dummyvar = mprotect; in dummyfcn()
/third_party/rust/crates/rustix/src/backend/libc/mm/
Dsyscalls.rs117 pub(crate) unsafe fn mprotect( in mprotect() function
122 ret(c::mprotect(ptr, len, flags.bits())) in mprotect()
/third_party/musl/src/mman/
Dmprotect.c13 weak_alias(__mprotect, mprotect);
/third_party/ltp/tools/sparse/sparse-src/compat/
Dmmap-blob.c35 mprotect(addr, size, PROT_NONE); in blob_free()
/third_party/mesa3d/src/panfrost/lib/genxml/
Ddecode_common.c93 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/
Dmadvise05.c31 TEST(mprotect(p, ALLOC_SIZE, PROT_NONE)); in verify_madvise()
/third_party/ltp/testcases/kernel/syscalls/brk/
Dbrk02.c39 if (mprotect(addr - page_size, page_size, PROT_READ)) { in brk_down_vmas()
/third_party/flutter/skia/third_party/externals/sdl/src/video/
DSDL_stretch.c109 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/
Dthp03.c57 if (mprotect(p, unaligned_size, PROT_NONE) == -1) in thp_test()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DExecutableMemory.cpp386 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/
DMakefile15 mincore mprotect nftw profil remap_file_pages sbrk
/third_party/node/src/large_pages/
Dnode_large_page.cc379 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/
Dsys_mman.c49 {int(*p)(void*,size_t,int) = mprotect;} in f()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dmman.h117 int mprotect (void *, size_t, int);
/third_party/musl/porting/uniproton/kernel/include/sys/
Dmman.h117 int mprotect (void *, size_t, int);

123456