Skip to content

Commit ddda372

Browse files
committed
Emerald: Added OperationNotSupported syscall error
This can happen mostly for Filesystems when they don't support write or creating files
1 parent 1d8d0d3 commit ddda372

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ dependencies = [
12121212

12131213
[[package]]
12141214
name = "emerald_kernel_user_link"
1215-
version = "0.2.10"
1215+
version = "0.2.11"
12161216
dependencies = [
12171217
"compiler_builtins",
12181218
"rustc-std-workspace-core",

library/std/src/sys/pal/emerald/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ fn syscall_to_io_error(e: SyscallError) -> crate::io::Error {
6363
SyscallError::AlreadyExists => {
6464
crate::io::Error::new(crate::io::ErrorKind::AlreadyExists, "Already exists")
6565
}
66+
SyscallError::OperationNotSupported => {
67+
crate::io::Error::new(crate::io::ErrorKind::Unsupported, "Not supported")
68+
}
6669
SyscallError::InvalidArgument(arg1, arg2, arg3, arg4, arg5, arg6, arg7) => {
6770
let errors = [arg1, arg2, arg3, arg4, arg5, arg6, arg7];
6871

0 commit comments

Comments
 (0)