1.\" Copyright (c) 1991, 1991 Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.roff% 5.\" 6.\" @(#)mprotect.2 6.2 (Berkeley) 08/07/91 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 call is 33.Ud . 34