mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Kernel: Allow File::close() to fail
And pass the result through to sys$close() return value. Fixes https://github.com/SerenityOS/serenity/issues/427
This commit is contained in:
parent
d4ddb0013c
commit
1b4e88fb59
12 changed files with 23 additions and 15 deletions
|
@ -65,7 +65,7 @@ public:
|
|||
set_writable(options & O_WRONLY);
|
||||
}
|
||||
|
||||
int close();
|
||||
KResult close();
|
||||
|
||||
off_t seek(off_t, int whence);
|
||||
ssize_t read(u8*, ssize_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue