File tree 4 files changed +4
-0
lines changed
4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
148
148
libc:: EINVAL => ErrorKind :: InvalidInput ,
149
149
libc:: ETIMEDOUT => ErrorKind :: TimedOut ,
150
150
libc:: EEXIST => ErrorKind :: AlreadyExists ,
151
+ libc:: ENOSYS => ErrorKind :: NotSupported ,
151
152
152
153
// These two constants can have the same value on some systems,
153
154
// but different values on others, so we can't use a match
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
83
83
libc:: EINVAL => ErrorKind :: InvalidInput ,
84
84
libc:: ETIMEDOUT => ErrorKind :: TimedOut ,
85
85
libc:: EEXIST => ErrorKind :: AlreadyExists ,
86
+ libc:: ENOSYS => ErrorKind :: NotSupported ,
86
87
87
88
// These two constants can have the same value on some systems,
88
89
// but different values on others, so we can't use a match
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ pub fn decode_error_kind(errno: i32) -> std_io::ErrorKind {
78
78
wasi:: ERRNO_TIMEDOUT => TimedOut ,
79
79
wasi:: ERRNO_EXIST => AlreadyExists ,
80
80
wasi:: ERRNO_AGAIN => WouldBlock ,
81
+ wasi:: ERRNO_NOSYS => NotSupported ,
81
82
_ => Other ,
82
83
}
83
84
}
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
78
78
| c:: ERROR_IPSEC_IKE_TIMED_OUT
79
79
| c:: ERROR_RUNLEVEL_SWITCH_TIMEOUT
80
80
| c:: ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT => return ErrorKind :: TimedOut ,
81
+ c:: ERROR_CALL_NOT_IMPLEMENTED => return ErrorKind :: NotSupported ,
81
82
_ => { }
82
83
}
83
84
You can’t perform that action at this time.
0 commit comments