util.h: Document FileCommit function

This commit is contained in:
Evan Klitzke 2018-03-15 06:54:11 -07:00 committed by Luke Dashjr
parent 844d650eea
commit ce5cbaea63

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);