mirror of https://github.com/mkerrisk/man-pages
Added note that glibc mmap() wrapper nowadays invokes mmap2().
This commit is contained in:
parent
1df962c865
commit
5636a29a5e
11
man2/mmap.2
11
man2/mmap.2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue