diff options
Diffstat (limited to 'src/system/FileDescriptor.hxx')
-rw-r--r-- | src/system/FileDescriptor.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index c366f3cc0..75a76844c 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -146,6 +146,11 @@ public: return lseek(Get(), offset, SEEK_SET); } + gcc_pure + off_t Tell() const { + return lseek(Get(), 0, SEEK_CUR); + } + /** * Returns the size of the file in bytes, or -1 on error. */ |