diff options
author | glebius <glebius@FreeBSD.org> | 2013-03-19 05:44:25 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-03-19 05:44:25 +0000 |
commit | 03b86a1452842fa3dbba615e64465e738982743f (patch) | |
tree | b3fa4e17acffa8ef1fcb8e155fc30249cd29000e /lib/libc/sys | |
parent | f07d0be8f8bed05cbfb5581a0bf1c000815da444 (diff) | |
download | FreeBSD-src-03b86a1452842fa3dbba615e64465e738982743f.zip FreeBSD-src-03b86a1452842fa3dbba615e64465e738982743f.tar.gz |
There are actually two different cases when mlock(2) returns
ENOMEM. Clarify this, taking text from SUS.
Reviewed by: kib
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/mlock.2 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2 index 0e5fef8..42acc97 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 , |