]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
mlock.2: Clarify EINVAL error
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 14 Sep 2011 06:41:56 +0000 (08:41 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 16 Sep 2011 05:00:48 +0000 (07:00 +0200)
See http://bugs.debian.org/cgi-bin/bugreport.cgi?625747

Reported-by: Brian M. Carlson <sandals@crustytoothpaste.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/mlock.2

index 535a7db1bc01f4179291219d28986056ded6396d..8afef4b3c0d4bf77a97e19fb069b4880828736ff 100644 (file)
@@ -24,7 +24,7 @@
 .\" Software Foundation, Inc., 59 Temple Place, Suite 330,
 .\" Boston, MA 02111, USA.
 .\"
-.TH MLOCK 2 2011-09-10 "Linux" "Linux Programmer's Manual"
+.TH MLOCK 2 2011-09-14 "Linux" "Linux Programmer's Manual"
 .SH NAME
 mlock, munlock, mlockall, munlockall \- lock and unlock memory
 .SH SYNOPSIS
@@ -157,8 +157,11 @@ and
 Some or all of the specified address range could not be locked.
 .TP
 .B EINVAL
-.I len
-was negative.
+The result of the addition
+.IR start + len
+was less than
+.IR start 
+(e.g., the addition may have resuled in an overflow).
 .TP
 .B EINVAL
 (Not on Linux)