diff options
author | Evan Klitzke <evan@eklitzke.org> | 2018-03-15 06:54:11 -0700 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-08-25 16:46:46 +0000 |
commit | ce5cbaea63ad4ea78e533bdb14f47f414061ae7f (patch) | |
tree | 4896a139a49842ea7cd7f10c40e5b9ca0d5a01f0 /src/util | |
parent | 844d650eea3bd809884cc5dd996a388bdc58314e (diff) | |
download | bitcoin-ce5cbaea63ad4ea78e533bdb14f47f414061ae7f.tar.xz |
util.h: Document FileCommit function
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/system.h | 5 |
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); |