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/Net | |
parent | 999c57ef2dffb36e15c51aa99d4921122caad6ee (diff) | |
download | serenity-b05b4d4b249e7f0025ddf27544c1972e32af80c8.zip |
Kernel: Refactor storage stack with u64 as file operations offset
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/Socket.cpp | 4 | ||||
-rw-r--r-- | Kernel/Net/Socket.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 24be032119..ee0d145929 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -243,7 +243,7 @@ KResult Socket::getsockopt(FileDescription&, int level, int option, Userspace<vo } } -KResultOr<size_t> Socket::read(FileDescription& description, size_t, UserOrKernelBuffer& buffer, size_t size) +KResultOr<size_t> Socket::read(FileDescription& description, u64, UserOrKernelBuffer& buffer, size_t size) { if (is_shut_down_for_reading()) return 0; @@ -251,7 +251,7 @@ KResultOr<size_t> Socket::read(FileDescription& description, size_t, UserOrKerne return recvfrom(description, buffer, size, 0, {}, 0, t); } -KResultOr<size_t> Socket::write(FileDescription& description, size_t, const UserOrKernelBuffer& data, size_t size) +KResultOr<size_t> Socket::write(FileDescription& description, u64, const UserOrKernelBuffer& data, size_t size) { if (is_shut_down_for_writing()) return EPIPE; diff --git a/Kernel/Net/Socket.h b/Kernel/Net/Socket.h index c45f1a2865..ce0938c9f8 100644 --- a/Kernel/Net/Socket.h +++ b/Kernel/Net/Socket.h @@ -123,8 +123,8 @@ public: Lock& lock() { return m_lock; } // ^File - virtual KResultOr<size_t> read(FileDescription&, size_t, UserOrKernelBuffer&, size_t) override final; - virtual KResultOr<size_t> write(FileDescription&, size_t, const UserOrKernelBuffer&, size_t) override final; + virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override final; + virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override final; virtual KResult stat(::stat&) const override; virtual String absolute_path(const FileDescription&) const override = 0; |