diff --git a/man2/mincore.2 b/man2/mincore.2 index ebc9c0b87..7c2e210e1 100644 --- a/man2/mincore.2 +++ b/man2/mincore.2 @@ -26,6 +26,8 @@ .\" Slightly adapted, following comments by Hugh Dickins, aeb, 2001-06-04. .\" Modified, 20 May 2003, Michael Kerrisk .\" Modified, 30 Apr 2004, Michael Kerrisk +.\" 2005-04-05 mtk, Cleaned up description of EINVAL error, +.\" after message from .\" .TH MINCORE 2 2004-04-30 "Linux 2.6.5" "Linux Programmer's Manual" .SH NAME @@ -86,7 +88,11 @@ points to an invalid address .I start is not a multiple of the page size, or .I len -has a non-positive value +is greater than +.RI ( TASK_SIZE " - " start ). +(The latter could occur if a negative value is specified for +.IR len , +since that value will be interpreted as a large unsigned integer.) .TP .B ENOMEM .I address @@ -95,7 +101,6 @@ to + .I length contained unmapped memory, or memory not part of a file. - .SH BUGS Up to now (Linux 2.6.5), .B mincore @@ -118,7 +123,8 @@ does not return correct information for MAP_PRIVATE mappings. .\" .BR ENOMEM . .SH "CONFORMING TO" .B mincore -does not appear to be part of POSIX or the Single Unix Specification. +is not specified in POSIX.1-2001, +and it is not available on all Unix implementations. .SH HISTORY The mincore() function first appeared in 4.4BSD. .SH AVAILABILITY