Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 1 | :mod:`errno` --- Standard errno system symbols |
2 | ============================================== | ||||
3 | |||||
4 | .. module:: errno | ||||
5 | :synopsis: Standard errno system symbols. | ||||
6 | |||||
7 | |||||
8 | This module makes available standard ``errno`` system symbols. The value of each | ||||
9 | symbol is the corresponding integer value. The names and descriptions are | ||||
10 | borrowed from :file:`linux/include/errno.h`, which should be pretty | ||||
11 | all-inclusive. | ||||
12 | |||||
13 | |||||
14 | .. data:: errorcode | ||||
15 | |||||
16 | Dictionary providing a mapping from the errno value to the string name in the | ||||
17 | underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps to | ||||
18 | ``'EPERM'``. | ||||
19 | |||||
20 | To translate a numeric error code to an error message, use :func:`os.strerror`. | ||||
21 | |||||
22 | Of the following list, symbols that are not used on the current platform are not | ||||
23 | defined by the module. The specific list of defined symbols is available as | ||||
24 | ``errno.errorcode.keys()``. Symbols available can include: | ||||
25 | |||||
26 | |||||
27 | .. data:: EPERM | ||||
28 | |||||
29 | Operation not permitted | ||||
30 | |||||
31 | |||||
32 | .. data:: ENOENT | ||||
33 | |||||
34 | No such file or directory | ||||
35 | |||||
36 | |||||
37 | .. data:: ESRCH | ||||
38 | |||||
39 | No such process | ||||
40 | |||||
41 | |||||
42 | .. data:: EINTR | ||||
43 | |||||
Victor Stinner | f70e1ca | 2015-03-30 21:16:11 +0200 | [diff] [blame] | 44 | Interrupted system call. |
45 | |||||
46 | .. seealso:: | ||||
47 | This error is mapped to the exception :exc:`InterruptedError`. | ||||
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 48 | |
49 | |||||
50 | .. data:: EIO | ||||
51 | |||||
52 | I/O error | ||||
53 | |||||
54 | |||||
55 | .. data:: ENXIO | ||||
56 | |||||
57 | No such device or address | ||||
58 | |||||
59 | |||||
60 | .. data:: E2BIG | ||||
61 | |||||
62 | Arg list too long | ||||
63 | |||||
64 | |||||
65 | .. data:: ENOEXEC | ||||
66 | |||||
67 | Exec format error | ||||
68 | |||||
69 | |||||
70 | .. data:: EBADF | ||||
71 | |||||
72 | Bad file number | ||||
73 | |||||
74 | |||||
75 | .. data:: ECHILD | ||||
76 | |||||
77 | No child processes | ||||
78 | |||||
79 | |||||
80 | .. data:: EAGAIN | ||||
81 | |||||
82 | Try again | ||||
83 | |||||
84 | |||||
85 | .. data:: ENOMEM | ||||
86 | |||||
87 | Out of memory | ||||
88 | |||||
89 | |||||
90 | .. data:: EACCES | ||||
91 | |||||
92 | Permission denied | ||||
93 | |||||
94 | |||||
95 | .. data:: EFAULT | ||||
96 | |||||
97 | Bad address | ||||
98 | |||||
99 | |||||
100 | .. data:: ENOTBLK | ||||
101 | |||||
102 | Block device required | ||||
103 | |||||
104 | |||||
105 | .. data:: EBUSY | ||||
106 | |||||
107 | Device or resource busy | ||||
108 | |||||
109 | |||||
110 | .. data:: EEXIST | ||||
111 | |||||
112 | File exists | ||||
113 | |||||
114 | |||||
115 | .. data:: EXDEV | ||||
116 | |||||
117 | Cross-device link | ||||
118 | |||||
119 | |||||
120 | .. data:: ENODEV | ||||
121 | |||||
122 | No such device | ||||
123 | |||||
124 | |||||
125 | .. data:: ENOTDIR | ||||
126 | |||||
127 | Not a directory | ||||
128 | |||||
129 | |||||
130 | .. data:: EISDIR | ||||
131 | |||||
132 | Is a directory | ||||
133 | |||||
134 | |||||
135 | .. data:: EINVAL | ||||
136 | |||||
137 | Invalid argument | ||||
138 | |||||
139 | |||||
140 | .. data:: ENFILE | ||||
141 | |||||
142 | File table overflow | ||||
143 | |||||
144 | |||||
145 | .. data:: EMFILE | ||||
146 | |||||
147 | Too many open files | ||||
148 | |||||
149 | |||||
150 | .. data:: ENOTTY | ||||
151 | |||||
152 | Not a typewriter | ||||
153 | |||||
154 | |||||
155 | .. data:: ETXTBSY | ||||
156 | |||||
157 | Text file busy | ||||
158 | |||||
159 | |||||
160 | .. data:: EFBIG | ||||
161 | |||||
162 | File too large | ||||
163 | |||||
164 | |||||
165 | .. data:: ENOSPC | ||||
166 | |||||
167 | No space left on device | ||||
168 | |||||
169 | |||||
170 | .. data:: ESPIPE | ||||
171 | |||||
172 | Illegal seek | ||||
173 | |||||
174 | |||||
175 | .. data:: EROFS | ||||
176 | |||||
177 | Read-only file system | ||||
178 | |||||
179 | |||||
180 | .. data:: EMLINK | ||||
181 | |||||
182 | Too many links | ||||
183 | |||||
184 | |||||
185 | .. data:: EPIPE | ||||
186 | |||||
187 | Broken pipe | ||||
188 | |||||
189 | |||||
190 | .. data:: EDOM | ||||
191 | |||||
192 | Math argument out of domain of func | ||||
193 | |||||
194 | |||||
195 | .. data:: ERANGE | ||||
196 | |||||
197 | Math result not representable | ||||
198 | |||||
199 | |||||
200 | .. data:: EDEADLK | ||||
201 | |||||
202 | Resource deadlock would occur | ||||
203 | |||||
204 | |||||
205 | .. data:: ENAMETOOLONG | ||||
206 | |||||
207 | File name too long | ||||
208 | |||||
209 | |||||
210 | .. data:: ENOLCK | ||||
211 | |||||
212 | No record locks available | ||||
213 | |||||
214 | |||||
215 | .. data:: ENOSYS | ||||
216 | |||||
217 | Function not implemented | ||||
218 | |||||
219 | |||||
220 | .. data:: ENOTEMPTY | ||||
221 | |||||
222 | Directory not empty | ||||
223 | |||||
224 | |||||
225 | .. data:: ELOOP | ||||
226 | |||||
227 | Too many symbolic links encountered | ||||
228 | |||||
229 | |||||
230 | .. data:: EWOULDBLOCK | ||||
231 | |||||
232 | Operation would block | ||||
233 | |||||
234 | |||||
235 | .. data:: ENOMSG | ||||
236 | |||||
237 | No message of desired type | ||||
238 | |||||
239 | |||||
240 | .. data:: EIDRM | ||||
241 | |||||
242 | Identifier removed | ||||
243 | |||||
244 | |||||
245 | .. data:: ECHRNG | ||||
246 | |||||
247 | Channel number out of range | ||||
248 | |||||
249 | |||||
250 | .. data:: EL2NSYNC | ||||
251 | |||||
252 | Level 2 not synchronized | ||||
253 | |||||
254 | |||||
255 | .. data:: EL3HLT | ||||
256 | |||||
257 | Level 3 halted | ||||
258 | |||||
259 | |||||
260 | .. data:: EL3RST | ||||
261 | |||||
262 | Level 3 reset | ||||
263 | |||||
264 | |||||
265 | .. data:: ELNRNG | ||||
266 | |||||
267 | Link number out of range | ||||
268 | |||||
269 | |||||
270 | .. data:: EUNATCH | ||||
271 | |||||
272 | Protocol driver not attached | ||||
273 | |||||
274 | |||||
275 | .. data:: ENOCSI | ||||
276 | |||||
277 | No CSI structure available | ||||
278 | |||||
279 | |||||
280 | .. data:: EL2HLT | ||||
281 | |||||
282 | Level 2 halted | ||||
283 | |||||
284 | |||||
285 | .. data:: EBADE | ||||
286 | |||||
287 | Invalid exchange | ||||
288 | |||||
289 | |||||
290 | .. data:: EBADR | ||||
291 | |||||
292 | Invalid request descriptor | ||||
293 | |||||
294 | |||||
295 | .. data:: EXFULL | ||||
296 | |||||
297 | Exchange full | ||||
298 | |||||
299 | |||||
300 | .. data:: ENOANO | ||||
301 | |||||
302 | No anode | ||||
303 | |||||
304 | |||||
305 | .. data:: EBADRQC | ||||
306 | |||||
307 | Invalid request code | ||||
308 | |||||
309 | |||||
310 | .. data:: EBADSLT | ||||
311 | |||||
312 | Invalid slot | ||||
313 | |||||
314 | |||||
315 | .. data:: EDEADLOCK | ||||
316 | |||||
317 | File locking deadlock error | ||||
318 | |||||
319 | |||||
320 | .. data:: EBFONT | ||||
321 | |||||
322 | Bad font file format | ||||
323 | |||||
324 | |||||
325 | .. data:: ENOSTR | ||||
326 | |||||
327 | Device not a stream | ||||
328 | |||||
329 | |||||
330 | .. data:: ENODATA | ||||
331 | |||||
332 | No data available | ||||
333 | |||||
334 | |||||
335 | .. data:: ETIME | ||||
336 | |||||
337 | Timer expired | ||||
338 | |||||
339 | |||||
340 | .. data:: ENOSR | ||||
341 | |||||
342 | Out of streams resources | ||||
343 | |||||
344 | |||||
345 | .. data:: ENONET | ||||
346 | |||||
347 | Machine is not on the network | ||||
348 | |||||
349 | |||||
350 | .. data:: ENOPKG | ||||
351 | |||||
352 | Package not installed | ||||
353 | |||||
354 | |||||
355 | .. data:: EREMOTE | ||||
356 | |||||
357 | Object is remote | ||||
358 | |||||
359 | |||||
360 | .. data:: ENOLINK | ||||
361 | |||||
362 | Link has been severed | ||||
363 | |||||
364 | |||||
365 | .. data:: EADV | ||||
366 | |||||
367 | Advertise error | ||||
368 | |||||
369 | |||||
370 | .. data:: ESRMNT | ||||
371 | |||||
372 | Srmount error | ||||
373 | |||||
374 | |||||
375 | .. data:: ECOMM | ||||
376 | |||||
377 | Communication error on send | ||||
378 | |||||
379 | |||||
380 | .. data:: EPROTO | ||||
381 | |||||
382 | Protocol error | ||||
383 | |||||
384 | |||||
385 | .. data:: EMULTIHOP | ||||
386 | |||||
387 | Multihop attempted | ||||
388 | |||||
389 | |||||
390 | .. data:: EDOTDOT | ||||
391 | |||||
392 | RFS specific error | ||||
393 | |||||
394 | |||||
395 | .. data:: EBADMSG | ||||
396 | |||||
397 | Not a data message | ||||
398 | |||||
399 | |||||
400 | .. data:: EOVERFLOW | ||||
401 | |||||
402 | Value too large for defined data type | ||||
403 | |||||
404 | |||||
405 | .. data:: ENOTUNIQ | ||||
406 | |||||
407 | Name not unique on network | ||||
408 | |||||
409 | |||||
410 | .. data:: EBADFD | ||||
411 | |||||
412 | File descriptor in bad state | ||||
413 | |||||
414 | |||||
415 | .. data:: EREMCHG | ||||
416 | |||||
417 | Remote address changed | ||||
418 | |||||
419 | |||||
420 | .. data:: ELIBACC | ||||
421 | |||||
422 | Can not access a needed shared library | ||||
423 | |||||
424 | |||||
425 | .. data:: ELIBBAD | ||||
426 | |||||
427 | Accessing a corrupted shared library | ||||
428 | |||||
429 | |||||
430 | .. data:: ELIBSCN | ||||
431 | |||||
432 | .lib section in a.out corrupted | ||||
433 | |||||
434 | |||||
435 | .. data:: ELIBMAX | ||||
436 | |||||
437 | Attempting to link in too many shared libraries | ||||
438 | |||||
439 | |||||
440 | .. data:: ELIBEXEC | ||||
441 | |||||
442 | Cannot exec a shared library directly | ||||
443 | |||||
444 | |||||
445 | .. data:: EILSEQ | ||||
446 | |||||
447 | Illegal byte sequence | ||||
448 | |||||
449 | |||||
450 | .. data:: ERESTART | ||||
451 | |||||
452 | Interrupted system call should be restarted | ||||
453 | |||||
454 | |||||
455 | .. data:: ESTRPIPE | ||||
456 | |||||
457 | Streams pipe error | ||||
458 | |||||
459 | |||||
460 | .. data:: EUSERS | ||||
461 | |||||
462 | Too many users | ||||
463 | |||||
464 | |||||
465 | .. data:: ENOTSOCK | ||||
466 | |||||
467 | Socket operation on non-socket | ||||
468 | |||||
469 | |||||
470 | .. data:: EDESTADDRREQ | ||||
471 | |||||
472 | Destination address required | ||||
473 | |||||
474 | |||||
475 | .. data:: EMSGSIZE | ||||
476 | |||||
477 | Message too long | ||||
478 | |||||
479 | |||||
480 | .. data:: EPROTOTYPE | ||||
481 | |||||
482 | Protocol wrong type for socket | ||||
483 | |||||
484 | |||||
485 | .. data:: ENOPROTOOPT | ||||
486 | |||||
487 | Protocol not available | ||||
488 | |||||
489 | |||||
490 | .. data:: EPROTONOSUPPORT | ||||
491 | |||||
492 | Protocol not supported | ||||
493 | |||||
494 | |||||
495 | .. data:: ESOCKTNOSUPPORT | ||||
496 | |||||
497 | Socket type not supported | ||||
498 | |||||
499 | |||||
500 | .. data:: EOPNOTSUPP | ||||
501 | |||||
502 | Operation not supported on transport endpoint | ||||
503 | |||||
504 | |||||
505 | .. data:: EPFNOSUPPORT | ||||
506 | |||||
507 | Protocol family not supported | ||||
508 | |||||
509 | |||||
510 | .. data:: EAFNOSUPPORT | ||||
511 | |||||
512 | Address family not supported by protocol | ||||
513 | |||||
514 | |||||
515 | .. data:: EADDRINUSE | ||||
516 | |||||
517 | Address already in use | ||||
518 | |||||
519 | |||||
520 | .. data:: EADDRNOTAVAIL | ||||
521 | |||||
522 | Cannot assign requested address | ||||
523 | |||||
524 | |||||
525 | .. data:: ENETDOWN | ||||
526 | |||||
527 | Network is down | ||||
528 | |||||
529 | |||||
530 | .. data:: ENETUNREACH | ||||
531 | |||||
532 | Network is unreachable | ||||
533 | |||||
534 | |||||
535 | .. data:: ENETRESET | ||||
536 | |||||
537 | Network dropped connection because of reset | ||||
538 | |||||
539 | |||||
540 | .. data:: ECONNABORTED | ||||
541 | |||||
542 | Software caused connection abort | ||||
543 | |||||
544 | |||||
545 | .. data:: ECONNRESET | ||||
546 | |||||
547 | Connection reset by peer | ||||
548 | |||||
549 | |||||
550 | .. data:: ENOBUFS | ||||
551 | |||||
552 | No buffer space available | ||||
553 | |||||
554 | |||||
555 | .. data:: EISCONN | ||||
556 | |||||
557 | Transport endpoint is already connected | ||||
558 | |||||
559 | |||||
560 | .. data:: ENOTCONN | ||||
561 | |||||
562 | Transport endpoint is not connected | ||||
563 | |||||
564 | |||||
565 | .. data:: ESHUTDOWN | ||||
566 | |||||
567 | Cannot send after transport endpoint shutdown | ||||
568 | |||||
569 | |||||
570 | .. data:: ETOOMANYREFS | ||||
571 | |||||
572 | Too many references: cannot splice | ||||
573 | |||||
574 | |||||
575 | .. data:: ETIMEDOUT | ||||
576 | |||||
577 | Connection timed out | ||||
578 | |||||
579 | |||||
580 | .. data:: ECONNREFUSED | ||||
581 | |||||
582 | Connection refused | ||||
583 | |||||
584 | |||||
585 | .. data:: EHOSTDOWN | ||||
586 | |||||
587 | Host is down | ||||
588 | |||||
589 | |||||
590 | .. data:: EHOSTUNREACH | ||||
591 | |||||
592 | No route to host | ||||
593 | |||||
594 | |||||
595 | .. data:: EALREADY | ||||
596 | |||||
597 | Operation already in progress | ||||
598 | |||||
599 | |||||
600 | .. data:: EINPROGRESS | ||||
601 | |||||
602 | Operation now in progress | ||||
603 | |||||
604 | |||||
605 | .. data:: ESTALE | ||||
606 | |||||
607 | Stale NFS file handle | ||||
608 | |||||
609 | |||||
610 | .. data:: EUCLEAN | ||||
611 | |||||
612 | Structure needs cleaning | ||||
613 | |||||
614 | |||||
615 | .. data:: ENOTNAM | ||||
616 | |||||
617 | Not a XENIX named type file | ||||
618 | |||||
619 | |||||
620 | .. data:: ENAVAIL | ||||
621 | |||||
622 | No XENIX semaphores available | ||||
623 | |||||
624 | |||||
625 | .. data:: EISNAM | ||||
626 | |||||
627 | Is a named type file | ||||
628 | |||||
629 | |||||
630 | .. data:: EREMOTEIO | ||||
631 | |||||
632 | Remote I/O error | ||||
633 | |||||
634 | |||||
635 | .. data:: EDQUOT | ||||
636 | |||||
637 | Quota exceeded | ||||
638 |