errno_values.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. #ifndef _BITS_ERRNO_VALUES_H
  2. #define _BITS_ERRNO_VALUES_H
  3. #if defined(__alpha__)
  4. #define EPERM 1 /* Operation not permitted */
  5. #define ENOENT 2 /* No such file or directory */
  6. #define ESRCH 3 /* No such process */
  7. #define EINTR 4 /* Interrupted system call */
  8. #define EIO 5 /* I/O error */
  9. #define ENXIO 6 /* No such device or address */
  10. #define E2BIG 7 /* Arg list too long */
  11. #define ENOEXEC 8 /* Exec format error */
  12. #define EBADF 9 /* Bad file number */
  13. #define ECHILD 10 /* No child processes */
  14. #define EDEADLK 11 /* Resource deadlock would occur */
  15. #define ENOMEM 12 /* Out of memory */
  16. #define EACCES 13 /* Permission denied */
  17. #define EFAULT 14 /* Bad address */
  18. #define ENOTBLK 15 /* Block device required */
  19. #define EBUSY 16 /* Device or resource busy */
  20. #define EEXIST 17 /* File exists */
  21. #define EXDEV 18 /* Cross-device link */
  22. #define ENODEV 19 /* No such device */
  23. #define ENOTDIR 20 /* Not a directory */
  24. #define EISDIR 21 /* Is a directory */
  25. #define EINVAL 22 /* Invalid argument */
  26. #define ENFILE 23 /* File table overflow */
  27. #define EMFILE 24 /* Too many open files */
  28. #define ENOTTY 25 /* Not a typewriter */
  29. #define ETXTBSY 26 /* Text file busy */
  30. #define EFBIG 27 /* File too large */
  31. #define ENOSPC 28 /* No space left on device */
  32. #define ESPIPE 29 /* Illegal seek */
  33. #define EROFS 30 /* Read-only file system */
  34. #define EMLINK 31 /* Too many links */
  35. #define EPIPE 32 /* Broken pipe */
  36. #define EDOM 33 /* Math argument out of domain of func */
  37. #define ERANGE 34 /* Math result not representable */
  38. #define EAGAIN 35 /* Try again */
  39. #define EWOULDBLOCK EAGAIN /* Operation would block */
  40. #define EINPROGRESS 36 /* Operation now in progress */
  41. #define EALREADY 37 /* Operation already in progress */
  42. #define ENOTSOCK 38 /* Socket operation on non-socket */
  43. #define EDESTADDRREQ 39 /* Destination address required */
  44. #define EMSGSIZE 40 /* Message too long */
  45. #define EPROTOTYPE 41 /* Protocol wrong type for socket */
  46. #define ENOPROTOOPT 42 /* Protocol not available */
  47. #define EPROTONOSUPPORT 43 /* Protocol not supported */
  48. #define ESOCKTNOSUPPORT 44 /* Socket type not supported */
  49. #define EOPNOTSUPP 45 /* Operation not supported on transport endpoint */
  50. #define EPFNOSUPPORT 46 /* Protocol family not supported */
  51. #define EAFNOSUPPORT 47 /* Address family not supported by protocol */
  52. #define EADDRINUSE 48 /* Address already in use */
  53. #define EADDRNOTAVAIL 49 /* Cannot assign requested address */
  54. #define ENETDOWN 50 /* Network is down */
  55. #define ENETUNREACH 51 /* Network is unreachable */
  56. #define ENETRESET 52 /* Network dropped connection because of reset */
  57. #define ECONNABORTED 53 /* Software caused connection abort */
  58. #define ECONNRESET 54 /* Connection reset by peer */
  59. #define ENOBUFS 55 /* No buffer space available */
  60. #define EISCONN 56 /* Transport endpoint is already connected */
  61. #define ENOTCONN 57 /* Transport endpoint is not connected */
  62. #define ESHUTDOWN 58 /* Cannot send after transport endpoint shutdown */
  63. #define ETOOMANYREFS 59 /* Too many references: cannot splice */
  64. #define ETIMEDOUT 60 /* Connection timed out */
  65. #define ECONNREFUSED 61 /* Connection refused */
  66. #define ELOOP 62 /* Too many symbolic links encountered */
  67. #define ENAMETOOLONG 63 /* File name too long */
  68. #define EHOSTDOWN 64 /* Host is down */
  69. #define EHOSTUNREACH 65 /* No route to host */
  70. #define ENOTEMPTY 66 /* Directory not empty */
  71. #define EUSERS 68 /* Too many users */
  72. #define EDQUOT 69 /* Quota exceeded */
  73. #define ESTALE 70 /* Stale NFS file handle */
  74. #define EREMOTE 71 /* Object is remote */
  75. #define ENOLCK 77 /* No record locks available */
  76. #define ENOSYS 78 /* Function not implemented */
  77. #define ENOMSG 80 /* No message of desired type */
  78. #define EIDRM 81 /* Identifier removed */
  79. #define ENOSR 82 /* Out of streams resources */
  80. #define ETIME 83 /* Timer expired */
  81. #define EBADMSG 84 /* Not a data message */
  82. #define EPROTO 85 /* Protocol error */
  83. #define ENODATA 86 /* No data available */
  84. #define ENOSTR 87 /* Device not a stream */
  85. #define ENOPKG 92 /* Package not installed */
  86. #define EILSEQ 116 /* Illegal byte sequence */
  87. #define ECHRNG 88 /* Channel number out of range */
  88. #define EL2NSYNC 89 /* Level 2 not synchronized */
  89. #define EL3HLT 90 /* Level 3 halted */
  90. #define EL3RST 91 /* Level 3 reset */
  91. #define ELNRNG 93 /* Link number out of range */
  92. #define EUNATCH 94 /* Protocol driver not attached */
  93. #define ENOCSI 95 /* No CSI structure available */
  94. #define EL2HLT 96 /* Level 2 halted */
  95. #define EBADE 97 /* Invalid exchange */
  96. #define EBADR 98 /* Invalid request descriptor */
  97. #define EXFULL 99 /* Exchange full */
  98. #define ENOANO 100 /* No anode */
  99. #define EBADRQC 101 /* Invalid request code */
  100. #define EBADSLT 102 /* Invalid slot */
  101. #define EDEADLOCK EDEADLK
  102. #define EBFONT 104 /* Bad font file format */
  103. #define ENONET 105 /* Machine is not on the network */
  104. #define ENOLINK 106 /* Link has been severed */
  105. #define EADV 107 /* Advertise error */
  106. #define ESRMNT 108 /* Srmount error */
  107. #define ECOMM 109 /* Communication error on send */
  108. #define EMULTIHOP 110 /* Multihop attempted */
  109. #define EDOTDOT 111 /* RFS specific error */
  110. #define EOVERFLOW 112 /* Value too large for defined data type */
  111. #define ENOTUNIQ 113 /* Name not unique on network */
  112. #define EBADFD 114 /* File descriptor in bad state */
  113. #define EREMCHG 115 /* Remote address changed */
  114. #define EUCLEAN 117 /* Structure needs cleaning */
  115. #define ENOTNAM 118 /* Not a XENIX named type file */
  116. #define ENAVAIL 119 /* No XENIX semaphores available */
  117. #define EISNAM 120 /* Is a named type file */
  118. #define EREMOTEIO 121 /* Remote I/O error */
  119. #define ELIBACC 122 /* Can not access a needed shared library */
  120. #define ELIBBAD 123 /* Accessing a corrupted shared library */
  121. #define ELIBSCN 124 /* .lib section in a.out corrupted */
  122. #define ELIBMAX 125 /* Attempting to link in too many shared libraries */
  123. #define ELIBEXEC 126 /* Cannot exec a shared library directly */
  124. #define ERESTART 127 /* Interrupted system call should be restarted */
  125. #define ESTRPIPE 128 /* Streams pipe error */
  126. #define ENOMEDIUM 129 /* No medium found */
  127. #define EMEDIUMTYPE 130 /* Wrong medium type */
  128. #elif defined(__mips__)
  129. #define EPERM 1 /* Operation not permitted */
  130. #define ENOENT 2 /* No such file or directory */
  131. #define ESRCH 3 /* No such process */
  132. #define EINTR 4 /* Interrupted system call */
  133. #define EIO 5 /* I/O error */
  134. #define ENXIO 6 /* No such device or address */
  135. #define E2BIG 7 /* Argument list too long */
  136. #define ENOEXEC 8 /* Exec format error */
  137. #define EBADF 9 /* Bad file number */
  138. #define ECHILD 10 /* No child processes */
  139. #define EAGAIN 11 /* Try again */
  140. #define ENOMEM 12 /* Out of memory */
  141. #define EACCES 13 /* Permission denied */
  142. #define EFAULT 14 /* Bad address */
  143. #define ENOTBLK 15 /* Block device required */
  144. #define EBUSY 16 /* Device or resource busy */
  145. #define EEXIST 17 /* File exists */
  146. #define EXDEV 18 /* Cross-device link */
  147. #define ENODEV 19 /* No such device */
  148. #define ENOTDIR 20 /* Not a directory */
  149. #define EISDIR 21 /* Is a directory */
  150. #define EINVAL 22 /* Invalid argument */
  151. #define ENFILE 23 /* File table overflow */
  152. #define EMFILE 24 /* Too many open files */
  153. #define ENOTTY 25 /* Not a typewriter */
  154. #define ETXTBSY 26 /* Text file busy */
  155. #define EFBIG 27 /* File too large */
  156. #define ENOSPC 28 /* No space left on device */
  157. #define ESPIPE 29 /* Illegal seek */
  158. #define EROFS 30 /* Read-only file system */
  159. #define EMLINK 31 /* Too many links */
  160. #define EPIPE 32 /* Broken pipe */
  161. #define EDOM 33 /* Math argument out of domain of func */
  162. #define ERANGE 34 /* Math result not representable */
  163. #define ENOMSG 35 /* No message of desired type */
  164. #define EIDRM 36 /* Identifier removed */
  165. #define ECHRNG 37 /* Channel number out of range */
  166. #define EL2NSYNC 38 /* Level 2 not synchronized */
  167. #define EL3HLT 39 /* Level 3 halted */
  168. #define EL3RST 40 /* Level 3 reset */
  169. #define ELNRNG 41 /* Link number out of range */
  170. #define EUNATCH 42 /* Protocol driver not attached */
  171. #define ENOCSI 43 /* No CSI structure available */
  172. #define EL2HLT 44 /* Level 2 halted */
  173. #define EDEADLK 45 /* Resource deadlock would occur */
  174. #define ENOLCK 46 /* No record locks available */
  175. #define EBADE 50 /* Invalid exchange */
  176. #define EBADR 51 /* Invalid request descriptor */
  177. #define EXFULL 52 /* Exchange full */
  178. #define ENOANO 53 /* No anode */
  179. #define EBADRQC 54 /* Invalid request code */
  180. #define EBADSLT 55 /* Invalid slot */
  181. #define EDEADLOCK 56 /* File locking deadlock error */
  182. #define EBFONT 59 /* Bad font file format */
  183. #define ENOSTR 60 /* Device not a stream */
  184. #define ENODATA 61 /* No data available */
  185. #define ETIME 62 /* Timer expired */
  186. #define ENOSR 63 /* Out of streams resources */
  187. #define ENONET 64 /* Machine is not on the network */
  188. #define ENOPKG 65 /* Package not installed */
  189. #define EREMOTE 66 /* Object is remote */
  190. #define ENOLINK 67 /* Link has been severed */
  191. #define EADV 68 /* Advertise error */
  192. #define ESRMNT 69 /* Srmount error */
  193. #define ECOMM 70 /* Communication error on send */
  194. #define EPROTO 71 /* Protocol error */
  195. #define EDOTDOT 73 /* RFS specific error */
  196. #define EMULTIHOP 74 /* Multihop attempted */
  197. #define EBADMSG 77 /* Not a data message */
  198. #define ENAMETOOLONG 78 /* File name too long */
  199. #define EOVERFLOW 79 /* Value too large for defined data type */
  200. #define ENOTUNIQ 80 /* Name not unique on network */
  201. #define EBADFD 81 /* File descriptor in bad state */
  202. #define EREMCHG 82 /* Remote address changed */
  203. #define ELIBACC 83 /* Can not access a needed shared library */
  204. #define ELIBBAD 84 /* Accessing a corrupted shared library */
  205. #define ELIBSCN 85 /* .lib section in a.out corrupted */
  206. #define ELIBMAX 86 /* Attempting to link in too many shared libraries */
  207. #define ELIBEXEC 87 /* Cannot exec a shared library directly */
  208. #define EILSEQ 88 /* Illegal byte sequence */
  209. #define ENOSYS 89 /* Function not implemented */
  210. #define ELOOP 90 /* Too many symbolic links encountered */
  211. #define ERESTART 91 /* Interrupted system call should be restarted */
  212. #define ESTRPIPE 92 /* Streams pipe error */
  213. #define ENOTEMPTY 93 /* Directory not empty */
  214. #define EUSERS 94 /* Too many users */
  215. #define ENOTSOCK 95 /* Socket operation on non-socket */
  216. #define EDESTADDRREQ 96 /* Destination address required */
  217. #define EMSGSIZE 97 /* Message too long */
  218. #define EPROTOTYPE 98 /* Protocol wrong type for socket */
  219. #define ENOPROTOOPT 99 /* Protocol not available */
  220. #define EPROTONOSUPPORT 120 /* Protocol not supported */
  221. #define ESOCKTNOSUPPORT 121 /* Socket type not supported */
  222. #define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */
  223. #define EPFNOSUPPORT 123 /* Protocol family not supported */
  224. #define EAFNOSUPPORT 124 /* Address family not supported by protocol */
  225. #define EADDRINUSE 125 /* Address already in use */
  226. #define EADDRNOTAVAIL 126 /* Cannot assign requested address */
  227. #define ENETDOWN 127 /* Network is down */
  228. #define ENETUNREACH 128 /* Network is unreachable */
  229. #define ENETRESET 129 /* Network dropped connection because of reset */
  230. #define ECONNABORTED 130 /* Software caused connection abort */
  231. #define ECONNRESET 131 /* Connection reset by peer */
  232. #define ENOBUFS 132 /* No buffer space available */
  233. #define EISCONN 133 /* Transport endpoint is already connected */
  234. #define ENOTCONN 134 /* Transport endpoint is not connected */
  235. #define EUCLEAN 135 /* Structure needs cleaning */
  236. #define ENOTNAM 137 /* Not a XENIX named type file */
  237. #define ENAVAIL 138 /* No XENIX semaphores available */
  238. #define EISNAM 139 /* Is a named type file */
  239. #define EREMOTEIO 140 /* Remote I/O error */
  240. #define EINIT 141 /* Reserved */
  241. #define EREMDEV 142 /* Error 142 */
  242. #define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */
  243. #define ETOOMANYREFS 144 /* Too many references: cannot splice */
  244. #define ETIMEDOUT 145 /* Connection timed out */
  245. #define ECONNREFUSED 146 /* Connection refused */
  246. #define EHOSTDOWN 147 /* Host is down */
  247. #define EHOSTUNREACH 148 /* No route to host */
  248. #define EWOULDBLOCK EAGAIN /* Operation would block */
  249. #define EALREADY 149 /* Operation already in progress */
  250. #define EINPROGRESS 150 /* Operation now in progress */
  251. #define ESTALE 151 /* Stale NFS file handle */
  252. #define ECANCELED 158 /* AIO operation canceled */
  253. /* These errors are Linux extensions. */
  254. #define ENOMEDIUM 159 /* No medium found */
  255. #define EMEDIUMTYPE 160 /* Wrong medium type */
  256. #define EDQUOT 1133 /* Quota exceeded */
  257. #elif defined(__sparc__)
  258. #define EPERM 1 /* Operation not permitted */
  259. #define ENOENT 2 /* No such file or directory */
  260. #define ESRCH 3 /* No such process */
  261. #define EINTR 4 /* Interrupted system call */
  262. #define EIO 5 /* I/O error */
  263. #define ENXIO 6 /* No such device or address */
  264. #define E2BIG 7 /* Arg list too long */
  265. #define ENOEXEC 8 /* Exec format error */
  266. #define EBADF 9 /* Bad file number */
  267. #define ECHILD 10 /* No child processes */
  268. #define EAGAIN 11 /* Try again */
  269. #define ENOMEM 12 /* Out of memory */
  270. #define EACCES 13 /* Permission denied */
  271. #define EFAULT 14 /* Bad address */
  272. #define ENOTBLK 15 /* Block device required */
  273. #define EBUSY 16 /* Device or resource busy */
  274. #define EEXIST 17 /* File exists */
  275. #define EXDEV 18 /* Cross-device link */
  276. #define ENODEV 19 /* No such device */
  277. #define ENOTDIR 20 /* Not a directory */
  278. #define EISDIR 21 /* Is a directory */
  279. #define EINVAL 22 /* Invalid argument */
  280. #define ENFILE 23 /* File table overflow */
  281. #define EMFILE 24 /* Too many open files */
  282. #define ENOTTY 25 /* Not a typewriter */
  283. #define ETXTBSY 26 /* Text file busy */
  284. #define EFBIG 27 /* File too large */
  285. #define ENOSPC 28 /* No space left on device */
  286. #define ESPIPE 29 /* Illegal seek */
  287. #define EROFS 30 /* Read-only file system */
  288. #define EMLINK 31 /* Too many links */
  289. #define EPIPE 32 /* Broken pipe */
  290. #define EDOM 33 /* Math argument out of domain of func */
  291. #define ERANGE 34 /* Math result not representable */
  292. #define EWOULDBLOCK EAGAIN /* Operation would block */
  293. #define EINPROGRESS 36 /* Operation now in progress */
  294. #define EALREADY 37 /* Operation already in progress */
  295. #define ENOTSOCK 38 /* Socket operation on non-socket */
  296. #define EDESTADDRREQ 39 /* Destination address required */
  297. #define EMSGSIZE 40 /* Message too long */
  298. #define EPROTOTYPE 41 /* Protocol wrong type for socket */
  299. #define ENOPROTOOPT 42 /* Protocol not available */
  300. #define EPROTONOSUPPORT 43 /* Protocol not supported */
  301. #define ESOCKTNOSUPPORT 44 /* Socket type not supported */
  302. #define EOPNOTSUPP 45 /* Op not supported on transport endpoint */
  303. #define EPFNOSUPPORT 46 /* Protocol family not supported */
  304. #define EAFNOSUPPORT 47 /* Address family not supported by protocol */
  305. #define EADDRINUSE 48 /* Address already in use */
  306. #define EADDRNOTAVAIL 49 /* Cannot assign requested address */
  307. #define ENETDOWN 50 /* Network is down */
  308. #define ENETUNREACH 51 /* Network is unreachable */
  309. #define ENETRESET 52 /* Net dropped connection because of reset */
  310. #define ECONNABORTED 53 /* Software caused connection abort */
  311. #define ECONNRESET 54 /* Connection reset by peer */
  312. #define ENOBUFS 55 /* No buffer space available */
  313. #define EISCONN 56 /* Transport endpoint is already connected */
  314. #define ENOTCONN 57 /* Transport endpoint is not connected */
  315. #define ESHUTDOWN 58 /* No send after transport endpoint shutdown */
  316. #define ETOOMANYREFS 59 /* Too many references: cannot splice */
  317. #define ETIMEDOUT 60 /* Connection timed out */
  318. #define ECONNREFUSED 61 /* Connection refused */
  319. #define ELOOP 62 /* Too many symbolic links encountered */
  320. #define ENAMETOOLONG 63 /* File name too long */
  321. #define EHOSTDOWN 64 /* Host is down */
  322. #define EHOSTUNREACH 65 /* No route to host */
  323. #define ENOTEMPTY 66 /* Directory not empty */
  324. #define EPROCLIM 67 /* SUNOS: Too many processes */
  325. #define EUSERS 68 /* Too many users */
  326. #define EDQUOT 69 /* Quota exceeded */
  327. #define ESTALE 70 /* Stale NFS file handle */
  328. #define EREMOTE 71 /* Object is remote */
  329. #define ENOSTR 72 /* Device not a stream */
  330. #define ETIME 73 /* Timer expired */
  331. #define ENOSR 74 /* Out of streams resources */
  332. #define ENOMSG 75 /* No message of desired type */
  333. #define EBADMSG 76 /* Not a data message */
  334. #define EIDRM 77 /* Identifier removed */
  335. #define EDEADLK 78 /* Resource deadlock would occur */
  336. #define ENOLCK 79 /* No record locks available */
  337. #define ENONET 80 /* Machine is not on the network */
  338. #define ERREMOTE 81 /* SunOS: Too many lvls of remote in path */
  339. #define ENOLINK 82 /* Link has been severed */
  340. #define EADV 83 /* Advertise error */
  341. #define ESRMNT 84 /* Srmount error */
  342. #define ECOMM 85 /* Communication error on send */
  343. #define EPROTO 86 /* Protocol error */
  344. #define EMULTIHOP 87 /* Multihop attempted */
  345. #define EDOTDOT 88 /* RFS specific error */
  346. #define EREMCHG 89 /* Remote address changed */
  347. #define ENOSYS 90 /* Function not implemented */
  348. /* The rest have no SunOS equivalent. */
  349. #define ESTRPIPE 91 /* Streams pipe error */
  350. #define EOVERFLOW 92 /* Value too large for defined data type */
  351. #define EBADFD 93 /* File descriptor in bad state */
  352. #define ECHRNG 94 /* Channel number out of range */
  353. #define EL2NSYNC 95 /* Level 2 not synchronized */
  354. #define EL3HLT 96 /* Level 3 halted */
  355. #define EL3RST 97 /* Level 3 reset */
  356. #define ELNRNG 98 /* Link number out of range */
  357. #define EUNATCH 99 /* Protocol driver not attached */
  358. #define ENOCSI 100 /* No CSI structure available */
  359. #define EL2HLT 101 /* Level 2 halted */
  360. #define EBADE 102 /* Invalid exchange */
  361. #define EBADR 103 /* Invalid request descriptor */
  362. #define EXFULL 104 /* Exchange full */
  363. #define ENOANO 105 /* No anode */
  364. #define EBADRQC 106 /* Invalid request code */
  365. #define EBADSLT 107 /* Invalid slot */
  366. #define EDEADLOCK 108 /* File locking deadlock error */
  367. #define EBFONT 109 /* Bad font file format */
  368. #define ELIBEXEC 110 /* Cannot exec a shared library directly */
  369. #define ENODATA 111 /* No data available */
  370. #define ELIBBAD 112 /* Accessing a corrupted shared library */
  371. #define ENOPKG 113 /* Package not installed */
  372. #define ELIBACC 114 /* Can not access a needed shared library */
  373. #define ENOTUNIQ 115 /* Name not unique on network */
  374. #define ERESTART 116 /* Interrupted syscall should be restarted */
  375. #define EUCLEAN 117 /* Structure needs cleaning */
  376. #define ENOTNAM 118 /* Not a XENIX named type file */
  377. #define ENAVAIL 119 /* No XENIX semaphores available */
  378. #define EISNAM 120 /* Is a named type file */
  379. #define EREMOTEIO 121 /* Remote I/O error */
  380. #define EILSEQ 122 /* Illegal byte sequence */
  381. #define ELIBMAX 123 /* Atmpt to link in too many shared libs */
  382. #define ELIBSCN 124 /* .lib section in a.out corrupted */
  383. #define ENOMEDIUM 125 /* No medium found */
  384. #define EMEDIUMTYPE 126 /* Wrong medium type */
  385. #else /* Everything else (i.e. arm cris i386 ia64 m68k parisc ppc
  386. ppc64 s390 s390x sh x86_64, etc) */
  387. #define EPERM 1 /* Operation not permitted */
  388. #define ENOENT 2 /* No such file or directory */
  389. #define ESRCH 3 /* No such process */
  390. #define EINTR 4 /* Interrupted system call */
  391. #define EIO 5 /* I/O error */
  392. #define ENXIO 6 /* No such device or address */
  393. #define E2BIG 7 /* Argument list too long */
  394. #define ENOEXEC 8 /* Exec format error */
  395. #define EBADF 9 /* Bad file number */
  396. #define ECHILD 10 /* No child processes */
  397. #define EAGAIN 11 /* Try again */
  398. #define ENOMEM 12 /* Out of memory */
  399. #define EACCES 13 /* Permission denied */
  400. #define EFAULT 14 /* Bad address */
  401. #define ENOTBLK 15 /* Block device required */
  402. #define EBUSY 16 /* Device or resource busy */
  403. #define EEXIST 17 /* File exists */
  404. #define EXDEV 18 /* Cross-device link */
  405. #define ENODEV 19 /* No such device */
  406. #define ENOTDIR 20 /* Not a directory */
  407. #define EISDIR 21 /* Is a directory */
  408. #define EINVAL 22 /* Invalid argument */
  409. #define ENFILE 23 /* File table overflow */
  410. #define EMFILE 24 /* Too many open files */
  411. #define ENOTTY 25 /* Not a typewriter */
  412. #define ETXTBSY 26 /* Text file busy */
  413. #define EFBIG 27 /* File too large */
  414. #define ENOSPC 28 /* No space left on device */
  415. #define ESPIPE 29 /* Illegal seek */
  416. #define EROFS 30 /* Read-only file system */
  417. #define EMLINK 31 /* Too many links */
  418. #define EPIPE 32 /* Broken pipe */
  419. #define EDOM 33 /* Math argument out of domain of func */
  420. #define ERANGE 34 /* Math result not representable */
  421. #define EDEADLK 35 /* Resource deadlock would occur */
  422. #define ENAMETOOLONG 36 /* File name too long */
  423. #define ENOLCK 37 /* No record locks available */
  424. #define ENOSYS 38 /* Function not implemented */
  425. #define ENOTEMPTY 39 /* Directory not empty */
  426. #define ELOOP 40 /* Too many symbolic links encountered */
  427. #define EWOULDBLOCK EAGAIN /* Operation would block */
  428. #define ENOMSG 42 /* No message of desired type */
  429. #define EIDRM 43 /* Identifier removed */
  430. #define ECHRNG 44 /* Channel number out of range */
  431. #define EL2NSYNC 45 /* Level 2 not synchronized */
  432. #define EL3HLT 46 /* Level 3 halted */
  433. #define EL3RST 47 /* Level 3 reset */
  434. #define ELNRNG 48 /* Link number out of range */
  435. #define EUNATCH 49 /* Protocol driver not attached */
  436. #define ENOCSI 50 /* No CSI structure available */
  437. #define EL2HLT 51 /* Level 2 halted */
  438. #define EBADE 52 /* Invalid exchange */
  439. #define EBADR 53 /* Invalid request descriptor */
  440. #define EXFULL 54 /* Exchange full */
  441. #define ENOANO 55 /* No anode */
  442. #define EBADRQC 56 /* Invalid request code */
  443. #define EBADSLT 57 /* Invalid slot */
  444. #define EDEADLOCK EDEADLK
  445. #define EBFONT 59 /* Bad font file format */
  446. #define ENOSTR 60 /* Device not a stream */
  447. #define ENODATA 61 /* No data available */
  448. #define ETIME 62 /* Timer expired */
  449. #define ENOSR 63 /* Out of streams resources */
  450. #define ENONET 64 /* Machine is not on the network */
  451. #define ENOPKG 65 /* Package not installed */
  452. #define EREMOTE 66 /* Object is remote */
  453. #define ENOLINK 67 /* Link has been severed */
  454. #define EADV 68 /* Advertise error */
  455. #define ESRMNT 69 /* Srmount error */
  456. #define ECOMM 70 /* Communication error on send */
  457. #define EPROTO 71 /* Protocol error */
  458. #define EMULTIHOP 72 /* Multihop attempted */
  459. #define EDOTDOT 73 /* RFS specific error */
  460. #define EBADMSG 74 /* Not a data message */
  461. #define EOVERFLOW 75 /* Value too large for defined data type */
  462. #define ENOTUNIQ 76 /* Name not unique on network */
  463. #define EBADFD 77 /* File descriptor in bad state */
  464. #define EREMCHG 78 /* Remote address changed */
  465. #define ELIBACC 79 /* Can not access a needed shared library */
  466. #define ELIBBAD 80 /* Accessing a corrupted shared library */
  467. #define ELIBSCN 81 /* .lib section in a.out corrupted */
  468. #define ELIBMAX 82 /* Attempting to link in too many shared libraries */
  469. #define ELIBEXEC 83 /* Cannot exec a shared library directly */
  470. #define EILSEQ 84 /* Illegal byte sequence */
  471. #define ERESTART 85 /* Interrupted system call should be restarted */
  472. #define ESTRPIPE 86 /* Streams pipe error */
  473. #define EUSERS 87 /* Too many users */
  474. #define ENOTSOCK 88 /* Socket operation on non-socket */
  475. #define EDESTADDRREQ 89 /* Destination address required */
  476. #define EMSGSIZE 90 /* Message too long */
  477. #define EPROTOTYPE 91 /* Protocol wrong type for socket */
  478. #define ENOPROTOOPT 92 /* Protocol not available */
  479. #define EPROTONOSUPPORT 93 /* Protocol not supported */
  480. #define ESOCKTNOSUPPORT 94 /* Socket type not supported */
  481. #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
  482. #define EPFNOSUPPORT 96 /* Protocol family not supported */
  483. #define EAFNOSUPPORT 97 /* Address family not supported by protocol */
  484. #define EADDRINUSE 98 /* Address already in use */
  485. #define EADDRNOTAVAIL 99 /* Cannot assign requested address */
  486. #define ENETDOWN 100 /* Network is down */
  487. #define ENETUNREACH 101 /* Network is unreachable */
  488. #define ENETRESET 102 /* Network dropped connection because of reset */
  489. #define ECONNABORTED 103 /* Software caused connection abort */
  490. #define ECONNRESET 104 /* Connection reset by peer */
  491. #define ENOBUFS 105 /* No buffer space available */
  492. #define EISCONN 106 /* Transport endpoint is already connected */
  493. #define ENOTCONN 107 /* Transport endpoint is not connected */
  494. #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
  495. #define ETOOMANYREFS 109 /* Too many references: cannot splice */
  496. #define ETIMEDOUT 110 /* Connection timed out */
  497. #define ECONNREFUSED 111 /* Connection refused */
  498. #define EHOSTDOWN 112 /* Host is down */
  499. #define EHOSTUNREACH 113 /* No route to host */
  500. #define EALREADY 114 /* Operation already in progress */
  501. #define EINPROGRESS 115 /* Operation now in progress */
  502. #define ESTALE 116 /* Stale NFS file handle */
  503. #define EUCLEAN 117 /* Structure needs cleaning */
  504. #define ENOTNAM 118 /* Not a XENIX named type file */
  505. #define ENAVAIL 119 /* No XENIX semaphores available */
  506. #define EISNAM 120 /* Is a named type file */
  507. #define EREMOTEIO 121 /* Remote I/O error */
  508. #define EDQUOT 122 /* Quota exceeded */
  509. #define ENOMEDIUM 123 /* No medium found */
  510. #define EMEDIUMTYPE 124 /* Wrong medium type */
  511. #endif
  512. #endif /* _BITS_ERRNO_VALUES_H */