Fix up strerror strings

This commit is contained in:
K. Lange 2018-10-08 10:22:48 +09:00
parent 9dd4dda951
commit 3e14c62bdc

View File

@ -2,31 +2,31 @@
#include <errno.h>
static char * _error_strings[256] = {
[EPERM] = "Not super-user",
[EPERM] = "Operation not permitted",
[ENOENT] = "No such file or directory",
[ESRCH] = "No such process",
[EINTR] = "Interrupted system call",
[EIO] = "I/O error",
[EIO] = "Input/Output error",
[ENXIO] = "No such device or address",
[E2BIG] = "Arg list too long",
[E2BIG] = "Argument list too long",
[ENOEXEC] = "Exec format error",
[EBADF] = "Bad file number",
[ECHILD] = "No children",
[EAGAIN] = "No more processes",
[ENOMEM] = "Not enough core",
[EBADF] = "Bad file descriptor",
[ECHILD] = "No child processes",
[EAGAIN] = "Resource temporarily unavailable",
[ENOMEM] = "Cannot allocate memory",
[EACCES] = "Permission denied",
[EFAULT] = "Bad address",
[ENOTBLK] = "Block device required",
[EBUSY] = "Mount device busy",
[EBUSY] = "Device or resource busy",
[EEXIST] = "File exists",
[EXDEV] = "Cross-device link",
[EXDEV] = "Invalid cross-device link",
[ENODEV] = "No such device",
[ENOTDIR] = "Not a directory",
[EISDIR] = "Is a directory",
[EINVAL] = "Invalid argument",
[ENFILE] = "Too many open files in system",
[EMFILE] = "Too many open files",
[ENOTTY] = "Not a typewriter",
[ENOTTY] = "Inappropriate ioctl for device",
[ETXTBSY] = "Text file busy",
[EFBIG] = "File too large",
[ENOSPC] = "No space left on device",
@ -55,9 +55,9 @@ static char * _error_strings[256] = {
[EBADRQC] = "Invalid request code",
[EBADSLT] = "Invalid slot",
[EDEADLOCK] = "File locking deadlock error",
[EBFONT] = "Bad font file fmt",
[EBFONT] = "Bad font file format",
[ENOSTR] = "Device not a stream",
[ENODATA] = "No data (for no delay io)",
[ENODATA] = "No data available",
[ETIME] = "Timer expired",
[ENOSR] = "Out of streams resources",
[ENONET] = "Machine is not on the network",
@ -69,17 +69,17 @@ static char * _error_strings[256] = {
[ECOMM] = "Communication error on send",
[EPROTO] = "Protocol error",
[EMULTIHOP] = "Multihop attempted",
[ELBIN] = "Inode is remote (not really error)",
[EDOTDOT] = "Cross mount point (not really error)",
[EBADMSG] = "Trying to read unreadable message",
[ELBIN] = "Inode is remote",
[EDOTDOT] = "Cross mount point",
[EBADMSG] = "Bad message",
[EFTYPE] = "Inappropriate file type or format",
[ENOTUNIQ] = "Given log. name not unique",
[EBADFD] = "f.d. invalid for this operation",
[ENOTUNIQ] = "Name not unique",
[EBADFD] = "File descriptor in bad state",
[EREMCHG] = "Remote address changed",
[ELIBACC] = "Can't access a needed shared lib",
[ELIBBAD] = "Accessing a corrupted shared lib",
[ELIBACC] = "Can not access a needed shared library",
[ELIBBAD] = "Accessing a corrupted shared library",
[ELIBSCN] = ".lib section in a.out corrupted",
[ELIBMAX] = "Attempting to link in too many libs",
[ELIBMAX] = "Attempting to link in too many libraries",
[ELIBEXEC] = "Attempting to exec a shared library",
[ENOSYS] = "Function not implemented",
[ENOTEMPTY] = "Directory not empty",
@ -101,7 +101,7 @@ static char * _error_strings[256] = {
[ENETDOWN] = "Network interface is not configured",
[ETIMEDOUT] = "Connection timed out",
[EHOSTDOWN] = "Host is down",
[EHOSTUNREACH] = "Host is unreachable",
[EHOSTUNREACH] = "No route to host",
[EINPROGRESS] = "Connection already in progress",
[EALREADY] = "Socket already connected",
[EDESTADDRREQ] = "Destination address required",
@ -111,7 +111,7 @@ static char * _error_strings[256] = {
[EADDRNOTAVAIL] = "Address not available",
[EISCONN] = "Socket is already connected",
[ENOTCONN] = "Socket is not connected",
[ENOTSUP] = "Not supported",
[ENOTSUP] = "Operation not supported",
[EOVERFLOW] = "Value too large for defined data type",
[ECANCELED] = "Operation canceled",
[ENOTRECOVERABLE] = "State not recoverable",