aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.h
diff options
context:
space:
mode:
authorEvan Klitzke <evan@eklitzke.org>2018-03-15 06:54:11 -0700
committerLuke Dashjr <luke-jr+git@utopios.org>2020-08-25 16:46:46 +0000
commitce5cbaea63ad4ea78e533bdb14f47f414061ae7f (patch)
tree4896a139a49842ea7cd7f10c40e5b9ca0d5a01f0 /src/util/system.h
parent844d650eea3bd809884cc5dd996a388bdc58314e (diff)
util.h: Document FileCommit function
Diffstat (limited to 'src/util/system.h')
-rw-r--r--src/util/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/system.h b/src/util/system.h
index 1df194ca84..d2373998df 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);