mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +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
10 changed files with 19 additions and 20 deletions
|
@ -49,7 +49,7 @@ public:
|
|||
ErrorOr<off_t> seek(off_t, int whence);
|
||||
ErrorOr<size_t> read(UserOrKernelBuffer&, size_t);
|
||||
ErrorOr<size_t> write(const UserOrKernelBuffer& data, size_t);
|
||||
ErrorOr<void> stat(::stat&);
|
||||
ErrorOr<struct stat> stat();
|
||||
|
||||
// NOTE: These ignore the current offset of this file description.
|
||||
ErrorOr<size_t> read(UserOrKernelBuffer&, u64 offset, size_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue