#include <sys/mman.h>
mprotect(addr, len, prot) caddr_t addr; int len, prot;
mprotect() changes the access protections on the mappings specified by the range [addr, addr + len) to be that specified by prot. Legitimate values for prot are the same as those permitted for mmap.2
mprotect() returns:
When mprotect() fails for reasons other than EINVAL, the protections on some of the pages in the range [addr, addr + len) will have been changed. If the error occurs on some page at address addr2, then the protections of all whole pages in the range [addr, addr2) have been modified.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97