Update errno values. Add new values; remove obsolete values

This commit is contained in:
Gregory Nutt
2017-03-26 09:22:00 -06:00
parent 92da8068ed
commit bacc4e9b93
2 changed files with 213 additions and 192 deletions
+130 -117
View File
@@ -156,7 +156,7 @@
#define ENOMEM_STR "Out of memory" #define ENOMEM_STR "Out of memory"
#define EACCES 13 #define EACCES 13
#define EACCES_STR "Permission denied" #define EACCES_STR "Permission denied"
#define EFAULT 14 #define EFAULT 14 /* Linux errno extension */
#define EFAULT_STR "Bad address" #define EFAULT_STR "Bad address"
#define ENOTBLK 15 #define ENOTBLK 15
#define ENOTBLK_STR "Block device required" #define ENOTBLK_STR "Block device required"
@@ -198,53 +198,48 @@
#define EDOM_STR "Math argument out of domain of func" #define EDOM_STR "Math argument out of domain of func"
#define ERANGE 34 #define ERANGE 34
#define ERANGE_STR "Math result not representable" #define ERANGE_STR "Math result not representable"
#define EDEADLK 35 #define ENOMSG 35
#define EDEADLOCK EDEADLK
#define EDEADLK_STR "Resource deadlock would occur"
#define ENAMETOOLONG 36
#define ENAMETOOLONG_STR "File name too long"
#define ENOLCK 37
#define ENOLCK_STR "No record locks available"
#define ENOSYS 38
#define ENOSYS_STR "Function not implemented"
#define ENOTEMPTY 39
#define ENOTEMPTY_STR "Directory not empty"
#define ELOOP 40
#define ELOOP_STR "Too many symbolic links encountered"
#define ENOMSG 42
#define ENOMSG_STR "No message of desired type" #define ENOMSG_STR "No message of desired type"
#define EIDRM 43 #define EIDRM 36
#define EIDRM_STR "Identifier removed" #define EIDRM_STR "Identifier removed"
#define ECHRNG 44 #define ECHRNG 37 /* Linux errno extension */
#define ECHRNG_STR "Channel number out of range" #define ECHRNG_STR "Channel number out of range"
#define EL2NSYNC 45 #define EL2NSYNC 38 /* Linux errno extension */
#define EL2NSYNC_STR "Level 2 not synchronized" #define EL2NSYNC_STR "Level 2 not synchronized"
#define EL3HLT 46 #define EL3HLT 39 /* Linux errno extension */
#define EL3HLT_STR "Level 3 halted" #define EL3HLT_STR "Level 3 halted"
#define EL3RST 47 #define EL3RST 40 /* Linux errno extension */
#define EL3RST_STR "Level 3 reset" #define EL3RST_STR "Level 3 reset"
#define ELNRNG 48 #define ELNRNG 41 /* Linux errno extension */
#define ELNRNG_STR "Link number out of range" #define ELNRNG_STR "Link number out of range"
#define EUNATCH 49 #define EUNATCH 42 /* Linux errno extension */
#define EUNATCH_STR "Protocol driver not attached" #define EUNATCH_STR "Protocol driver not attached"
#define ENOCSI 50 #define ENOCSI 43 /* Linux errno extension */
#define ENOCSI_STR "No CSI structure available" #define ENOCSI_STR "No CSI structure available"
#define EL2HLT 51 #define EL2HLT 44 /* Linux errno extension */
#define EL2HLT_STR "Level 2 halted" #define EL2HLT_STR "Level 2 halted"
#define EBADE 52 #define EDEADLK 45
#define EDEADLK_STR "Resource deadlock would occur"
#define ENOLCK 46
#define ENOLCK_STR "No record locks available"
#define EBADE 50 /* Linux errno extension */
#define EBADE_STR "Invalid exchange" #define EBADE_STR "Invalid exchange"
#define EBADR 53 #define EBADR 51 /* Linux errno extension */
#define EBADR_STR "Invalid request descriptor" #define EBADR_STR "Invalid request descriptor"
#define EXFULL 54 #define EXFULL 52 /* Linux errno extension */
#define EXFULL_STR "Exchange full" #define EXFULL_STR "Exchange full"
#define ENOANO 55 #define ENOANO 53 /* Linux errno extension */
#define ENOANO_STR "No anode" #define ENOANO_STR "No anode"
#define EBADRQC 56 #define EBADRQC 54 /* Linux errno extension */
#define EBADRQC_STR "Invalid request code" #define EBADRQC_STR "Invalid request code"
#define EBADSLT 57 #define EBADSLT 55 /* Linux errno extension */
#define EBADSLT_STR "Invalid slot" #define EBADSLT_STR "Invalid slot"
#define EBFONT 59 #define EDEADLOCK 56 /* Linux errno extension */
#define EDEADLOCK_STR "File locking deadlock error"
#define EBFONT 57 /* Linux errno extension */
#define EBFONT_STR "Bad font file format" #define EBFONT_STR "Bad font file format"
#define ENOSTR 60 #define ENOSTR 60
#define ENOSTR_STR "Device not a stream" #define ENOSTR_STR "Device not a stream"
#define ENODATA 61 #define ENODATA 61
@@ -253,130 +248,148 @@
#define ETIME_STR "Timer expired" #define ETIME_STR "Timer expired"
#define ENOSR 63 #define ENOSR 63
#define ENOSR_STR "Out of streams resources" #define ENOSR_STR "Out of streams resources"
#define ENONET 64 #define ENONET 64 /* Linux errno extension */
#define ENONET_STR "Machine is not on the network" #define ENONET_STR "Machine is not on the network"
#define ENOPKG 65 #define ENOPKG 65 /* Linux errno extension */
#define ENOPKG_STR "Package not installed" #define ENOPKG_STR "Package not installed"
#define EREMOTE 66 #define EREMOTE 66 /* Linux errno extension */
#define EREMOTE_STR "Object is remote" #define EREMOTE_STR "Object is remote"
#define ENOLINK 67 #define ENOLINK 67
#define ENOLINK_STR "Link has been severed" #define ENOLINK_STR "Link has been severed"
#define EADV 68 #define EADV 68 /* Linux errno extension */
#define EADV_STR "Advertise error" #define EADV_STR "Advertise error"
#define ESRMNT 69 #define ESRMNT 69 /* Linux errno extension */
#define ESRMNT_STR "Srmount error" #define ESRMNT_STR "Srmount error"
#define ECOMM 70 #define ECOMM 70 /* Linux errno extension */
#define ECOMM_STR "Communication error on send" #define ECOMM_STR "Communication error on send"
#define EPROTO 71 #define EPROTO 71
#define EPROTO_STR "Protocol error" #define EPROTO_STR "Protocol error"
#define EMULTIHOP 72
#define EMULTIHOP 74
#define EMULTIHOP_STR "Multihop attempted" #define EMULTIHOP_STR "Multihop attempted"
#define EDOTDOT 73 #define ELBIN 75 /* Linux errno extension */
#define ELBIN_STR "Inode is remote"
#define EDOTDOT 76 /* Linux errno extension */
#define EDOTDOT_STR "RFS specific error" #define EDOTDOT_STR "RFS specific error"
#define EBADMSG 74 #define EBADMSG 77
#define EBADMSG_STR "Not a data message" #define EBADMSG_STR "Not a data message"
#define EOVERFLOW 75
#define EOVERFLOW_STR "Value too large for defined data type" #define EFTYPE 79
#define ENOTUNIQ 76 #define EFTYPE_STR "Inappropriate file type or format"
#define ENOTUNIQ 80 /* Linux errno extension */
#define ENOTUNIQ_STR "Name not unique on network" #define ENOTUNIQ_STR "Name not unique on network"
#define EBADFD 77 #define EBADFD 81 /* Linux errno extension */
#define EBADFD_STR "File descriptor in bad state" #define EBADFD_STR "File descriptor in bad state"
#define EREMCHG 78 #define EREMCHG 82 /* Linux errno extension */
#define EREMCHG_STR "Remote address changed" #define EREMCHG_STR "Remote address changed"
#define ELIBACC 79 #define ELIBACC 83 /* Linux errno extension */
#define ELIBACC_STR "Can not access a needed shared library" #define ELIBACC_STR "Can not access a needed shared library"
#define ELIBBAD 80 #define ELIBBAD 84 /* Linux errno extension */
#define ELIBBAD_STR "Accessing a corrupted shared library" #define ELIBBAD_STR "Accessing a corrupted shared library"
#define ELIBSCN 81 #define ELIBSCN 85 /* Linux errno extension */
#define ELIBSCN_STR ".lib section in a.out corrupted" #define ELIBSCN_STR ".lib section in a.out corrupted"
#define ELIBMAX 82 #define ELIBMAX 86 /* Linux errno extension */
#define ELIBMAX_STR "Attempting to link in too many shared libraries" #define ELIBMAX_STR "Attempting to link in too many shared libraries"
#define ELIBEXEC 83 #define ELIBEXEC 87 /* Linux errno extension */
#define ELIBEXEC_STR "Cannot exec a shared library directly" #define ELIBEXEC_STR "Cannot exec a shared library directly"
#define EILSEQ 84 #define ENOSYS 88
#define EILSEQ_STR "Illegal byte sequence" #define ENOSYS_STR "Function not implemented"
#define ERESTART 85 #define ENMFILE 89 /* Cygwin */
#define ERESTART_STR "Interrupted system call should be restarted" #define ENMFILE_STR "No more files"
#define ESTRPIPE 86 #define ENOTEMPTY 90
#define ESTRPIPE_STR "Streams pipe error" #define ENOTEMPTY_STR "Directory not empty"
#define EUSERS 87 #define ENAMETOOLONG 91
#define EUSERS_STR "Too many users" #define ENAMETOOLONG_STR "File name too long"
#define ENOTSOCK 88 #define ELOOP 92
#define ENOTSOCK_STR "Socket operation on non-socket" #define ELOOP_STR "Too many symbolic links encountered"
#define EDESTADDRREQ 89
#define EDESTADDRREQ_STR "Destination address required"
#define EMSGSIZE 90
#define EMSGSIZE_STR "Message too long"
#define EPROTOTYPE 91
#define EPROTOTYPE_STR "Protocol wrong type for socket"
#define ENOPROTOOPT 92
#define ENOPROTOOPT_STR "Protocol not available"
#define EPROTONOSUPPORT 93
#define EPROTONOSUPPORT_STR "Protocol not supported"
#define ESOCKTNOSUPPORT 94
#define ESOCKTNOSUPPORT_STR "Socket type not supported"
#define EOPNOTSUPP 95 #define EOPNOTSUPP 95
#define EOPNOTSUPP_STR "Operation not supported on transport endpoint" #define EOPNOTSUPP_STR "Operation not supported on transport endpoint"
#define EPFNOSUPPORT 96 #define EPFNOSUPPORT 96
#define EPFNOSUPPORT_STR "Protocol family not supported" #define EPFNOSUPPORT_STR "Protocol family not supported"
#define EAFNOSUPPORT 97
#define EAFNOSUPPORT_STR "Address family not supported by protocol"
#define EADDRINUSE 98
#define EADDRINUSE_STR "Address already in use"
#define EADDRNOTAVAIL 99
#define EADDRNOTAVAIL_STR "Cannot assign requested address"
#define ENETDOWN 100
#define ENETDOWN_STR "Network is down"
#define ENETUNREACH 101
#define ENETUNREACH_STR "Network is unreachable"
#define ENETRESET 102
#define ENETRESET_STR "Network dropped connection because of reset"
#define ECONNABORTED 103
#define ECONNABORTED_STR "Software caused connection abort"
#define ECONNRESET 104 #define ECONNRESET 104
#define ECONNRESET_STR "Connection reset by peer" #define ECONNRESET_STR "Connection reset by peer"
#define ENOBUFS 105 #define ENOBUFS 105
#define ENOBUFS_STR "No buffer space available" #define ENOBUFS_STR "No buffer space available"
#define EISCONN 106 #define EAFNOSUPPORT 106
#define EISCONN_STR "Transport endpoint is already connected" #define EAFNOSUPPORT_STR "Address family not supported by protocol"
#define ENOTCONN 107 #define EPROTOTYPE 107
#define ENOTCONN_STR "Transport endpoint is not connected" #define EPROTOTYPE_STR "Protocol wrong type for socket"
#define ESHUTDOWN 108 #define ENOTSOCK 108
#define ENOTSOCK_STR "Socket operation on non-socket"
#define ENOPROTOOPT 109
#define ENOPROTOOPT_STR "Protocol not available"
#define ESHUTDOWN 110 /* Linux errno extension */
#define ESHUTDOWN_STR "Cannot send after transport endpoint shutdown" #define ESHUTDOWN_STR "Cannot send after transport endpoint shutdown"
#define ETOOMANYREFS 109
#define ETOOMANYREFS_STR "Too many references: cannot splice"
#define ETIMEDOUT 110
#define ETIMEDOUT_STR "Connection timed out"
#define ECONNREFUSED 111 #define ECONNREFUSED 111
#define ECONNREFUSED_STR "Connection refused" #define ECONNREFUSED_STR "Connection refused"
#define EHOSTDOWN 112 #define EADDRINUSE 112
#define EADDRINUSE_STR "Address already in use"
#define ECONNABORTED 113
#define ECONNABORTED_STR "Software caused connection abort"
#define ENETUNREACH 114
#define ENETUNREACH_STR "Network is unreachable"
#define ENETDOWN 115
#define ENETDOWN_STR "Network is down"
#define ETIMEDOUT 116
#define ETIMEDOUT_STR "Connection timed out"
#define EHOSTDOWN 117
#define EHOSTDOWN_STR "Host is down" #define EHOSTDOWN_STR "Host is down"
#define EHOSTUNREACH 113 #define EHOSTUNREACH 118
#define EHOSTUNREACH_STR "No route to host" #define EHOSTUNREACH_STR "No route to host"
#define EALREADY 114 #define EINPROGRESS 119
#define EALREADY_STR "Operation already in progress"
#define EINPROGRESS 115
#define EINPROGRESS_STR "Operation now in progress" #define EINPROGRESS_STR "Operation now in progress"
#define ESTALE 116 #define EALREADY 120
#define ESTALE_STR "Stale NFS file handle" #define EALREADY_STR "Socket already connected"
#define EUCLEAN 117 #define EDESTADDRREQ 121
#define EUCLEAN_STR "Structure needs cleaning" #define EDESTADDRREQ_STR "Destination address required"
#define ENOTNAM 118 #define EMSGSIZE 122
#define ENOTNAM_STR "Not a XENIX named type file" #define EMSGSIZE_STR "Message too long"
#define ENAVAIL 119 #define EPROTONOSUPPORT 123
#define ENAVAIL_STR "No XENIX semaphores available" #define EPROTONOSUPPORT_STR "Protocol not supported"
#define EISNAM 120 #define ESOCKTNOSUPPORT 124 /* Linux errno extension */
#define EISNAM_STR "Is a named type file" #define ESOCKTNOSUPPORT_STR "Socket type not supported"
#define EREMOTEIO 121 #define EADDRNOTAVAIL 125
#define EREMOTEIO_STR "Remote I/O error" #define EADDRNOTAVAIL_STR "Cannot assign requested address"
#define EDQUOT 122 #define ENETRESET 126
#define ENETRESET_STR "Network dropped connection because of reset"
#define EISCONN 127
#define EISCONN_STR "Transport endpoint is already connected"
#define ENOTCONN 128
#define ENOTCONN_STR "Transport endpoint is not connected"
#define ETOOMANYREFS 129
#define ETOOMANYREFS_STR "Too many references: cannot splice"
#define EPROCLIM 130
#define EPROCLIM_STR "Limit would be exceeded by attempted fork"
#define EUSERS 131
#define EUSERS_STR "Too many users"
#define EDQUOT 132
#define EDQUOT_STR "Quota exceeded" #define EDQUOT_STR "Quota exceeded"
#define ENOMEDIUM 123 #define ESTALE 133
#define ESTALE_STR "Stale NFS file handle"
#define ENOTSUP 134
#define ENOTSUP_STR "Not supported"
#define ENOMEDIUM 135 /* Linux errno extension */
#define ENOMEDIUM_STR "No medium found" #define ENOMEDIUM_STR "No medium found"
#define EMEDIUMTYPE 124 #define ENOSHARE 136 /* Cygwin */
#define EMEDIUMTYPE_STR "Wrong medium type" #define ENOSHARE_STR "No such host or network path"
#define ECANCELED 125 #define ECASECLASH 137 /* Cygwin */
#define ECASECLASH_STR "Filename exists with different case"
#define EILSEQ 138
#define EILSEQ_STR "Illegal byte sequence"
#define EOVERFLOW 139
#define EOVERFLOW_STR "Value too large for defined data type"
#define ECANCELED 140
#define ECANCELED_STR "Operation cancelled" #define ECANCELED_STR "Operation cancelled"
#define ENOTRECOVERABLE 141
#define ENOTRECOVERABLE_STR "State not recoverable"
#define EOWNERDEAD 142
#define EOWNERDEAD_STR "Previous owner died"
#define ESTRPIPE 143 /* Linux errno extension */
#define ESTRPIPE_STR "Streams pipe error"
#define __ELASTERROR 2000 /* Users can add values starting here */
/**************************************************************************** /****************************************************************************
* Public Type Definitions * Public Type Definitions
+83 -75
View File
@@ -110,12 +110,6 @@ static const struct errno_strmap_s g_errnomap[] =
{ EPIPE, EPIPE_STR }, { EPIPE, EPIPE_STR },
{ EDOM, EDOM_STR }, { EDOM, EDOM_STR },
{ ERANGE, ERANGE_STR }, { ERANGE, ERANGE_STR },
{ EDEADLK, EDEADLK_STR },
{ ENAMETOOLONG, ENAMETOOLONG_STR },
{ ENOLCK, ENOLCK_STR },
{ ENOSYS, ENOSYS_STR },
{ ENOTEMPTY, ENOTEMPTY_STR },
{ ELOOP, ELOOP_STR },
{ ENOMSG, ENOMSG_STR }, { ENOMSG, ENOMSG_STR },
{ EIDRM, EIDRM_STR }, { EIDRM, EIDRM_STR },
{ ECHRNG, ECHRNG_STR }, { ECHRNG, ECHRNG_STR },
@@ -126,12 +120,15 @@ static const struct errno_strmap_s g_errnomap[] =
{ EUNATCH, EUNATCH_STR }, { EUNATCH, EUNATCH_STR },
{ ENOCSI, ENOCSI_STR }, { ENOCSI, ENOCSI_STR },
{ EL2HLT, EL2HLT_STR }, { EL2HLT, EL2HLT_STR },
{ EDEADLK, EDEADLK_STR },
{ ENOLCK, ENOLCK_STR },
{ EBADE, EBADE_STR }, { EBADE, EBADE_STR },
{ EBADR, EBADR_STR }, { EBADR, EBADR_STR },
{ EXFULL, EXFULL_STR }, { EXFULL, EXFULL_STR },
{ ENOANO, ENOANO_STR }, { ENOANO, ENOANO_STR },
{ EBADRQC, EBADRQC_STR }, { EBADRQC, EBADRQC_STR },
{ EBADSLT, EBADSLT_STR }, { EBADSLT, EBADSLT_STR },
{ EDEADLOCK, EDEADLOCK_STR },
{ EBFONT, EBFONT_STR }, { EBFONT, EBFONT_STR },
{ ENOSTR, ENOSTR_STR }, { ENOSTR, ENOSTR_STR },
{ ENODATA, ENODATA_STR }, { ENODATA, ENODATA_STR },
@@ -146,9 +143,10 @@ static const struct errno_strmap_s g_errnomap[] =
{ ECOMM, ECOMM_STR }, { ECOMM, ECOMM_STR },
{ EPROTO, EPROTO_STR }, { EPROTO, EPROTO_STR },
{ EMULTIHOP, EMULTIHOP_STR }, { EMULTIHOP, EMULTIHOP_STR },
{ ELBIN, ELBIN_STR },
{ EDOTDOT, EDOTDOT_STR }, { EDOTDOT, EDOTDOT_STR },
{ EBADMSG, EBADMSG_STR }, { EBADMSG, EBADMSG_STR },
{ EOVERFLOW, EOVERFLOW_STR }, { EFTYPE, EFTYPE_STR },
{ ENOTUNIQ, ENOTUNIQ_STR }, { ENOTUNIQ, ENOTUNIQ_STR },
{ EBADFD, EBADFD_STR }, { EBADFD, EBADFD_STR },
{ EREMCHG, EREMCHG_STR }, { EREMCHG, EREMCHG_STR },
@@ -157,47 +155,53 @@ static const struct errno_strmap_s g_errnomap[] =
{ ELIBSCN, ELIBSCN_STR }, { ELIBSCN, ELIBSCN_STR },
{ ELIBMAX, ELIBMAX_STR }, { ELIBMAX, ELIBMAX_STR },
{ ELIBEXEC, ELIBEXEC_STR }, { ELIBEXEC, ELIBEXEC_STR },
{ EILSEQ, EILSEQ_STR }, { ENOSYS, ENOSYS_STR },
{ ERESTART, ERESTART_STR }, { ENMFILE, ENMFILE_STR },
{ ESTRPIPE, ESTRPIPE_STR }, { ENOTEMPTY, ENOTEMPTY_STR },
{ EUSERS, EUSERS_STR }, { ENAMETOOLONG, ENAMETOOLONG_STR },
{ ENOTSOCK, ENOTSOCK_STR }, { ELOOP, ELOOP_STR },
{ EDESTADDRREQ, EDESTADDRREQ_STR },
{ EMSGSIZE, EMSGSIZE_STR },
{ EPROTOTYPE, EPROTOTYPE_STR },
{ ENOPROTOOPT, ENOPROTOOPT_STR },
{ EPROTONOSUPPORT, EPROTONOSUPPORT_STR },
{ ESOCKTNOSUPPORT, ESOCKTNOSUPPORT_STR },
{ EOPNOTSUPP, EOPNOTSUPP_STR }, { EOPNOTSUPP, EOPNOTSUPP_STR },
{ EPFNOSUPPORT, EPFNOSUPPORT_STR }, { EPFNOSUPPORT, EPFNOSUPPORT_STR },
{ EAFNOSUPPORT, EAFNOSUPPORT_STR },
{ EADDRINUSE, EADDRINUSE_STR },
{ EADDRNOTAVAIL, EADDRNOTAVAIL_STR },
{ ENETDOWN, ENETDOWN_STR },
{ ENETUNREACH, ENETUNREACH_STR },
{ ENETRESET, ENETRESET_STR },
{ ECONNABORTED, ECONNABORTED_STR },
{ ECONNRESET, ECONNRESET_STR }, { ECONNRESET, ECONNRESET_STR },
{ ENOBUFS, ENOBUFS_STR }, { ENOBUFS, ENOBUFS_STR },
{ EISCONN, EISCONN_STR }, { EAFNOSUPPORT, EAFNOSUPPORT_STR },
{ ENOTCONN, ENOTCONN_STR }, { EPROTOTYPE, EPROTOTYPE_STR },
{ ENOTSOCK, ENOTSOCK_STR },
{ ENOPROTOOPT, ENOPROTOOPT_STR },
{ ESHUTDOWN, ESHUTDOWN_STR }, { ESHUTDOWN, ESHUTDOWN_STR },
{ ETOOMANYREFS, ETOOMANYREFS_STR },
{ ETIMEDOUT, ETIMEDOUT_STR },
{ ECONNREFUSED, ECONNREFUSED_STR }, { ECONNREFUSED, ECONNREFUSED_STR },
{ EADDRINUSE, EADDRINUSE_STR },
{ ECONNABORTED, ECONNABORTED_STR },
{ ENETUNREACH, ENETUNREACH_STR },
{ ENETDOWN, ENETDOWN_STR },
{ ETIMEDOUT, ETIMEDOUT_STR },
{ EHOSTDOWN, EHOSTDOWN_STR }, { EHOSTDOWN, EHOSTDOWN_STR },
{ EHOSTUNREACH, EHOSTUNREACH_STR }, { EHOSTUNREACH, EHOSTUNREACH_STR },
{ EALREADY, EALREADY_STR },
{ EINPROGRESS, EINPROGRESS_STR }, { EINPROGRESS, EINPROGRESS_STR },
{ ESTALE, ESTALE_STR }, { EALREADY, EALREADY_STR },
{ EUCLEAN, EUCLEAN_STR }, { EDESTADDRREQ, EDESTADDRREQ_STR },
{ ENOTNAM, ENOTNAM_STR }, { EMSGSIZE, EMSGSIZE_STR },
{ ENAVAIL, ENAVAIL_STR }, { EPROTONOSUPPORT, EPROTONOSUPPORT_STR },
{ EISNAM, EISNAM_STR }, { ESOCKTNOSUPPORT, ESOCKTNOSUPPORT_STR },
{ EREMOTEIO, EREMOTEIO_STR }, { EADDRNOTAVAIL, EADDRNOTAVAIL_STR },
{ ENETRESET, ENETRESET_STR },
{ EISCONN, EISCONN_STR },
{ ENOTCONN, ENOTCONN_STR },
{ ETOOMANYREFS, ETOOMANYREFS_STR },
{ EPROCLIM, EPROCLIM_STR },
{ EUSERS, EUSERS_STR },
{ EDQUOT, EDQUOT_STR }, { EDQUOT, EDQUOT_STR },
{ ESTALE, ESTALE_STR },
{ ENOTSUP, ENOTSUP_STR },
{ ENOMEDIUM, ENOMEDIUM_STR }, { ENOMEDIUM, ENOMEDIUM_STR },
{ EMEDIUMTYPE, EMEDIUMTYPE_STR } { ENOSHARE, ENOSHARE_STR },
{ ECASECLASH, ECASECLASH_STR },
{ EILSEQ, EILSEQ_STR },
{ EOVERFLOW, EOVERFLOW_STR },
{ ECANCELED, ECANCELED_STR },
{ ENOTRECOVERABLE, ENOTRECOVERABLE_STR },
{ EOWNERDEAD, EOWNERDEAD_STR },
{ ESTRPIPE, ESTRPIPE_STR }
}; };
#else /* CONFIG_LIBC_STRERROR_SHORT */ #else /* CONFIG_LIBC_STRERROR_SHORT */
@@ -238,28 +242,25 @@ static const struct errno_strmap_s g_errnomap[] =
{ EPIPE, "EPIPE" }, { EPIPE, "EPIPE" },
{ EDOM, "EDOM" }, { EDOM, "EDOM" },
{ ERANGE, "ERANGE" }, { ERANGE, "ERANGE" },
{ EDEADLK, "EDEADLK" },
{ ENAMETOOLONG, "ENAMETOOLONG" },
{ ENOLCK, "ENOLCK" },
{ ENOSYS, "ENOSYS" },
{ ENOTEMPTY, "ENOTEMPTY" },
{ ELOOP, "ELOOP" },
{ ENOMSG, "ENOMSG" }, { ENOMSG, "ENOMSG" },
{ EIDRM, "EIDRM" }, { EIDRM, "EIDRM" },
{ ECHRNG, "ECHRNG" }, { ECHRNG, "ECHRNG" },
{ EL2NSYNC, "EL2NSYNC" }, { EL2NSYNC, "EL2NSYNC" },
{ EL3HLT, "EL3HLT" }, { EL3HLT, "EL3HLT" },
{ EL3RST, "EL3RST" }, { EL3RST, "EL3RST" },
{ EL3RST, "EL3RST" }, { ELNRNG, "ELNRNG" },
{ EUNATCH, "EUNATCH" }, { EUNATCH, "EUNATCH" },
{ ENOCSI, "ENOCSI" }, { ENOCSI, "ENOCSI" },
{ EL2HLT, "EL2HLT" }, { EL2HLT, "EL2HLT" },
{ EDEADLK, "EDEADLK" },
{ ENOLCK, "ENOLCK" },
{ EBADE, "EBADE" }, { EBADE, "EBADE" },
{ EBADR, "EBADR" }, { EBADR, "EBADR" },
{ EXFULL, "EXFULL" }, { EXFULL, "EXFULL" },
{ ENOANO, "ENOANO" }, { ENOANO, "ENOANO" },
{ EBADRQC, "EBADRQC" }, { EBADRQC, "EBADRQC" },
{ EBADSLT, "EBADSLT" }, { EBADSLT, "EBADSLT" },
{ EDEADLOCK, "EDEADLOCK" },
{ EBFONT, "EBFONT" }, { EBFONT, "EBFONT" },
{ ENOSTR, "ENOSTR" }, { ENOSTR, "ENOSTR" },
{ ENODATA, "ENODATA" }, { ENODATA, "ENODATA" },
@@ -274,9 +275,10 @@ static const struct errno_strmap_s g_errnomap[] =
{ ECOMM, "ECOMM" }, { ECOMM, "ECOMM" },
{ EPROTO, "EPROTO" }, { EPROTO, "EPROTO" },
{ EMULTIHOP, "EMULTIHOP" }, { EMULTIHOP, "EMULTIHOP" },
{ ELBIN, "ELBIN" },
{ EDOTDOT, "EDOTDOT" }, { EDOTDOT, "EDOTDOT" },
{ EBADMSG, "EBADMSG" }, { EBADMSG, "EBADMSG" },
{ EOVERFLOW, "EOVERFLOW" }, { EFTYPE, "EFTYPE" },
{ ENOTUNIQ, "ENOTUNIQ" }, { ENOTUNIQ, "ENOTUNIQ" },
{ EBADFD, "EBADFD" }, { EBADFD, "EBADFD" },
{ EREMCHG, "EREMCHG" }, { EREMCHG, "EREMCHG" },
@@ -285,47 +287,53 @@ static const struct errno_strmap_s g_errnomap[] =
{ ELIBSCN, "ELIBSCN" }, { ELIBSCN, "ELIBSCN" },
{ ELIBMAX, "ELIBMAX" }, { ELIBMAX, "ELIBMAX" },
{ ELIBEXEC, "ELIBEXEC" }, { ELIBEXEC, "ELIBEXEC" },
{ EILSEQ, "EILSEQ" }, { ENOSYS, "ENOSYS" },
{ ERESTART, "ERESTART" }, { ENMFILE, "ENMFILE" },
{ ESTRPIPE, "ESTRPIPE" }, { ENOTEMPTY, "ENOTEMPTY" },
{ EUSERS, "EUSERS" }, { ENAMETOOLONG, "ENAMETOOLONG" },
{ ENOTSOCK, "ENOTSOCK" }, { ELOOP, "ELOOP" },
{ EDESTADDRREQ, "EDESTADDRREQ" },
{ EMSGSIZE, "EMSGSIZE" },
{ EPROTOTYPE, "EPROTOTYPE" },
{ ENOPROTOOPT, "ENOPROTOOPT" },
{ EPROTONOSUPPORT, "EPROTONOSUPPORT" },
{ ESOCKTNOSUPPORT, "ESOCKTNOSUPPORT" },
{ EOPNOTSUPP, "EOPNOTSUPP" }, { EOPNOTSUPP, "EOPNOTSUPP" },
{ EPFNOSUPPORT, "EPFNOSUPPORT" }, { EPFNOSUPPORT, "EPFNOSUPPORT" },
{ EAFNOSUPPORT, "EAFNOSUPPORT" },
{ EADDRINUSE, "EADDRINUSE" },
{ EADDRNOTAVAIL, "EADDRNOTAVAIL" },
{ ENETDOWN, "ENETDOWN" },
{ ENETUNREACH, "ENETUNREACH" },
{ ENETRESET, "ENETRESET" },
{ ECONNABORTED, "ECONNABORTED" },
{ ECONNRESET, "ECONNRESET" }, { ECONNRESET, "ECONNRESET" },
{ ENOBUFS, "ENOBUFS" }, { ENOBUFS, "ENOBUFS" },
{ EISCONN, "EISCONN" }, { EAFNOSUPPORT, "EAFNOSUPPORT" },
{ ENOTCONN, "ENOTCONN" }, { EPROTOTYPE, "EPROTOTYPE" },
{ ENOTSOCK, "ENOTSOCK" },
{ ENOPROTOOPT, "ENOPROTOOPT" },
{ ESHUTDOWN, "ESHUTDOWN" }, { ESHUTDOWN, "ESHUTDOWN" },
{ ETOOMANYREFS, "ETOOMANYREFS" },
{ ETIMEDOUT, "ETIMEDOUT" },
{ ECONNREFUSED, "ECONNREFUSED" }, { ECONNREFUSED, "ECONNREFUSED" },
{ EADDRINUSE, "EADDRINUSE" },
{ ECONNABORTED, "ECONNABORTED" },
{ ENETUNREACH, "ENETUNREACH" },
{ ENETDOWN, "ENETDOWN" },
{ ETIMEDOUT, "ETIMEDOUT" },
{ EHOSTDOWN, "EHOSTDOWN" }, { EHOSTDOWN, "EHOSTDOWN" },
{ EHOSTUNREACH, "EHOSTUNREACH" }, { EHOSTUNREACH, "EHOSTUNREACH" },
{ EALREADY, "EALREADY" },
{ EINPROGRESS, "EINPROGRESS" }, { EINPROGRESS, "EINPROGRESS" },
{ ESTALE, "ESTALE" }, { EALREADY, "EALREADY" },
{ EUCLEAN, "EUCLEAN" }, { EDESTADDRREQ, "EDESTADDRREQ" },
{ ENOTNAM, "ENOTNAM" }, { EMSGSIZE, "EMSGSIZE" },
{ ENAVAIL, "ENAVAIL" }, { EPROTONOSUPPORT, "EPROTONOSUPPORT" },
{ EISNAM, "EISNAM" }, { ESOCKTNOSUPPORT, "ESOCKTNOSUPPORT" },
{ EREMOTEIO, "EREMOTEIO" }, { EADDRNOTAVAIL, "EADDRNOTAVAIL" },
{ ENETRESET, "ENETRESET" },
{ EISCONN, "EISCONN" },
{ ENOTCONN, "ENOTCONN" },
{ ETOOMANYREFS, "ETOOMANYREFS" },
{ EPROCLIM, "EPROCLIM" },
{ EUSERS, "EUSERS" },
{ EDQUOT, "EDQUOT" }, { EDQUOT, "EDQUOT" },
{ ESTALE, "ESTALE" },
{ ENOTSUP, "ENOTSUP" },
{ ENOMEDIUM, "ENOMEDIUM" }, { ENOMEDIUM, "ENOMEDIUM" },
{ EMEDIUMTYPE, "EMEDIUMTYPE" } { ENOSHARE, "ENOSHARE" },
{ ECASECLASH, "ECASECLASH" },
{ EILSEQ, "EILSEQ" },
{ EOVERFLOW, "EOVERFLOW" },
{ ECANCELED, "ECANCELED" },
{ ENOTRECOVERABLE, "ENOTRECOVERABLE" },
{ EOWNERDEAD, "EOWNERDEAD" },
{ ESTRPIPE, "ESTRPIPE" }
}; };
#endif /* CONFIG_LIBC_STRERROR_SHORT */ #endif /* CONFIG_LIBC_STRERROR_SHORT */