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:
bors 2023-08-29 04:11:13 +00:00
commit a517049d8c

View File

@ -129,6 +129,11 @@ pub unsafe extern "C" fn runtime_entry(
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,