python3从零学习-5.6.5、errno - Standard errno system symbols

Python (56) 2023-10-01 13:12

Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说python3从零学习-5.6.5、errno - Standard errno system symbols,希望能够帮助你!!!。

这个模块提供了标准的errno系统符号。每个符号的值都是对应的整数值。

python3从零学习-5.6.5、errno - Standard errno system symbols_https://bianchenghao6.com/blog_Python_第1张

  • errno.errorcode

Dictionary提供从errno值到底层系统中的字符串名称的映射。

在下面的列表中,当前平台上不使用的符号不是由模块定义的。已定义符号的特定列表可以作为errno.errorcode.keys()获得。可用的符号包括:

  • errno.EPERM

Operation not permitted

  • errno.ENOENT

No such file or directory

  • errno.ESRCH

No such process

  • errno.EINTR

Interrupted system call.

参见 This error is mapped to the exception InterruptedError.

  • errno.EIO

I/O error

  • errno.ENXIO

No such device or address

  • errno.E2BIG

Arg list too long

  • errno.ENOEXEC

Exec format error

  • errno.EBADF

Bad file number

  • errno.ECHILD

No child processes

  • errno.EAGAIN

Try again

  • errno.ENOMEM

Out of memory

  • errno.EACCES

Permission denied

  • errno.EFAULT

Bad address

  • errno.ENOTBLK

Block device required

  • errno.EBUSY

Device or resource busy

  • errno.EEXIST

File exists

  • errno.EXDEV

Cross-device link

  • errno.ENODEV

No such device

  • errno.ENOTDIR

Not a directory

  • errno.EISDIR

Is a directory

  • errno.EINVAL

Invalid argument

  • errno.ENFILE

File table overflow

  • errno.EMFILE

Too many open files

  • errno.ENOTTY

Not a typewriter

  • errno.ETXTBSY

Text file busy

  • errno.EFBIG

File too large

  • errno.ENOSPC

No space left on device

  • errno.ESPIPE

Illegal seek

python3从零学习-5.6.5、errno - Standard errno system symbols_https://bianchenghao6.com/blog_Python_第2张

  • errno.EROFS

Read-only file system

  • errno.EMLINK

Too many links

  • errno.EPIPE

Broken pipe

  • errno.EDOM

Math argument out of domain of func

  • errno.ERANGE

Math result not representable

  • errno.EDEADLK

Resource deadlock would occur

  • errno.ENAMETOOLONG

File name too long

  • errno.ENOLCK

No record locks available

  • errno.ENOSYS

Function not implemented

  • errno.ENOTEMPTY

Directory not empty

  • errno.ELOOP

Too many symbolic links encountered

  • errno.EWOULDBLOCK

Operation would block

  • errno.ENOMSG

No message of desired type

  • errno.EIDRM

Identifier removed

  • errno.ECHRNG

Channel number out of range

  • errno.EL2NSYNC

Level 2 not synchronized

python3从零学习-5.6.5、errno - Standard errno system symbols_https://bianchenghao6.com/blog_Python_第3张

  • errno.EL3HLT

Level 3 halted

  • errno.EL3RST

Level 3 reset

  • errno.ELNRNG

Link number out of range

  • errno.EUNATCH

Protocol driver not attached

  • errno.ENOCSI

No CSI structure available

  • errno.EL2HLT

Level 2 halted

  • errno.EBADE

Invalid exchange

  • errno.EBADR

Invalid request descriptor

  • errno.EXFULL

Exchange full

  • errno.ENOANO

No anode

  • errno.EBADRQC

Invalid request code

  • errno.EBADSLT

Invalid slot

  • errno.EDEADLOCK

File locking deadlock error

  • errno.EBFONT

Bad font file format

  • errno.ENOSTR

Device not a stream

  • errno.ENODATA

No data available

  • errno.ETIME

Timer expired

python3从零学习-5.6.5、errno - Standard errno system symbols_https://bianchenghao6.com/blog_Python_第4张

  • errno.ENOSR

Out of streams resources

  • errno.ENONET

Machine is not on the network

  • errno.ENOPKG

Package not installed

  • errno.EREMOTE

Object is remote

  • errno.ENOLINK

Link has been severed

  • errno.EADV

Advertise error

  • errno.ESRMNT

Srmount error

  • errno.ECOMM

Communication error on send

  • errno.EPROTO

Protocol error

  • errno.EMULTIHOP

Multihop attempted

  • errno.EDOTDOT

RFS specific error

  • errno.EBADMSG

Not a data message

  • errno.EOVERFLOW

Value too large for defined data type

python3从零学习-5.6.5、errno - Standard errno system symbols_https://bianchenghao6.com/blog_Python_第5张

  • errno.ENOTUNIQ

Name not unique on network

  • errno.EBADFD

File descriptor in bad state

  • errno.EREMCHG

Remote address changed

  • errno.ELIBACC

Can not access a needed shared library

  • errno.ELIBBAD

Accessing a corrupted shared library

  • errno.ELIBSCN

.lib section in a.out corrupted

  • errno.ELIBMAX

Attempting to link in too many shared libraries

  • errno.ELIBEXEC

Cannot exec a shared library directly

  • errno.EILSEQ

Illegal byte sequence

  • errno.ERESTART

Interrupted system call should be restarted

  • errno.ESTRPIPE

Streams pipe error

  • errno.EUSERS

Too many users

  • errno.ENOTSOCK

Socket operation on non-socket

  • errno.EDESTADDRREQ

Destination address required

  • errno.EMSGSIZE

Message too long

  • errno.EPROTOTYPE

Protocol wrong type for socket

  • errno.ENOPROTOOPT

Protocol not available

  • errno.EPROTONOSUPPORT

Protocol not supported

  • errno.ESOCKTNOSUPPORT

Socket type not supported

  • errno.EOPNOTSUPP

Operation not supported on transport endpoint

  • errno.EPFNOSUPPORT

Protocol family not supported

  • errno.EAFNOSUPPORT

Address family not supported by protocol

  • errno.EADDRINUSE

Address already in use

  • errno.EADDRNOTAVAIL

Cannot assign requested address

  • errno.ENETDOWN

Network is down

  • errno.ENETUNREACH

Network is unreachable

  • errno.ENETRESET

Network dropped connection because of reset

  • errno.ECONNABORTED

Software caused connection abort

  • errno.ECONNRESET

Connection reset by peer

  • errno.ENOBUFS

No buffer space available

  • errno.EISCONN

Transport endpoint is already connected

  • errno.ENOTCONN

Transport endpoint is not connected

  • errno.ESHUTDOWN

Cannot send after transport endpoint shutdown

  • errno.ETOOMANYREFS

Too many references: cannot splice

  • errno.ETIMEDOUT

Connection timed out

  • errno.ECONNREFUSED

Connection refused

  • errno.EHOSTDOWN

Host is down

  • errno.EHOSTUNREACH

No route to host

  • errno.EALREADY

Operation already in progress

  • errno.EINPROGRESS

Operation now in progress

  • errno.ESTALE

Stale NFS file handle

  • errno.EUCLEAN

Structure needs cleaning

  • errno.ENOTNAM

Not a XENIX named type file

  • errno.ENAVAIL

No XENIX semaphores available

  • errno.EISNAM

Is a named type file

  • errno.EREMOTEIO

Remote I/O error

  • errno.EDQUOT

Quota exceeded

python3从零学习-5.6.5、errno - Standard errno system symbols_https://bianchenghao6.com/blog_Python_第6张

今天的分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。

发表回复