summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-03-17 23:55:18 +0000
committerkib <kib@FreeBSD.org>2012-03-17 23:55:18 +0000
commit16846fb575f3587f475039b902dd766dbd540f2a (patch)
treef2d142d4c58b7896be2d87a4809763c739fcecb3 /lib
parent22e84b35272d9d55276d09eccdcdcfaf190b2167 (diff)
downloadFreeBSD-src-16846fb575f3587f475039b902dd766dbd540f2a.zip
FreeBSD-src-16846fb575f3587f475039b902dd766dbd540f2a.tar.gz
Do not claim that msync(2) is obsoleted [1].
Document EIO from msync(2). Inspired by PR: docs/165929 [1] Reviewed by: jilles MFC after: 2 weeks
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/mmap.24
-rw-r--r--lib/libc/sys/msync.27
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index e66f128..73ffb2e 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -28,7 +28,7 @@
.\" @(#)mmap.2 8.4 (Berkeley) 5/11/95
.\" $FreeBSD$
.\"
-.Dd August 28, 2010
+.Dd March 18, 2012
.Dt MMAP 2
.Os
.Sh NAME
@@ -205,7 +205,7 @@ command and
system call generally do not flush dirty NOSYNC VM data.
The
.Xr msync 2
-system call is obsolete since
+system call is usually not needed since
.Bx
implements a coherent file system buffer cache.
However, it may be
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index cb15925..42d8005 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -28,7 +28,7 @@
.\" @(#)msync.2 8.2 (Berkeley) 6/21/94
.\" $FreeBSD$
.\"
-.Dd June 21, 1994
+.Dd March 18, 2012
.Dt MSYNC 2
.Os
.Sh NAME
@@ -98,6 +98,9 @@ The
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
+the specified region.
.El
.Sh SEE ALSO
.Xr madvise 2 ,
@@ -113,7 +116,7 @@ system call first appeared in
.Sh BUGS
The
.Fn msync
-system call is obsolete since
+system call is usually not needed since
.Bx
implements a coherent file system buffer cache.
However, it may be used to associate dirty VM pages with file system
OpenPOWER on IntegriCloud