summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2014-05-21 09:19:05 +0000
committerpho <pho@FreeBSD.org>2014-05-21 09:19:05 +0000
commita3e5dd54218220800b740d399b6d5d4ca6b5ba9d (patch)
treec5913ad5a7cb10a82cc2005a0bdf9a1bb05214a0 /lib/libc/sys
parente7674196624a5c08234cab5ad5bee5b5ba9c1655 (diff)
downloadFreeBSD-src-a3e5dd54218220800b740d399b6d5d4ca6b5ba9d.zip
FreeBSD-src-a3e5dd54218220800b740d399b6d5d4ca6b5ba9d.tar.gz
MFC r265534:
msync(2) must return ENOMEM and not EINVAL when the address is outside the allowed range or when one or more pages are not mapped. This according to The Open Group Base Specifications Issue 7. Sponsored by: EMC / Isilon storage division
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/msync.212
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index 42d8005..a91faf2 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -87,11 +87,13 @@ The
.Fa addr
argument
is not a multiple of the hardware page size.
-.It Bq Er EINVAL
-The
+.It Bq Er ENOMEM
+The addresses in the range starting at
+.Fa addr
+and continuing for
.Fa len
-argument
-is too large or negative.
+bytes are outside the range allowed for the address space of a
+process or specify one or more pages that are not mapped.
.It Bq Er EINVAL
The
.Fa flags
@@ -99,7 +101,7 @@ argument
was both MS_ASYNC and MS_INVALIDATE.
Only one of these flags is allowed.
.It Bq Er EIO
- An error occurred while writing at least one of the pages in
+An error occurred while writing at least one of the pages in
the specified region.
.El
.Sh SEE ALSO
OpenPOWER on IntegriCloud