python3從零學(xué)習(xí)-5.6.5、errno — Standard errno system symbols

這個模塊提供了標(biāo)準(zhǔn)的errno系統(tǒng)符號学辱。每個符號的值都是對應(yīng)的整數(shù)值核畴。

errno.errorcode

?? ??? ??? ?Dictionary提供從errno值到底層系統(tǒng)中的字符串名稱的映射膝但。

?? ??? ??? ?在下面的列表中,當(dāng)前平臺上不使用的符號不是由模塊定義的谤草。已定義符號的特定列表可以作為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

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

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

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

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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末丑孩,一起剝皮案震驚了整個濱河市冀宴,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌温学,老刑警劉巖略贮,帶你破解...
    沈念sama閱讀 218,682評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異仗岖,居然都是意外死亡逃延,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,277評論 3 395
  • 文/潘曉璐 我一進店門轧拄,熙熙樓的掌柜王于貴愁眉苦臉地迎上來揽祥,“玉大人,你說我怎么就攤上這事檩电≈舴幔” “怎么了?”我有些...
    開封第一講書人閱讀 165,083評論 0 355
  • 文/不壞的土叔 我叫張陵俐末,是天一觀的道長愈案。 經(jīng)常有香客問我,道長鹅搪,這世上最難降的妖魔是什么站绪? 我笑而不...
    開封第一講書人閱讀 58,763評論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮丽柿,結(jié)果婚禮上恢准,老公的妹妹穿的比我還像新娘。我一直安慰自己甫题,他們只是感情好馁筐,可當(dāng)我...
    茶點故事閱讀 67,785評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著坠非,像睡著了一般敏沉。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,624評論 1 305
  • 那天盟迟,我揣著相機與錄音秋泳,去河邊找鬼。 笑死攒菠,一個胖子當(dāng)著我的面吹牛迫皱,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播辖众,決...
    沈念sama閱讀 40,358評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼卓起,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了凹炸?” 一聲冷哼從身側(cè)響起戏阅,我...
    開封第一講書人閱讀 39,261評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎啤它,沒想到半個月后奕筐,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,722評論 1 315
  • 正文 獨居荒郊野嶺守林人離奇死亡蚕键,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,900評論 3 336
  • 正文 我和宋清朗相戀三年救欧,在試婚紗的時候發(fā)現(xiàn)自己被綠了衰粹。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片锣光。...
    茶點故事閱讀 40,030評論 1 350
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖铝耻,靈堂內(nèi)的尸體忽然破棺而出誊爹,到底是詐尸還是另有隱情,我是刑警寧澤瓢捉,帶...
    沈念sama閱讀 35,737評論 5 346
  • 正文 年R本政府宣布频丘,位于F島的核電站,受9級特大地震影響泡态,放射性物質(zhì)發(fā)生泄漏搂漠。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,360評論 3 330
  • 文/蒙蒙 一某弦、第九天 我趴在偏房一處隱蔽的房頂上張望桐汤。 院中可真熱鬧,春花似錦靶壮、人聲如沸怔毛。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,941評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽拣度。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間抗果,已是汗流浹背筋帖。 一陣腳步聲響...
    開封第一講書人閱讀 33,057評論 1 270
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留窖张,地道東北人幕随。 一個月前我還...
    沈念sama閱讀 48,237評論 3 371
  • 正文 我出身青樓,卻偏偏與公主長得像宿接,于是被迫代替她去往敵國和親赘淮。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,976評論 2 355