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.
This commit is contained in:
Jeff Johnston 2000-12-04 18:01:50 +00:00
parent 191bacb0be
commit 7713fb6f1b
3 changed files with 136 additions and 20 deletions

View File

@ -1,3 +1,8 @@
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.
2000-11-30 Jeff Johnston <jjohnstn@redhat.com> 2000-11-30 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/sh/syscalls.c (_link): New stub. * libc/sys/sh/syscalls.c (_link): New stub.

View File

@ -107,35 +107,35 @@ extern __IMPORT int _sys_nerr;
#define EPFNOSUPPORT 96 /* Protocol family not supported */ #define EPFNOSUPPORT 96 /* Protocol family not supported */
#define ECONNRESET 104 /* Connection reset by peer */ #define ECONNRESET 104 /* Connection reset by peer */
#define ENOBUFS 105 /* No buffer space available */ #define ENOBUFS 105 /* No buffer space available */
#define EAFNOSUPPORT 106 #define EAFNOSUPPORT 106 /* Address family not supported by protocol family */
#define EPROTOTYPE 107 #define EPROTOTYPE 107 /* Protocol wrong type for socket */
#define ENOTSOCK 108 #define ENOTSOCK 108 /* Socket operation on non-socket */
#define ENOPROTOOPT 109 #define ENOPROTOOPT 109 /* Protocol not available */
#define ESHUTDOWN 110 #define ESHUTDOWN 110 /* Can't send after socket shutdown */
#define ECONNREFUSED 111 /* Connection refused */ #define ECONNREFUSED 111 /* Connection refused */
#define EADDRINUSE 112 /* Address already in use */ #define EADDRINUSE 112 /* Address already in use */
#define ECONNABORTED 113 /* Connection aborted */ #define ECONNABORTED 113 /* Connection aborted */
#define ENETUNREACH 114 #define ENETUNREACH 114 /* Network is unreachable */
#define ENETDOWN 115 #define ENETDOWN 115 /* Network interface is not configured */
#define ETIMEDOUT 116 #define ETIMEDOUT 116 /* Connection timed out */
#define EHOSTDOWN 117 #define EHOSTDOWN 117 /* Host is down */
#define EHOSTUNREACH 118 #define EHOSTUNREACH 118 /* Host is unreachable */
#define EINPROGRESS 119 #define EINPROGRESS 119 /* Connection already in progress */
#define EALREADY 120 #define EALREADY 120 /* Socket already connected */
#define EDESTADDRREQ 121 #define EDESTADDRREQ 121 /* Destination address required */
#define EMSGSIZE 122 #define EMSGSIZE 122 /* Message too long */
#define EPROTONOSUPPORT 123 #define EPROTONOSUPPORT 123 /* Unknown protocol */
#define ESOCKTNOSUPPORT 124 #define ESOCKTNOSUPPORT 124 /* Socket type not supported */
#define EADDRNOTAVAIL 125 #define EADDRNOTAVAIL 125 /* Address not available */
#define ENETRESET 126 #define ENETRESET 126
#define EISCONN 127 #define EISCONN 127 /* Socket is already connected */
#define ENOTCONN 128 #define ENOTCONN 128 /* Socket is not connected */
#define ETOOMANYREFS 129 #define ETOOMANYREFS 129
#define EPROCLIM 130 #define EPROCLIM 130
#define EUSERS 131 #define EUSERS 131
#define EDQUOT 132 #define EDQUOT 132
#define ESTALE 133 #define ESTALE 133
#define ENOTSUP 134 #define ENOTSUP 134 /* Not supported */
#define ENOMEDIUM 135 /* No medium (in tape drive) */ #define ENOMEDIUM 135 /* No medium (in tape drive) */
#define ENOSHARE 136 /* No such host or network path */ #define ENOSHARE 136 /* No such host or network path */

View File

@ -37,12 +37,21 @@ Arg list too long
o EACCES o EACCES
Permission denied Permission denied
o EADDRINUSE
Address already in use
o EADV o EADV
Advertise error Advertise error
o EAFNOSUPPORT
Address family not supported by protocol family
o EAGAIN o EAGAIN
No more processes No more processes
o EALREADY
Socket already connected
o EBADF o EBADF
Bad file number Bad file number
@ -58,9 +67,18 @@ No children
o ECOMM o ECOMM
Communication error Communication error
o ECONNABORTED
Software caused connection abort
o ECONNREFUSED
Connection refused
o EDEADLK o EDEADLK
Deadlock Deadlock
o EDESTADDRREQ
Destination address required
o EEXIST o EEXIST
File exists File exists
@ -73,9 +91,18 @@ Bad address
o EFBIG o EFBIG
File too large File too large
o EHOSTDOWN
Host is down
o EHOSTUNREACH
Host is unreachable
o EIDRM o EIDRM
Identifier removed Identifier removed
o EINPROGRESS
Connection already in progress
o EINTR o EINTR
Interrupted system call Interrupted system call
@ -85,6 +112,9 @@ Invalid argument
o EIO o EIO
I/O error I/O error
o EISCONN
Socket is already connected
o EISDIR o EISDIR
Is a directory Is a directory
@ -109,12 +139,21 @@ Too many open files
o EMLINK o EMLINK
Too many links Too many links
o EMSGSIZE
Message too long
o EMULTIHOP o EMULTIHOP
Multihop attempted Multihop attempted
o ENAMETOOLONG o ENAMETOOLONG
File or path name too long File or path name too long
o ENETDOWN
Network interface not configured
o ENETUNREACH
Network is unreachable
o ENFILE o ENFILE
Too many open files in system Too many open files in system
@ -145,6 +184,9 @@ Machine is not on the network
o ENOPKG o ENOPKG
No package No package
o ENOPROTOOPT
Protocol not available
o ENOSPC o ENOSPC
No space left on device No space left on device
@ -160,12 +202,21 @@ Function not implemented
o ENOTBLK o ENOTBLK
Block device required Block device required
o ENOTCONN
Socket is not connected
o ENOTDIR o ENOTDIR
Not a directory Not a directory
o ENOTEMPTY o ENOTEMPTY
Directory not empty Directory not empty
o ENOTSOCK
Socket operation on non-socket
o ENOTSUP
Not supported
o ENOTTY o ENOTTY
Not a character device Not a character device
@ -181,6 +232,12 @@ Broken pipe
o EPROTO o EPROTO
Protocol error Protocol error
o EPROTOTYPE
Protocol wrong type for socket
o EPROTONOSUPPORT
Unknown protocol
o ERANGE o ERANGE
Result too large Result too large
@ -190,6 +247,12 @@ Resource is remote
o EROFS o EROFS
Read-only file system Read-only file system
o ESHUTDOWN
Can't send after socket shutdown
o ESOCKTNOSUPPORT
Socket type not supported
o ESPIPE o ESPIPE
Illegal seek Illegal seek
@ -202,6 +265,9 @@ Srmount error
o ETIME o ETIME
Stream ioctl timeout Stream ioctl timeout
o ETIMEDOUT
Connection timed out
o ETXTBSY o ETXTBSY
Text file busy Text file busy
@ -295,6 +361,11 @@ _DEFUN (strerror, (errnum),
error = "Exec format error"; error = "Exec format error";
break; break;
#endif #endif
#ifdef EALREADY
case EALREADY:
error = "Socket already connected";
break;
#endif
#ifdef EBADF #ifdef EBADF
case EBADF: case EBADF:
error = "Bad file number"; error = "Bad file number";
@ -305,6 +376,11 @@ _DEFUN (strerror, (errnum),
error = "No children"; error = "No children";
break; break;
#endif #endif
#ifdef EDESTADDRREQ
case EDESTADDRREQ:
error = "Destination address required";
break;
#endif
#ifdef EAGAIN #ifdef EAGAIN
case EAGAIN: case EAGAIN:
error = "No more processes"; error = "No more processes";
@ -355,6 +431,16 @@ _DEFUN (strerror, (errnum),
error = "Not a directory"; error = "Not a directory";
break; break;
#endif #endif
#ifdef EHOSTDOWN
case EHOSTDOWN:
error = "Host is down";
break;
#endif
#ifdef EINPROGRESS
case EINPROGRESS:
error = "Connection already in progress";
break;
#endif
#ifdef EISDIR #ifdef EISDIR
case EISDIR: case EISDIR:
error = "Is a directory"; error = "Is a directory";
@ -365,6 +451,11 @@ _DEFUN (strerror, (errnum),
error = "Invalid argument"; error = "Invalid argument";
break; break;
#endif #endif
#ifdef ENETDOWN
case ENETDOWN:
error = "Network interface is not configured";
break;
#endif
#ifdef ENFILE #ifdef ENFILE
case ENFILE: case ENFILE:
error = "Too many open files in system"; error = "Too many open files in system";
@ -390,11 +481,21 @@ _DEFUN (strerror, (errnum),
error = "File too large"; error = "File too large";
break; break;
#endif #endif
#ifdef EHOSTUNREACH
case EHOSTUNREACH:
error = "Host is unreachable";
break;
#endif
#ifdef ENOSPC #ifdef ENOSPC
case ENOSPC: case ENOSPC:
error = "No space left on device"; error = "No space left on device";
break; break;
#endif #endif
#ifdef ENOTSUP
case ENOTSUP:
error = "Not supported";
break;
#endif
#ifdef ESPIPE #ifdef ESPIPE
case ESPIPE: case ESPIPE:
error = "Illegal seek"; error = "Illegal seek";
@ -440,6 +541,11 @@ _DEFUN (strerror, (errnum),
error = "Deadlock"; error = "Deadlock";
break; break;
#endif #endif
#ifdef ENETUNREACH
case ENETUNREACH:
error = "Network is unreachable";
break;
#endif
#ifdef ENOLCK #ifdef ENOLCK
case ENOLCK: case ENOLCK:
error = "No lock"; error = "No lock";
@ -500,6 +606,11 @@ _DEFUN (strerror, (errnum),
error = "Protocol error"; error = "Protocol error";
break; break;
#endif #endif
#ifdef EPROTONOSUPPORT
case EPROTONOSUPPORT:
error = "Unknown protocol";
break;
#endif
#ifdef EMULTIHOP #ifdef EMULTIHOP
case EMULTIHOP: case EMULTIHOP:
error = "Multihop attempted"; error = "Multihop attempted";