]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/fsync.2
locale.1, localedef.1, _exit.2, accept.2, access.2, acct.2, adjtimex.2, bdflush.2...
[thirdparty/man-pages.git] / man2 / fsync.2
index 66278fa4f58293b2ccb5be55968445241a538478..76dcf96b1a18e3f50dee058c3fce055f7c81a69c 100644 (file)
@@ -35,7 +35,7 @@
 .\" 2006-04-28, mtk, substantial rewrite of various parts.
 .\" 2012-02-27 Various changes by Christoph Hellwig <hch@lst.de>
 .\"
-.TH FSYNC 2 2012-02-27 "Linux" "Linux Programmer's Manual"
+.TH FSYNC 2 2016-03-15 "Linux" "Linux Programmer's Manual"
 .SH NAME
 fsync, fdatasync \- synchronize a file's in-core state with storage device
 .SH SYNOPSIS
@@ -51,13 +51,14 @@ Feature Test Macro Requirements for glibc (see
 .in
 .sp
 .BR fsync ():
-_BSD_SOURCE || _XOPEN_SOURCE
-.br
-         || /* since glibc 2.8: */ _POSIX_C_SOURCE\ >=\ 200112L
-.\" _POSIX_C_SOURCE\ >=\ 200112L only since glibc 2.8
+    Glibc 2.16 and later:
+        No feature test macros need be defined
+    Glibc up to and including 2.15:
+        _BSD_SOURCE || _XOPEN_SOURCE
+            || /* since glibc 2.8: */ _POSIX_C_SOURCE\ >=\ 200112L
 .br
 .BR fdatasync ():
-_POSIX_C_SOURCE\ >=\ 199309L || _XOPEN_SOURCE\ >=\ 500
+    _POSIX_C_SOURCE\ >=\ 199309L || _XOPEN_SOURCE\ >=\ 500
 .SH DESCRIPTION
 .BR fsync ()
 transfers ("flushes") all modified in-core data of
@@ -123,7 +124,7 @@ An error occurred during synchronization.
 .I fd
 is bound to a special file which does not support synchronization.
 .SH CONFORMING TO
-4.3BSD, POSIX.1-2001.
+POSIX.1-2001, POSIX.1-2008, 4.3BSD.
 .SH AVAILABILITY
 On POSIX systems on which
 .BR fdatasync ()
@@ -166,5 +167,4 @@ to guarantee safe operation.
 .BR sync_file_range (2),
 .BR hdparm (8),
 .BR mount (8),
-.BR sync (8),
-.BR update (8)
+.BR sync (1)