Support AIX in Rust standard library

This commit is contained in:
Qiu Chaofan
2023-04-03 12:33:51 +08:00
parent 1f48cbc3f8
commit 14d29be03c
14 changed files with 462 additions and 3 deletions

View File

@@ -278,6 +278,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
libc::ENETUNREACH => NetworkUnreachable,
libc::ENOTCONN => NotConnected,
libc::ENOTDIR => NotADirectory,
#[cfg(not(target_os = "aix"))]
libc::ENOTEMPTY => DirectoryNotEmpty,
libc::EPIPE => BrokenPipe,
libc::EROFS => ReadOnlyFilesystem,