1
:mod:`errno` --- Standard errno system symbols
2
==============================================
5
:synopsis: Standard errno system symbols.
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
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
20
To translate a numeric error code to an error message, use :func:`os.strerror`.
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:
29
Operation not permitted
34
No such file or directory
44
Interrupted system call
54
No such device or address
104
Device or resource busy
164
No space left on device
174
Read-only file system
189
Math argument out of domain of func
194
Math result not representable
199
Resource deadlock would occur
202
.. data:: ENAMETOOLONG
209
No record locks available
214
Function not implemented
224
Too many symbolic links encountered
227
.. data:: EWOULDBLOCK
229
Operation would block
234
No message of desired type
244
Channel number out of range
249
Level 2 not synchronized
264
Link number out of range
269
Protocol driver not attached
274
No CSI structure available
289
Invalid request descriptor
314
File locking deadlock error
339
Out of streams resources
344
Machine is not on the network
349
Package not installed
359
Link has been severed
374
Communication error on send
399
Value too large for defined data type
404
Name not unique on network
409
File descriptor in bad state
414
Remote address changed
419
Can not access a needed shared library
424
Accessing a corrupted shared library
429
.lib section in a.out corrupted
434
Attempting to link in too many shared libraries
439
Cannot exec a shared library directly
444
Illegal byte sequence
449
Interrupted system call should be restarted
464
Socket operation on non-socket
467
.. data:: EDESTADDRREQ
469
Destination address required
479
Protocol wrong type for socket
482
.. data:: ENOPROTOOPT
484
Protocol not available
487
.. data:: EPROTONOSUPPORT
489
Protocol not supported
492
.. data:: ESOCKTNOSUPPORT
494
Socket type not supported
499
Operation not supported on transport endpoint
502
.. data:: EPFNOSUPPORT
504
Protocol family not supported
507
.. data:: EAFNOSUPPORT
509
Address family not supported by protocol
514
Address already in use
517
.. data:: EADDRNOTAVAIL
519
Cannot assign requested address
527
.. data:: ENETUNREACH
529
Network is unreachable
534
Network dropped connection because of reset
537
.. data:: ECONNABORTED
539
Software caused connection abort
544
Connection reset by peer
549
No buffer space available
554
Transport endpoint is already connected
559
Transport endpoint is not connected
564
Cannot send after transport endpoint shutdown
567
.. data:: ETOOMANYREFS
569
Too many references: cannot splice
577
.. data:: ECONNREFUSED
587
.. data:: EHOSTUNREACH
594
Operation already in progress
597
.. data:: EINPROGRESS
599
Operation now in progress
604
Stale NFS file handle
609
Structure needs cleaning
614
Not a XENIX named type file
619
No XENIX semaphores available