summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2004-09-03 06:24:25 +0000
committerroam <roam@FreeBSD.org>2004-09-03 06:24:25 +0000
commit14bb07bf2a92d64c0355aa09591d08cc8dc568c6 (patch)
tree4939df5989062278bec8361e69edd53dde7ee637 /lib
parent083ce78d8537074534e5116377d2c2ab166d85c5 (diff)
downloadFreeBSD-src-14bb07bf2a92d64c0355aa09591d08cc8dc568c6.zip
FreeBSD-src-14bb07bf2a92d64c0355aa09591d08cc8dc568c6.tar.gz
Add a BUGS section and copy the wording from mmap(2)'s MAP_NOSYNC,
documenting the obsoleteness of the msync(2) syscall and its single remaining purpose. PR: 70916 Submitted by: Radim Kolar <hsn@netmag.cz> MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/msync.29
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index 28aa1a7..e7d50c3 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -114,3 +114,12 @@ The
.Fn msync
system call first appeared in
.Bx 4.4 .
+.Sh BUGS
+The
+.Fn msync
+system call is obsolete since
+.Bx
+implements a coherent file system buffer cache.
+However, it may be used to associate dirty VM pages with file system
+buffers and thus cause them to be flushed to physical media sooner
+rather than later.
OpenPOWER on IntegriCloud