Merge pull request #2229 from sipa/prealloc

Native versions for AllocateFileRange()
This commit is contained in:
Gavin Andresen
2013-02-22 09:00:13 -08:00
3 changed files with 54 additions and 2 deletions

View File

@@ -193,6 +193,7 @@ bool WildcardMatch(const char* psz, const char* mask);
bool WildcardMatch(const std::string& str, const std::string& mask);
void FileCommit(FILE *fileout);
int GetFilesize(FILE* file);
bool TruncateFile(FILE *file, unsigned int length);
void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length);
bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest);
boost::filesystem::path GetDefaultDataDir();