mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Kernel: Make FileDescription::seek() return KResultOr<off_t>
This exposed a bunch of places where errors were not propagated, so this patch is forced to deal with them as well.
This commit is contained in:
parent
ed1789cc04
commit
d48666489c
6 changed files with 37 additions and 24 deletions
|
@ -66,7 +66,7 @@ public:
|
|||
|
||||
KResult close();
|
||||
|
||||
off_t seek(off_t, int whence);
|
||||
KResultOr<off_t> seek(off_t, int whence);
|
||||
KResultOr<size_t> read(UserOrKernelBuffer&, size_t);
|
||||
KResultOr<size_t> write(const UserOrKernelBuffer& data, size_t);
|
||||
KResult stat(::stat&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue