diff options
Diffstat (limited to 'Source/Kernel/VFS')
-rw-r--r-- | Source/Kernel/VFS/File.class.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Kernel/VFS/File.class.h b/Source/Kernel/VFS/File.class.h index dace2cf..955db85 100644 --- a/Source/Kernel/VFS/File.class.h +++ b/Source/Kernel/VFS/File.class.h @@ -33,7 +33,8 @@ class File { u32int read(u32int max_length, u8int *data); bool write(u32int length, u8int *data); bool seek(u64int count, u8int mode); - u64int getPosition() { return m_position; } + u64int position() { return m_position; } + u64int length() { return m_file->getLength(); } void close(bool unregisterFD = true); //unregisterFD = whether or not we must unregister the file descriptor from process bool valid() { return m_valid; } |