Skip to main content

io_error/
catalog.rs

1// Stable Xila IDs are independent of any platform's numeric errno values.
2// Keep zero for success and reserve retired IDs. Bands: 01 common, 02 storage,
3// 03 device/privilege, 04 transport, 05 resolver, 06 future, 07 native ABI only.
4define_kinds! {
5    InvalidArgument = 0x0101 => EINVAL, InvalidInput;
6    InvalidData = 0x0102 => EINVAL, InvalidData;
7    PermissionDenied = 0x0103 => EACCES, PermissionDenied;
8    OperationNotPermitted = 0x0104 => EPERM, PermissionDenied;
9    InputOutput = 0x0105 => EIO, Other;
10    OutOfMemory = 0x0106 => ENOMEM, OutOfMemory;
11    WouldBlock = 0x0107 => EAGAIN, Other;
12    ResourceBusy = 0x0108 => EBUSY, Other;
13    Interrupted = 0x0109 => EINTR, Interrupted;
14    TimedOut = 0x010A => ETIMEDOUT, TimedOut;
15    Unsupported = 0x010B => ENOTSUP, Unsupported;
16    Overflow = 0x010C => EOVERFLOW, Other;
17    WriteZero = 0x010D => EIO, WriteZero;
18    NoBuffers = 0x010E => ENOBUFS, Other;
19    NotFound = 0x010F => ENOENT, NotFound;
20    AlreadyExists = 0x0110 => EEXIST, AlreadyExists;
21    InvalidFlags = 0x0111 => EINVAL, InvalidInput;
22    InvalidState = 0x0112 => EINVAL, InvalidInput;
23    NotImplemented = 0x0113 => ENOSYS, Unsupported;
24    ExecFormat = 0x0114 => ENOEXEC, InvalidData;
25    NoChild = 0x0115 => ECHILD, Other;
26    ArgumentListTooLong = 0x0116 => E2BIG, InvalidInput;
27    Deadlock = 0x0117 => EDEADLK, Other;
28    BadDescriptor = 0x0201 => EBADF, Other;
29    InvalidPath = 0x0202 => EINVAL, InvalidInput;
30    MissingPathComponent = 0x0203 => ENOENT, NotFound;
31    MissingFinalEntry = 0x0204 => ENOENT, NotFound;
32    NameTooLong = 0x0205 => ENAMETOOLONG, Other;
33    SymlinkLoop = 0x0206 => ELOOP, Other;
34    NotADirectory = 0x0207 => ENOTDIR, Other;
35    IsADirectory = 0x0208 => EISDIR, Other;
36    DirectoryNotEmpty = 0x0209 => ENOTEMPTY, Other;
37    NoSpace = 0x020A => ENOSPC, Other;
38    FileTooLarge = 0x020B => EFBIG, Other;
39    ProcessFileLimit = 0x020C => EMFILE, Other;
40    SystemFileLimit = 0x020D => ENFILE, Other;
41    CrossDevice = 0x020E => EXDEV, Other;
42    PathEscapesRoot = 0x020F => EACCES, PermissionDenied;
43    CorruptData = 0x0210 => EIO, InvalidData;
44    MissingAttribute = 0x0211 => ENODATA, NotFound;
45    StaleHandle = 0x0212 => ESTALE, Other;
46    ReadOnlyFileSystem = 0x0213 => EROFS, PermissionDenied;
47    InvalidSeek = 0x0214 => ESPIPE, InvalidInput;
48    DeviceUnavailable = 0x0301 => ENODEV, Other;
49    NoSuchTask = 0x0302 => ESRCH, Other;
50    InappropriateIoControl = 0x0303 => ENOTTY, Other;
51    ConnectionRefused = 0x0401 => ECONNREFUSED, ConnectionRefused;
52    ConnectionReset = 0x0402 => ECONNRESET, ConnectionReset;
53    ConnectionAborted = 0x0403 => ECONNABORTED, ConnectionAborted;
54    NotConnected = 0x0404 => ENOTCONN, NotConnected;
55    AlreadyConnected = 0x0405 => EISCONN, Other;
56    AddressInUse = 0x0406 => EADDRINUSE, AddrInUse;
57    AddressNotAvailable = 0x0407 => EADDRNOTAVAIL, AddrNotAvailable;
58    DestinationRequired = 0x0408 => EDESTADDRREQ, InvalidInput;
59    HostUnreachable = 0x0409 => EHOSTUNREACH, Other;
60    NetworkUnreachable = 0x040A => ENETUNREACH, Other;
61    NetworkDown = 0x040B => ENETDOWN, Other;
62    BrokenPipe = 0x040C => EPIPE, BrokenPipe;
63    MessageTooLarge = 0x040D => EMSGSIZE, Other;
64    DatagramTruncated = 0x040E => EMSGSIZE, Other;
65    SocketOperationUnsupported = 0x040F => EOPNOTSUPP, Unsupported;
66    ProtocolUnsupported = 0x0410 => EPROTONOSUPPORT, Unsupported;
67    AddressFamilyUnsupported = 0x0411 => EAFNOSUPPORT, Unsupported;
68    InProgress = 0x0412 => EINPROGRESS, Other;
69    AlreadyInProgress = 0x0413 => EALREADY, Other;
70    ProtocolError = 0x0414 => EPROTO, InvalidData;
71    NotASocket = 0x0415 => ENOTSOCK, Other;
72    InvalidDnsName = 0x0501 => EINVAL, InvalidInput;
73    UnsupportedDnsQuery = 0x0502 => ENOTSUP, Unsupported;
74    NameNotResolved = 0x0503 => ENOENT, NotFound;
75    ResolverTemporaryFailure = 0x0504 => EAGAIN, Other;
76    ResolverFailure = 0x0505 => EIO, Other;
77}