zerrors_windows.go 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. // mkerrors_windows.sh -m32
  2. // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  3. package windows
  4. // Go names for Windows errors.
  5. const (
  6. ENOENT Errno = ERROR_FILE_NOT_FOUND
  7. ENOTDIR Errno = ERROR_PATH_NOT_FOUND
  8. )
  9. // Windows reserves errors >= 1<<29 for application use.
  10. const APPLICATION_ERROR = 1 << 29
  11. // Invented values to support what package os and others expects.
  12. const (
  13. E2BIG Errno = APPLICATION_ERROR + iota
  14. EACCES
  15. EADDRINUSE
  16. EADDRNOTAVAIL
  17. EADV
  18. EAFNOSUPPORT
  19. EAGAIN
  20. EALREADY
  21. EBADE
  22. EBADF
  23. EBADFD
  24. EBADMSG
  25. EBADR
  26. EBADRQC
  27. EBADSLT
  28. EBFONT
  29. EBUSY
  30. ECANCELED
  31. ECHILD
  32. ECHRNG
  33. ECOMM
  34. ECONNABORTED
  35. ECONNREFUSED
  36. ECONNRESET
  37. EDEADLK
  38. EDEADLOCK
  39. EDESTADDRREQ
  40. EDOM
  41. EDOTDOT
  42. EDQUOT
  43. EEXIST
  44. EFAULT
  45. EFBIG
  46. EHOSTDOWN
  47. EHOSTUNREACH
  48. EIDRM
  49. EILSEQ
  50. EINPROGRESS
  51. EINTR
  52. EINVAL
  53. EIO
  54. EISCONN
  55. EISDIR
  56. EISNAM
  57. EKEYEXPIRED
  58. EKEYREJECTED
  59. EKEYREVOKED
  60. EL2HLT
  61. EL2NSYNC
  62. EL3HLT
  63. EL3RST
  64. ELIBACC
  65. ELIBBAD
  66. ELIBEXEC
  67. ELIBMAX
  68. ELIBSCN
  69. ELNRNG
  70. ELOOP
  71. EMEDIUMTYPE
  72. EMFILE
  73. EMLINK
  74. EMSGSIZE
  75. EMULTIHOP
  76. ENAMETOOLONG
  77. ENAVAIL
  78. ENETDOWN
  79. ENETRESET
  80. ENETUNREACH
  81. ENFILE
  82. ENOANO
  83. ENOBUFS
  84. ENOCSI
  85. ENODATA
  86. ENODEV
  87. ENOEXEC
  88. ENOKEY
  89. ENOLCK
  90. ENOLINK
  91. ENOMEDIUM
  92. ENOMEM
  93. ENOMSG
  94. ENONET
  95. ENOPKG
  96. ENOPROTOOPT
  97. ENOSPC
  98. ENOSR
  99. ENOSTR
  100. ENOSYS
  101. ENOTBLK
  102. ENOTCONN
  103. ENOTEMPTY
  104. ENOTNAM
  105. ENOTRECOVERABLE
  106. ENOTSOCK
  107. ENOTSUP
  108. ENOTTY
  109. ENOTUNIQ
  110. ENXIO
  111. EOPNOTSUPP
  112. EOVERFLOW
  113. EOWNERDEAD
  114. EPERM
  115. EPFNOSUPPORT
  116. EPIPE
  117. EPROTO
  118. EPROTONOSUPPORT
  119. EPROTOTYPE
  120. ERANGE
  121. EREMCHG
  122. EREMOTE
  123. EREMOTEIO
  124. ERESTART
  125. EROFS
  126. ESHUTDOWN
  127. ESOCKTNOSUPPORT
  128. ESPIPE
  129. ESRCH
  130. ESRMNT
  131. ESTALE
  132. ESTRPIPE
  133. ETIME
  134. ETIMEDOUT
  135. ETOOMANYREFS
  136. ETXTBSY
  137. EUCLEAN
  138. EUNATCH
  139. EUSERS
  140. EWOULDBLOCK
  141. EXDEV
  142. EXFULL
  143. EWINDOWS
  144. )
  145. // Error strings for invented errors
  146. var errors = [...]string{
  147. E2BIG - APPLICATION_ERROR: "argument list too long",
  148. EACCES - APPLICATION_ERROR: "permission denied",
  149. EADDRINUSE - APPLICATION_ERROR: "address already in use",
  150. EADDRNOTAVAIL - APPLICATION_ERROR: "cannot assign requested address",
  151. EADV - APPLICATION_ERROR: "advertise error",
  152. EAFNOSUPPORT - APPLICATION_ERROR: "address family not supported by protocol",
  153. EAGAIN - APPLICATION_ERROR: "resource temporarily unavailable",
  154. EALREADY - APPLICATION_ERROR: "operation already in progress",
  155. EBADE - APPLICATION_ERROR: "invalid exchange",
  156. EBADF - APPLICATION_ERROR: "bad file descriptor",
  157. EBADFD - APPLICATION_ERROR: "file descriptor in bad state",
  158. EBADMSG - APPLICATION_ERROR: "bad message",
  159. EBADR - APPLICATION_ERROR: "invalid request descriptor",
  160. EBADRQC - APPLICATION_ERROR: "invalid request code",
  161. EBADSLT - APPLICATION_ERROR: "invalid slot",
  162. EBFONT - APPLICATION_ERROR: "bad font file format",
  163. EBUSY - APPLICATION_ERROR: "device or resource busy",
  164. ECANCELED - APPLICATION_ERROR: "operation canceled",
  165. ECHILD - APPLICATION_ERROR: "no child processes",
  166. ECHRNG - APPLICATION_ERROR: "channel number out of range",
  167. ECOMM - APPLICATION_ERROR: "communication error on send",
  168. ECONNABORTED - APPLICATION_ERROR: "software caused connection abort",
  169. ECONNREFUSED - APPLICATION_ERROR: "connection refused",
  170. ECONNRESET - APPLICATION_ERROR: "connection reset by peer",
  171. EDEADLK - APPLICATION_ERROR: "resource deadlock avoided",
  172. EDEADLOCK - APPLICATION_ERROR: "resource deadlock avoided",
  173. EDESTADDRREQ - APPLICATION_ERROR: "destination address required",
  174. EDOM - APPLICATION_ERROR: "numerical argument out of domain",
  175. EDOTDOT - APPLICATION_ERROR: "RFS specific error",
  176. EDQUOT - APPLICATION_ERROR: "disk quota exceeded",
  177. EEXIST - APPLICATION_ERROR: "file exists",
  178. EFAULT - APPLICATION_ERROR: "bad address",
  179. EFBIG - APPLICATION_ERROR: "file too large",
  180. EHOSTDOWN - APPLICATION_ERROR: "host is down",
  181. EHOSTUNREACH - APPLICATION_ERROR: "no route to host",
  182. EIDRM - APPLICATION_ERROR: "identifier removed",
  183. EILSEQ - APPLICATION_ERROR: "invalid or incomplete multibyte or wide character",
  184. EINPROGRESS - APPLICATION_ERROR: "operation now in progress",
  185. EINTR - APPLICATION_ERROR: "interrupted system call",
  186. EINVAL - APPLICATION_ERROR: "invalid argument",
  187. EIO - APPLICATION_ERROR: "input/output error",
  188. EISCONN - APPLICATION_ERROR: "transport endpoint is already connected",
  189. EISDIR - APPLICATION_ERROR: "is a directory",
  190. EISNAM - APPLICATION_ERROR: "is a named type file",
  191. EKEYEXPIRED - APPLICATION_ERROR: "key has expired",
  192. EKEYREJECTED - APPLICATION_ERROR: "key was rejected by service",
  193. EKEYREVOKED - APPLICATION_ERROR: "key has been revoked",
  194. EL2HLT - APPLICATION_ERROR: "level 2 halted",
  195. EL2NSYNC - APPLICATION_ERROR: "level 2 not synchronized",
  196. EL3HLT - APPLICATION_ERROR: "level 3 halted",
  197. EL3RST - APPLICATION_ERROR: "level 3 reset",
  198. ELIBACC - APPLICATION_ERROR: "can not access a needed shared library",
  199. ELIBBAD - APPLICATION_ERROR: "accessing a corrupted shared library",
  200. ELIBEXEC - APPLICATION_ERROR: "cannot exec a shared library directly",
  201. ELIBMAX - APPLICATION_ERROR: "attempting to link in too many shared libraries",
  202. ELIBSCN - APPLICATION_ERROR: ".lib section in a.out corrupted",
  203. ELNRNG - APPLICATION_ERROR: "link number out of range",
  204. ELOOP - APPLICATION_ERROR: "too many levels of symbolic links",
  205. EMEDIUMTYPE - APPLICATION_ERROR: "wrong medium type",
  206. EMFILE - APPLICATION_ERROR: "too many open files",
  207. EMLINK - APPLICATION_ERROR: "too many links",
  208. EMSGSIZE - APPLICATION_ERROR: "message too long",
  209. EMULTIHOP - APPLICATION_ERROR: "multihop attempted",
  210. ENAMETOOLONG - APPLICATION_ERROR: "file name too long",
  211. ENAVAIL - APPLICATION_ERROR: "no XENIX semaphores available",
  212. ENETDOWN - APPLICATION_ERROR: "network is down",
  213. ENETRESET - APPLICATION_ERROR: "network dropped connection on reset",
  214. ENETUNREACH - APPLICATION_ERROR: "network is unreachable",
  215. ENFILE - APPLICATION_ERROR: "too many open files in system",
  216. ENOANO - APPLICATION_ERROR: "no anode",
  217. ENOBUFS - APPLICATION_ERROR: "no buffer space available",
  218. ENOCSI - APPLICATION_ERROR: "no CSI structure available",
  219. ENODATA - APPLICATION_ERROR: "no data available",
  220. ENODEV - APPLICATION_ERROR: "no such device",
  221. ENOEXEC - APPLICATION_ERROR: "exec format error",
  222. ENOKEY - APPLICATION_ERROR: "required key not available",
  223. ENOLCK - APPLICATION_ERROR: "no locks available",
  224. ENOLINK - APPLICATION_ERROR: "link has been severed",
  225. ENOMEDIUM - APPLICATION_ERROR: "no medium found",
  226. ENOMEM - APPLICATION_ERROR: "cannot allocate memory",
  227. ENOMSG - APPLICATION_ERROR: "no message of desired type",
  228. ENONET - APPLICATION_ERROR: "machine is not on the network",
  229. ENOPKG - APPLICATION_ERROR: "package not installed",
  230. ENOPROTOOPT - APPLICATION_ERROR: "protocol not available",
  231. ENOSPC - APPLICATION_ERROR: "no space left on device",
  232. ENOSR - APPLICATION_ERROR: "out of streams resources",
  233. ENOSTR - APPLICATION_ERROR: "device not a stream",
  234. ENOSYS - APPLICATION_ERROR: "function not implemented",
  235. ENOTBLK - APPLICATION_ERROR: "block device required",
  236. ENOTCONN - APPLICATION_ERROR: "transport endpoint is not connected",
  237. ENOTEMPTY - APPLICATION_ERROR: "directory not empty",
  238. ENOTNAM - APPLICATION_ERROR: "not a XENIX named type file",
  239. ENOTRECOVERABLE - APPLICATION_ERROR: "state not recoverable",
  240. ENOTSOCK - APPLICATION_ERROR: "socket operation on non-socket",
  241. ENOTSUP - APPLICATION_ERROR: "operation not supported",
  242. ENOTTY - APPLICATION_ERROR: "inappropriate ioctl for device",
  243. ENOTUNIQ - APPLICATION_ERROR: "name not unique on network",
  244. ENXIO - APPLICATION_ERROR: "no such device or address",
  245. EOPNOTSUPP - APPLICATION_ERROR: "operation not supported",
  246. EOVERFLOW - APPLICATION_ERROR: "value too large for defined data type",
  247. EOWNERDEAD - APPLICATION_ERROR: "owner died",
  248. EPERM - APPLICATION_ERROR: "operation not permitted",
  249. EPFNOSUPPORT - APPLICATION_ERROR: "protocol family not supported",
  250. EPIPE - APPLICATION_ERROR: "broken pipe",
  251. EPROTO - APPLICATION_ERROR: "protocol error",
  252. EPROTONOSUPPORT - APPLICATION_ERROR: "protocol not supported",
  253. EPROTOTYPE - APPLICATION_ERROR: "protocol wrong type for socket",
  254. ERANGE - APPLICATION_ERROR: "numerical result out of range",
  255. EREMCHG - APPLICATION_ERROR: "remote address changed",
  256. EREMOTE - APPLICATION_ERROR: "object is remote",
  257. EREMOTEIO - APPLICATION_ERROR: "remote I/O error",
  258. ERESTART - APPLICATION_ERROR: "interrupted system call should be restarted",
  259. EROFS - APPLICATION_ERROR: "read-only file system",
  260. ESHUTDOWN - APPLICATION_ERROR: "cannot send after transport endpoint shutdown",
  261. ESOCKTNOSUPPORT - APPLICATION_ERROR: "socket type not supported",
  262. ESPIPE - APPLICATION_ERROR: "illegal seek",
  263. ESRCH - APPLICATION_ERROR: "no such process",
  264. ESRMNT - APPLICATION_ERROR: "srmount error",
  265. ESTALE - APPLICATION_ERROR: "stale NFS file handle",
  266. ESTRPIPE - APPLICATION_ERROR: "streams pipe error",
  267. ETIME - APPLICATION_ERROR: "timer expired",
  268. ETIMEDOUT - APPLICATION_ERROR: "connection timed out",
  269. ETOOMANYREFS - APPLICATION_ERROR: "too many references: cannot splice",
  270. ETXTBSY - APPLICATION_ERROR: "text file busy",
  271. EUCLEAN - APPLICATION_ERROR: "structure needs cleaning",
  272. EUNATCH - APPLICATION_ERROR: "protocol driver not attached",
  273. EUSERS - APPLICATION_ERROR: "too many users",
  274. EWOULDBLOCK - APPLICATION_ERROR: "resource temporarily unavailable",
  275. EXDEV - APPLICATION_ERROR: "invalid cross-device link",
  276. EXFULL - APPLICATION_ERROR: "exchange full",
  277. EWINDOWS - APPLICATION_ERROR: "not supported by windows",
  278. }