diff options
| author | Gavin Andresen <[email protected]> | 2013-02-22 09:00:13 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-02-22 09:00:13 -0800 |
| commit | b8f4e42e1bd9f80690d61dc2ab86edb14b2ecb40 (patch) | |
| tree | 23f8ccc7000a4fe55a4d3eaed644705fe2a34a01 /src/util.h | |
| parent | Merge pull request #2310 from sipa/progressbar (diff) | |
| parent | Drop padding in blk* when finalizing file (diff) | |
| download | discoin-b8f4e42e1bd9f80690d61dc2ab86edb14b2ecb40.tar.xz discoin-b8f4e42e1bd9f80690d61dc2ab86edb14b2ecb40.zip | |
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 a6b88206e..d129d1369 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(); |