__mprotect (caddr_t addr, size_t len, int prot)
__mprotect (__ptr_t addr, size_t len, int prot)
__mprotect (caddr_t addr, size_t len, int prot){  kern_return_t err;  vm_prot_t vmprot;  vmprot = VM_PROT_NONE;  if (prot & PROT_READ)    vmprot |= VM_PROT_READ;  if (prot & PROT_WRITE)    vmprot |= VM_PROT_WRITE;  if (prot & PROT_EXEC)    vmprot |= VM_PROT_EXECUTE;  if (err = __vm_protect (__mach_task_self (),			  (vm_address_t) addr, (vm_size_t) len,			  0, vmprot))    {      errno = err;      return -1;    }  return 0;}