aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/mprotect.27
1 files changed, 6 insertions, 1 deletions
diff --git a/man2/mprotect.2 b/man2/mprotect.2
index 604682203d..fbf6d22449 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 <stdio.h>