mprotect(2) - Linux manual page

%%%TOP_BAR%%% man7.org > Linux > man-pages Linux/UNIX system programming training %%%PAGE_START%%% NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | CONFORMING TO | NOTES | EXAMPLE | SEE ALSO | COLOPHON MPROTECT(2) Linux Programmer's Manual MPROTECT(2) top mprotect - set protection on a region of memory top #include <sys/mman.h> int mprotect(void * addr , size_t len , int prot ); top mprotect () changes protection for the calling process's memory page(s) containing any part of the address range in the interval [ addr , addr + len -1]. addr must be aligned to a page boundary. If the calling process tries to access memory in a manner that violates the protection, then the kernel generates a SIGSEGV signal for the process. prot is either PROT_NONE or a bitwise-or of the ...

Linked on 2016-12-06 00:54:37 | Similar Links