summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/mlock.2
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-02-26 07:44:06 +0000
committerotto <otto@openbsd.org>2007-02-26 07:44:06 +0000
commit89a87f4b47dbe688ac9e5862ba35184e903844fc (patch)
tree8752210f2c4a3e36dad0c41d7555d7176eae4ced /lib/libc/sys/mlock.2
parentZero out struct before using, not after. (diff)
downloadwireguard-openbsd-89a87f4b47dbe688ac9e5862ba35184e903844fc.tar.xz
wireguard-openbsd-89a87f4b47dbe688ac9e5862ba35184e903844fc.zip
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.