diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-03-17 13:18:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-17 23:22:42 +0100 |
commit | b05b4d4b249e7f0025ddf27544c1972e32af80c8 (patch) | |
tree | a4437fdb7b200fa19b6f5368f0b894761fd2ab09 /Kernel/FileSystem/File.h | |
parent | 999c57ef2dffb36e15c51aa99d4921122caad6ee (diff) | |
download | serenity-b05b4d4b249e7f0025ddf27544c1972e32af80c8.zip |
Kernel: Refactor storage stack with u64 as file operations offset
Diffstat (limited to 'Kernel/FileSystem/File.h')
-rw-r--r-- | Kernel/FileSystem/File.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h index a43964f191..38aac0a62c 100644 --- a/Kernel/FileSystem/File.h +++ b/Kernel/FileSystem/File.h @@ -111,8 +111,8 @@ public: virtual KResult attach(FileDescription&) { return KSuccess; } virtual void detach(FileDescription&) { } virtual void did_seek(FileDescription&, off_t) { } - virtual KResultOr<size_t> read(FileDescription&, size_t, UserOrKernelBuffer&, size_t) = 0; - virtual KResultOr<size_t> write(FileDescription&, size_t, const UserOrKernelBuffer&, size_t) = 0; + virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) = 0; + virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) = 0; virtual int ioctl(FileDescription&, unsigned request, FlatPtr arg); virtual KResultOr<Region*> mmap(Process&, FileDescription&, const Range&, size_t offset, int prot, bool shared); virtual KResult stat(::stat&) const { return EBADF; } |