mirror of https://github.com/mkerrisk/man-pages
mmap.2: NOTES: add "C library/kernel ABI differences" subheading
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
de76572d12
commit
35c189fbd6
31
man2/mmap.2
31
man2/mmap.2
|
@ -511,21 +511,6 @@ is defined in \fI<unistd.h>\fP to a value greater than 0.
|
|||
.\" -1: unavailable, 0: ask using sysconf().
|
||||
.\" glibc defines it to 1.
|
||||
.SH NOTES
|
||||
This page describes the interface provided by the glibc
|
||||
.BR mmap ()
|
||||
wrapper function.
|
||||
Originally, this function invoked a system call of the same name.
|
||||
Since kernel 2.4, that system call has been superseded by
|
||||
.BR mmap2 (2),
|
||||
and 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 .
|
||||
|
||||
On some hardware architectures (e.g., i386),
|
||||
.B PROT_WRITE
|
||||
implies
|
||||
|
@ -582,6 +567,22 @@ The relevant flags are:
|
|||
.BR MAP_POPULATE ,
|
||||
and
|
||||
.BR MAP_STACK .
|
||||
.\"
|
||||
.SS C library/kernel ABI differences
|
||||
This page describes the interface provided by the glibc
|
||||
.BR mmap ()
|
||||
wrapper function.
|
||||
Originally, this function invoked a system call of the same name.
|
||||
Since kernel 2.4, that system call has been superseded by
|
||||
.BR mmap2 (2),
|
||||
and 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 .
|
||||
.SH BUGS
|
||||
On Linux there are no guarantees like those suggested above under
|
||||
.BR MAP_NORESERVE .
|
||||
|
|
Loading…
Reference in New Issue