Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mprotect(2) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpagesize(2)

madvise(2)

mmap(2)

munmap(2)

MPROTECT(2)  —  System Interface Manual — System Calls

NAME

mprotect − change memory protection

SYNOPSIS

#include <mman.h>
#include <sys/types.h>

mprotect(addr, len, prot)
caddr_t addr; int len, prot;

DESCRIPTION

This 4.3 call is not implemented in 4.2.

Mprotect causes the pages starting at addr and continuing for len bytes to be protected with protection prot, which specifies some (inclusive-or) combination of PROT_READ, PROT_WRITE and PROT_EXEC.  Addr and len parameters must be multiples of the software page size (obtained with the getpagesize(2) call).

RETURN VALUE

??? 

ERRORS

??? 

SEE ALSO

getpagesize(2), madvise(2), mmap(2), munmap(2)

Sun System Release 0.3  —  25 APril 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026