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:
Michael Kerrisk 2012-08-13 14:00:29 +02:00
parent 608bf95023
commit a2f11be3c1
1 changed files with 1 additions and 1 deletions

View File

@ -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 ()