summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mlock.2
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-06-24 09:35:14 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-06-24 09:35:14 +0000
commitbfc69b9b164418e405a2d35785dfd65a613e2785 (patch)
treea6ff53679a6b4ad31473592c6ecf04a9c8a63e88 /lib/libc/sys/mlock.2
parentbdcc7c9eb60398ace97e6c2138381de62b86523f (diff)
Notes
Diffstat (limited to 'lib/libc/sys/mlock.2')
-rw-r--r--lib/libc/sys/mlock.29
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index 0e5fef85314c..42acc971661f 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -28,7 +28,7 @@
.\" @(#)mlock.2 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd December 25, 2012
+.Dd March 18, 2013
.Dt MLOCK 2
.Os
.Sh NAME
@@ -138,7 +138,12 @@ is set to 0 and the caller is not the super-user.
.It Bq Er EINVAL
The address given is not page aligned or the length is negative.
.It Bq Er ENOMEM
-Some portion of the indicated address range is not allocated.
+Some or all of the address range specified by the addr and len
+arguments does not correspond to valid mapped pages in the address space
+of the process.
+.It Bq Er ENOMEM
+Locking the pages mapped by the specified range would exceed a limit on
+the amount of memory that the process may lock.
.El
.Sh "SEE ALSO"
.Xr fork 2 ,