Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2013 05:44:25 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248489 - head/lib/libc/sys
Message-ID:  <201303190544.r2J5iP6G054071@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Mar 19 05:44:25 2013
New Revision: 248489
URL: http://svnweb.freebsd.org/changeset/base/248489

Log:
  There are actually two different cases when mlock(2) returns
  ENOMEM. Clarify this, taking text from SUS.
  
  Reviewed by:	kib

Modified:
  head/lib/libc/sys/mlock.2

Modified: head/lib/libc/sys/mlock.2
==============================================================================
--- head/lib/libc/sys/mlock.2	Tue Mar 19 05:08:25 2013	(r248488)
+++ head/lib/libc/sys/mlock.2	Tue Mar 19 05:44:25 2013	(r248489)
@@ -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 su
 .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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303190544.r2J5iP6G054071>