mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
Kernel: Make File::stat() & friends return Error<struct stat>
Instead of making the caller provide a stat buffer, let's just return one as a value.
This commit is contained in:
parent
1f2d0d0ad4
commit
0ae8702692
Notes:
sideshowbarker
2024-07-17 22:40:06 +09:00
Author: https://github.com/awesomekling
Commit: 0ae8702692
10 changed files with 19 additions and 20 deletions
|
@ -42,7 +42,7 @@ private:
|
|||
// ^File
|
||||
virtual ErrorOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override;
|
||||
virtual ErrorOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override;
|
||||
virtual ErrorOr<void> stat(::stat&) const override;
|
||||
virtual ErrorOr<struct stat> stat() const override;
|
||||
virtual bool can_read(const OpenFileDescription&, size_t) const override;
|
||||
virtual bool can_write(const OpenFileDescription&, size_t) const override;
|
||||
virtual ErrorOr<NonnullOwnPtr<KString>> pseudo_path(const OpenFileDescription&) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue