aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-02-22 09:00:13 -0800
committerGavin Andresen <[email protected]>2013-02-22 09:00:13 -0800
commitb8f4e42e1bd9f80690d61dc2ab86edb14b2ecb40 (patch)
tree23f8ccc7000a4fe55a4d3eaed644705fe2a34a01 /src/util.h
parentMerge pull request #2310 from sipa/progressbar (diff)
parentDrop padding in blk* when finalizing file (diff)
downloaddiscoin-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.h1
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();