xref: /original-bsd/lib/libc/sys/mprotect.2 (revision 3705696b)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)mprotect.2	8.1 (Berkeley) 06/09/93
7.\"
8.Dd
9.Dt MPROTECT 2
10.Os
11.Sh NAME
12.Nm mprotect
13.Nd control the protection of pages
14.Sh SYNOPSIS
15.Fn mprotect "caddr_t addr" "int len" "int prot"
16.Sh DESCRIPTION
17The
18.Fn mprotect
19system call
20changes the specified pages to have protection
21.Fa prot .
22Not all implementations will guarantee protection on a page basis;
23the granularity of protection changes may be as large as an entire region.
24.Sh SEE ALSO
25.Xr msync 2 ,
26.Xr munmap 2 ,
27.Xr madvise 2 ,
28.Xr mincore 2
29.Sh HISTORY
30The
31.Fn mprotect
32function first appeared in 4.4BSD.
33