errno --- 標(biāo)準(zhǔn) errno 系統(tǒng)符號(hào)?


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 all-inclusive.

errno.errorcode?

提供從 errno 值到底層系統(tǒng)中字符串名稱的映射的字典。例如, errno.errorcode[errno.EPERM] 映射為 'EPERM' 。

如果要將數(shù)字的錯(cuò)誤代碼轉(zhuǎn)換為錯(cuò)誤信息,請(qǐng)使用 os.strerror()

在下面的列表中,當(dāng)前平臺(tái)上沒有使用的符號(hào)沒有被本模塊定義。 已定義的符號(hào)的具體列表可參見 errno.errorcode.keys()。 可用的符號(hào)包括:

errno.EPERM?

Operation not permitted. This error is mapped to the exception PermissionError.

errno.ENOENT?

No such file or directory. This error is mapped to the exception FileNotFoundError.

errno.ESRCH?

No such process. This error is mapped to the exception ProcessLookupError.

errno.EINTR?

Interrupted system call. This error is mapped to the exception InterruptedError.

errno.EIO?

I/O 錯(cuò)誤

errno.ENXIO?

無此設(shè)備或地址

errno.E2BIG?

參數(shù)列表過長(zhǎng)

errno.ENOEXEC?

執(zhí)行格式錯(cuò)誤

errno.EBADF?

錯(cuò)誤的文件號(hào)

errno.ECHILD?

No child processes. This error is mapped to the exception ChildProcessError.

errno.EAGAIN?

Try again. This error is mapped to the exception BlockingIOError.

errno.ENOMEM?

內(nèi)存不足

errno.EACCES?

Permission denied. This error is mapped to the exception PermissionError.

errno.EFAULT?

錯(cuò)誤的地址

errno.ENOTBLK?

需要塊設(shè)備

errno.EBUSY?

設(shè)備或資源忙

errno.EEXIST?

File exists. This error is mapped to the exception FileExistsError.

errno.EXDEV?

跨設(shè)備鏈接

errno.ENODEV?

無此設(shè)備

errno.ENOTDIR?

Not a directory. This error is mapped to the exception NotADirectoryError.

errno.EISDIR?

Is a directory. This error is mapped to the exception IsADirectoryError.

errno.EINVAL?

無效的參數(shù)

errno.ENFILE?

文件表溢出

errno.EMFILE?

打開的文件過多

errno.ENOTTY?

不是打字機(jī)

errno.ETXTBSY?

文本文件忙

errno.EFBIG?

文件過大

errno.ENOSPC?

設(shè)備已無可用空間

errno.ESPIPE?

非法查找

errno.EROFS?

只讀文件系統(tǒng)

鏈接過多

errno.EPIPE?

Broken pipe. This error is mapped to the exception BrokenPipeError.

errno.EDOM?

數(shù)學(xué)參數(shù)超出函數(shù)范圍

errno.ERANGE?

數(shù)學(xué)運(yùn)算結(jié)果無法表示

errno.EDEADLK?

將發(fā)生資源死鎖

errno.ENAMETOOLONG?

文件名過長(zhǎng)

errno.ENOLCK?

沒有可用的記錄鎖

errno.ENOSYS?

功能未實(shí)現(xiàn)

errno.ENOTEMPTY?

目錄非空

errno.ELOOP?

遇到過多的符號(hào)鏈接

errno.EWOULDBLOCK?

Operation would block. This error is mapped to the exception BlockingIOError.

errno.ENOMSG?

沒有所需類型的消息

errno.EIDRM?

標(biāo)識(shí)符被移除

errno.ECHRNG?

信道編號(hào)超出范圍

errno.EL2NSYNC?

級(jí)別 2 未同步

errno.EL3HLT?

級(jí)別 3 已停止

errno.EL3RST?

級(jí)別 3 重置

errno.ELNRNG?

鏈接編號(hào)超出范圍

errno.EUNATCH?

未附加協(xié)議驅(qū)動(dòng)

errno.ENOCSI?

沒有可用的 CSI 結(jié)構(gòu)

errno.EL2HLT?

級(jí)別 2 已停止

errno.EBADE?

無效的交換

errno.EBADR?

無效的請(qǐng)求描述符

errno.EXFULL?

交換已滿

errno.ENOANO?

沒有陽極

errno.EBADRQC?

無效的請(qǐng)求碼·

errno.EBADSLT?

無效的槽位

errno.EDEADLOCK?

文件鎖定死鎖錯(cuò)誤

errno.EBFONT?

錯(cuò)誤的字體文件格式

errno.ENOSTR?

設(shè)備不是流

errno.ENODATA?

沒有可用的數(shù)據(jù)

errno.ETIME?

計(jì)時(shí)器已到期

errno.ENOSR?

流資源不足

errno.ENONET?

機(jī)器不在網(wǎng)絡(luò)上

errno.ENOPKG?

包未安裝

errno.EREMOTE?

對(duì)象是遠(yuǎn)程的

鏈接已被切斷

errno.EADV?

廣告錯(cuò)誤

errno.ESRMNT?

掛載錯(cuò)誤

errno.ECOMM?

發(fā)送時(shí)通訊錯(cuò)誤

errno.EPROTO?

協(xié)議錯(cuò)誤

errno.EMULTIHOP?

已嘗試多跳

errno.EDOTDOT?

RFS 專屬錯(cuò)誤

errno.EBADMSG?

非數(shù)據(jù)消息

errno.EOVERFLOW?

值相對(duì)于已定義數(shù)據(jù)類型過大

errno.ENOTUNIQ?

名稱在網(wǎng)絡(luò)上不唯一

errno.EBADFD?

文件描述符處于錯(cuò)誤狀態(tài)

errno.EREMCHG?

遠(yuǎn)端地址已改變

errno.ELIBACC?

無法訪問所需的共享庫

errno.ELIBBAD?

訪問已損壞的共享庫

errno.ELIBSCN?

a.out 中的 .lib 部分已損壞

errno.ELIBMAX?

嘗試鏈接過多的共享庫

errno.ELIBEXEC?

無法直接執(zhí)行共享庫

errno.EILSEQ?

非法字節(jié)序列

errno.ERESTART?

已中斷系統(tǒng)調(diào)用需要重啟

errno.ESTRPIPE?

流管道錯(cuò)誤

errno.EUSERS?

用戶過多

errno.ENOTSOCK?

在非套接字上執(zhí)行套接字操作

errno.EDESTADDRREQ?

需要目標(biāo)地址

errno.EMSGSIZE?

消息過長(zhǎng)

errno.EPROTOTYPE?

套接字的協(xié)議類型錯(cuò)誤

errno.ENOPROTOOPT?

協(xié)議不可用

errno.EPROTONOSUPPORT?

協(xié)議不受支持

errno.ESOCKTNOSUPPORT?

套接字類型不受支持

errno.EOPNOTSUPP?

操作在傳輸端點(diǎn)上不受支持

errno.EPFNOSUPPORT?

協(xié)議族不受支持

errno.EAFNOSUPPORT?

地址族不受協(xié)議支持

errno.EADDRINUSE?

地址已被使用

errno.EADDRNOTAVAIL?

無法分配要求的地址

errno.ENETDOWN?

網(wǎng)絡(luò)已斷開

errno.ENETUNREACH?

網(wǎng)絡(luò)不可達(dá)

errno.ENETRESET?

網(wǎng)絡(luò)因重置而斷開連接

errno.ECONNABORTED?

Software caused connection abort. This error is mapped to the exception ConnectionAbortedError.

errno.ECONNRESET?

Connection reset by peer. This error is mapped to the exception ConnectionResetError.

errno.ENOBUFS?

沒有可用的緩沖區(qū)空間

errno.EISCONN?

傳輸端點(diǎn)已連接

errno.ENOTCONN?

傳輸端點(diǎn)未連接

errno.ESHUTDOWN?

Cannot send after transport endpoint shutdown. This error is mapped to the exception BrokenPipeError.

errno.ETOOMANYREFS?

引用過多:無法拼接

errno.ETIMEDOUT?

Connection timed out. This error is mapped to the exception TimeoutError.

errno.ECONNREFUSED?

Connection refused. This error is mapped to the exception ConnectionRefusedError.

errno.EHOSTDOWN?

主機(jī)已關(guān)閉

errno.EHOSTUNREACH?

沒有到主機(jī)的路由

errno.EALREADY?

Operation already in progress. This error is mapped to the exception BlockingIOError.

errno.EINPROGRESS?

Operation now in progress. This error is mapped to the exception BlockingIOError.

errno.ESTALE?

過期的 NFS 文件句柄

errno.EUCLEAN?

結(jié)構(gòu)需要清理

errno.ENOTNAM?

不是 XENIX 命名類型文件

errno.ENAVAIL?

沒有可用的 XENIX 信標(biāo)

errno.EISNAM?

是命名類型文件

errno.EREMOTEIO?

遠(yuǎn)程 I/O 錯(cuò)誤

errno.EDQUOT?

超出配額

errno.EQFULL?

Interface output queue is full

3.11 新版功能.