util.h: Document FileCommit function

This commit is contained in:
Evan Klitzke authored and Luke Dashjr committed 2020-08-25 16:46:46 +00:00
1 parent 844d650eea
commit ce5cbaea63
1 file changed
+5
+5
View File
@@ -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);