Does doing an fflush() also do an fsync()?
kevin.miller <kevin.miller@transcore.com> wrote:
Does doing an fflush() also do an fsync()?
No. (Unless, of course, the file was opened with the
O_SYNC flag set, in which case any write() to the fd would
cause synchronisation, and fflush() may cause a write() to
the fd.)
-David