Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | /* This file is sorted such that 'errors' which represent exceptional |
| 2 | * conditions under which a correct program may fail come first, followed |
| 3 | * by messages that indicate an incorrect program or system failure. The |
| 4 | * macro E() along with double-inclusion is used to ensure that ordering |
| 5 | * of the strings remains synchronized. */ |
| 6 | |
| 7 | E(EILSEQ, "Illegal byte sequence") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 8 | E(EDOM, "Domain error") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 9 | E(ERANGE, "Result not representable") |
| 10 | |
| 11 | E(ENOTTY, "Not a tty") |
| 12 | E(EACCES, "Permission denied") |
| 13 | E(EPERM, "Operation not permitted") |
| 14 | E(ENOENT, "No such file or directory") |
| 15 | E(ESRCH, "No such process") |
| 16 | E(EEXIST, "File exists") |
| 17 | |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 18 | E(EOVERFLOW, "Value too large for data type") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 19 | E(ENOSPC, "No space left on device") |
| 20 | E(ENOMEM, "Out of memory") |
| 21 | |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 22 | E(EBUSY, "Resource busy") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 23 | E(EINTR, "Interrupted system call") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 24 | E(EAGAIN, "Resource temporarily unavailable") |
| 25 | E(ESPIPE, "Invalid seek") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 26 | |
| 27 | E(EXDEV, "Cross-device link") |
| 28 | E(EROFS, "Read-only file system") |
| 29 | E(ENOTEMPTY, "Directory not empty") |
| 30 | |
| 31 | E(ECONNRESET, "Connection reset by peer") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 32 | E(ETIMEDOUT, "Operation timed out") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 33 | E(ECONNREFUSED, "Connection refused") |
| 34 | E(EHOSTDOWN, "Host is down") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 35 | E(EHOSTUNREACH, "Host is unreachable") |
| 36 | E(EADDRINUSE, "Address in use") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 37 | |
| 38 | E(EPIPE, "Broken pipe") |
| 39 | E(EIO, "I/O error") |
| 40 | E(ENXIO, "No such device or address") |
| 41 | E(ENOTBLK, "Block device required") |
| 42 | E(ENODEV, "No such device") |
| 43 | E(ENOTDIR, "Not a directory") |
| 44 | E(EISDIR, "Is a directory") |
| 45 | E(ETXTBSY, "Text file busy") |
| 46 | E(ENOEXEC, "Exec format error") |
| 47 | |
| 48 | E(EINVAL, "Invalid argument") |
| 49 | |
| 50 | E(E2BIG, "Argument list too long") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 51 | E(ELOOP, "Symbolic link loop") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 52 | E(ENAMETOOLONG, "Filename too long") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 53 | E(ENFILE, "Too many open files in system") |
| 54 | E(EMFILE, "No file descriptors available") |
| 55 | E(EBADF, "Bad file descriptor") |
| 56 | E(ECHILD, "No child process") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 57 | E(EFAULT, "Bad address") |
| 58 | E(EFBIG, "File too large") |
| 59 | E(EMLINK, "Too many links") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 60 | E(ENOLCK, "No locks available") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 61 | |
| 62 | E(EDEADLK, "Resource deadlock would occur") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 63 | E(ENOTRECOVERABLE, "State not recoverable") |
Rich Felker | b9e0830 | 2013-02-07 03:13:35 -0500 | [diff] [blame] | 64 | E(EOWNERDEAD, "Previous owner died") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 65 | E(ECANCELED, "Operation canceled") |
| 66 | E(ENOSYS, "Function not implemented") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 67 | E(ENOMSG, "No message of desired type") |
| 68 | E(EIDRM, "Identifier removed") |
| 69 | E(ENOSTR, "Device not a stream") |
| 70 | E(ENODATA, "No data available") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 71 | E(ETIME, "Device timeout") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 72 | E(ENOSR, "Out of streams resources") |
| 73 | E(ENOLINK, "Link has been severed") |
| 74 | E(EPROTO, "Protocol error") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 75 | E(EBADMSG, "Bad message") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 76 | E(EBADFD, "File descriptor in bad state") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 77 | E(ENOTSOCK, "Not a socket") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 78 | E(EDESTADDRREQ, "Destination address required") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 79 | E(EMSGSIZE, "Message too large") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 80 | E(EPROTOTYPE, "Protocol wrong type for socket") |
| 81 | E(ENOPROTOOPT, "Protocol not available") |
| 82 | E(EPROTONOSUPPORT,"Protocol not supported") |
| 83 | E(ESOCKTNOSUPPORT,"Socket type not supported") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 84 | E(ENOTSUP, "Not supported") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 85 | E(EPFNOSUPPORT, "Protocol family not supported") |
| 86 | E(EAFNOSUPPORT, "Address family not supported by protocol") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 87 | E(EADDRNOTAVAIL,"Address not available") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 88 | E(ENETDOWN, "Network is down") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 89 | E(ENETUNREACH, "Network unreachable") |
| 90 | E(ENETRESET, "Connection reset by network") |
| 91 | E(ECONNABORTED, "Connection aborted") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 92 | E(ENOBUFS, "No buffer space available") |
| 93 | E(EISCONN, "Socket is connected") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 94 | E(ENOTCONN, "Socket not connected") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 95 | E(ESHUTDOWN, "Cannot send after socket shutdown") |
| 96 | E(EALREADY, "Operation already in progress") |
Rich Felker | d75348d | 2013-02-07 03:05:54 -0500 | [diff] [blame] | 97 | E(EINPROGRESS, "Operation in progress") |
| 98 | E(ESTALE, "Stale file handle") |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 99 | E(EREMOTEIO, "Remote I/O error") |
| 100 | E(EDQUOT, "Quota exceeded") |
| 101 | E(ENOMEDIUM, "No medium found") |
| 102 | E(EMEDIUMTYPE, "Wrong medium type") |
| 103 | |
Rich Felker | 9d2a15a | 2012-04-16 18:37:53 -0400 | [diff] [blame] | 104 | E(0, "No error information") |