vm_protect vs mprotect
vm_protect vs mprotect
- Subject: vm_protect vs mprotect
- From: Rohitash Panda <email@hidden>
- Date: Thu, 26 Mar 2009 17:03:07 +0530
- Organization: Oracle Corporation
Hi,
I am seeing an issue because of vm_protect being
called from signal handlers,
where another system call was already in
progress.It works fine using mprotect.
The mach call vm_protect() calls vm_map_protect() directly , whearas
bsd syscall
mprotect calls mach_vm_protect() which eventually calls
vm_map_protect().
I guess vm_protect is avoiding some extra checks as compared to
mprotect().
Which the preferred interface ? Has anyone heard of any issues with
vm_protect ?
Thanks.
--
Rohitash
Panda | Database Platform Specific Development
Server
Technologies
|
Oracle
is committed to developing practices and products that help protect the
environment
|
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden