| /xnu-12377.81.4/tools/tests/perf_index/ |
| H A D | test_fault_helper.c | 33 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 D | restartable_ranges.c | 207 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 D | vm_test_code_signing_helper.c | 58 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 D | memcmp_zero.c | 13 mprotect(p, PAGE_SIZE, PROT_READ | PROT_WRITE); in get_guarded_page()
|
| H A D | backtracing_tests.c | 386 error = mprotect(guard_page, vm_page_size, PROT_READ);
|
| H A D | ldt.c | 698 if (mprotect(addr, PAGE_SIZE, PROT_NONE) < 0) { in map_lowmem_stack()
|
| H A D | arm_mte.c | 1136 ret = mprotect(tagged_ptr_mprotect, alloc_size, PROT_NONE); 1534 int ret = mprotect(untagged_ptr, MTE_GRANULE_SIZE, PROT_READ);
|
| H A D | vm_test_mach_map.c | 934 ret = mprotect((void*)vmaddr, vmsize, PROT_READ); 963 ret = mprotect((void*)vmaddr, vmsize, PROT_READ);
|
| /xnu-12377.81.4/bsd/sys/ |
| H A D | mman.h | 274 int mprotect(void *, size_t, int) __DARWIN_ALIAS(mprotect);
|
| /xnu-12377.81.4/tests/vm/ |
| H A D | zalloc_buddy.c | 25 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 D | upl.c | 110 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 D | vm_parameter_validation.c | 131 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 D | mprotect.c | 43 mprotect(void *addr, size_t len, int prot) in mprotect() function
|
| /xnu-12377.81.4/bsd/man/man2/ |
| H A D | Makefile | 145 mprotect.2 \
|
| /xnu-12377.81.4/libsyscall/Libsyscall.xcodeproj/ |
| H A D | project.pbxproj | 90 …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 D | kern_mman.c | 1192 mprotect(__unused proc_t p, struct mprotect_args *uap, __unused int32_t *retval) in mprotect() function
|