We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a275575 commit c668d7eCopy full SHA for c668d7e
c-scape/src/error_str.rs
@@ -31,7 +31,7 @@ pub(crate) const fn error_str(e: Errno) -> Option<&'static str> {
31
Errno::FBIG => "File too large",
32
Errno::HOSTUNREACH => "Host is unreachable",
33
Errno::IDRM => "Identifier removed",
34
- Errno::ILSEQ => "Illegal byte sequence",
+ Errno::ILSEQ => "Invalid byte sequence",
35
Errno::INPROGRESS => "Operation in progress",
36
Errno::INTR => "Interrupted function",
37
Errno::INVAL => "Invalid argument",
@@ -92,10 +92,7 @@ pub(crate) const fn error_str(e: Errno) -> Option<&'static str> {
92
Errno::PROTOTYPE => "Protocol wrong type for socket",
93
Errno::RANGE => "Result too large",
94
Errno::ROFS => "Read-only file system",
95
- #[cfg(target_env = "musl")]
96
Errno::SPIPE => "Invalid seek",
97
- #[cfg(not(target_env = "musl"))]
98
- Errno::SPIPE => "Illegal seek",
99
Errno::SRCH => "No such process",
100
Errno::STALE => "Reserved",
101
#[cfg(not(target_os = "wasi"))]
c-scape/src/signal/mod.rs
@@ -421,7 +421,7 @@ unsafe extern "C" fn strsignal(sig: c_int) -> *mut c_char {
421
Signal::Cont => cstr!("Continue executing, if stopped").as_ptr() as _,
422
Signal::Fpe => cstr!("Erroneous arithmetic operation").as_ptr() as _,
423
Signal::Hup => cstr!("Hangup").as_ptr() as _,
424
- Signal::Ill => cstr!("Illegal instruction").as_ptr() as _,
+ Signal::Ill => cstr!("Invalid instruction").as_ptr() as _,
425
Signal::Int => cstr!("Terminal interrupt signal").as_ptr() as _,
426
Signal::Kill => cstr!("Kill (cannot be caught or ignored)").as_ptr() as _,
427
Signal::Pipe => cstr!("Write on a pipe with no one to read it").as_ptr() as _,
0 commit comments