summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorAviram Hassan <aviramyhassan@gmail.com>2024-09-24 18:52:54 +0300
committerAviram Hassan <aviramyhassan@gmail.com>2024-09-24 20:49:56 +0300
commit46fd76e9a5687dc7ac6bfad1c715ceaef9e8cf29 (patch)
treec600488eb83274f95c1d478fe66fea6a1da5f427 /library/std/src/sys
parent4cbfcf1b7f16245176488e581f57b39a7e32bc31 (diff)
downloadrust-46fd76e9a5687dc7ac6bfad1c715ceaef9e8cf29.tar.gz
rust-46fd76e9a5687dc7ac6bfad1c715ceaef9e8cf29.zip
add InProgress ErrorKind gated behind io_error_inprogress feature
Co-authored-by: David Tolnay <dtolnay@gmail.com>
Co-authored-by: nora <48135649+Noratrieb@users.noreply.github.com>
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/pal/unix/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/mod.rs b/library/std/src/sys/pal/unix/mod.rs
index 1c9159e5fba..0d63b1119d5 100644
--- a/library/std/src/sys/pal/unix/mod.rs
+++ b/library/std/src/sys/pal/unix/mod.rs
@@ -279,6 +279,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
         libc::ETIMEDOUT => TimedOut,
         libc::ETXTBSY => ExecutableFileBusy,
         libc::EXDEV => CrossesDevices,
+        libc::EINPROGRESS => InProgress,
 
         libc::EACCES | libc::EPERM => PermissionDenied,