UNPKG

nix-errno-codes

Version:

Constants enumerating POSIX/Linux errno.h error codes.

134 lines (133 loc) 2.95 kB
export declare const CODES: { E2BIG: string; ECCES: string; EADDRINUSE: string; EADDRNOTAVAIL: string; EAFNOSUPPORT: string; EAGAIN: string; EALREADY: string; EBADE: string; EBADF: string; EBADFD: string; EBADMSG: string; EBADR: string; EBADRQC: string; EBADSLT: string; EBUSY: string; ECANCELED: string; ECHILD: string; ECHRNG: string; ECOMM: string; ECONNABORTED: string; ECONNREFUSED: string; ECONNRESET: string; EDEADLK: string; EDEADLOCK: string; EDESTADDRREQ: string; EDOM: string; EDQUOT: string; EEXIST: string; EFAULT: string; EFBIG: string; EHOSTDOWN: string; EHOSTUNREACH: string; EHWPOISON: string; EIDRM: string; EILSEQ: string; EINPROGRESS: string; EINTR: string; EINVAL: string; EIO: string; EISCONN: string; EISDIR: string; EISNAM: string; EKEYEXPIRED: string; EKEYREJECTED: string; EKEYREVOKED: string; EL2HLT: string; EL2NSYNC: string; EL3HLT: string; EL3RST: string; ELIBACC: string; ELIBBAD: string; ELIBMAX: string; ELIBSCN: string; ELIBEXEC: string; ELNRANGE: string; ELOOP: string; EMEDIUMTYPE: string; EMFILE: string; EMLINK: string; EMSGSIZE: string; EMULTIHOP: string; ENAMETOOLONG: string; ENETDOWN: string; ENETRESET: string; ENETUNREACH: string; ENFILE: string; ENOANO: string; ENOBUFS: string; ENODATA: string; ENODEV: string; ENOENT: string; ENOEXEC: string; ENOKEY: string; ENOLCK: string; ENOLINK: string; ENOMEDIUM: string; ENOMEM: string; ENOMSG: string; ENONET: string; ENOPKG: string; ENOPROTOOPT: string; ENOSPC: string; ENOSR: string; ENOSTR: string; ENOSYS: string; ENOTBLK: string; ENOTCONN: string; ENOTDIR: string; ENOTEMPTY: string; ENOTRECOVERABLE: string; ENOTSOCK: string; ENOTSUP: string; ENOTTY: string; ENOTUNIQ: string; ENXIO: string; EOPNOTSUPP: string; EOVERFLOW: string; EOWNERDEAD: string; EPERM: string; EPFNOSUPPORT: string; EPIPE: string; EPROTO: string; EPROTONOSUPPORT: string; EPROTOTYPE: string; ERANGE: string; EREMCHG: string; EREMOTE: string; EREMOTEIO: string; ERESTART: string; ERFKILL: string; EROFS: string; ESHUTDOWN: string; ESPIPE: string; ESOCKTNOSUPPORT: string; ESRCH: string; ESTALE: string; ESTRPIPE: string; ETIME: string; ETIMEDOUT: string; ETOOMANYREFS: string; ETXTBSY: string; EUCLEAN: string; EUNATCH: string; EUSERS: string; EWOULDBLOCK: string; EXDEV: string; EXFULL: string; }; declare type Codes = typeof CODES; export declare type ErrNoCode = Extract<Codes[keyof Codes], string>; export declare function getDescription(code: ErrNoCode): string; export {};