mirror of https://github.com/mkerrisk/man-pages
mprotect.2: 'addr' argument is not const
As reported by Rasmus: Both my system's man-pages (3.22) and the latest online (3.41) show: int mprotect(const void *addr, size_t len, int prot); as the prototype for mprotect(2). However, POSIX [1] and the actual sys/mman.h (on all the systems I checked) do not have the const qualifier on the first argument. Reported-by: Rasmus Villemoes <Rasmus.Villemoes@decode.is> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
608bf95023
commit
a2f11be3c1
|
@ -36,7 +36,7 @@ mprotect \- set protection on a region of memory
|
|||
.nf
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.BI "int mprotect(const void *" addr ", size_t " len ", int " prot );
|
||||
.BI "int mprotect(void *" addr ", size_t " len ", int " prot );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.BR mprotect ()
|
||||
|
|
Loading…
Reference in New Issue