aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r--src/posix_extras.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h
index 889175e..b67e2b4 100644
--- a/src/posix_extras.h
+++ b/src/posix_extras.h
@@ -112,6 +112,9 @@ class File {
// indeed be relative (i.e., it must not start with '/').
void SymLinkAt(const char* target, const char* source) const;
+ // Truncates the file to the specified size.
+ void Truncate(off_t);
+
// Removes the file at the path relative to the file descriptor. The path
// must indeed be relative (i.e., it must not start with '/').
void UnlinkAt(const char* path) const;