Home
last modified time | relevance | path

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

/xnu-12377.81.4/tools/tests/perf_index/
H A Dtest_fault_helper.c33 retval = mprotect(memblock, MEMSIZE, PROT_READ); in test_fault_setup()
36 retval = mprotect(memblock, MEMSIZE, PROT_READ | PROT_WRITE); in test_fault_setup()
81 retval = mprotect(memblock + region_start, region_len, PROT_READ) == 0; in test_fault_helper()
83 retval = mprotect(memblock + region_start, region_len, PROT_READ | PROT_WRITE) == 0; in test_fault_helper()
/xnu-12377.81.4/tests/
H A Drestartable_ranges.c207 T_QUIET; T_ASSERT_POSIX_SUCCESS(mprotect(p, PAGE_MAX_SIZE, in arena_alloc()
216 T_QUIET; T_ASSERT_POSIX_SUCCESS(mprotect(p, PAGE_MAX_SIZE, in arena_free()
248 T_QUIET; T_ASSERT_POSIX_SUCCESS(mprotect(&arena[1],
H A Dvm_test_code_signing_helper.c58 if (mprotect(page, page_size, PROT_READ | PROT_WRITE) != 0) { in main()
98 if (mprotect(page, page_size, PROT_READ | PROT_EXEC) != 0) { in main()
H A Dmemcmp_zero.c13 mprotect(p, PAGE_SIZE, PROT_READ | PROT_WRITE); in get_guarded_page()
H A Dbacktracing_tests.c386 error = mprotect(guard_page, vm_page_size, PROT_READ);
H A Dldt.c698 if (mprotect(addr, PAGE_SIZE, PROT_NONE) < 0) { in map_lowmem_stack()
H A Darm_mte.c1136 ret = mprotect(tagged_ptr_mprotect, alloc_size, PROT_NONE);
1534 int ret = mprotect(untagged_ptr, MTE_GRANULE_SIZE, PROT_READ);
H A Dvm_test_mach_map.c934 ret = mprotect((void*)vmaddr, vmsize, PROT_READ);
963 ret = mprotect((void*)vmaddr, vmsize, PROT_READ);
/xnu-12377.81.4/bsd/sys/
H A Dmman.h274 int mprotect(void *, size_t, int) __DARWIN_ALIAS(mprotect);
/xnu-12377.81.4/tests/vm/
H A Dzalloc_buddy.c25 int rc = mprotect((void *)addr, size, PROT_READ | PROT_WRITE); in zba_populate_any()
62 rc = mprotect(zba_base_header(), ZBA_TEST_SIZE, PROT_NONE); in zba_test_setup()
H A Dupl.c110 T_QUIET; T_ASSERT_POSIX_SUCCESS(mprotect(buf, buf_size, PROT_READ), "mprotect");
207 T_QUIET; T_ASSERT_POSIX_SUCCESS(mprotect(buf, buf_size, PROT_READ), "mprotect");
425 …T_QUIET; T_ASSERT_POSIX_SUCCESS(mprotect((char*)buf + (8 * PAGE_SIZE), 2 * PAGE_SIZE, PROT_READ), …
H A Dvm_parameter_validation.c131 assert(0 == mprotect(guard_page, sizeof(guard_page), 0)); in set_up_guard_page()
2005 int err = mprotect(mincore_guard, KB16, PROT_NONE); in call_mincore()
/xnu-12377.81.4/libsyscall/wrappers/legacy/
H A Dmprotect.c43 mprotect(void *addr, size_t len, int prot) in mprotect() function
/xnu-12377.81.4/bsd/man/man2/
H A DMakefile145 mprotect.2 \
/xnu-12377.81.4/libsyscall/Libsyscall.xcodeproj/
H A Dproject.pbxproj90 …248BA089121DA8E0008C073F /* mprotect.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA088121D…
519 …8121DA8E0008C073F /* mprotect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
990 248BA088121DA8E0008C073F /* mprotect.c */,
1597 248BA089121DA8E0008C073F /* mprotect.c in Sources */,
/xnu-12377.81.4/bsd/kern/
H A Dkern_mman.c1192 mprotect(__unused proc_t p, struct mprotect_args *uap, __unused int32_t *retval) in mprotect() function