/Doc/library/errno.rst

http://unladen-swallow.googlecode.com/ · ReStructuredText · 636 lines · 260 code · 376 blank · 0 comment · 0 complexity · 45c77b7a855beddd20a8b0f0996f6657 MD5 · raw file

  1. :mod:`errno` --- Standard errno system symbols
  2. ==============================================
  3. .. module:: errno
  4. :synopsis: Standard errno system symbols.
  5. This module makes available standard ``errno`` system symbols. The value of each
  6. symbol is the corresponding integer value. The names and descriptions are
  7. borrowed from :file:`linux/include/errno.h`, which should be pretty
  8. all-inclusive.
  9. .. data:: errorcode
  10. Dictionary providing a mapping from the errno value to the string name in the
  11. underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps to
  12. ``'EPERM'``.
  13. To translate a numeric error code to an error message, use :func:`os.strerror`.
  14. Of the following list, symbols that are not used on the current platform are not
  15. defined by the module. The specific list of defined symbols is available as
  16. ``errno.errorcode.keys()``. Symbols available can include:
  17. .. data:: EPERM
  18. Operation not permitted
  19. .. data:: ENOENT
  20. No such file or directory
  21. .. data:: ESRCH
  22. No such process
  23. .. data:: EINTR
  24. Interrupted system call
  25. .. data:: EIO
  26. I/O error
  27. .. data:: ENXIO
  28. No such device or address
  29. .. data:: E2BIG
  30. Arg list too long
  31. .. data:: ENOEXEC
  32. Exec format error
  33. .. data:: EBADF
  34. Bad file number
  35. .. data:: ECHILD
  36. No child processes
  37. .. data:: EAGAIN
  38. Try again
  39. .. data:: ENOMEM
  40. Out of memory
  41. .. data:: EACCES
  42. Permission denied
  43. .. data:: EFAULT
  44. Bad address
  45. .. data:: ENOTBLK
  46. Block device required
  47. .. data:: EBUSY
  48. Device or resource busy
  49. .. data:: EEXIST
  50. File exists
  51. .. data:: EXDEV
  52. Cross-device link
  53. .. data:: ENODEV
  54. No such device
  55. .. data:: ENOTDIR
  56. Not a directory
  57. .. data:: EISDIR
  58. Is a directory
  59. .. data:: EINVAL
  60. Invalid argument
  61. .. data:: ENFILE
  62. File table overflow
  63. .. data:: EMFILE
  64. Too many open files
  65. .. data:: ENOTTY
  66. Not a typewriter
  67. .. data:: ETXTBSY
  68. Text file busy
  69. .. data:: EFBIG
  70. File too large
  71. .. data:: ENOSPC
  72. No space left on device
  73. .. data:: ESPIPE
  74. Illegal seek
  75. .. data:: EROFS
  76. Read-only file system
  77. .. data:: EMLINK
  78. Too many links
  79. .. data:: EPIPE
  80. Broken pipe
  81. .. data:: EDOM
  82. Math argument out of domain of func
  83. .. data:: ERANGE
  84. Math result not representable
  85. .. data:: EDEADLK
  86. Resource deadlock would occur
  87. .. data:: ENAMETOOLONG
  88. File name too long
  89. .. data:: ENOLCK
  90. No record locks available
  91. .. data:: ENOSYS
  92. Function not implemented
  93. .. data:: ENOTEMPTY
  94. Directory not empty
  95. .. data:: ELOOP
  96. Too many symbolic links encountered
  97. .. data:: EWOULDBLOCK
  98. Operation would block
  99. .. data:: ENOMSG
  100. No message of desired type
  101. .. data:: EIDRM
  102. Identifier removed
  103. .. data:: ECHRNG
  104. Channel number out of range
  105. .. data:: EL2NSYNC
  106. Level 2 not synchronized
  107. .. data:: EL3HLT
  108. Level 3 halted
  109. .. data:: EL3RST
  110. Level 3 reset
  111. .. data:: ELNRNG
  112. Link number out of range
  113. .. data:: EUNATCH
  114. Protocol driver not attached
  115. .. data:: ENOCSI
  116. No CSI structure available
  117. .. data:: EL2HLT
  118. Level 2 halted
  119. .. data:: EBADE
  120. Invalid exchange
  121. .. data:: EBADR
  122. Invalid request descriptor
  123. .. data:: EXFULL
  124. Exchange full
  125. .. data:: ENOANO
  126. No anode
  127. .. data:: EBADRQC
  128. Invalid request code
  129. .. data:: EBADSLT
  130. Invalid slot
  131. .. data:: EDEADLOCK
  132. File locking deadlock error
  133. .. data:: EBFONT
  134. Bad font file format
  135. .. data:: ENOSTR
  136. Device not a stream
  137. .. data:: ENODATA
  138. No data available
  139. .. data:: ETIME
  140. Timer expired
  141. .. data:: ENOSR
  142. Out of streams resources
  143. .. data:: ENONET
  144. Machine is not on the network
  145. .. data:: ENOPKG
  146. Package not installed
  147. .. data:: EREMOTE
  148. Object is remote
  149. .. data:: ENOLINK
  150. Link has been severed
  151. .. data:: EADV
  152. Advertise error
  153. .. data:: ESRMNT
  154. Srmount error
  155. .. data:: ECOMM
  156. Communication error on send
  157. .. data:: EPROTO
  158. Protocol error
  159. .. data:: EMULTIHOP
  160. Multihop attempted
  161. .. data:: EDOTDOT
  162. RFS specific error
  163. .. data:: EBADMSG
  164. Not a data message
  165. .. data:: EOVERFLOW
  166. Value too large for defined data type
  167. .. data:: ENOTUNIQ
  168. Name not unique on network
  169. .. data:: EBADFD
  170. File descriptor in bad state
  171. .. data:: EREMCHG
  172. Remote address changed
  173. .. data:: ELIBACC
  174. Can not access a needed shared library
  175. .. data:: ELIBBAD
  176. Accessing a corrupted shared library
  177. .. data:: ELIBSCN
  178. .lib section in a.out corrupted
  179. .. data:: ELIBMAX
  180. Attempting to link in too many shared libraries
  181. .. data:: ELIBEXEC
  182. Cannot exec a shared library directly
  183. .. data:: EILSEQ
  184. Illegal byte sequence
  185. .. data:: ERESTART
  186. Interrupted system call should be restarted
  187. .. data:: ESTRPIPE
  188. Streams pipe error
  189. .. data:: EUSERS
  190. Too many users
  191. .. data:: ENOTSOCK
  192. Socket operation on non-socket
  193. .. data:: EDESTADDRREQ
  194. Destination address required
  195. .. data:: EMSGSIZE
  196. Message too long
  197. .. data:: EPROTOTYPE
  198. Protocol wrong type for socket
  199. .. data:: ENOPROTOOPT
  200. Protocol not available
  201. .. data:: EPROTONOSUPPORT
  202. Protocol not supported
  203. .. data:: ESOCKTNOSUPPORT
  204. Socket type not supported
  205. .. data:: EOPNOTSUPP
  206. Operation not supported on transport endpoint
  207. .. data:: EPFNOSUPPORT
  208. Protocol family not supported
  209. .. data:: EAFNOSUPPORT
  210. Address family not supported by protocol
  211. .. data:: EADDRINUSE
  212. Address already in use
  213. .. data:: EADDRNOTAVAIL
  214. Cannot assign requested address
  215. .. data:: ENETDOWN
  216. Network is down
  217. .. data:: ENETUNREACH
  218. Network is unreachable
  219. .. data:: ENETRESET
  220. Network dropped connection because of reset
  221. .. data:: ECONNABORTED
  222. Software caused connection abort
  223. .. data:: ECONNRESET
  224. Connection reset by peer
  225. .. data:: ENOBUFS
  226. No buffer space available
  227. .. data:: EISCONN
  228. Transport endpoint is already connected
  229. .. data:: ENOTCONN
  230. Transport endpoint is not connected
  231. .. data:: ESHUTDOWN
  232. Cannot send after transport endpoint shutdown
  233. .. data:: ETOOMANYREFS
  234. Too many references: cannot splice
  235. .. data:: ETIMEDOUT
  236. Connection timed out
  237. .. data:: ECONNREFUSED
  238. Connection refused
  239. .. data:: EHOSTDOWN
  240. Host is down
  241. .. data:: EHOSTUNREACH
  242. No route to host
  243. .. data:: EALREADY
  244. Operation already in progress
  245. .. data:: EINPROGRESS
  246. Operation now in progress
  247. .. data:: ESTALE
  248. Stale NFS file handle
  249. .. data:: EUCLEAN
  250. Structure needs cleaning
  251. .. data:: ENOTNAM
  252. Not a XENIX named type file
  253. .. data:: ENAVAIL
  254. No XENIX semaphores available
  255. .. data:: EISNAM
  256. Is a named type file
  257. .. data:: EREMOTEIO
  258. Remote I/O error
  259. .. data:: EDQUOT
  260. Quota exceeded