2 :mod:`errno` --- Standard errno system symbols
3 ==============================================
6 :synopsis: Standard errno system symbols.
9 This module makes available standard ``errno`` system symbols. The value of each
10 symbol is the corresponding integer value. The names and descriptions are
11 borrowed from :file:`linux/include/errno.h`, which should be pretty
17 Dictionary providing a mapping from the errno value to the string name in the
18 underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps to
21 To translate a numeric error code to an error message, use :func:`os.strerror`.
23 Of the following list, symbols that are not used on the current platform are not
24 defined by the module. The specific list of defined symbols is available as
25 ``errno.errorcode.keys()``. Symbols available can include:
30 Operation not permitted
35 No such file or directory
45 Interrupted system call
55 No such device or address
100 Block device required
105 Device or resource busy
165 No space left on device
175 Read-only file system
190 Math argument out of domain of func
195 Math result not representable
200 Resource deadlock would occur
203 .. data:: ENAMETOOLONG
210 No record locks available
215 Function not implemented
225 Too many symbolic links encountered
228 .. data:: EWOULDBLOCK
230 Operation would block
235 No message of desired type
245 Channel number out of range
250 Level 2 not synchronized
265 Link number out of range
270 Protocol driver not attached
275 No CSI structure available
290 Invalid request descriptor
315 File locking deadlock error
340 Out of streams resources
345 Machine is not on the network
350 Package not installed
360 Link has been severed
375 Communication error on send
400 Value too large for defined data type
405 Name not unique on network
410 File descriptor in bad state
415 Remote address changed
420 Can not access a needed shared library
425 Accessing a corrupted shared library
430 .lib section in a.out corrupted
435 Attempting to link in too many shared libraries
440 Cannot exec a shared library directly
445 Illegal byte sequence
450 Interrupted system call should be restarted
465 Socket operation on non-socket
468 .. data:: EDESTADDRREQ
470 Destination address required
480 Protocol wrong type for socket
483 .. data:: ENOPROTOOPT
485 Protocol not available
488 .. data:: EPROTONOSUPPORT
490 Protocol not supported
493 .. data:: ESOCKTNOSUPPORT
495 Socket type not supported
500 Operation not supported on transport endpoint
503 .. data:: EPFNOSUPPORT
505 Protocol family not supported
508 .. data:: EAFNOSUPPORT
510 Address family not supported by protocol
515 Address already in use
518 .. data:: EADDRNOTAVAIL
520 Cannot assign requested address
528 .. data:: ENETUNREACH
530 Network is unreachable
535 Network dropped connection because of reset
538 .. data:: ECONNABORTED
540 Software caused connection abort
545 Connection reset by peer
550 No buffer space available
555 Transport endpoint is already connected
560 Transport endpoint is not connected
565 Cannot send after transport endpoint shutdown
568 .. data:: ETOOMANYREFS
570 Too many references: cannot splice
578 .. data:: ECONNREFUSED
588 .. data:: EHOSTUNREACH
595 Operation already in progress
598 .. data:: EINPROGRESS
600 Operation now in progress
605 Stale NFS file handle
610 Structure needs cleaning
615 Not a XENIX named type file
620 No XENIX semaphores available