summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mlock.2
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-02-26 07:44:07 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-02-26 07:44:07 +0000
commitcfea05407a3eb3ddd870f048128d1e48a7a55ceb (patch)
tree3be1ba6cf44bc11d664bae55be8e586f29579951 /lib/libc/sys/mlock.2
parent6df7e20fe04243840b5e6a19b5b7958b996176ac (diff)
Now that the code is consistent, make the descriptions of EINVAL
consisten also. ok millert@ jmc@
Diffstat (limited to 'lib/libc/sys/mlock.2')
-rw-r--r--lib/libc/sys/mlock.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index 0802852434f..67e279ead0c 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mlock.2,v 1.14 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: mlock.2,v 1.15 2007/02/26 07:44:06 otto Exp $
.\" $NetBSD: mlock.2,v 1.3 1995/06/24 10:42:03 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -125,7 +125,11 @@ There was an error faulting/mapping a page.
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL
-The address given is not page aligned or the length is negative.
+The address given is not page aligned or
+.Fa addr
+and
+.Fa size
+specify a region that would extend beyond the end of the address space.
.It Bq Er ENOMEM
Some portion of the indicated address range is not allocated.
Some portion of the indicated address range is not locked.