nix-errno-codes
Version:
Constants enumerating POSIX/Linux errno.h error codes.
266 lines • 11 kB
JavaScript
;
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CODES = {
E2BIG: 'E2BIG',
ECCES: 'EACCES',
EADDRINUSE: 'EADDRINUSE',
EADDRNOTAVAIL: 'EADDRNOTAVAIL',
EAFNOSUPPORT: 'EAFNOSUPPORT',
EAGAIN: 'EAGAIN',
EALREADY: 'EALREADY',
EBADE: 'EBADE',
EBADF: 'EBADF',
EBADFD: 'EBADFD',
EBADMSG: 'EBADMSG',
EBADR: 'EBADR',
EBADRQC: 'EBADRQC',
EBADSLT: 'EBADSLT',
EBUSY: 'EBUSY',
ECANCELED: 'ECANCELED',
ECHILD: 'ECHILD',
ECHRNG: 'ECHRNG',
ECOMM: 'ECOMM',
ECONNABORTED: 'ECONNABORTED',
ECONNREFUSED: 'ECONNREFUSED',
ECONNRESET: 'ECONNRESET',
EDEADLK: 'EDEADLK',
EDEADLOCK: 'EDEADLOCK',
EDESTADDRREQ: 'EDESTADDRREQ',
EDOM: 'EDOM',
EDQUOT: 'EDQUOT',
EEXIST: 'EEXIST',
EFAULT: 'EFAULT',
EFBIG: 'EFBIG',
EHOSTDOWN: 'EHOSTDOWN',
EHOSTUNREACH: 'EHOSTUNREACH',
EHWPOISON: 'EHWPOISON',
EIDRM: 'EIDRM',
EILSEQ: 'EILSEQ',
EINPROGRESS: 'EINPROGRESS',
EINTR: 'EINTR',
EINVAL: 'EINVAL',
EIO: 'EIO',
EISCONN: 'EISCONN',
EISDIR: 'EISDIR',
EISNAM: 'EISNAM',
EKEYEXPIRED: 'EKEYEXPIRED',
EKEYREJECTED: 'EKEYREJECTED',
EKEYREVOKED: 'EKEYREVOKED',
EL2HLT: 'EL2HLT',
EL2NSYNC: 'EL2NSYNC',
EL3HLT: 'EL3HLT',
EL3RST: 'EL3RST',
ELIBACC: 'ELIBACC',
ELIBBAD: 'ELIBBAD',
ELIBMAX: 'ELIBMAX',
ELIBSCN: 'ELIBSCN',
ELIBEXEC: 'ELIBEXEC',
ELNRANGE: 'ELNRANGE',
ELOOP: 'ELOOP',
EMEDIUMTYPE: 'EMEDIUMTYPE',
EMFILE: 'EMFILE',
EMLINK: 'EMLINK',
EMSGSIZE: 'EMSGSIZE',
EMULTIHOP: 'EMULTIHOP',
ENAMETOOLONG: 'ENAMETOOLONG',
ENETDOWN: 'ENETDOWN',
ENETRESET: 'ENETRESET',
ENETUNREACH: 'ENETUNREACH',
ENFILE: 'ENFILE',
ENOANO: 'ENOANO',
ENOBUFS: 'ENOBUFS',
ENODATA: 'ENODATA',
ENODEV: 'ENODEV',
ENOENT: 'ENOENT',
ENOEXEC: 'ENOEXEC',
ENOKEY: 'ENOKEY',
ENOLCK: 'ENOLCK',
ENOLINK: 'ENOLINK',
ENOMEDIUM: 'ENOMEDIUM',
ENOMEM: 'ENOMEM',
ENOMSG: 'ENOMSG',
ENONET: 'ENONET',
ENOPKG: 'ENOPKG',
ENOPROTOOPT: 'ENOPROTOOPT',
ENOSPC: 'ENOSPC',
ENOSR: 'ENOSR',
ENOSTR: 'ENOSTR',
ENOSYS: 'ENOSYS',
ENOTBLK: 'ENOTBLK',
ENOTCONN: 'ENOTCONN',
ENOTDIR: 'ENOTDIR',
ENOTEMPTY: 'ENOTEMPTY',
ENOTRECOVERABLE: 'ENOTRECOVERABLE',
ENOTSOCK: 'ENOTSOCK',
ENOTSUP: 'ENOTSUP',
ENOTTY: 'ENOTTY',
ENOTUNIQ: 'ENOTUNIQ',
ENXIO: 'ENXIO',
EOPNOTSUPP: 'EOPNOTSUPP',
EOVERFLOW: 'EOVERFLOW',
EOWNERDEAD: 'EOWNERDEAD',
EPERM: 'EPERM',
EPFNOSUPPORT: 'EPFNOSUPPORT',
EPIPE: 'EPIPE',
EPROTO: 'EPROTO',
EPROTONOSUPPORT: 'EPROTONOSUPPORT',
EPROTOTYPE: 'EPROTOTYPE',
ERANGE: 'ERANGE',
EREMCHG: 'EREMCHG',
EREMOTE: 'EREMOTE',
EREMOTEIO: 'EREMOTEIO',
ERESTART: 'ERESTART',
ERFKILL: 'ERFKILL',
EROFS: 'EROFS',
ESHUTDOWN: 'ESHUTDOWN',
ESPIPE: 'ESPIPE',
ESOCKTNOSUPPORT: 'ESOCKTNOSUPPORT',
ESRCH: 'ESRCH',
ESTALE: 'ESTALE',
ESTRPIPE: 'ESTRPIPE',
ETIME: 'ETIME',
ETIMEDOUT: 'ETIMEDOUT',
ETOOMANYREFS: 'ETOOMANYREFS',
ETXTBSY: 'ETXTBSY',
EUCLEAN: 'EUCLEAN',
EUNATCH: 'EUNATCH',
EUSERS: 'EUSERS',
EWOULDBLOCK: 'EWOULDBLOCK',
EXDEV: 'EXDEV',
EXFULL: 'EXFULL',
};
var descriptions = (_a = {},
_a[exports.CODES.E2BIG] = 'Argument list too long',
_a[exports.CODES.ECCES] = 'Permission denied',
_a[exports.CODES.EADDRINUSE] = 'Address already in use',
_a[exports.CODES.EADDRNOTAVAIL] = 'Address not available',
_a[exports.CODES.EAFNOSUPPORT] = 'Address family not supported',
_a[exports.CODES.EAGAIN] = 'Resource temporarily unavailable',
_a[exports.CODES.EALREADY] = 'Connection already in progress',
_a[exports.CODES.EBADE] = 'Invalid exchange',
_a[exports.CODES.EBADF] = 'Bad file descriptor',
_a[exports.CODES.EBADFD] = 'File descriptor in bad state',
_a[exports.CODES.EBADMSG] = 'Bad message',
_a[exports.CODES.EBADR] = 'Invalid request descriptor',
_a[exports.CODES.EBADRQC] = 'Invalid request code',
_a[exports.CODES.EBADSLT] = 'Invalid slot',
_a[exports.CODES.EBUSY] = 'Device or resource busy',
_a[exports.CODES.ECANCELED] = 'Operation canceled',
_a[exports.CODES.ECHILD] = 'No child processes',
_a[exports.CODES.ECHRNG] = 'Channel number out of range',
_a[exports.CODES.ECOMM] = 'Communication error on send',
_a[exports.CODES.ECONNABORTED] = 'Connection aborted',
_a[exports.CODES.ECONNREFUSED] = 'Connection refused',
_a[exports.CODES.ECONNRESET] = 'Connection reset',
_a[exports.CODES.EDEADLK] = 'Resource deadlock avoided',
_a[exports.CODES.EDEADLOCK] = 'Resource deadlock avoided or File locking deadlock error',
_a[exports.CODES.EDESTADDRREQ] = 'Destination address required',
_a[exports.CODES.EDOM] = 'Mathematics argument out of domain of function',
_a[exports.CODES.EDQUOT] = 'Disk quota exceeded',
_a[exports.CODES.EEXIST] = 'File exists',
_a[exports.CODES.EFAULT] = 'Bad address',
_a[exports.CODES.EFBIG] = 'File too large',
_a[exports.CODES.EHOSTDOWN] = 'Host is down',
_a[exports.CODES.EHOSTUNREACH] = 'Host is unreachable',
_a[exports.CODES.EHWPOISON] = 'Memory page has hardware error',
_a[exports.CODES.EIDRM] = 'Identifier removed',
_a[exports.CODES.EILSEQ] = 'Invalid or incomplete multibyte or wide character',
_a[exports.CODES.EINPROGRESS] = 'Operation in progress',
_a[exports.CODES.EINTR] = 'Interrupted function call',
_a[exports.CODES.EINVAL] = 'Invalid argument',
_a[exports.CODES.EIO] = 'Input/output error',
_a[exports.CODES.EISCONN] = 'Socket is connected',
_a[exports.CODES.EISDIR] = 'Is a directory',
_a[exports.CODES.EISNAM] = 'Is a named type file',
_a[exports.CODES.EKEYEXPIRED] = 'Key has expired',
_a[exports.CODES.EKEYREJECTED] = 'Key was rejected by service',
_a[exports.CODES.EKEYREVOKED] = 'Key has been revoked',
_a[exports.CODES.EL2HLT] = 'Level 2 halted',
_a[exports.CODES.EL2NSYNC] = 'Level 2 not synchronized',
_a[exports.CODES.EL3HLT] = 'Level 3 halted',
_a[exports.CODES.EL3RST] = 'Level 3 reset',
_a[exports.CODES.ELIBACC] = 'Cannot access a needed shared library',
_a[exports.CODES.ELIBBAD] = 'Accessing a corrupted shared library',
_a[exports.CODES.ELIBMAX] = 'Attempting to link in too many shared libraries',
_a[exports.CODES.ELIBSCN] = '.lib section in a.out corrupted',
_a[exports.CODES.ELIBEXEC] = 'Cannot exec a shared library directly',
_a[exports.CODES.ELNRANGE] = 'Link number out of range',
_a[exports.CODES.ELOOP] = 'Too many levels of symbolic links',
_a[exports.CODES.EMEDIUMTYPE] = 'Wrong medium type',
_a[exports.CODES.EMFILE] = 'Too many open files',
_a[exports.CODES.EMLINK] = 'Too many links',
_a[exports.CODES.EMSGSIZE] = 'Message too long',
_a[exports.CODES.EMULTIHOP] = 'Multihop attempted',
_a[exports.CODES.ENAMETOOLONG] = 'Filename too long',
_a[exports.CODES.ENETDOWN] = 'Network is down',
_a[exports.CODES.ENETRESET] = 'Connection aborted by network',
_a[exports.CODES.ENETUNREACH] = 'Network unreachable',
_a[exports.CODES.ENFILE] = 'Too many open files in system',
_a[exports.CODES.ENOANO] = 'No anode',
_a[exports.CODES.ENOBUFS] = 'No buffer space available',
_a[exports.CODES.ENODATA] = 'No message is available on the STREAM head read queue',
_a[exports.CODES.ENODEV] = 'No such device',
_a[exports.CODES.ENOENT] = 'No such file or directory',
_a[exports.CODES.ENOEXEC] = 'Exec format error',
_a[exports.CODES.ENOKEY] = 'Required key not available',
_a[exports.CODES.ENOLCK] = 'No locks available',
_a[exports.CODES.ENOLINK] = 'Link has been severed',
_a[exports.CODES.ENOMEDIUM] = 'No medium found',
_a[exports.CODES.ENOMEM] = 'Not enough space/cannot allocate memory',
_a[exports.CODES.ENOMSG] = 'No message of the desired type',
_a[exports.CODES.ENONET] = 'Machine is not on the network',
_a[exports.CODES.ENOPKG] = 'Package not installed',
_a[exports.CODES.ENOPROTOOPT] = 'Protocol not available',
_a[exports.CODES.ENOSPC] = 'No space left on device',
_a[exports.CODES.ENOSR] = 'No STREAM resources',
_a[exports.CODES.ENOSTR] = 'Not a STREAM',
_a[exports.CODES.ENOSYS] = 'Function not implemented',
_a[exports.CODES.ENOTBLK] = 'Block device required',
_a[exports.CODES.ENOTCONN] = 'The socket is not connected',
_a[exports.CODES.ENOTDIR] = 'Not a directory',
_a[exports.CODES.ENOTEMPTY] = 'Directory not empty',
_a[exports.CODES.ENOTRECOVERABLE] = 'State not recoverable',
_a[exports.CODES.ENOTSOCK] = 'Not a socket',
_a[exports.CODES.ENOTSUP] = 'Operation not supported',
_a[exports.CODES.ENOTTY] = 'Inappropriate I/O control operation',
_a[exports.CODES.ENOTUNIQ] = 'Name not unique on network',
_a[exports.CODES.ENXIO] = 'No such device or address',
_a[exports.CODES.EOPNOTSUPP] = 'Operation not supported on socket',
_a[exports.CODES.EOVERFLOW] = 'Value too large to be stored in data type',
_a[exports.CODES.EOWNERDEAD] = 'Owner died',
_a[exports.CODES.EPERM] = 'Operation not permitted',
_a[exports.CODES.EPFNOSUPPORT] = 'Protocol family not supported',
_a[exports.CODES.EPIPE] = 'Broken pipe',
_a[exports.CODES.EPROTO] = 'Protocol error',
_a[exports.CODES.EPROTONOSUPPORT] = 'Protocol not supported',
_a[exports.CODES.EPROTOTYPE] = 'Protocol wrong type for socket',
_a[exports.CODES.ERANGE] = 'Result too large',
_a[exports.CODES.EREMCHG] = 'Remote address changed',
_a[exports.CODES.EREMOTE] = 'Object is remote',
_a[exports.CODES.EREMOTEIO] = 'Remote I/O error',
_a[exports.CODES.ERESTART] = 'Interrupted system call should be restarted',
_a[exports.CODES.ERFKILL] = 'Operation not possible due to RF-kill',
_a[exports.CODES.EROFS] = 'Read-only filesystem',
_a[exports.CODES.ESHUTDOWN] = 'Cannot send after transport endpoint shutdown',
_a[exports.CODES.ESPIPE] = 'Invalid seek',
_a[exports.CODES.ESOCKTNOSUPPORT] = 'Socket type not supported',
_a[exports.CODES.ESRCH] = 'No such process',
_a[exports.CODES.ESTALE] = 'Stale file handle',
_a[exports.CODES.ESTRPIPE] = 'Streams pipe error',
_a[exports.CODES.ETIME] = 'Timer expired',
_a[exports.CODES.ETIMEDOUT] = 'Connection timed out',
_a[exports.CODES.ETOOMANYREFS] = 'Too many references: cannot splice',
_a[exports.CODES.ETXTBSY] = 'Text file busy',
_a[exports.CODES.EUCLEAN] = 'Structure needs cleaning',
_a[exports.CODES.EUNATCH] = 'Protocol driver not attached',
_a[exports.CODES.EUSERS] = 'Too many users',
_a[exports.CODES.EWOULDBLOCK] = 'Operation would block',
_a[exports.CODES.EXDEV] = 'Improper link',
_a[exports.CODES.EXFULL] = 'Exchange full',
_a);
function getDescription(code) {
return descriptions[code];
}
exports.getDescription = getDescription;
//# sourceMappingURL=index.js.map