Auto merge of #115312 - hermitcore:hermit-is_interrupted, r=thomcc
fix(sys/hermit): add is_interrupted https://github.com/rust-lang/rust/pull/115228 broke compilation for Hermit by not adding a Hermit implementation of is_interrupted.
This commit is contained in:
commit
a517049d8c
@ -129,6 +129,11 @@ pub unsafe fn cleanup() {}
|
||||
abi::exit(result);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn is_interrupted(errno: i32) -> bool {
|
||||
errno == abi::errno::EINTR
|
||||
}
|
||||
|
||||
pub fn decode_error_kind(errno: i32) -> ErrorKind {
|
||||
match errno {
|
||||
abi::errno::EACCES => ErrorKind::PermissionDenied,
|
||||
|
Loading…
Reference in New Issue
Block a user