From 83cd3686ed97ab56a8e82fe27dacd05fd980effa Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 25 Nov 2004 13:36:04 +0000 Subject: [PATCH] Added cross-ref to setrlimit(2) concerning memory locking limits --- man2/mmap.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man2/mmap.2 b/man2/mmap.2 index 8cb79c556..af1aa8ae0 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@ -256,7 +256,8 @@ is not open in read/write (O_RDWR) mode. Or PROT_WRITE is set, but the file is append-only. .TP .B EAGAIN -The file has been locked, or too much memory has been locked. +The file has been locked, or too much memory has been locked (see +.BR setrlimit (2)). .TP .B EBADF .I fd @@ -338,6 +339,7 @@ at any moment when the system runs out of memory. .BR mmap2 (2), .BR mremap (2), .BR msync (2), +.BR setrlimit (2), .BR shm_open (2) .br B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128-129 and 389-391.