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.
errorcode
P 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.
EPERM
P Operation not permitted
-
errno.
ENOENT
P No such file or directory
-
errno.
ESRCH
P No such process
-
errno.
EINTR
P Interrupted system call.
参见
This error is mapped to the exception
InterruptedError
.
-
errno.
EIO
P I/O error
-
errno.
ENXIO
P No such device or address
-
errno.
E2BIG
P Arg list too long
-
errno.
ENOEXEC
P Exec format error
-
errno.
EBADF
P Bad file number
-
errno.
ECHILD
P No child processes
-
errno.
EAGAIN
P Try again
-
errno.
ENOMEM
P Out of memory
-
errno.
EACCES
P Permission denied
-
errno.
EFAULT
P Bad address
-
errno.
ENOTBLK
P Block device required
-
errno.
EBUSY
P Device or resource busy
-
errno.
EEXIST
P File exists
-
errno.
EXDEV
P Cross-device link
-
errno.
ENODEV
P No such device
-
errno.
ENOTDIR
P Not a directory
-
errno.
EISDIR
P Is a directory
-
errno.
EINVAL
P Invalid argument
-
errno.
ENFILE
P File table overflow
-
errno.
EMFILE
P Too many open files
-
errno.
ENOTTY
P Not a typewriter
-
errno.
ETXTBSY
P Text file busy
-
errno.
EFBIG
P File too large
-
errno.
ENOSPC
P No space left on device
-
errno.
ESPIPE
P Illegal seek
-
errno.
EROFS
P Read-only file system
-
errno.
EMLINK
P Too many links
-
errno.
EPIPE
P Broken pipe
-
errno.
EDOM
P Math argument out of domain of func
-
errno.
ERANGE
P Math result not representable
-
errno.
EDEADLK
P Resource deadlock would occur
-
errno.
ENAMETOOLONG
P File name too long
-
errno.
ENOLCK
P No record locks available
-
errno.
ENOSYS
P Function not implemented
-
errno.
ENOTEMPTY
P Directory not empty
-
errno.
ELOOP
P Too many symbolic links encountered
-
errno.
EWOULDBLOCK
P Operation would block
-
errno.
ENOMSG
P No message of desired type
-
errno.
EIDRM
P Identifier removed
-
errno.
ECHRNG
P Channel number out of range
-
errno.
EL2NSYNC
P Level 2 not synchronized
-
errno.
EL3HLT
P Level 3 halted
-
errno.
EL3RST
P Level 3 reset
-
errno.
ELNRNG
P Link number out of range
-
errno.
EUNATCH
P Protocol driver not attached
-
errno.
ENOCSI
P No CSI structure available
-
errno.
EL2HLT
P Level 2 halted
-
errno.
EBADE
P Invalid exchange
-
errno.
EBADR
P Invalid request descriptor
-
errno.
EXFULL
P Exchange full
-
errno.
ENOANO
P No anode
-
errno.
EBADRQC
P Invalid request code
-
errno.
EBADSLT
P Invalid slot
-
errno.
EDEADLOCK
P File locking deadlock error
-
errno.
EBFONT
P Bad font file format
-
errno.
ENOSTR
P Device not a stream
-
errno.
ENODATA
P No data available
-
errno.
ETIME
P Timer expired
-
errno.
ENOSR
P Out of streams resources
-
errno.
ENONET
P Machine is not on the network
-
errno.
ENOPKG
P Package not installed
-
errno.
EREMOTE
P Object is remote
-
errno.
ENOLINK
P Link has been severed
-
errno.
EADV
P Advertise error
-
errno.
ESRMNT
P Srmount error
-
errno.
ECOMM
P Communication error on send
-
errno.
EPROTO
P Protocol error
-
errno.
EMULTIHOP
P Multihop attempted
-
errno.
EDOTDOT
P RFS specific error
-
errno.
EBADMSG
P Not a data message
-
errno.
EOVERFLOW
P Value too large for defined data type
-
errno.
ENOTUNIQ
P Name not unique on network
-
errno.
EBADFD
P File descriptor in bad state
-
errno.
EREMCHG
P Remote address changed
-
errno.
ELIBACC
P Can not access a needed shared library
-
errno.
ELIBBAD
P Accessing a corrupted shared library
-
errno.
ELIBSCN
P .lib section in a.out corrupted
-
errno.
ELIBMAX
P Attempting to link in too many shared libraries
-
errno.
ELIBEXEC
P Cannot exec a shared library directly
-
errno.
EILSEQ
P Illegal byte sequence
-
errno.
ERESTART
P Interrupted system call should be restarted
-
errno.
ESTRPIPE
P Streams pipe error
-
errno.
EUSERS
P Too many users
-
errno.
ENOTSOCK
P Socket operation on non-socket
-
errno.
EDESTADDRREQ
P Destination address required
-
errno.
EMSGSIZE
P Message too long
-
errno.
EPROTOTYPE
P Protocol wrong type for socket
-
errno.
ENOPROTOOPT
P Protocol not available
-
errno.
EPROTONOSUPPORT
P Protocol not supported
-
errno.
ESOCKTNOSUPPORT
P Socket type not supported
-
errno.
EOPNOTSUPP
P Operation not supported on transport endpoint
-
errno.
EPFNOSUPPORT
P Protocol family not supported
-
errno.
EAFNOSUPPORT
P Address family not supported by protocol
-
errno.
EADDRINUSE
P Address already in use
-
errno.
EADDRNOTAVAIL
P Cannot assign requested address
-
errno.
ENETDOWN
P Network is down
-
errno.
ENETUNREACH
P Network is unreachable
-
errno.
ENETRESET
P Network dropped connection because of reset
-
errno.
ECONNABORTED
P Software caused connection abort
-
errno.
ECONNRESET
P Connection reset by peer
-
errno.
ENOBUFS
P No buffer space available
-
errno.
EISCONN
P Transport endpoint is already connected
-
errno.
ENOTCONN
P Transport endpoint is not connected
-
errno.
ESHUTDOWN
P Cannot send after transport endpoint shutdown
-
errno.
ETOOMANYREFS
P Too many references: cannot splice
-
errno.
ETIMEDOUT
P Connection timed out
-
errno.
ECONNREFUSED
P Connection refused
-
errno.
EHOSTDOWN
P Host is down
-
errno.
EHOSTUNREACH
P No route to host
-
errno.
EALREADY
P Operation already in progress
-
errno.
EINPROGRESS
P Operation now in progress
-
errno.
ESTALE
P Stale NFS file handle
-
errno.
EUCLEAN
P Structure needs cleaning
-
errno.
ENOTNAM
P Not a XENIX named type file
-
errno.
ENAVAIL
P No XENIX semaphores available
-
errno.
EISNAM
P Is a named type file
-
errno.
EREMOTEIO
P Remote I/O error
-
errno.
EDQUOT
P Quota exceeded