summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DevPtsFS.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-05-26 00:36:11 -0700
committerAndreas Kling <kling@serenityos.org>2020-05-26 10:15:40 +0200
commit6a74af80638d183a9eafc57203c577230f60ce0e (patch)
tree346d397545c699959e66c048cf771fc1f2f0ac13 /Kernel/FileSystem/DevPtsFS.h
parentc459e4ecb2ca6057deddb64e3cae7cc8061516bb (diff)
downloadserenity-6a74af80638d183a9eafc57203c577230f60ce0e.zip
Kernel: Plumb KResult through FileDescription::read_entire_file() implementation.
Allow file system implementation to return meaningful error codes to callers of the FileDescription::read_entire_file(). This allows both Process::sys$readlink() and Process::sys$module_load() to return more detailed errors to the user.
Diffstat (limited to 'Kernel/FileSystem/DevPtsFS.h')
-rw-r--r--Kernel/FileSystem/DevPtsFS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/DevPtsFS.h b/Kernel/FileSystem/DevPtsFS.h
index 7424d40156..2b97f105d7 100644
--- a/Kernel/FileSystem/DevPtsFS.h
+++ b/Kernel/FileSystem/DevPtsFS.h
@@ -69,7 +69,7 @@ private:
// ^Inode
virtual ssize_t read_bytes(off_t, ssize_t, u8* buffer, FileDescription*) const override;
virtual InodeMetadata metadata() const override;
- virtual bool traverse_as_directory(Function<bool(const FS::DirectoryEntry&)>) const override;
+ virtual KResult traverse_as_directory(Function<bool(const FS::DirectoryEntry&)>) const override;
virtual RefPtr<Inode> lookup(StringView name) override;
virtual void flush_metadata() override;
virtual ssize_t write_bytes(off_t, ssize_t, const u8* buffer, FileDescription*) override;