| ... | @@ -0,0 +1,146 @@ |
| 1 | pub const EPERM = 1; // Operation not permitted |
| 2 | pub const ENOENT = 2; // No such file or directory |
| 3 | pub const ESRCH = 3; // No such process |
| 4 | pub const EINTR = 4; // Interrupted system call |
| 5 | pub const EIO = 5; // I/O error |
| 6 | pub const ENXIO = 6; // No such device or address |
| 7 | pub const E2BIG = 7; // Arg list too long |
| 8 | pub const ENOEXEC = 8; // Exec format error |
| 9 | pub const EBADF = 9; // Bad file number |
| 10 | pub const ECHILD = 10; // No child processes |
| 11 | pub const EAGAIN = 11; // Try again |
| 12 | pub const ENOMEM = 12; // Out of memory |
| 13 | pub const EACCES = 13; // Permission denied |
| 14 | pub const EFAULT = 14; // Bad address |
| 15 | pub const ENOTBLK = 15; // Block device required |
| 16 | pub const EBUSY = 16; // Device or resource busy |
| 17 | pub const EEXIST = 17; // File exists |
| 18 | pub const EXDEV = 18; // Cross-device link |
| 19 | pub const ENODEV = 19; // No such device |
| 20 | pub const ENOTDIR = 20; // Not a directory |
| 21 | pub const EISDIR = 21; // Is a directory |
| 22 | pub const EINVAL = 22; // Invalid argument |
| 23 | pub const ENFILE = 23; // File table overflow |
| 24 | pub const EMFILE = 24; // Too many open files |
| 25 | pub const ENOTTY = 25; // Not a typewriter |
| 26 | pub const ETXTBSY = 26; // Text file busy |
| 27 | pub const EFBIG = 27; // File too large |
| 28 | pub const ENOSPC = 28; // No space left on device |
| 29 | pub const ESPIPE = 29; // Illegal seek |
| 30 | pub const EROFS = 30; // Read-only file system |
| 31 | pub const EMLINK = 31; // Too many links |
| 32 | pub const EPIPE = 32; // Broken pipe |
| 33 | pub const EDOM = 33; // Math argument out of domain of func |
| 34 | pub const ERANGE = 34; // Math result not representable |
| 35 | pub const EDEADLK = 35; // Resource deadlock would occur |
| 36 | pub const ENAMETOOLONG = 36; // File name too long |
| 37 | pub const ENOLCK = 37; // No record locks available |
| 38 | pub const ENOSYS = 38; // Function not implemented |
| 39 | pub const ENOTEMPTY = 39; // Directory not empty |
| 40 | pub const ELOOP = 40; // Too many symbolic links encountered |
| 41 | pub const EWOULDBLOCK = EAGAIN; // Operation would block |
| 42 | pub const ENOMSG = 42; // No message of desired type |
| 43 | pub const EIDRM = 43; // Identifier removed |
| 44 | pub const ECHRNG = 44; // Channel number out of range |
| 45 | pub const EL2NSYNC = 45; // Level 2 not synchronized |
| 46 | pub const EL3HLT = 46; // Level 3 halted |
| 47 | pub const EL3RST = 47; // Level 3 reset |
| 48 | pub const ELNRNG = 48; // Link number out of range |
| 49 | pub const EUNATCH = 49; // Protocol driver not attached |
| 50 | pub const ENOCSI = 50; // No CSI structure available |
| 51 | pub const EL2HLT = 51; // Level 2 halted |
| 52 | pub const EBADE = 52; // Invalid exchange |
| 53 | pub const EBADR = 53; // Invalid request descriptor |
| 54 | pub const EXFULL = 54; // Exchange full |
| 55 | pub const ENOANO = 55; // No anode |
| 56 | pub const EBADRQC = 56; // Invalid request code |
| 57 | pub const EBADSLT = 57; // Invalid slot |
| 58 | |
| 59 | pub const EBFONT = 59; // Bad font file format |
| 60 | pub const ENOSTR = 60; // Device not a stream |
| 61 | pub const ENODATA = 61; // No data available |
| 62 | pub const ETIME = 62; // Timer expired |
| 63 | pub const ENOSR = 63; // Out of streams resources |
| 64 | pub const ENONET = 64; // Machine is not on the network |
| 65 | pub const ENOPKG = 65; // Package not installed |
| 66 | pub const EREMOTE = 66; // Object is remote |
| 67 | pub const ENOLINK = 67; // Link has been severed |
| 68 | pub const EADV = 68; // Advertise error |
| 69 | pub const ESRMNT = 69; // Srmount error |
| 70 | pub const ECOMM = 70; // Communication error on send |
| 71 | pub const EPROTO = 71; // Protocol error |
| 72 | pub const EMULTIHOP = 72; // Multihop attempted |
| 73 | pub const EDOTDOT = 73; // RFS specific error |
| 74 | pub const EBADMSG = 74; // Not a data message |
| 75 | pub const EOVERFLOW = 75; // Value too large for defined data type |
| 76 | pub const ENOTUNIQ = 76; // Name not unique on network |
| 77 | pub const EBADFD = 77; // File descriptor in bad state |
| 78 | pub const EREMCHG = 78; // Remote address changed |
| 79 | pub const ELIBACC = 79; // Can not access a needed shared library |
| 80 | pub const ELIBBAD = 80; // Accessing a corrupted shared library |
| 81 | pub const ELIBSCN = 81; // .lib section in a.out corrupted |
| 82 | pub const ELIBMAX = 82; // Attempting to link in too many shared libraries |
| 83 | pub const ELIBEXEC = 83; // Cannot exec a shared library directly |
| 84 | pub const EILSEQ = 84; // Illegal byte sequence |
| 85 | pub const ERESTART = 85; // Interrupted system call should be restarted |
| 86 | pub const ESTRPIPE = 86; // Streams pipe error |
| 87 | pub const EUSERS = 87; // Too many users |
| 88 | pub const ENOTSOCK = 88; // Socket operation on non-socket |
| 89 | pub const EDESTADDRREQ = 89; // Destination address required |
| 90 | pub const EMSGSIZE = 90; // Message too long |
| 91 | pub const EPROTOTYPE = 91; // Protocol wrong type for socket |
| 92 | pub const ENOPROTOOPT = 92; // Protocol not available |
| 93 | pub const EPROTONOSUPPORT = 93; // Protocol not supported |
| 94 | pub const ESOCKTNOSUPPORT = 94; // Socket type not supported |
| 95 | pub const EOPNOTSUPP = 95; // Operation not supported on transport endpoint |
| 96 | pub const EPFNOSUPPORT = 96; // Protocol family not supported |
| 97 | pub const EAFNOSUPPORT = 97; // Address family not supported by protocol |
| 98 | pub const EADDRINUSE = 98; // Address already in use |
| 99 | pub const EADDRNOTAVAIL = 99; // Cannot assign requested address |
| 100 | pub const ENETDOWN = 100; // Network is down |
| 101 | pub const ENETUNREACH = 101; // Network is unreachable |
| 102 | pub const ENETRESET = 102; // Network dropped connection because of reset |
| 103 | pub const ECONNABORTED = 103; // Software caused connection abort |
| 104 | pub const ECONNRESET = 104; // Connection reset by peer |
| 105 | pub const ENOBUFS = 105; // No buffer space available |
| 106 | pub const EISCONN = 106; // Transport endpoint is already connected |
| 107 | pub const ENOTCONN = 107; // Transport endpoint is not connected |
| 108 | pub const ESHUTDOWN = 108; // Cannot send after transport endpoint shutdown |
| 109 | pub const ETOOMANYREFS = 109; // Too many references: cannot splice |
| 110 | pub const ETIMEDOUT = 110; // Connection timed out |
| 111 | pub const ECONNREFUSED = 111; // Connection refused |
| 112 | pub const EHOSTDOWN = 112; // Host is down |
| 113 | pub const EHOSTUNREACH = 113; // No route to host |
| 114 | pub const EALREADY = 114; // Operation already in progress |
| 115 | pub const EINPROGRESS = 115; // Operation now in progress |
| 116 | pub const ESTALE = 116; // Stale NFS file handle |
| 117 | pub const EUCLEAN = 117; // Structure needs cleaning |
| 118 | pub const ENOTNAM = 118; // Not a XENIX named type file |
| 119 | pub const ENAVAIL = 119; // No XENIX semaphores available |
| 120 | pub const EISNAM = 120; // Is a named type file |
| 121 | pub const EREMOTEIO = 121; // Remote I/O error |
| 122 | pub const EDQUOT = 122; // Quota exceeded |
| 123 | |
| 124 | pub const ENOMEDIUM = 123; // No medium found |
| 125 | pub const EMEDIUMTYPE = 124; // Wrong medium type |
| 126 | |
| 127 | // nameserver query return codes |
| 128 | pub const ENSROK = 0; // DNS server returned answer with no data |
| 129 | pub const ENSRNODATA = 160; // DNS server returned answer with no data |
| 130 | pub const ENSRFORMERR = 161; // DNS server claims query was misformatted |
| 131 | pub const ENSRSERVFAIL = 162; // DNS server returned general failure |
| 132 | pub const ENSRNOTFOUND = 163; // Domain name not found |
| 133 | pub const ENSRNOTIMP = 164; // DNS server does not implement requested operation |
| 134 | pub const ENSRREFUSED = 165; // DNS server refused query |
| 135 | pub const ENSRBADQUERY = 166; // Misformatted DNS query |
| 136 | pub const ENSRBADNAME = 167; // Misformatted domain name |
| 137 | pub const ENSRBADFAMILY = 168; // Unsupported address family |
| 138 | pub const ENSRBADRESP = 169; // Misformatted DNS reply |
| 139 | pub const ENSRCONNREFUSED = 170; // Could not contact DNS servers |
| 140 | pub const ENSRTIMEOUT = 171; // Timeout while contacting DNS servers |
| 141 | pub const ENSROF = 172; // End of file |
| 142 | pub const ENSRFILE = 173; // Error reading file |
| 143 | pub const ENSRNOMEM = 174; // Out of memory |
| 144 | pub const ENSRDESTRUCTION = 175; // Application terminated lookup |
| 145 | pub const ENSRQUERYDOMAINTOOLONG = 176; // Domain name is too long |
| 146 | pub const ENSRCNAMELOOP = 177; // Domain name is too long |