Fail with ENOSYS on bad system calls.
This commit is contained in:
parent
c0a44e72a6
commit
087e3b3fda
|
@ -206,9 +206,7 @@ void* syscall_list[SYSCALL_MAX_NUM + 1] =
|
||||||
|
|
||||||
int sys_bad_syscall(void)
|
int sys_bad_syscall(void)
|
||||||
{
|
{
|
||||||
// TODO: Send signal, set errno, or crash/abort process?
|
return errno = ENOSYS, -1;
|
||||||
Log::PrintF("I am the bad system call!\n");
|
|
||||||
return errno = EINVAL, -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Sortix
|
} // namespace Sortix
|
||||||
|
|
Loading…
Reference in New Issue