- errno —- Standard errno system symbols
errno —- Standard errno system symbols
This module makes available standard errno system symbols. The value of eachsymbol is the corresponding integer value. The names and descriptions areborrowed from linux/include/errno.h, which should be prettyall-inclusive.
errno.errorcode- Dictionary providing a mapping from the errno value to the string name in theunderlying 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 notdefined by the module. The specific list of defined symbols is available aserrno.errorcode.keys(). Symbols available can include:
errno.EPERMOperation not permitted
errno.ENOENTNo such file or directory
errno.ESRCHNo such process
errno.EINTR- Interrupted system call.
参见
This error is mapped to the exception InterruptedError.
errno.EIOI/O error
errno.ENXIONo such device or address
errno.E2BIGArg list too long
errno.ENOEXECExec format error
errno.EBADFBad file number
errno.ECHILDNo child processes
errno.EAGAINTry again
errno.ENOMEMOut of memory
errno.EACCESPermission denied
errno.EFAULTBad address
errno.ENOTBLKBlock device required
errno.EBUSYDevice or resource busy
errno.EEXISTFile exists
errno.EXDEVCross-device link
errno.ENODEVNo such device
errno.ENOTDIRNot a directory
errno.EISDIRIs a directory
errno.EINVALInvalid argument
errno.ENFILEFile table overflow
errno.EMFILEToo many open files
errno.ENOTTYNot a typewriter
errno.ETXTBSYText file busy
errno.EFBIGFile too large
errno.ENOSPCNo space left on device
errno.ESPIPEIllegal seek
errno.EROFSRead-only file system
errno.EMLINKToo many links
errno.EPIPEBroken pipe
errno.EDOMMath argument out of domain of func
errno.ERANGEMath result not representable
errno.EDEADLKResource deadlock would occur
errno.ENAMETOOLONGFile name too long
errno.ENOLCKNo record locks available
errno.ENOSYSFunction not implemented
errno.ENOTEMPTYDirectory not empty
errno.ELOOPToo many symbolic links encountered
errno.EWOULDBLOCKOperation would block
errno.ENOMSGNo message of desired type
errno.EIDRMIdentifier removed
errno.ECHRNGChannel number out of range
errno.EL2NSYNCLevel 2 not synchronized
errno.EL3HLTLevel 3 halted
errno.EL3RSTLevel 3 reset
errno.ELNRNGLink number out of range
errno.EUNATCHProtocol driver not attached
errno.ENOCSINo CSI structure available
errno.EL2HLTLevel 2 halted
errno.EBADEInvalid exchange
errno.EBADRInvalid request descriptor
errno.EXFULLExchange full
errno.ENOANONo anode
errno.EBADRQCInvalid request code
errno.EBADSLTInvalid slot
errno.EDEADLOCKFile locking deadlock error
errno.EBFONTBad font file format
errno.ENOSTRDevice not a stream
errno.ENODATANo data available
errno.ETIMETimer expired
errno.ENOSROut of streams resources
errno.ENONETMachine is not on the network
errno.ENOPKGPackage not installed
errno.EREMOTEObject is remote
errno.ENOLINKLink has been severed
errno.EADVAdvertise error
errno.ESRMNTSrmount error
errno.ECOMMCommunication error on send
errno.EPROTOProtocol error
errno.EMULTIHOPMultihop attempted
errno.EDOTDOTRFS specific error
errno.EBADMSGNot a data message
errno.EOVERFLOWValue too large for defined data type
errno.ENOTUNIQName not unique on network
errno.EBADFDFile descriptor in bad state
errno.EREMCHGRemote address changed
errno.ELIBACCCan not access a needed shared library
errno.ELIBBADAccessing a corrupted shared library
errno.ELIBSCN.lib section in a.out corrupted
errno.ELIBMAXAttempting to link in too many shared libraries
errno.ELIBEXECCannot exec a shared library directly
errno.EILSEQIllegal byte sequence
errno.ERESTARTInterrupted system call should be restarted
errno.ESTRPIPEStreams pipe error
errno.EUSERSToo many users
errno.ENOTSOCKSocket operation on non-socket
errno.EDESTADDRREQDestination address required
errno.EMSGSIZEMessage too long
errno.EPROTOTYPEProtocol wrong type for socket
errno.ENOPROTOOPTProtocol not available
errno.EPROTONOSUPPORTProtocol not supported
errno.ESOCKTNOSUPPORTSocket type not supported
errno.EOPNOTSUPPOperation not supported on transport endpoint
errno.EPFNOSUPPORTProtocol family not supported
errno.EAFNOSUPPORTAddress family not supported by protocol
errno.EADDRINUSEAddress already in use
errno.EADDRNOTAVAILCannot assign requested address
errno.ENETDOWNNetwork is down
errno.ENETUNREACHNetwork is unreachable
errno.ENETRESETNetwork dropped connection because of reset
errno.ECONNABORTEDSoftware caused connection abort
errno.ECONNRESETConnection reset by peer
errno.ENOBUFSNo buffer space available
errno.EISCONNTransport endpoint is already connected
errno.ENOTCONNTransport endpoint is not connected
errno.ESHUTDOWNCannot send after transport endpoint shutdown
errno.ETOOMANYREFSToo many references: cannot splice
errno.ETIMEDOUTConnection timed out
errno.ECONNREFUSEDConnection refused
errno.EHOSTDOWNHost is down
errno.EHOSTUNREACHNo route to host
errno.EALREADYOperation already in progress
errno.EINPROGRESSOperation now in progress
errno.ESTALEStale NFS file handle
errno.EUCLEANStructure needs cleaning
errno.ENOTNAMNot a XENIX named type file
errno.ENAVAILNo XENIX semaphores available
errno.EISNAMIs a named type file
errno.EREMOTEIORemote I/O error
errno.EDQUOT- Quota exceeded
