mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
Kernel: Modify the IOCTL API to return KResult
The kernel has been gradually moving towards KResult from just bare int's, this change migrates the IOCTL paths.
This commit is contained in:
parent
46c9b1d81c
commit
de9ff0af50
16 changed files with 151 additions and 151 deletions
|
@ -35,9 +35,9 @@ KResult File::close()
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
int File::ioctl(FileDescription&, unsigned, Userspace<void*>)
|
||||
KResult File::ioctl(FileDescription&, unsigned, Userspace<void*>)
|
||||
{
|
||||
return -ENOTTY;
|
||||
return ENOTTY;
|
||||
}
|
||||
|
||||
KResultOr<Region*> File::mmap(Process&, FileDescription&, const Range&, u64, int, bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue