Skip to content

Commit

Permalink
Emerald: Added OperationNotSupported syscall error
Browse files Browse the repository at this point in the history
This can happen mostly for Filesystems when they don't support write or creating files
  • Loading branch information
Amjad50 committed Apr 3, 2024
1 parent 1d8d0d3 commit ddda372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ dependencies = [

[[package]]
name = "emerald_kernel_user_link"
version = "0.2.10"
version = "0.2.11"
dependencies = [
"compiler_builtins",
"rustc-std-workspace-core",
Expand Down
3 changes: 3 additions & 0 deletions library/std/src/sys/pal/emerald/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ fn syscall_to_io_error(e: SyscallError) -> crate::io::Error {
SyscallError::AlreadyExists => {
crate::io::Error::new(crate::io::ErrorKind::AlreadyExists, "Already exists")
}
SyscallError::OperationNotSupported => {
crate::io::Error::new(crate::io::ErrorKind::Unsupported, "Not supported")
}
SyscallError::InvalidArgument(arg1, arg2, arg3, arg4, arg5, arg6, arg7) => {
let errors = [arg1, arg2, arg3, arg4, arg5, arg6, arg7];

Expand Down

0 comments on commit ddda372

Please sign in to comment.