/macosx-10.10/xnu-2782.1.97/tools/tests/perf_index/ |
H A D | test_fault_helper.c | 27 retval = mprotect(memblock, MEMSIZE, PROT_READ); 28 VERIFY(retval == 0, "mprotect failed"); 30 retval = mprotect(memblock, MEMSIZE, PROT_READ | PROT_WRITE); 31 VERIFY(retval == 0, "mprotect failed"); 72 retval = mprotect(memblock+region_start, region_len, PROT_READ) == 0; 73 VERIFY(retval == 0, "mprotect failed"); 74 retval = mprotect(memblock+region_start, region_len, PROT_READ | PROT_WRITE) == 0; 75 VERIFY(retval == 0, "mprotect failed");
|
/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/trie-symbol-overrun/ |
H A D | main.c | 46 mprotect((char*)(addr+4096), 4096, 0);
|
/macosx-10.10/xnu-2782.1.97/libsyscall/wrappers/legacy/ |
H A D | mprotect.c | 43 mprotect(void *addr, size_t len, int prot) function
|
/macosx-10.10/dtrace-147/libctf/ |
H A D | ctf_subr.c | 50 (void) mprotect(buf, size, PROT_READ);
|
/macosx-10.10/xnu-2782.1.97/bsd/sys/ |
H A D | mman.h | 200 int mprotect(void *, size_t, int) __DARWIN_ALIAS(mprotect); variable
|
/macosx-10.10/xnu-2782.1.97/tools/tests/libMicro/ |
H A D | Makefile.benchmarks | 74 mprotect \
|
H A D | mprotect.c | 76 "notes: measures mprotect()\n", 179 if (mprotect((void *)&seg[i * optl], optl, prot) == -1) {
|
H A D | bench.sh | 656 mprotect $OPTS -N "mprot_z8k" -l 8k -I 300 -f /dev/zero 657 mprotect $OPTS -N "mprot_z128k" -l 128k -I 500 -f /dev/zero 658 mprotect $OPTS -N "mprot_wz8k" -l 8k -I 500 -w -f /dev/zero 659 mprotect $OPTS -N "mprot_wz128k" -l 128k -I 1000 -w -f /dev/zero 660 mprotect $OPTS -N "mprot_twz8k" -l 8k -I 1000 -w -t -f /dev/zero 661 mprotect $OPTS -N "mprot_tw128k" -l 128k -I 2000 -w -t -f /dev/zero 662 mprotect $OPTS -N "mprot_tw4m" -l 4m -w -t -B 1 -f /dev/zero
|
H A D | coreos_bench.sh | 674 mprotect $OPTS -N "mprot_z8k" -l 8k -I 300 -f /dev/zero 675 mprotect $OPTS -N "mprot_z128k" -l 128k -I 500 -f /dev/zero 676 mprotect $OPTS -N "mprot_wz8k" -l 8k -I 500 -w -f /dev/zero 677 mprotect $OPTS -N "mprot_wz128k" -l 128k -I 1000 -w -f /dev/zero 678 mprotect $OPTS -N "mprot_twz8k" -l 8k -I 1000 -w -t -f /dev/zero 679 mprotect $OPTS -N "mprot_tw128k" -l 128k -I 2000 -w -t -f /dev/zero 680 mprotect $OPTS -N "mprot_tw4m" -l 4m -w -t -B 1 -f /dev/zero
|
/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/dlopen-from-anonymous-code/ |
H A D | main.c | 63 mprotect(codeBlock, 4096, PROT_READ | PROT_EXEC);
|
/macosx-10.10/Heimdal-398.1.2/lib/roken/ |
H A D | test-mem.c | 141 ret = mprotect ((void *)p, pagesize, 0); 143 err (1, "mprotect"); 145 ret = mprotect (p + map.size - pagesize, pagesize, 0); 147 err (1, "mprotect");
|
/macosx-10.10/WTF-7600.1.24/wtf/ |
H A D | OSAllocatorPosix.cpp | 113 // We use mmap to remap the guardpages rather than using mprotect as 114 // mprotect results in multiple references to the code region. This 131 if (mprotect(address, bytes, protection)) 151 if (mprotect(address, bytes, PROT_NONE))
|
/macosx-10.10/xnu-2782.1.97/tools/tests/xnu_quick_test/helpers/ |
H A D | data_exec.c | 159 if(mprotect((void *)base, len, PROT_READ|PROT_WRITE|PROT_EXEC) == -1) { 160 perror("mprotect of stack"); 187 if(mprotect((void *)base, len, PROT_READ|PROT_WRITE|PROT_EXEC) == -1) { 188 perror("mprotect of stack");
|
/macosx-10.10/libunwind-35.3/testsuite/ |
H A D | dynamic_fde_registration.cxx | 117 mprotect((void*)addr, size, PROT_READ|PROT_EXEC);
|
/macosx-10.10/cxxfilt-11/cxxfilt/bfd/ |
H A D | bfdwin.c | 96 mprotect (i->data, i->size, PROT_READ | PROT_WRITE); 248 mprotect (i->data, i->size, PROT_READ);
|
H A D | configure.com | 195 /* Define if you have the mprotect function. */
|
/macosx-10.10/libmalloc-53.1.1/src/ |
H A D | malloc.c | 350 mprotect(malloc_zones, protect_size, PROT_READ | PROT_WRITE); 356 mprotect(malloc_zones, protect_size, PROT_READ); 402 mprotect(malloc_zones, protect_size, PROT_READ | PROT_WRITE); 405 mprotect(malloc_zones, protect_size, PROT_READ); 707 mprotect(malloc_zones, protect_size, PROT_READ | PROT_WRITE); 715 mprotect(malloc_zones, protect_size, PROT_READ); 920 mprotect(malloc_zones, protect_size, PROT_READ | PROT_WRITE); 928 mprotect(malloc_zones, protect_size, PROT_READ); 952 mprotect(z, sizeof(malloc_zone_t), PROT_READ | PROT_WRITE); 967 mprotect( [all...] |
/macosx-10.10/dtrace-147/libelf/ |
H A D | cook.c | 143 * done the mprotect() operation before, then do it now. 147 if (mprotect((char *)elf->ed_image, elf->ed_imagesz,
|
/macosx-10.10/xnu-2782.1.97/bsd/man/man2/ |
H A D | Makefile | 127 mprotect.2 \
|
/macosx-10.10/Heimdal-398.1.2/lib/asn1/ |
H A D | check-common.c | 113 ret = mprotect (p, pagesize, 0); 115 err (1, "mprotect"); 117 ret = mprotect (p + (*map)->size - pagesize, pagesize, 0); 119 err (1, "mprotect");
|
/macosx-10.10/libdispatch-442.1.4/src/ |
H A D | allocator.c | 407 (void)dispatch_assume_zero(mprotect((void *)region, bottom_slop_len, 411 (void)dispatch_assume_zero(mprotect((void *)aligned_region_end, 429 (void)dispatch_assume_zero(mprotect((void *)aligned_region,
|
/macosx-10.10/BerkeleyDB-21/db/dbinc/ |
H A D | mp.h | 620 int __ret = mprotect((buf), (sz), (mode)); \ 626 int __ret = mprotect((buf), (sz), (mode)); \
|
/macosx-10.10/JavaScriptCore-7600.1.17/jit/ |
H A D | ExecutableAllocator.cpp | 261 mprotect(pageStart, size, (setting == Writable) ? PROTECTION_FLAGS_RW : PROTECTION_FLAGS_RX);
|
/macosx-10.10/ruby-106/ruby/ext/fiddle/ |
H A D | closure.c | 231 i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC); 233 rb_sys_fail("mprotect");
|
/macosx-10.10/xnu-2782.1.97/tools/tests/xnu_quick_test/ |
H A D | memory_tests.c | 31 * Test madvise, mincore, minherit, mlock, mlock, mmap, mprotect, msync, munmap system calls. 251 /* map the file into memory again for mprotect test */ 262 /* test mprotect - change protection to only PROT_READ */ 263 my_err = mprotect( my_addr, my_page_size, PROT_READ ); 265 printf( "mprotect call failed with error %d - \"%s\" \n", errno, strerror( errno) );
|