1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
#include <ansidecl.h>
#include <stddef.h>
#if 0
#include <errno.h>
#endif
CONST char *CONST _sys_errlist[] = {
"Unknown error", /* 0 */
"Operation not permitted", /* EPERM */
"No such file or directory", /* ENOENT */
"No such process", /* ESRCH */
"Interrupted system call", /* EINTR */
"I/O error", /* EIO */
"No such device or address", /* ENXIO */
"Arg list too long", /* E2BIG */
"Exec format error", /* ENOEXEC */
"Bad file number", /* EBADF */
"No child processes", /* ECHILD */
"Try again", /* EAGAIN */
"Out of memory", /* ENOMEM */
"Permission denied", /* EACCES */
"Bad address", /* EFAULT */
"Block device required", /* ENOTBLK */
"Device or resource busy", /* EBUSY */
"File exists", /* EEXIST */
"Cross-device link", /* EXDEV */
"No such device", /* ENODEV */
"Not a directory", /* ENOTDIR */
"Is a directory", /* EISDIR */
"Invalid argument", /* EINVAL */
"File table overflow", /* ENFILE */
"Too many open files", /* EMFILE */
"Not a typewriter", /* ENOTTY */
"Text file busy", /* ETXTBSY */
"File too large", /* EFBIG */
"No space left on device", /* ENOSPC */
"Illegal seek", /* ESPIPE */
"Read-only file system", /* EROFS */
"Too many links", /* EMLINK */
"Broken pipe", /* EPIPE */
"Math argument out of domain of func", /* EDOM */
"Math result not representable", /* ERANGE */
"Operation would block", /* EWOULDBLOCK */
"Operation now in progress", /* EINPROGRESS */
"Operation already in progress", /* EALREADY */
"Socket operation on non-socket", /* ENOTSOCK */
"Destination address required", /* EDESTADDRREQ */
"Message too long", /* EMSGSIZE */
"Protocol wrong type for socket", /* EPROTOTYPE */
"Protocol not available", /* ENOPROTOOPT */
"Protocol not supported", /* EPROTONOSUPPORT */
"Socket type not supported", /* ESOCKTNOSUPPORT */
"Operation not supported on transport endpoint", /* EOPNOTSUPP */
"Protocol family not supported", /* EPFNOSUPPORT */
"Address family not supported by protocol", /* EAFNOSUPPORT */
"Address already in use", /* EADDRINUSE */
"Cannot assign requested address", /* EADDRNOTAVAIL */
"Network is down", /* ENETDOWN */
"Network is unreachable", /* ENETUNREACH */
"Network dropped connection because of reset", /* ENETRESET */
"Software caused connection abort", /* ECONNABORTED */
"Connection reset by peer", /* ECONNRESET */
"No buffer space available", /* ENOBUFS */
"Transport endpoint is already connected", /* EISCONN */
"Transport endpoint is not connected", /* ENOTCONN */
"Cannot send after transport endpoint shutdown", /* ESHUTDOWN */
"Too many references: cannot splice", /* ETOOMANYREFS */
"Connection timed out", /* ETIMEDOUT */
"Connection refused", /* ECONNREFUSED */
"Too many symbolic links encountered", /* ELOOP */
"File name too long", /* ENAMETOOLONG */
"Host is down", /* EHOSTDOWN */
"No route to host", /* EHOSTUNREACH */
"Directory not empty", /* ENOTEMPTY */
"Too many processes", /* EPROCLIM: SunOS */
"Too many users", /* EUSERS */
"Quota exceeded", /* EDQUOT */
"Stale NFS file handle", /* ESTALE */
"Object is remote", /* EREMOTE */
"Device not a stream", /* ENOSTR */
"Timer expired", /* ETIME */
"Out of streams resources", /* ENOSR */
"No message of desired type", /* ENOMSG */
"Not a data message", /* EBADMSG */
"Identifier removed", /* EIDRM */
"Resource deadlock would occur", /* EDEADLK */
"No record locks available", /* ENOLCK */
/* RFS */
"Machine is not on the network", /* ENONET */
"Object is remote", /* SunOS only: ERREMOTE */
"Link has been severed", /* ENOLINK */
"Advertise error", /* EADV */
"Srmount error", /* ESRMNT */
"Communication error on send", /* ECOMM */
"Protocol error", /* EPROTO */
"Multihop attempted", /* EMULTIHOP */
"RFS specific error", /* EDOTDOT */
"Remote address changed", /* EREMCHG */
"Function not implemented", /* ENOSYS */
"Streams pipe error", /* ESTRPIPE */
"Value too large for defined data type", /* EOVERFLOW */
"File descriptor in bad state", /* EBADFD */
"Channel number out of range", /* ECHRNG */
"Level 2 not synchronized", /* EL2NSYNC */
"Level 3 halted", /* EL3HLT */
"Level 3 reset", /* EL3RST */
"Link number out of range", /* ELNRNG */
"Protocol driver not attached", /* EUNATCH */
"No CSI structure available", /* ENOCSI */
"Level 2 halted", /* EL2HLT */
"Invalid exchange", /* EBADE */
"Invalid request descriptor", /* EBADR */
"Exchange full", /* EXFULL */
"No anode", /* ENOANO */
"Invalid request code", /* EBADRQC */
"Invalid slot", /* EBADSLT */
"File locking deadlock error", /* EDEADLOCK */
"Bad font file format", /* EBFONT */
"Cannot exec a shared library directly", /* ELIBEXEC */
"No data available", /* ENODATA */
"Accessing a corrupted shared library", /* ELIBBAD */
"Package not installed", /* ENOPKG */
"Can not access a needed shared library", /* ELIBACC */
"Name not unique on network", /* ENOTUNIQ */
"Interrupted system call should be restarted", /* ERESTART */
"Structure needs cleaning", /* EUCLEAN */
"Not a XENIX named type file", /* ENOTNAM */
"No XENIX semaphores available", /* ENAVAIL */
"Is a named type file", /* EISNAM */
"Remote I/O error", /* EREMOTEIO */
"Illegal byte sequence", /* EILSEQ */
"Attempting to link in too many shared libraries", /* ELIBMAX */
".lib section in a.out corrupted", /* ELIBSCN */
NULL
};
#define NR_ERRORS ((sizeof (_sys_errlist))/(sizeof(char *))-1)
CONST int _sys_nerr = NR_ERRORS;
#include <gnu-stabs.h>
#ifdef weak_alias
weak_alias (_sys_errlist, sys_errlist);
weak_alias (_sys_nerr, sys_nerr);
#endif
|