e.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. #ifndef E_H
  2. #define E_H
  3. #include <errno.h>
  4. extern const char *e_str(int);
  5. #ifndef EPERM
  6. #define EPERM (-5001)
  7. #endif
  8. #ifndef ENOENT
  9. #define ENOENT (-5002)
  10. #endif
  11. #ifndef ESRCH
  12. #define ESRCH (-5003)
  13. #endif
  14. #ifndef EINTR
  15. #define EINTR (-5004)
  16. #endif
  17. #ifndef EIO
  18. #define EIO (-5005)
  19. #endif
  20. #ifndef ENXIO
  21. #define ENXIO (-5006)
  22. #endif
  23. #ifndef E2BIG
  24. #define E2BIG (-5007)
  25. #endif
  26. #ifndef ENOEXEC
  27. #define ENOEXEC (-5008)
  28. #endif
  29. #ifndef EBADF
  30. #define EBADF (-5009)
  31. #endif
  32. #ifndef ECHILD
  33. #define ECHILD (-5010)
  34. #endif
  35. #ifndef EAGAIN
  36. #define EAGAIN (-5011)
  37. #endif
  38. #ifndef EWOULDBLOCK
  39. #define EWOULDBLOCK (-7011)
  40. #endif
  41. #ifndef ENOMEM
  42. #define ENOMEM (-5012)
  43. #endif
  44. #ifndef EACCES
  45. #define EACCES (-5013)
  46. #endif
  47. #ifndef EFAULT
  48. #define EFAULT (-5014)
  49. #endif
  50. #ifndef ENOTBLK
  51. #define ENOTBLK (-5015)
  52. #endif
  53. #ifndef EBUSY
  54. #define EBUSY (-5016)
  55. #endif
  56. #ifndef EEXIST
  57. #define EEXIST (-5017)
  58. #endif
  59. #ifndef EXDEV
  60. #define EXDEV (-5018)
  61. #endif
  62. #ifndef ENODEV
  63. #define ENODEV (-5019)
  64. #endif
  65. #ifndef ENOTDIR
  66. #define ENOTDIR (-5020)
  67. #endif
  68. #ifndef EISDIR
  69. #define EISDIR (-5021)
  70. #endif
  71. #ifndef EINVAL
  72. #define EINVAL (-5022)
  73. #endif
  74. #ifndef ENFILE
  75. #define ENFILE (-5023)
  76. #endif
  77. #ifndef EMFILE
  78. #define EMFILE (-5024)
  79. #endif
  80. #ifndef ENOTTY
  81. #define ENOTTY (-5025)
  82. #endif
  83. #ifndef ETXTBSY
  84. #define ETXTBSY (-5026)
  85. #endif
  86. #ifndef EFBIG
  87. #define EFBIG (-5027)
  88. #endif
  89. #ifndef ENOSPC
  90. #define ENOSPC (-5028)
  91. #endif
  92. #ifndef ESPIPE
  93. #define ESPIPE (-5029)
  94. #endif
  95. #ifndef EROFS
  96. #define EROFS (-5030)
  97. #endif
  98. #ifndef EMLINK
  99. #define EMLINK (-5031)
  100. #endif
  101. #ifndef EPIPE
  102. #define EPIPE (-5032)
  103. #endif
  104. #ifndef EDOM
  105. #define EDOM (-5033)
  106. #endif
  107. #ifndef ERANGE
  108. #define ERANGE (-5034)
  109. #endif
  110. #ifndef EDEADLK
  111. #define EDEADLK (-5035)
  112. #endif
  113. #ifndef EDEADLOCK
  114. #define EDEADLOCK (-7035)
  115. #endif
  116. #ifndef ENAMETOOLONG
  117. #define ENAMETOOLONG (-5036)
  118. #endif
  119. #ifndef ENOLCK
  120. #define ENOLCK (-5037)
  121. #endif
  122. #ifndef ENOSYS
  123. #define ENOSYS (-5038)
  124. #endif
  125. #ifndef ENOTEMPTY
  126. #define ENOTEMPTY (-5039)
  127. #endif
  128. #ifndef ELOOP
  129. #define ELOOP (-5040)
  130. #endif
  131. #ifndef ENOMSG
  132. #define ENOMSG (-5042)
  133. #endif
  134. #ifndef EIDRM
  135. #define EIDRM (-5043)
  136. #endif
  137. #ifndef ECHRNG
  138. #define ECHRNG (-5044)
  139. #endif
  140. #ifndef EL2NSYNC
  141. #define EL2NSYNC (-5045)
  142. #endif
  143. #ifndef EL3HLT
  144. #define EL3HLT (-5046)
  145. #endif
  146. #ifndef EL3RST
  147. #define EL3RST (-5047)
  148. #endif
  149. #ifndef ELNRNG
  150. #define ELNRNG (-5048)
  151. #endif
  152. #ifndef EUNATCH
  153. #define EUNATCH (-5049)
  154. #endif
  155. #ifndef ENOCSI
  156. #define ENOCSI (-5050)
  157. #endif
  158. #ifndef EL2HLT
  159. #define EL2HLT (-5051)
  160. #endif
  161. #ifndef EBADE
  162. #define EBADE (-5052)
  163. #endif
  164. #ifndef EBADR
  165. #define EBADR (-5053)
  166. #endif
  167. #ifndef EXFULL
  168. #define EXFULL (-5054)
  169. #endif
  170. #ifndef ENOANO
  171. #define ENOANO (-5055)
  172. #endif
  173. #ifndef EBADRQC
  174. #define EBADRQC (-5056)
  175. #endif
  176. #ifndef EBADSLT
  177. #define EBADSLT (-5057)
  178. #endif
  179. #ifndef EBFONT
  180. #define EBFONT (-5059)
  181. #endif
  182. #ifndef ENOSTR
  183. #define ENOSTR (-5060)
  184. #endif
  185. #ifndef ENODATA
  186. #define ENODATA (-5061)
  187. #endif
  188. #ifndef ETIME
  189. #define ETIME (-5062)
  190. #endif
  191. #ifndef ENOSR
  192. #define ENOSR (-5063)
  193. #endif
  194. #ifndef ENONET
  195. #define ENONET (-5064)
  196. #endif
  197. #ifndef ENOPKG
  198. #define ENOPKG (-5065)
  199. #endif
  200. #ifndef EREMOTE
  201. #define EREMOTE (-5066)
  202. #endif
  203. #ifndef ENOLINK
  204. #define ENOLINK (-5067)
  205. #endif
  206. #ifndef EADV
  207. #define EADV (-5068)
  208. #endif
  209. #ifndef ESRMNT
  210. #define ESRMNT (-5069)
  211. #endif
  212. #ifndef ECOMM
  213. #define ECOMM (-5070)
  214. #endif
  215. #ifndef EPROTO
  216. #define EPROTO (-5071)
  217. #endif
  218. #ifndef EMULTIHOP
  219. #define EMULTIHOP (-5072)
  220. #endif
  221. #ifndef EDOTDOT
  222. #define EDOTDOT (-5073)
  223. #endif
  224. #ifndef EBADMSG
  225. #define EBADMSG (-5074)
  226. #endif
  227. #ifndef EOVERFLOW
  228. #define EOVERFLOW (-5075)
  229. #endif
  230. #ifndef ENOTUNIQ
  231. #define ENOTUNIQ (-5076)
  232. #endif
  233. #ifndef EBADFD
  234. #define EBADFD (-5077)
  235. #endif
  236. #ifndef EREMCHG
  237. #define EREMCHG (-5078)
  238. #endif
  239. #ifndef ELIBACC
  240. #define ELIBACC (-5079)
  241. #endif
  242. #ifndef ELIBBAD
  243. #define ELIBBAD (-5080)
  244. #endif
  245. #ifndef ELIBSCN
  246. #define ELIBSCN (-5081)
  247. #endif
  248. #ifndef ELIBMAX
  249. #define ELIBMAX (-5082)
  250. #endif
  251. #ifndef ELIBEXEC
  252. #define ELIBEXEC (-5083)
  253. #endif
  254. #ifndef EILSEQ
  255. #define EILSEQ (-5084)
  256. #endif
  257. #ifndef ERESTART
  258. #define ERESTART (-5085)
  259. #endif
  260. #ifndef ESTRPIPE
  261. #define ESTRPIPE (-5086)
  262. #endif
  263. #ifndef EUSERS
  264. #define EUSERS (-5087)
  265. #endif
  266. #ifndef ENOTSOCK
  267. #define ENOTSOCK (-5088)
  268. #endif
  269. #ifndef EDESTADDRREQ
  270. #define EDESTADDRREQ (-5089)
  271. #endif
  272. #ifndef EMSGSIZE
  273. #define EMSGSIZE (-5090)
  274. #endif
  275. #ifndef EPROTOTYPE
  276. #define EPROTOTYPE (-5091)
  277. #endif
  278. #ifndef ENOPROTOOPT
  279. #define ENOPROTOOPT (-5092)
  280. #endif
  281. #ifndef EPROTONOSUPPORT
  282. #define EPROTONOSUPPORT (-5093)
  283. #endif
  284. #ifndef ESOCKTNOSUPPORT
  285. #define ESOCKTNOSUPPORT (-5094)
  286. #endif
  287. #ifndef EOPNOTSUPP
  288. #define EOPNOTSUPP (-5095)
  289. #endif
  290. #ifndef EPFNOSUPPORT
  291. #define EPFNOSUPPORT (-5096)
  292. #endif
  293. #ifndef EAFNOSUPPORT
  294. #define EAFNOSUPPORT (-5097)
  295. #endif
  296. #ifndef EADDRINUSE
  297. #define EADDRINUSE (-5098)
  298. #endif
  299. #ifndef EADDRNOTAVAIL
  300. #define EADDRNOTAVAIL (-5099)
  301. #endif
  302. #ifndef ENETDOWN
  303. #define ENETDOWN (-5100)
  304. #endif
  305. #ifndef ENETUNREACH
  306. #define ENETUNREACH (-5101)
  307. #endif
  308. #ifndef ENETRESET
  309. #define ENETRESET (-5102)
  310. #endif
  311. #ifndef ECONNABORTED
  312. #define ECONNABORTED (-5103)
  313. #endif
  314. #ifndef ECONNRESET
  315. #define ECONNRESET (-5104)
  316. #endif
  317. #ifndef ENOBUFS
  318. #define ENOBUFS (-5105)
  319. #endif
  320. #ifndef EISCONN
  321. #define EISCONN (-5106)
  322. #endif
  323. #ifndef ENOTCONN
  324. #define ENOTCONN (-5107)
  325. #endif
  326. #ifndef ESHUTDOWN
  327. #define ESHUTDOWN (-5108)
  328. #endif
  329. #ifndef ETOOMANYREFS
  330. #define ETOOMANYREFS (-5109)
  331. #endif
  332. #ifndef ETIMEDOUT
  333. #define ETIMEDOUT (-5110)
  334. #endif
  335. #ifndef ECONNREFUSED
  336. #define ECONNREFUSED (-5111)
  337. #endif
  338. #ifndef EHOSTDOWN
  339. #define EHOSTDOWN (-5112)
  340. #endif
  341. #ifndef EHOSTUNREACH
  342. #define EHOSTUNREACH (-5113)
  343. #endif
  344. #ifndef EALREADY
  345. #define EALREADY (-5114)
  346. #endif
  347. #ifndef EINPROGRESS
  348. #define EINPROGRESS (-5115)
  349. #endif
  350. #ifndef ESTALE
  351. #define ESTALE (-5116)
  352. #endif
  353. #ifndef EUCLEAN
  354. #define EUCLEAN (-5117)
  355. #endif
  356. #ifndef ENOTNAM
  357. #define ENOTNAM (-5118)
  358. #endif
  359. #ifndef ENAVAIL
  360. #define ENAVAIL (-5119)
  361. #endif
  362. #ifndef EISNAM
  363. #define EISNAM (-5120)
  364. #endif
  365. #ifndef EREMOTEIO
  366. #define EREMOTEIO (-5121)
  367. #endif
  368. #ifndef EDQUOT
  369. #define EDQUOT (-5122)
  370. #endif
  371. #ifndef ENOMEDIUM
  372. #define ENOMEDIUM (-5123)
  373. #endif
  374. #ifndef EMEDIUMTYPE
  375. #define EMEDIUMTYPE (-5124)
  376. #endif
  377. #ifndef ECANCELED
  378. #define ECANCELED (-5125)
  379. #endif
  380. #ifndef ENOKEY
  381. #define ENOKEY (-5126)
  382. #endif
  383. #ifndef EKEYEXPIRED
  384. #define EKEYEXPIRED (-5127)
  385. #endif
  386. #ifndef EKEYREVOKED
  387. #define EKEYREVOKED (-5128)
  388. #endif
  389. #ifndef EKEYREJECTED
  390. #define EKEYREJECTED (-5129)
  391. #endif
  392. #ifndef EOWNERDEAD
  393. #define EOWNERDEAD (-5130)
  394. #endif
  395. #ifndef ENOTRECOVERABLE
  396. #define ENOTRECOVERABLE (-5131)
  397. #endif
  398. #ifndef ERFKILL
  399. #define ERFKILL (-5132)
  400. #endif
  401. #ifndef EPROCLIM
  402. #define EPROCLIM (-6067)
  403. #endif
  404. #ifndef EBADRPC
  405. #define EBADRPC (-6072)
  406. #endif
  407. #ifndef ERPCMISMATCH
  408. #define ERPCMISMATCH (-6073)
  409. #endif
  410. #ifndef EPROGUNAVAIL
  411. #define EPROGUNAVAIL (-6074)
  412. #endif
  413. #ifndef EPROGMISMATCH
  414. #define EPROGMISMATCH (-6075)
  415. #endif
  416. #ifndef EPROCUNAVAIL
  417. #define EPROCUNAVAIL (-6076)
  418. #endif
  419. #ifndef EFTYPE
  420. #define EFTYPE (-6079)
  421. #endif
  422. #ifndef EAUTH
  423. #define EAUTH (-6080)
  424. #endif
  425. #ifndef ENEEDAUTH
  426. #define ENEEDAUTH (-6081)
  427. #endif
  428. #ifndef ENOATTR
  429. #define ENOATTR (-6087)
  430. #endif
  431. #ifndef ENOTCAPABLE
  432. #define ENOTCAPABLE (-6093)
  433. #endif
  434. #endif