.\" 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
.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
.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 ()
.BR sync_file_range (2),
.BR hdparm (8),
.BR mount (8),
-.BR sync (8)
+.BR sync (1)