pub const EPERM = 1; // Operation not permitted pub const ENOENT = 2; // No such file or directory pub const ESRCH = 3; // No such process pub const EINTR = 4; // Interrupted system call pub const EIO = 5; // Input/output error pub const ENXIO = 6; // Device not configured pub const E2BIG = 7; // Argument list too long pub const ENOEXEC = 8; // Exec format error pub const EBADF = 9; // Bad file descriptor pub const ECHILD = 10; // No child processes pub const EDEADLK = 11; // Resource deadlock avoided // 11 was EAGAIN pub const ENOMEM = 12; // Cannot allocate memory pub const EACCES = 13; // Permission denied pub const EFAULT = 14; // Bad address pub const ENOTBLK = 15; // Block device required pub const EBUSY = 16; // Device busy pub const EEXIST = 17; // File exists pub const EXDEV = 18; // Cross-device link pub const ENODEV = 19; // Operation not supported by device pub const ENOTDIR = 20; // Not a directory pub const EISDIR = 21; // Is a directory pub const EINVAL = 22; // Invalid argument pub const ENFILE = 23; // Too many open files in system pub const EMFILE = 24; // Too many open files pub const ENOTTY = 25; // Inappropriate ioctl for device pub const ETXTBSY = 26; // Text file busy pub const EFBIG = 27; // File too large pub const ENOSPC = 28; // No space left on device pub const ESPIPE = 29; // Illegal seek pub const EROFS = 30; // Read-only file system pub const EMLINK = 31; // Too many links pub const EPIPE = 32; // Broken pipe // math software pub const EDOM = 33; // Numerical argument out of domain pub const ERANGE = 34; // Result too large or too small // non-blocking and interrupt i/o pub const EAGAIN = 35; // Resource temporarily unavailable pub const EWOULDBLOCK = EAGAIN; // Operation would block pub const EINPROGRESS = 36; // Operation now in progress pub const EALREADY = 37; // Operation already in progress // ipc/network software -- argument errors pub const ENOTSOCK = 38; // Socket operation on non-socket pub const EDESTADDRREQ = 39; // Destination address required pub const EMSGSIZE = 40; // Message too long pub const EPROTOTYPE = 41; // Protocol wrong type for socket pub const ENOPROTOOPT = 42; // Protocol option not available pub const EPROTONOSUPPORT = 43; // Protocol not supported pub const ESOCKTNOSUPPORT = 44; // Socket type not supported pub const EOPNOTSUPP = 45; // Operation not supported pub const EPFNOSUPPORT = 46; // Protocol family not supported pub const EAFNOSUPPORT = 47; // Address family not supported by protocol family pub const EADDRINUSE = 48; // Address already in use pub const EADDRNOTAVAIL = 49; // Can't assign requested address // ipc/network software -- operational errors pub const ENETDOWN = 50; // Network is down pub const ENETUNREACH = 51; // Network is unreachable pub const ENETRESET = 52; // Network dropped connection on reset pub const ECONNABORTED = 53; // Software caused connection abort pub const ECONNRESET = 54; // Connection reset by peer pub const ENOBUFS = 55; // No buffer space available pub const EISCONN = 56; // Socket is already connected pub const ENOTCONN = 57; // Socket is not connected pub const ESHUTDOWN = 58; // Can't send after socket shutdown pub const ETOOMANYREFS = 59; // Too many references: can't splice pub const ETIMEDOUT = 60; // Operation timed out pub const ECONNREFUSED = 61; // Connection refused pub const ELOOP = 62; // Too many levels of symbolic links pub const ENAMETOOLONG = 63; // File name too long // should be rearranged pub const EHOSTDOWN = 64; // Host is down pub const EHOSTUNREACH = 65; // No route to host pub const ENOTEMPTY = 66; // Directory not empty // quotas & mush pub const EPROCLIM = 67; // Too many processes pub const EUSERS = 68; // Too many users pub const EDQUOT = 69; // Disc quota exceeded // Network File System pub const ESTALE = 70; // Stale NFS file handle pub const EREMOTE = 71; // Too many levels of remote in path pub const EBADRPC = 72; // RPC struct is bad pub const ERPCMISMATCH = 73; // RPC version wrong pub const EPROGUNAVAIL = 74; // RPC prog. not avail pub const EPROGMISMATCH = 75; // Program version wrong pub const EPROCUNAVAIL = 76; // Bad procedure for program pub const ENOLCK = 77; // No locks available pub const ENOSYS = 78; // Function not implemented pub const EFTYPE = 79; // Inappropriate file type or format pub const EAUTH = 80; // Authentication error pub const ENEEDAUTH = 81; // Need authenticator // SystemV IPC pub const EIDRM = 82; // Identifier removed pub const ENOMSG = 83; // No message of desired type pub const EOVERFLOW = 84; // Value too large to be stored in data type // Wide/multibyte-character handling, ISO/IEC 9899/AMD1:1995 pub const EILSEQ = 85; // Illegal byte sequence // From IEEE Std 1003.1-2001 // Base, Realtime, Threads or Thread Priority Scheduling option errors pub const ENOTSUP = 86; // Not supported // Realtime option errors pub const ECANCELED = 87; // Operation canceled // Realtime, XSI STREAMS option errors pub const EBADMSG = 88; // Bad or Corrupt message // XSI STREAMS option errors pub const ENODATA = 89; // No message available pub const ENOSR = 90; // No STREAM resources pub const ENOSTR = 91; // Not a STREAM pub const ETIME = 92; // STREAM ioctl timeout // File system extended attribute errors pub const ENOATTR = 93; // Attribute not found // Realtime, XSI STREAMS option errors pub const EMULTIHOP = 94; // Multihop attempted pub const ENOLINK = 95; // Link has been severed pub const EPROTO = 96; // Protocol error pub const ELAST = 96; // Must equal largest errno