この間の問題でいろいろ調べていくときに Ubuntu 12.04 ( Linux Kernel 3.2.0-25-generic )のエラー番号の一覧を調べてみました。
strerror 関数で1~255まで出力した結果です。
C言語で作ってみました。 ソースはこんな感じです。
#include <string.h> #include <stdio.h> int main() { int errnum; char *p; for(errnum=0;errnum<=0xff;errnum++) { p = strerror(errnum); if( p ) { printf("%3d,0x%02X,%s\n",errnum,errnum,p); } } }
で、結果はこうなりました。
errno | errno(hex) | error desc |
---|---|---|
0 | 0x00 | Success |
1 | 0x01 | Operation not permitted |
2 | 0x02 | No such file or directory |
3 | 0x03 | No such process |
4 | 0x04 | Interrupted system call |
5 | 0x05 | Input/output error |
6 | 0x06 | No such device or address |
7 | 0x07 | Argument list too long |
8 | 0x08 | Exec format error |
9 | 0x09 | Bad file descriptor |
10 | 0x0A | No child processes |
11 | 0x0B | Resource temporarily unavailable |
12 | 0x0C | Cannot allocate memory |
13 | 0x0D | Permission denied |
14 | 0x0E | Bad address |
15 | 0x0F | Block device required |
16 | 0x10 | Device or resource busy |
17 | 0x11 | File exists |
18 | 0x12 | Invalid cross-device link |
19 | 0x13 | No such device |
20 | 0x14 | Not a directory |
21 | 0x15 | Is a directory |
22 | 0x16 | Invalid argument |
23 | 0x17 | Too many open files in system |
24 | 0x18 | Too many open files |
25 | 0x19 | Inappropriate ioctl for device |
26 | 0x1A | Text file busy |
27 | 0x1B | File too large |
28 | 0x1C | No space left on device |
29 | 0x1D | Illegal seek |
30 | 0x1E | Read-only file system |
31 | 0x1F | Too many links |
32 | 0x20 | Broken pipe |
33 | 0x21 | Numerical argument out of domain |
34 | 0x22 | Numerical result out of range |
35 | 0x23 | Resource deadlock avoided |
36 | 0x24 | File name too long |
37 | 0x25 | No locks available |
38 | 0x26 | Function not implemented |
39 | 0x27 | Directory not empty |
40 | 0x28 | Too many levels of symbolic links |
41 | 0x29 | Unknown error 41 |
42 | 0x2A | No message of desired type |
43 | 0x2B | Identifier removed |
44 | 0x2C | Channel number out of range |
45 | 0x2D | Level 2 not synchronized |
46 | 0x2E | Level 3 halted |
47 | 0x2F | Level 3 reset |
48 | 0x30 | Link number out of range |
49 | 0x31 | Protocol driver not attached |
50 | 0x32 | No CSI structure available |
51 | 0x33 | Level 2 halted |
52 | 0x34 | Invalid exchange |
53 | 0x35 | Invalid request descriptor |
54 | 0x36 | Exchange full |
55 | 0x37 | No anode |
56 | 0x38 | Invalid request code |
57 | 0x39 | Invalid slot |
58 | 0x3A | Unknown error 58 |
59 | 0x3B | Bad font file format |
60 | 0x3C | Device not a stream |
61 | 0x3D | No data available |
62 | 0x3E | Timer expired |
63 | 0x3F | Out of streams resources |
64 | 0x40 | Machine is not on the network |
65 | 0x41 | Package not installed |
66 | 0x42 | Object is remote |
67 | 0x43 | Link has been severed |
68 | 0x44 | Advertise error |
69 | 0x45 | Srmount error |
70 | 0x46 | Communication error on send |
71 | 0x47 | Protocol error |
72 | 0x48 | Multihop attempted |
73 | 0x49 | RFS specific error |
74 | 0x4A | Bad message |
75 | 0x4B | Value too large for defined data type |
76 | 0x4C | Name not unique on network |
77 | 0x4D | File descriptor in bad state |
78 | 0x4E | Remote address changed |
79 | 0x4F | Can not access a needed shared library |
80 | 0x50 | Accessing a corrupted shared library |
81 | 0x51 | .lib section in a.out corrupted |
82 | 0x52 | Attempting to link in too many shared libraries |
83 | 0x53 | Cannot exec a shared library directly |
84 | 0x54 | Invalid or incomplete multibyte or wide character |
85 | 0x55 | Interrupted system call should be restarted |
86 | 0x56 | Streams pipe error |
87 | 0x57 | Too many users |
88 | 0x58 | Socket operation on non-socket |
89 | 0x59 | Destination address required |
90 | 0x5A | Message too long |
91 | 0x5B | Protocol wrong type for socket |
92 | 0x5C | Protocol not available |
93 | 0x5D | Protocol not supported |
94 | 0x5E | Socket type not supported |
95 | 0x5F | Operation not supported |
96 | 0x60 | Protocol family not supported |
97 | 0x61 | Address family not supported by protocol |
98 | 0x62 | Address already in use |
99 | 0x63 | Cannot assign requested address |
100 | 0x64 | Network is down |
101 | 0x65 | Network is unreachable |
102 | 0x66 | Network dropped connection on reset |
103 | 0x67 | Software caused connection abort |
104 | 0x68 | Connection reset by peer |
105 | 0x69 | No buffer space available |
106 | 0x6A | Transport endpoint is already connected |
107 | 0x6B | Transport endpoint is not connected |
108 | 0x6C | Cannot send after transport endpoint shutdown |
109 | 0x6D | Too many references: cannot splice |
110 | 0x6E | Connection timed out |
111 | 0x6F | Connection refused |
112 | 0x70 | Host is down |
113 | 0x71 | No route to host |
114 | 0x72 | Operation already in progress |
115 | 0x73 | Operation now in progress |
116 | 0x74 | Stale NFS file handle |
117 | 0x75 | Structure needs cleaning |
118 | 0x76 | Not a XENIX named type file |
119 | 0x77 | No XENIX semaphores available |
120 | 0x78 | Is a named type file |
121 | 0x79 | Remote I/O error |
122 | 0x7A | Disk quota exceeded |
123 | 0x7B | No medium found |
124 | 0x7C | Wrong medium type |
125 | 0x7D | Operation canceled |
126 | 0x7E | Required key not available |
127 | 0x7F | Key has expired |
128 | 0x80 | Key has been revoked |
129 | 0x81 | Key was rejected by service |
130 | 0x82 | Owner died |
131 | 0x83 | State not recoverable |
132 | 0x84 | Operation not possible due to RF-kill |
133 | 0x85 | Unknown error 133 |
134 | 0x86 | Unknown error 134 |
135 | 0x87 | Unknown error 135 |
136 | 0x88 | Unknown error 136 |
137 | 0x89 | Unknown error 137 |
138 | 0x8A | Unknown error 138 |
139 | 0x8B | Unknown error 139 |
140 | 0x8C | Unknown error 140 |
141 | 0x8D | Unknown error 141 |
142 | 0x8E | Unknown error 142 |
143 | 0x8F | Unknown error 143 |
144 | 0x90 | Unknown error 144 |
145 | 0x91 | Unknown error 145 |
146 | 0x92 | Unknown error 146 |
147 | 0x93 | Unknown error 147 |
148 | 0x94 | Unknown error 148 |
149 | 0x95 | Unknown error 149 |
150 | 0x96 | Unknown error 150 |
151 | 0x97 | Unknown error 151 |
152 | 0x98 | Unknown error 152 |
153 | 0x99 | Unknown error 153 |
154 | 0x9A | Unknown error 154 |
155 | 0x9B | Unknown error 155 |
156 | 0x9C | Unknown error 156 |
157 | 0x9D | Unknown error 157 |
158 | 0x9E | Unknown error 158 |
159 | 0x9F | Unknown error 159 |
160 | 0xA0 | Unknown error 160 |
161 | 0xA1 | Unknown error 161 |
162 | 0xA2 | Unknown error 162 |
163 | 0xA3 | Unknown error 163 |
164 | 0xA4 | Unknown error 164 |
165 | 0xA5 | Unknown error 165 |
166 | 0xA6 | Unknown error 166 |
167 | 0xA7 | Unknown error 167 |
168 | 0xA8 | Unknown error 168 |
169 | 0xA9 | Unknown error 169 |
170 | 0xAA | Unknown error 170 |
171 | 0xAB | Unknown error 171 |
172 | 0xAC | Unknown error 172 |
173 | 0xAD | Unknown error 173 |
174 | 0xAE | Unknown error 174 |
175 | 0xAF | Unknown error 175 |
176 | 0xB0 | Unknown error 176 |
177 | 0xB1 | Unknown error 177 |
178 | 0xB2 | Unknown error 178 |
179 | 0xB3 | Unknown error 179 |
180 | 0xB4 | Unknown error 180 |
181 | 0xB5 | Unknown error 181 |
182 | 0xB6 | Unknown error 182 |
183 | 0xB7 | Unknown error 183 |
184 | 0xB8 | Unknown error 184 |
185 | 0xB9 | Unknown error 185 |
186 | 0xBA | Unknown error 186 |
187 | 0xBB | Unknown error 187 |
188 | 0xBC | Unknown error 188 |
189 | 0xBD | Unknown error 189 |
190 | 0xBE | Unknown error 190 |
191 | 0xBF | Unknown error 191 |
192 | 0xC0 | Unknown error 192 |
193 | 0xC1 | Unknown error 193 |
194 | 0xC2 | Unknown error 194 |
195 | 0xC3 | Unknown error 195 |
196 | 0xC4 | Unknown error 196 |
197 | 0xC5 | Unknown error 197 |
198 | 0xC6 | Unknown error 198 |
199 | 0xC7 | Unknown error 199 |
200 | 0xC8 | Unknown error 200 |
201 | 0xC9 | Unknown error 201 |
202 | 0xCA | Unknown error 202 |
203 | 0xCB | Unknown error 203 |
204 | 0xCC | Unknown error 204 |
205 | 0xCD | Unknown error 205 |
206 | 0xCE | Unknown error 206 |
207 | 0xCF | Unknown error 207 |
208 | 0xD0 | Unknown error 208 |
209 | 0xD1 | Unknown error 209 |
210 | 0xD2 | Unknown error 210 |
211 | 0xD3 | Unknown error 211 |
212 | 0xD4 | Unknown error 212 |
213 | 0xD5 | Unknown error 213 |
214 | 0xD6 | Unknown error 214 |
215 | 0xD7 | Unknown error 215 |
216 | 0xD8 | Unknown error 216 |
217 | 0xD9 | Unknown error 217 |
218 | 0xDA | Unknown error 218 |
219 | 0xDB | Unknown error 219 |
220 | 0xDC | Unknown error 220 |
221 | 0xDD | Unknown error 221 |
222 | 0xDE | Unknown error 222 |
223 | 0xDF | Unknown error 223 |
224 | 0xE0 | Unknown error 224 |
225 | 0xE1 | Unknown error 225 |
226 | 0xE2 | Unknown error 226 |
227 | 0xE3 | Unknown error 227 |
228 | 0xE4 | Unknown error 228 |
229 | 0xE5 | Unknown error 229 |
230 | 0xE6 | Unknown error 230 |
231 | 0xE7 | Unknown error 231 |
232 | 0xE8 | Unknown error 232 |
233 | 0xE9 | Unknown error 233 |
234 | 0xEA | Unknown error 234 |
235 | 0xEB | Unknown error 235 |
236 | 0xEC | Unknown error 236 |
237 | 0xED | Unknown error 237 |
238 | 0xEE | Unknown error 238 |
239 | 0xEF | Unknown error 239 |
240 | 0xF0 | Unknown error 240 |
241 | 0xF1 | Unknown error 241 |
242 | 0xF2 | Unknown error 242 |
243 | 0xF3 | Unknown error 243 |
244 | 0xF4 | Unknown error 244 |
245 | 0xF5 | Unknown error 245 |
246 | 0xF6 | Unknown error 246 |
247 | 0xF7 | Unknown error 247 |
248 | 0xF8 | Unknown error 248 |
249 | 0xF9 | Unknown error 249 |
250 | 0xFA | Unknown error 250 |
251 | 0xFB | Unknown error 251 |
252 | 0xFC | Unknown error 252 |
253 | 0xFD | Unknown error 253 |
254 | 0xFE | Unknown error 254 |
255 | 0xFF | Unknown error 255 |
この間から調べていた Ubuntu 12.04 server へアップグレード したときに発生した問題とかの調査で使いました。