diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-02-26 07:44:07 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-02-26 07:44:07 +0000 |
commit | cfea05407a3eb3ddd870f048128d1e48a7a55ceb (patch) | |
tree | 3be1ba6cf44bc11d664bae55be8e586f29579951 /lib | |
parent | 6df7e20fe04243840b5e6a19b5b7958b996176ac (diff) |
Now that the code is consistent, make the descriptions of EINVAL
consisten also. ok millert@ jmc@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/mlock.2 | 8 | ||||
-rw-r--r-- | lib/libc/sys/mlockall.2 | 8 | ||||
-rw-r--r-- | lib/libc/sys/msync.2 | 8 | ||||
-rw-r--r-- | lib/libc/sys/munmap.2 | 12 |
4 files changed, 25 insertions, 11 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. diff --git a/lib/libc/sys/mlockall.2 b/lib/libc/sys/mlockall.2 index 9f3ccb8dfa2..2c0f3fdb782 100644 --- a/lib/libc/sys/mlockall.2 +++ b/lib/libc/sys/mlockall.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mlockall.2,v 1.2 2001/03/11 05:23:18 aaron Exp $ +.\" $OpenBSD: mlockall.2,v 1.3 2007/02/26 07:44:06 otto Exp $ .\" $NetBSD: mlockall.2,v 1.6 2000/06/26 17:00:02 kleink Exp $ .\" .\" Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -98,7 +98,11 @@ will fail if: .It Bq Er EINVAL The .Ar flags -argument is zero or includes unimplemented flags. +argument is zero or includes unimplemented flags or +.Fa addr +and +.Fa size +specify a region that would extend beyond the end of the address space. .It Bq Er ENOMEM Locking the indicated range would exceed either the system or per-process limit for locked memory. diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2 index 0cd6c44331c..00ea3f3329a 100644 --- a/lib/libc/sys/msync.2 +++ b/lib/libc/sys/msync.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: msync.2,v 1.19 2005/09/12 20:06:26 miod Exp $ +.\" $OpenBSD: msync.2,v 1.20 2007/02/26 07:44:06 otto Exp $ .\" $NetBSD: msync.2,v 1.8 1995/10/12 15:41:09 jtc Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -99,7 +99,11 @@ argument was invalid. .It Bq Er EINVAL The .Fa addr -parameter was not page aligned. +parameter was 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 Addresses in the specified region are outside the range allowed for the address space of the process, or specify one or more pages diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index f94445ce2f0..db12e682371 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: munmap.2,v 1.11 2003/11/11 20:58:34 jmc Exp $ +.\" $OpenBSD: munmap.2,v 1.12 2007/02/26 07:44:06 otto Exp $ .\" $NetBSD: munmap.2,v 1.5 1995/02/27 12:35:03 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -62,10 +62,12 @@ will fail if: .It Bq Er EINVAL The .Fa addr -parameter was not page aligned, the -.Fa len -parameter was negative, or -some part of the region being unmapped is not part of the currently +parameter was not page aligned, +.Fa addr +and +.Fa size +specify a region that would extend beyond the end of the address space, +or some part of the region being unmapped is not part of the currently valid address space. .El .Sh SEE ALSO |