mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-01-31 01:21:46 -05:00
sycalls: name_to_handle_at: stub
Return EOPNOTSUPP for `sys_name_to_handle_at`.
This commit is contained in:
committed by
Ashwin Naren
parent
b452d5812c
commit
2b55e1d972
@@ -189,6 +189,9 @@ pub enum KernelError {
|
||||
#[error("Value out of range")]
|
||||
RangeError,
|
||||
|
||||
#[error("Operation not supported on transport endpoint")]
|
||||
OpNotSupported,
|
||||
|
||||
#[error("{0}")]
|
||||
Other(&'static str),
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ pub const EDOM: isize = -33;
|
||||
pub const ERANGE: isize = -34;
|
||||
pub const EWOULDBLOCK: isize = -EAGAIN;
|
||||
pub const ENOSYS: isize = -38;
|
||||
pub const EOPNOTSUPP: isize = -95;
|
||||
pub const ETIMEDOUT: isize = -110;
|
||||
|
||||
pub fn kern_err_to_syscall(err: KernelError) -> isize {
|
||||
@@ -55,6 +56,7 @@ pub fn kern_err_to_syscall(err: KernelError) -> isize {
|
||||
KernelError::TimedOut => ETIMEDOUT,
|
||||
KernelError::RangeError => ERANGE,
|
||||
KernelError::NoChildProcess => ECHILD,
|
||||
KernelError::OpNotSupported => EOPNOTSUPP,
|
||||
e => todo!("{e}"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user