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