sycalls: name_to_handle_at: stub

Return EOPNOTSUPP for `sys_name_to_handle_at`.
This commit is contained in:
Matthew Leach
2026-01-14 21:02:11 +00:00
committed by Ashwin Naren
parent b452d5812c
commit 2b55e1d972
6 changed files with 14 additions and 1 deletions

View File

@@ -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),
}

View File

@@ -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}"),
}
}