summaryrefslogtreecommitdiff
path: root/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'vfs.c')
-rw-r--r--vfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vfs.c b/vfs.c
index 7f4e8458..53266b5c 100644
--- a/vfs.c
+++ b/vfs.c
@@ -61,11 +61,11 @@ vfs_fread (void *ptr, size_t size, size_t nmemb, DB_FILE *stream) {
}
int
-vfs_fseek (DB_FILE *stream, long offset, int whence) {
+vfs_fseek (DB_FILE *stream, int64_t offset, int whence) {
return stream->vfs->seek (stream, offset, whence);
}
-long
+int64_t
vfs_ftell (DB_FILE *stream) {
return stream->vfs->tell (stream);
}
@@ -75,3 +75,7 @@ vfs_rewind (DB_FILE *stream) {
stream->vfs->rewind (stream);
}
+int64_t
+vfs_fgetlength (DB_FILE *stream) {
+ return stream->vfs->getlength (stream);
+}