syscalls: rseq: return ENOSYS

Return ENOSYS for sys_rseq
This commit is contained in:
Matthew Leach
2025-11-28 20:04:22 +00:00
committed by Matthew Leach
parent 1741b036bb
commit fb405282cc
3 changed files with 4 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ pub const EPIPE: isize = -32;
pub const EDOM: isize = -33;
pub const ERANGE: isize = -34;
pub const EWOULDBLOCK: isize = -EAGAIN;
pub const ENOSYS: isize = -38;
pub fn kern_err_to_syscall(err: KernelError) -> isize {
match err {
@@ -47,7 +48,7 @@ pub fn kern_err_to_syscall(err: KernelError) -> isize {
KernelError::Fs(FsError::NotFound) => ENOENT,
KernelError::NotATty => ENOTTY,
KernelError::SeekPipe => ESPIPE,
KernelError::NotSupported => EINVAL,
KernelError::NotSupported => ENOSYS,
_ => todo!(),
}
}