errno --- Standard errno system symbolsP


This module makes available standard errno system symbols. The value of each symbol is the corresponding integer value. The names and descriptions are borrowed from linux/include/errno.h, which should be pretty all-inclusive.

errno.errorcodeP

Dictionary providing a mapping from the errno value to the string name in the underlying system. For instance, errno.errorcode[errno.EPERM] maps to 'EPERM'.

To translate a numeric error code to an error message, use os.strerror().

Of the following list, symbols that are not used on the current platform are not defined by the module. The specific list of defined symbols is available as errno.errorcode.keys(). Symbols available can include:

errno.EPERMP

Operation not permitted

errno.ENOENTP

No such file or directory

errno.ESRCHP

No such process

errno.EINTRP

Interrupted system call.

参见

This error is mapped to the exception InterruptedError.

errno.EIOP

I/O error

errno.ENXIOP

No such device or address

errno.E2BIGP

Arg list too long

errno.ENOEXECP

Exec format error

errno.EBADFP

Bad file number

errno.ECHILDP

No child processes

errno.EAGAINP

Try again

errno.ENOMEMP

Out of memory

errno.EACCESP

Permission denied

errno.EFAULTP

Bad address

errno.ENOTBLKP

Block device required

errno.EBUSYP

Device or resource busy

errno.EEXISTP

File exists

errno.EXDEVP

Cross-device link

errno.ENODEVP

No such device

errno.ENOTDIRP

Not a directory

errno.EISDIRP

Is a directory

errno.EINVALP

Invalid argument

errno.ENFILEP

File table overflow

errno.EMFILEP

Too many open files

errno.ENOTTYP

Not a typewriter

errno.ETXTBSYP

Text file busy

errno.EFBIGP

File too large

errno.ENOSPCP

No space left on device

errno.ESPIPEP

Illegal seek

errno.EROFSP

Read-only file system

Too many links

errno.EPIPEP

Broken pipe

errno.EDOMP

Math argument out of domain of func

errno.ERANGEP

Math result not representable

errno.EDEADLKP

Resource deadlock would occur

errno.ENAMETOOLONGP

File name too long

errno.ENOLCKP

No record locks available

errno.ENOSYSP

Function not implemented

errno.ENOTEMPTYP

Directory not empty

errno.ELOOPP

Too many symbolic links encountered

errno.EWOULDBLOCKP

Operation would block

errno.ENOMSGP

No message of desired type

errno.EIDRMP

Identifier removed

errno.ECHRNGP

Channel number out of range

errno.EL2NSYNCP

Level 2 not synchronized

errno.EL3HLTP

Level 3 halted

errno.EL3RSTP

Level 3 reset

errno.ELNRNGP

Link number out of range

errno.EUNATCHP

Protocol driver not attached

errno.ENOCSIP

No CSI structure available

errno.EL2HLTP

Level 2 halted

errno.EBADEP

Invalid exchange

errno.EBADRP

Invalid request descriptor

errno.EXFULLP

Exchange full

errno.ENOANOP

No anode

errno.EBADRQCP

Invalid request code

errno.EBADSLTP

Invalid slot

errno.EDEADLOCKP

File locking deadlock error

errno.EBFONTP

Bad font file format

errno.ENOSTRP

Device not a stream

errno.ENODATAP

No data available

errno.ETIMEP

Timer expired

errno.ENOSRP

Out of streams resources

errno.ENONETP

Machine is not on the network

errno.ENOPKGP

Package not installed

errno.EREMOTEP

Object is remote

Link has been severed

errno.EADVP

Advertise error

errno.ESRMNTP

Srmount error

errno.ECOMMP

Communication error on send

errno.EPROTOP

Protocol error

errno.EMULTIHOPP

Multihop attempted

errno.EDOTDOTP

RFS specific error

errno.EBADMSGP

Not a data message

errno.EOVERFLOWP

Value too large for defined data type

errno.ENOTUNIQP

Name not unique on network

errno.EBADFDP

File descriptor in bad state

errno.EREMCHGP

Remote address changed

errno.ELIBACCP

Can not access a needed shared library

errno.ELIBBADP

Accessing a corrupted shared library

errno.ELIBSCNP

.lib section in a.out corrupted

errno.ELIBMAXP

Attempting to link in too many shared libraries

errno.ELIBEXECP

Cannot exec a shared library directly

errno.EILSEQP

Illegal byte sequence

errno.ERESTARTP

Interrupted system call should be restarted

errno.ESTRPIPEP

Streams pipe error

errno.EUSERSP

Too many users

errno.ENOTSOCKP

Socket operation on non-socket

errno.EDESTADDRREQP

Destination address required

errno.EMSGSIZEP

Message too long

errno.EPROTOTYPEP

Protocol wrong type for socket

errno.ENOPROTOOPTP

Protocol not available

errno.EPROTONOSUPPORTP

Protocol not supported

errno.ESOCKTNOSUPPORTP

Socket type not supported

errno.EOPNOTSUPPP

Operation not supported on transport endpoint

errno.EPFNOSUPPORTP

Protocol family not supported

errno.EAFNOSUPPORTP

Address family not supported by protocol

errno.EADDRINUSEP

Address already in use

errno.EADDRNOTAVAILP

Cannot assign requested address

errno.ENETDOWNP

Network is down

errno.ENETUNREACHP

Network is unreachable

errno.ENETRESETP

Network dropped connection because of reset

errno.ECONNABORTEDP

Software caused connection abort

errno.ECONNRESETP

Connection reset by peer

errno.ENOBUFSP

No buffer space available

errno.EISCONNP

Transport endpoint is already connected

errno.ENOTCONNP

Transport endpoint is not connected

errno.ESHUTDOWNP

Cannot send after transport endpoint shutdown

errno.ETOOMANYREFSP

Too many references: cannot splice

errno.ETIMEDOUTP

Connection timed out

errno.ECONNREFUSEDP

Connection refused

errno.EHOSTDOWNP

Host is down

errno.EHOSTUNREACHP

No route to host

errno.EALREADYP

Operation already in progress

errno.EINPROGRESSP

Operation now in progress

errno.ESTALEP

Stale NFS file handle

errno.EUCLEANP

Structure needs cleaning

errno.ENOTNAMP

Not a XENIX named type file

errno.ENAVAILP

No XENIX semaphores available

errno.EISNAMP

Is a named type file

errno.EREMOTEIOP

Remote I/O error

errno.EDQUOTP

Quota exceeded