Added note that glibc mmap() wrapper nowadays invokes mmap2().

This commit is contained in:
Michael Kerrisk 2007-06-29 06:40:29 +00:00
parent 1df962c865
commit 5636a29a5e
1 changed files with 11 additions and 0 deletions

View File

@ -443,6 +443,17 @@ is defined in \fI<unistd.h>\fP to a value greater than 0. (See also
.\" -1: unavailable, 0: ask using sysconf().
.\" glibc defines it to 1.
.SH NOTES
Since kernel 2.4, this system call has been superseded by
.BR mmap2 (2).
Nowadays,
.\" Since around glibc 2.1/2.2, depending on the platform.
the glibc
.BR mmap ()
wrapper function invokes
.BR mmap2 (2)
with a suitably adjusted value for
.IR offset .
It is architecture dependent whether
.B PROT_READ
implies