errno --- 標準 errno 系統符號?


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 值到底層系統中字符串名稱(chēng)的映射的字典。例如, errno.errorcode[errno.EPERM] 映射為 'EPERM' 。

如果要將數字的錯誤代碼轉換為錯誤信息,請使用 os.strerror()。

在下面的列表中,當前平臺上沒(méi)有使用的符號沒(méi)有被本模塊定義。 已定義的符號的具體列表可參見(jiàn) errno.errorcode.keys()。 可用的符號包括:

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 錯誤

errno.ENXIO?

無(wú)此設備或地址

errno.E2BIG?

參數列表過(guò)長(cháng)

errno.ENOEXEC?

執行格式錯誤

errno.EBADF?

錯誤的文件號

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?

內存不足

errno.EACCES?

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

errno.EFAULT?

錯誤的地址

errno.ENOTBLK?

需要塊設備

errno.EBUSY?

設備或資源忙

errno.EEXIST?

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

errno.EXDEV?

跨設備鏈接

errno.ENODEV?

無(wú)此設備

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?

無(wú)效的參數

errno.ENFILE?

文件表溢出

errno.EMFILE?

打開(kāi)的文件過(guò)多

errno.ENOTTY?

不是打字機

errno.ETXTBSY?

文本文件忙

errno.EFBIG?

文件過(guò)大

errno.ENOSPC?

設備已無(wú)可用空間

errno.ESPIPE?

非法查找

errno.EROFS?

只讀文件系統

鏈接過(guò)多

errno.EPIPE?

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

errno.EDOM?

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

errno.ERANGE?

數學(xué)運算結果無(wú)法表示

errno.EDEADLK?

將發(fā)生資源死鎖

errno.ENAMETOOLONG?

文件名過(guò)長(cháng)

errno.ENOLCK?

沒(méi)有可用的記錄鎖

errno.ENOSYS?

功能未實(shí)現

errno.ENOTEMPTY?

目錄非空

errno.ELOOP?

遇到過(guò)多的符號鏈接

errno.EWOULDBLOCK?

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

errno.ENOMSG?

沒(méi)有所需類(lèi)型的消息

errno.EIDRM?

標識符被移除

errno.ECHRNG?

信道編號超出范圍

errno.EL2NSYNC?

級別 2 未同步

errno.EL3HLT?

級別 3 已停止

errno.EL3RST?

級別 3 重置

errno.ELNRNG?

鏈接編號超出范圍

errno.EUNATCH?

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

errno.ENOCSI?

沒(méi)有可用的 CSI 結構

errno.EL2HLT?

級別 2 已停止

errno.EBADE?

無(wú)效的交換

errno.EBADR?

無(wú)效的請求描述符

errno.EXFULL?

交換已滿(mǎn)

errno.ENOANO?

沒(méi)有陽(yáng)極

errno.EBADRQC?

無(wú)效的請求碼·

errno.EBADSLT?

無(wú)效的槽位

errno.EDEADLOCK?

文件鎖定死鎖錯誤

errno.EBFONT?

錯誤的字體文件格式

errno.ENOSTR?

設備不是流

errno.ENODATA?

沒(méi)有可用的數據

errno.ETIME?

計時(shí)器已到期

errno.ENOSR?

流資源不足

errno.ENONET?

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

errno.ENOPKG?

包未安裝

errno.EREMOTE?

對象是遠程的

鏈接已被切斷

errno.EADV?

廣告錯誤

errno.ESRMNT?

掛載錯誤

errno.ECOMM?

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

errno.EPROTO?

協(xié)議錯誤

errno.EMULTIHOP?

已嘗試多跳

errno.EDOTDOT?

RFS 專(zhuān)屬錯誤

errno.EBADMSG?

非數據消息

errno.EOVERFLOW?

值相對于已定義數據類(lèi)型過(guò)大

errno.ENOTUNIQ?

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

errno.EBADFD?

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

errno.EREMCHG?

遠端地址已改變

errno.ELIBACC?

無(wú)法訪(fǎng)問(wèn)所需的共享庫

errno.ELIBBAD?

訪(fǎng)問(wèn)已損壞的共享庫

errno.ELIBSCN?

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

errno.ELIBMAX?

嘗試鏈接過(guò)多的共享庫

errno.ELIBEXEC?

無(wú)法直接執行共享庫

errno.EILSEQ?

非法字節序列

errno.ERESTART?

已中斷系統調用需要重啟

errno.ESTRPIPE?

流管道錯誤

errno.EUSERS?

用戶(hù)過(guò)多

errno.ENOTSOCK?

在非套接字上執行套接字操作

errno.EDESTADDRREQ?

需要目標地址

errno.EMSGSIZE?

消息過(guò)長(cháng)

errno.EPROTOTYPE?

套接字的協(xié)議類(lèi)型錯誤

errno.ENOPROTOOPT?

協(xié)議不可用

errno.EPROTONOSUPPORT?

協(xié)議不受支持

errno.ESOCKTNOSUPPORT?

套接字類(lèi)型不受支持

errno.EOPNOTSUPP?

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

errno.EPFNOSUPPORT?

協(xié)議族不受支持

errno.EAFNOSUPPORT?

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

errno.EADDRINUSE?

地址已被使用

errno.EADDRNOTAVAIL?

無(wú)法分配要求的地址

errno.ENETDOWN?

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

errno.ENETUNREACH?

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

errno.ENETRESET?

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

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?

沒(méi)有可用的緩沖區空間

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?

引用過(guò)多:無(wú)法拼接

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?

主機已關(guān)閉

errno.EHOSTUNREACH?

沒(méi)有到主機的路由

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?

過(guò)期的 NFS 文件句柄

errno.EUCLEAN?

結構需要清理

errno.ENOTNAM?

不是 XENIX 命名類(lèi)型文件

errno.ENAVAIL?

沒(méi)有可用的 XENIX 信標

errno.EISNAM?

是命名類(lèi)型文件

errno.EREMOTEIO?

遠程 I/O 錯誤

errno.EDQUOT?

超出配額

errno.EQFULL?

Interface output queue is full

3.11 新版功能.