From ce5cbaea63ad4ea78e533bdb14f47f414061ae7f Mon Sep 17 00:00:00 2001 From: Evan Klitzke Date: Thu, 15 Mar 2018 06:54:11 -0700 Subject: [PATCH] util.h: Document FileCommit function --- src/util/system.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/system.h b/src/util/system.h index 1df194ca84d..d2373998dfc 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -56,6 +56,11 @@ bool error(const char* fmt, const Args&... args) } void PrintExceptionContinue(const std::exception *pex, const char* pszThread); + +/** + * Ensure file contents are fully committed to disk, using a platform-specific + * feature analogous to fsync(). + */ bool FileCommit(FILE *file); bool TruncateFile(FILE *file, unsigned int length); int RaiseFileDescriptorLimit(int nMinFD);