Noted bug in MAP_POPULATE for kernels before 2.6.7.

This commit is contained in:
Michael Kerrisk 2005-09-14 08:15:27 +00:00
parent ceb6743d1f
commit dbc53ca8b2
1 changed files with 10 additions and 2 deletions

View File

@ -342,9 +342,17 @@ SVr4, POSIX.1b (formerly POSIX.4), 4.4BSD, SUSv2.
SVr4 documents additional error codes ENXIO and ENODEV.
SUSv2 documents additional error codes EMFILE and EOVERFLOW.
.SH BUGS
On Linux there are no guarantees like those suggested above
under MAP_NORESERVE. By default, any process can be killed
On Linux there are no guarantees like those suggested above under
.BR MAP_NORESERVE .
By default, any process can be killed
at any moment when the system runs out of memory.
In kernels before 2.6.7, the
.B MAP_POPULATE
flag only has effect if
.I prot
is specified as
.BR PROT_NONE .
.SH "SEE ALSO"
.BR getpagesize (2),
.BR mlock (2),