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