Issue #5170: Fixed regression caused when fixing #5768.
[python.git] / Doc / library / errno.rst
blobdaf9ff02d5d4d2d97de636d4b9da7ab78401cba5
2 :mod:`errno` --- Standard errno system symbols
3 ==============================================
5 .. module:: errno
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
12 all-inclusive.
15 .. data:: errorcode
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
19    ``'EPERM'``.
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:
28 .. data:: EPERM
30    Operation not permitted
33 .. data:: ENOENT
35    No such file or directory
38 .. data:: ESRCH
40    No such process
43 .. data:: EINTR
45    Interrupted system call
48 .. data:: EIO
50    I/O error
53 .. data:: ENXIO
55    No such device or address
58 .. data:: E2BIG
60    Arg list too long
63 .. data:: ENOEXEC
65    Exec format error
68 .. data:: EBADF
70    Bad file number
73 .. data:: ECHILD
75    No child processes
78 .. data:: EAGAIN
80    Try again
83 .. data:: ENOMEM
85    Out of memory
88 .. data:: EACCES
90    Permission denied
93 .. data:: EFAULT
95    Bad address
98 .. data:: ENOTBLK
100    Block device required
103 .. data:: EBUSY
105    Device or resource busy
108 .. data:: EEXIST
110    File exists
113 .. data:: EXDEV
115    Cross-device link
118 .. data:: ENODEV
120    No such device
123 .. data:: ENOTDIR
125    Not a directory
128 .. data:: EISDIR
130    Is a directory
133 .. data:: EINVAL
135    Invalid argument
138 .. data:: ENFILE
140    File table overflow
143 .. data:: EMFILE
145    Too many open files
148 .. data:: ENOTTY
150    Not a typewriter
153 .. data:: ETXTBSY
155    Text file busy
158 .. data:: EFBIG
160    File too large
163 .. data:: ENOSPC
165    No space left on device
168 .. data:: ESPIPE
170    Illegal seek
173 .. data:: EROFS
175    Read-only file system
178 .. data:: EMLINK
180    Too many links
183 .. data:: EPIPE
185    Broken pipe
188 .. data:: EDOM
190    Math argument out of domain of func
193 .. data:: ERANGE
195    Math result not representable
198 .. data:: EDEADLK
200    Resource deadlock would occur
203 .. data:: ENAMETOOLONG
205    File name too long
208 .. data:: ENOLCK
210    No record locks available
213 .. data:: ENOSYS
215    Function not implemented
218 .. data:: ENOTEMPTY
220    Directory not empty
223 .. data:: ELOOP
225    Too many symbolic links encountered
228 .. data:: EWOULDBLOCK
230    Operation would block
233 .. data:: ENOMSG
235    No message of desired type
238 .. data:: EIDRM
240    Identifier removed
243 .. data:: ECHRNG
245    Channel number out of range
248 .. data:: EL2NSYNC
250    Level 2 not synchronized
253 .. data:: EL3HLT
255    Level 3 halted
258 .. data:: EL3RST
260    Level 3 reset
263 .. data:: ELNRNG
265    Link number out of range
268 .. data:: EUNATCH
270    Protocol driver not attached
273 .. data:: ENOCSI
275    No CSI structure available
278 .. data:: EL2HLT
280    Level 2 halted
283 .. data:: EBADE
285    Invalid exchange
288 .. data:: EBADR
290    Invalid request descriptor
293 .. data:: EXFULL
295    Exchange full
298 .. data:: ENOANO
300    No anode
303 .. data:: EBADRQC
305    Invalid request code
308 .. data:: EBADSLT
310    Invalid slot
313 .. data:: EDEADLOCK
315    File locking deadlock error
318 .. data:: EBFONT
320    Bad font file format
323 .. data:: ENOSTR
325    Device not a stream
328 .. data:: ENODATA
330    No data available
333 .. data:: ETIME
335    Timer expired
338 .. data:: ENOSR
340    Out of streams resources
343 .. data:: ENONET
345    Machine is not on the network
348 .. data:: ENOPKG
350    Package not installed
353 .. data:: EREMOTE
355    Object is remote
358 .. data:: ENOLINK
360    Link has been severed
363 .. data:: EADV
365    Advertise error
368 .. data:: ESRMNT
370    Srmount error
373 .. data:: ECOMM
375    Communication error on send
378 .. data:: EPROTO
380    Protocol error
383 .. data:: EMULTIHOP
385    Multihop attempted
388 .. data:: EDOTDOT
390    RFS specific error
393 .. data:: EBADMSG
395    Not a data message
398 .. data:: EOVERFLOW
400    Value too large for defined data type
403 .. data:: ENOTUNIQ
405    Name not unique on network
408 .. data:: EBADFD
410    File descriptor in bad state
413 .. data:: EREMCHG
415    Remote address changed
418 .. data:: ELIBACC
420    Can not access a needed shared library
423 .. data:: ELIBBAD
425    Accessing a corrupted shared library
428 .. data:: ELIBSCN
430    .lib section in a.out corrupted
433 .. data:: ELIBMAX
435    Attempting to link in too many shared libraries
438 .. data:: ELIBEXEC
440    Cannot exec a shared library directly
443 .. data:: EILSEQ
445    Illegal byte sequence
448 .. data:: ERESTART
450    Interrupted system call should be restarted
453 .. data:: ESTRPIPE
455    Streams pipe error
458 .. data:: EUSERS
460    Too many users
463 .. data:: ENOTSOCK
465    Socket operation on non-socket
468 .. data:: EDESTADDRREQ
470    Destination address required
473 .. data:: EMSGSIZE
475    Message too long
478 .. data:: EPROTOTYPE
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
498 .. data:: EOPNOTSUPP
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
513 .. data:: EADDRINUSE
515    Address already in use
518 .. data:: EADDRNOTAVAIL
520    Cannot assign requested address
523 .. data:: ENETDOWN
525    Network is down
528 .. data:: ENETUNREACH
530    Network is unreachable
533 .. data:: ENETRESET
535    Network dropped connection because of reset
538 .. data:: ECONNABORTED
540    Software caused connection abort
543 .. data:: ECONNRESET
545    Connection reset by peer
548 .. data:: ENOBUFS
550    No buffer space available
553 .. data:: EISCONN
555    Transport endpoint is already connected
558 .. data:: ENOTCONN
560    Transport endpoint is not connected
563 .. data:: ESHUTDOWN
565    Cannot send after transport endpoint shutdown
568 .. data:: ETOOMANYREFS
570    Too many references: cannot splice
573 .. data:: ETIMEDOUT
575    Connection timed out
578 .. data:: ECONNREFUSED
580    Connection refused
583 .. data:: EHOSTDOWN
585    Host is down
588 .. data:: EHOSTUNREACH
590    No route to host
593 .. data:: EALREADY
595    Operation already in progress
598 .. data:: EINPROGRESS
600    Operation now in progress
603 .. data:: ESTALE
605    Stale NFS file handle
608 .. data:: EUCLEAN
610    Structure needs cleaning
613 .. data:: ENOTNAM
615    Not a XENIX named type file
618 .. data:: ENAVAIL
620    No XENIX semaphores available
623 .. data:: EISNAM
625    Is a named type file
628 .. data:: EREMOTEIO
630    Remote I/O error
633 .. data:: EDQUOT
635    Quota exceeded