| ... | ... | @@ -0,0 +1,144 @@ |
| 1 | // SPDX-License-Identifier: MIT |
| 2 | // Copyright (c) 2015-2021 Zig Contributors |
| 3 | // This file is part of [zig](https://ziglang.org/), which is MIT licensed. |
| 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | // and substantial portions of the software. |
| 6 | |
| 7 | // These match the SunOS error numbering scheme. |
| 8 | |
| 9 | pub const EPERM = 1; |
| 10 | pub const ENOENT = 2; |
| 11 | pub const ESRCH = 3; |
| 12 | pub const EINTR = 4; |
| 13 | pub const EIO = 5; |
| 14 | pub const ENXIO = 6; |
| 15 | pub const E2BIG = 7; |
| 16 | pub const ENOEXEC = 8; |
| 17 | pub const EBADF = 9; |
| 18 | pub const ECHILD = 10; |
| 19 | pub const EAGAIN = 11; |
| 20 | pub const ENOMEM = 12; |
| 21 | pub const EACCES = 13; |
| 22 | pub const EFAULT = 14; |
| 23 | pub const ENOTBLK = 15; |
| 24 | pub const EBUSY = 16; |
| 25 | pub const EEXIST = 17; |
| 26 | pub const EXDEV = 18; |
| 27 | pub const ENODEV = 19; |
| 28 | pub const ENOTDIR = 20; |
| 29 | pub const EISDIR = 21; |
| 30 | pub const EINVAL = 22; |
| 31 | pub const ENFILE = 23; |
| 32 | pub const EMFILE = 24; |
| 33 | pub const ENOTTY = 25; |
| 34 | pub const ETXTBSY = 26; |
| 35 | pub const EFBIG = 27; |
| 36 | pub const ENOSPC = 28; |
| 37 | pub const ESPIPE = 29; |
| 38 | pub const EROFS = 30; |
| 39 | pub const EMLINK = 31; |
| 40 | pub const EPIPE = 32; |
| 41 | pub const EDOM = 33; |
| 42 | pub const ERANGE = 34; |
| 43 | |
| 44 | pub const EWOULDBLOCK = EAGAIN; |
| 45 | pub const EINPROGRESS = 36; |
| 46 | pub const EALREADY = 37; |
| 47 | pub const ENOTSOCK = 38; |
| 48 | pub const EDESTADDRREQ = 39; |
| 49 | pub const EMSGSIZE = 40; |
| 50 | pub const EPROTOTYPE = 41; |
| 51 | pub const ENOPROTOOPT = 42; |
| 52 | pub const EPROTONOSUPPORT = 43; |
| 53 | pub const ESOCKTNOSUPPORT = 44; |
| 54 | pub const EOPNOTSUPP = 45; |
| 55 | pub const EPFNOSUPPORT = 46; |
| 56 | pub const EAFNOSUPPORT = 47; |
| 57 | pub const EADDRINUSE = 48; |
| 58 | pub const EADDRNOTAVAIL = 49; |
| 59 | pub const ENETDOWN = 50; |
| 60 | pub const ENETUNREACH = 51; |
| 61 | pub const ENETRESET = 52; |
| 62 | pub const ECONNABORTED = 53; |
| 63 | pub const ECONNRESET = 54; |
| 64 | pub const ENOBUFS = 55; |
| 65 | pub const EISCONN = 56; |
| 66 | pub const ENOTCONN = 57; |
| 67 | pub const ESHUTDOWN = 58; |
| 68 | pub const ETOOMANYREFS = 59; |
| 69 | pub const ETIMEDOUT = 60; |
| 70 | pub const ECONNREFUSED = 61; |
| 71 | pub const ELOOP = 62; |
| 72 | pub const ENAMETOOLONG = 63; |
| 73 | pub const EHOSTDOWN = 64; |
| 74 | pub const EHOSTUNREACH = 65; |
| 75 | pub const ENOTEMPTY = 66; |
| 76 | pub const EPROCLIM = 67; |
| 77 | pub const EUSERS = 68; |
| 78 | pub const EDQUOT = 69; |
| 79 | pub const ESTALE = 70; |
| 80 | pub const EREMOTE = 71; |
| 81 | pub const ENOSTR = 72; |
| 82 | pub const ETIME = 73; |
| 83 | pub const ENOSR = 74; |
| 84 | pub const ENOMSG = 75; |
| 85 | pub const EBADMSG = 76; |
| 86 | pub const EIDRM = 77; |
| 87 | pub const EDEADLK = 78; |
| 88 | pub const ENOLCK = 79; |
| 89 | pub const ENONET = 80; |
| 90 | pub const ERREMOTE = 81; |
| 91 | pub const ENOLINK = 82; |
| 92 | pub const EADV = 83; |
| 93 | pub const ESRMNT = 84; |
| 94 | pub const ECOMM = 85; |
| 95 | pub const EPROTO = 86; |
| 96 | pub const EMULTIHOP = 87; |
| 97 | pub const EDOTDOT = 88; |
| 98 | pub const EREMCHG = 89; |
| 99 | pub const ENOSYS = 90; |
| 100 | pub const ESTRPIPE = 91; |
| 101 | pub const EOVERFLOW = 92; |
| 102 | pub const EBADFD = 93; |
| 103 | pub const ECHRNG = 94; |
| 104 | pub const EL2NSYNC = 95; |
| 105 | pub const EL3HLT = 96; |
| 106 | pub const EL3RST = 97; |
| 107 | pub const ELNRNG = 98; |
| 108 | pub const EUNATCH = 99; |
| 109 | pub const ENOCSI = 100; |
| 110 | pub const EL2HLT = 101; |
| 111 | pub const EBADE = 102; |
| 112 | pub const EBADR = 103; |
| 113 | pub const EXFULL = 104; |
| 114 | pub const ENOANO = 105; |
| 115 | pub const EBADRQC = 106; |
| 116 | pub const EBADSLT = 107; |
| 117 | pub const EDEADLOCK = 108; |
| 118 | pub const EBFONT = 109; |
| 119 | pub const ELIBEXEC = 110; |
| 120 | pub const ENODATA = 111; |
| 121 | pub const ELIBBAD = 112; |
| 122 | pub const ENOPKG = 113; |
| 123 | pub const ELIBACC = 114; |
| 124 | pub const ENOTUNIQ = 115; |
| 125 | pub const ERESTART = 116; |
| 126 | pub const EUCLEAN = 117; |
| 127 | pub const ENOTNAM = 118; |
| 128 | pub const ENAVAIL = 119; |
| 129 | pub const EISNAM = 120; |
| 130 | pub const EREMOTEIO = 121; |
| 131 | pub const EILSEQ = 122; |
| 132 | pub const ELIBMAX = 123; |
| 133 | pub const ELIBSCN = 124; |
| 134 | pub const ENOMEDIUM = 125; |
| 135 | pub const EMEDIUMTYPE = 126; |
| 136 | pub const ECANCELED = 127; |
| 137 | pub const ENOKEY = 128; |
| 138 | pub const EKEYEXPIRED = 129; |
| 139 | pub const EKEYREVOKED = 130; |
| 140 | pub const EKEYREJECTED = 131; |
| 141 | pub const EOWNERDEAD = 132; |
| 142 | pub const ENOTRECOVERABLE = 133; |
| 143 | pub const ERFKILL = 134; |
| 144 | pub const EHWPOISON = 135; |