xref: /csrg-svn/lib/libc/sys/mprotect.2 (revision 62911)
1*62911Sbostic.\" Copyright (c) 1991, 1993
2*62911Sbostic.\"	The Regents of the University of California.  All rights reserved.
349900Smckusick.\"
450801Scael.\" %sccs.include.redist.roff%
549900Smckusick.\"
6*62911Sbostic.\"	@(#)mprotect.2	8.1 (Berkeley) 06/09/93
749900Smckusick.\"
850801Scael.Dd
950801Scael.Dt MPROTECT 2
1050801Scael.Os
1150801Scael.Sh NAME
1250801Scael.Nm mprotect
1350801Scael.Nd control the protection of pages
1450801Scael.Sh SYNOPSIS
1550801Scael.Fn mprotect "caddr_t addr" "int len" "int prot"
1650801Scael.Sh DESCRIPTION
1750801ScaelThe
1850801Scael.Fn mprotect
1950801Scaelsystem call
2050801Scaelchanges the specified pages to have protection
2150801Scael.Fa prot .
2249900SmckusickNot all implementations will guarantee protection on a page basis;
2349900Smckusickthe granularity of protection changes may be as large as an entire region.
2450801Scael.Sh SEE ALSO
2550801Scael.Xr msync 2 ,
2650801Scael.Xr munmap 2 ,
2750801Scael.Xr madvise 2 ,
2850801Scael.Xr mincore 2
2950801Scael.Sh HISTORY
3050801ScaelThe
3150801Scael.Fn mprotect
3262910Sbosticfunction first appeared in 4.4BSD.
33