From f8ad0aeb4b67f22d8e71270de241f09e6dba421e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 21 Sep 2005 15:47:18 +0000 Subject: [PATCH] Added new text for ENOMEM --- man2/mprotect.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man2/mprotect.2 b/man2/mprotect.2 index 604682203..fbf6d2244 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -87,7 +87,12 @@ The memory cannot be accessed. \fIaddr\fR is not a valid pointer, or not a multiple of PAGESIZE. .TP .B ENOMEM -Internal kernel structures could not be allocated. +Internal kernel structures could not be allocated. +Or: addreses in the range +.RI [ addr , +.IR addr + len ] +are invalid for the address space of the process, +or specify one or more pages that are not mapped. .SH EXAMPLE .nf #include