diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-02-22 09:00:13 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-02-22 09:00:13 -0800 |
commit | b8f4e42e1bd9f80690d61dc2ab86edb14b2ecb40 (patch) | |
tree | 23f8ccc7000a4fe55a4d3eaed644705fe2a34a01 /src/util.h | |
parent | 9dca7190f91189f5c0b8a7974fcc522e47d60e50 (diff) | |
parent | 1eb578796c98f457546059b66eb98fd0efc8e690 (diff) |
Merge pull request #2229 from sipa/prealloc
Native versions for AllocateFileRange()
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index a6b88206e9..d129d13692 100644 --- a/src/util.h +++ b/src/util.h @@ -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(); |