From e2e0f21d932224434cb6121165dc00f0c1bb3bdd Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 15 Sep 2009 18:59:24 +0200 Subject: cat command now uses the File class. --- Source/Kernel/VFS/File.class.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Kernel/VFS') 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; } -- cgit v1.2.3