@@ -60,7 +60,6 @@ const UNIX_IO_ERROR_TABLE: &[(&str, std::io::ErrorKind)] = {
60
60
( "ENOENT" , NotFound ) ,
61
61
( "ENOMEM" , OutOfMemory ) ,
62
62
( "ENOSPC" , StorageFull ) ,
63
- ( "ENOSYS" , Unsupported ) ,
64
63
( "EMLINK" , TooManyLinks ) ,
65
64
( "ENAMETOOLONG" , InvalidFilename ) ,
66
65
( "ENETDOWN" , NetworkDown ) ,
@@ -75,12 +74,15 @@ const UNIX_IO_ERROR_TABLE: &[(&str, std::io::ErrorKind)] = {
75
74
( "ETIMEDOUT" , TimedOut ) ,
76
75
( "ETXTBSY" , ExecutableFileBusy ) ,
77
76
( "EXDEV" , CrossesDevices ) ,
78
- // The following have two valid options. We have both for the forwards mapping; only the
79
- // first one will be used for the backwards mapping.
77
+ // The following have multiple valid options. We have all of them for the forwards mapping;
78
+ // only the first one will be used for the backwards mapping.
80
79
( "EPERM" , PermissionDenied ) ,
81
80
( "EACCES" , PermissionDenied ) ,
82
81
( "EWOULDBLOCK" , WouldBlock ) ,
83
82
( "EAGAIN" , WouldBlock ) ,
83
+ ( "ENOTSUP" , Unsupported ) ,
84
+ ( "EOPNOTSUPP" , Unsupported ) ,
85
+ ( "ENOSYS" , Unsupported ) ,
84
86
]
85
87
} ;
86
88
// This mapping should match `decode_error_kind` in
0 commit comments