diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-04 18:01:50 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-04 18:01:50 +0000 |
commit | 7713fb6f1bb9f3043150076edec0b13664f05ae1 (patch) | |
tree | 70aaaeae877c8d54ad581aeda1f0e8883ad4f657 /newlib/libc/string/strerror.c | |
parent | 191bacb0be9c3f7949c9a16935bcb521f108e609 (diff) | |
download | cygnal-7713fb6f1bb9f3043150076edec0b13664f05ae1.tar.gz cygnal-7713fb6f1bb9f3043150076edec0b13664f05ae1.tar.bz2 cygnal-7713fb6f1bb9f3043150076edec0b13664f05ae1.zip |
2000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
* libc/include/sys/errno.h: Added comments on many error numbers.
* libc/string/strerror.c: Added some more strings.
Diffstat (limited to 'newlib/libc/string/strerror.c')
-rw-r--r-- | newlib/libc/string/strerror.c | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/newlib/libc/string/strerror.c b/newlib/libc/string/strerror.c index 78336595d..209eeb9cc 100644 --- a/newlib/libc/string/strerror.c +++ b/newlib/libc/string/strerror.c @@ -37,12 +37,21 @@ Arg list too long o EACCES Permission denied +o EADDRINUSE +Address already in use + o EADV Advertise error +o EAFNOSUPPORT +Address family not supported by protocol family + o EAGAIN No more processes +o EALREADY +Socket already connected + o EBADF Bad file number @@ -58,9 +67,18 @@ No children o ECOMM Communication error +o ECONNABORTED +Software caused connection abort + +o ECONNREFUSED +Connection refused + o EDEADLK Deadlock +o EDESTADDRREQ +Destination address required + o EEXIST File exists @@ -73,9 +91,18 @@ Bad address o EFBIG File too large +o EHOSTDOWN +Host is down + +o EHOSTUNREACH +Host is unreachable + o EIDRM Identifier removed +o EINPROGRESS +Connection already in progress + o EINTR Interrupted system call @@ -85,6 +112,9 @@ Invalid argument o EIO I/O error +o EISCONN +Socket is already connected + o EISDIR Is a directory @@ -109,12 +139,21 @@ Too many open files o EMLINK Too many links +o EMSGSIZE +Message too long + o EMULTIHOP Multihop attempted o ENAMETOOLONG File or path name too long +o ENETDOWN +Network interface not configured + +o ENETUNREACH +Network is unreachable + o ENFILE Too many open files in system @@ -145,6 +184,9 @@ Machine is not on the network o ENOPKG No package +o ENOPROTOOPT +Protocol not available + o ENOSPC No space left on device @@ -160,12 +202,21 @@ Function not implemented o ENOTBLK Block device required +o ENOTCONN +Socket is not connected + o ENOTDIR Not a directory o ENOTEMPTY Directory not empty +o ENOTSOCK +Socket operation on non-socket + +o ENOTSUP +Not supported + o ENOTTY Not a character device @@ -181,6 +232,12 @@ Broken pipe o EPROTO Protocol error +o EPROTOTYPE +Protocol wrong type for socket + +o EPROTONOSUPPORT +Unknown protocol + o ERANGE Result too large @@ -190,6 +247,12 @@ Resource is remote o EROFS Read-only file system +o ESHUTDOWN +Can't send after socket shutdown + +o ESOCKTNOSUPPORT +Socket type not supported + o ESPIPE Illegal seek @@ -202,6 +265,9 @@ Srmount error o ETIME Stream ioctl timeout +o ETIMEDOUT +Connection timed out + o ETXTBSY Text file busy @@ -295,6 +361,11 @@ _DEFUN (strerror, (errnum), error = "Exec format error"; break; #endif +#ifdef EALREADY + case EALREADY: + error = "Socket already connected"; + break; +#endif #ifdef EBADF case EBADF: error = "Bad file number"; @@ -305,6 +376,11 @@ _DEFUN (strerror, (errnum), error = "No children"; break; #endif +#ifdef EDESTADDRREQ + case EDESTADDRREQ: + error = "Destination address required"; + break; +#endif #ifdef EAGAIN case EAGAIN: error = "No more processes"; @@ -355,6 +431,16 @@ _DEFUN (strerror, (errnum), error = "Not a directory"; break; #endif +#ifdef EHOSTDOWN + case EHOSTDOWN: + error = "Host is down"; + break; +#endif +#ifdef EINPROGRESS + case EINPROGRESS: + error = "Connection already in progress"; + break; +#endif #ifdef EISDIR case EISDIR: error = "Is a directory"; @@ -365,6 +451,11 @@ _DEFUN (strerror, (errnum), error = "Invalid argument"; break; #endif +#ifdef ENETDOWN + case ENETDOWN: + error = "Network interface is not configured"; + break; +#endif #ifdef ENFILE case ENFILE: error = "Too many open files in system"; @@ -390,11 +481,21 @@ _DEFUN (strerror, (errnum), error = "File too large"; break; #endif +#ifdef EHOSTUNREACH + case EHOSTUNREACH: + error = "Host is unreachable"; + break; +#endif #ifdef ENOSPC case ENOSPC: error = "No space left on device"; break; #endif +#ifdef ENOTSUP + case ENOTSUP: + error = "Not supported"; + break; +#endif #ifdef ESPIPE case ESPIPE: error = "Illegal seek"; @@ -440,6 +541,11 @@ _DEFUN (strerror, (errnum), error = "Deadlock"; break; #endif +#ifdef ENETUNREACH + case ENETUNREACH: + error = "Network is unreachable"; + break; +#endif #ifdef ENOLCK case ENOLCK: error = "No lock"; @@ -500,6 +606,11 @@ _DEFUN (strerror, (errnum), error = "Protocol error"; break; #endif +#ifdef EPROTONOSUPPORT + case EPROTONOSUPPORT: + error = "Unknown protocol"; + break; +#endif #ifdef EMULTIHOP case EMULTIHOP: error = "Multihop attempted"; |