mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
Kernel: Make all syscall functions return KResultOr<T>
This makes it a lot easier to return errors since we no longer have to worry about negating EFOO errors and can just return them flat.
This commit is contained in:
parent
9af1e1a3bf
commit
ac71775de5
70 changed files with 747 additions and 742 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
long Process::sys$sysconf(int name)
|
||||
KResultOr<long> Process::sys$sysconf(int name)
|
||||
{
|
||||
switch (name) {
|
||||
case _SC_NPROCESSORS_CONF:
|
||||
|
@ -45,7 +45,7 @@ long Process::sys$sysconf(int name)
|
|||
case _SC_GETPW_R_SIZE_MAX:
|
||||
return 4096; // idk
|
||||
default:
|
||||
return -EINVAL;
|
||||
return EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue