We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a404015 commit af25995Copy full SHA for af25995
library/std/src/sys/stdio/uefi.rs
@@ -142,8 +142,12 @@ impl io::Write for Stderr {
142
// UTF-16 character should occupy 4 bytes at most in UTF-8
143
pub const STDIN_BUF_SIZE: usize = 4;
144
145
-pub fn is_ebadf(_err: &io::Error) -> bool {
146
- false
+pub fn is_ebadf(err: &io::Error) -> bool {
+ if let Some(x) = err.raw_os_error() {
147
+ r_efi::efi::Status::UNSUPPORTED.as_usize() == x
148
+ } else {
149
+ false
150
+ }
151
}
152
153
pub fn panic_output() -> Option<impl io::Write> {
0 commit comments