summaryrefslogtreecommitdiff
path: root/Kernel/VirtualFileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-02 00:11:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-02 00:11:27 +0100
commit37f6844c6c4702d3244ee4a26eb988fb8dd5a951 (patch)
tree3b55ba7b5eb3c79a6a6fd6cfb1bd9ea653a70164 /Kernel/VirtualFileSystem.h
parentf75eb9af16b7bb58fa2d862ab550e79a2849929c (diff)
downloadserenity-37f6844c6c4702d3244ee4a26eb988fb8dd5a951.zip
Kernel: Port stat() to KResult/KResultOr<T>.
Diffstat (limited to 'Kernel/VirtualFileSystem.h')
-rw-r--r--Kernel/VirtualFileSystem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VirtualFileSystem.h b/Kernel/VirtualFileSystem.h
index cd23244840..e054493679 100644
--- a/Kernel/VirtualFileSystem.h
+++ b/Kernel/VirtualFileSystem.h
@@ -73,7 +73,7 @@ public:
KResult chmod(Inode&, mode_t);
KResult chown(const String& path, uid_t, gid_t, Inode& base);
KResult access(const String& path, int mode, Inode& base);
- bool stat(const String& path, int& error, int options, Inode& base, struct stat&);
+ KResult stat(const String& path, int options, Inode& base, struct stat&);
KResult utime(const String& path, Inode& base, time_t atime, time_t mtime);
KResultOr<Retained<Inode>> open_directory(const String& path, Inode& base);
@@ -105,7 +105,7 @@ private:
InodeIdentifier old_resolve_path(const String& path, InodeIdentifier base, int& error, int options = 0, InodeIdentifier* parent_id = nullptr);
KResultOr<InodeIdentifier> resolve_path(const String& path, InodeIdentifier base, int options = 0, InodeIdentifier* parent_id = nullptr);
RetainPtr<Inode> resolve_path_to_inode(const String& path, Inode& base, int& error, RetainPtr<Inode>* parent_id = nullptr);
- KResultOr<RetainPtr<Inode>> resolve_path_to_inode(const String& path, Inode& base, RetainPtr<Inode>* parent_id = nullptr);
+ KResultOr<Retained<Inode>> resolve_path_to_inode(const String& path, Inode& base, RetainPtr<Inode>* parent_id = nullptr, int options = 0);
KResultOr<InodeIdentifier> resolve_symbolic_link(InodeIdentifier base, Inode& symlink_inode);
Mount* find_mount_for_host(InodeIdentifier);