mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2025-12-23 22:47:55 -05:00
syscalls: rseq: return ENOSYS
Return ENOSYS for sys_rseq
This commit is contained in:
committed by
Matthew Leach
parent
1741b036bb
commit
fb405282cc
@@ -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!(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user