mlock.2: Clarify EINVAL error

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>
This commit is contained in:
Michael Kerrisk 2011-09-14 08:41:56 +02:00
parent 3cbd3fee32
commit 963da6c54d
1 changed files with 6 additions and 3 deletions

View 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)