cerrno.hpp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. // Boost cerrno.hpp header -------------------------------------------------//
  2. // Copyright Beman Dawes 2005.
  3. // Use, modification, and distribution is subject to the Boost Software
  4. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. // See library home page at http://www.boost.org/libs/system
  7. #ifndef BOOST_SYSTEM_CERRNO_HPP
  8. #define BOOST_SYSTEM_CERRNO_HPP
  9. #include <cerrno>
  10. // supply errno values likely to be missing, particularly on Windows
  11. #ifndef EAFNOSUPPORT
  12. #define EAFNOSUPPORT 9901
  13. #endif
  14. #ifndef EADDRINUSE
  15. #define EADDRINUSE 9902
  16. #endif
  17. #ifndef EADDRNOTAVAIL
  18. #define EADDRNOTAVAIL 9903
  19. #endif
  20. #ifndef EISCONN
  21. #define EISCONN 9904
  22. #endif
  23. #ifndef EBADMSG
  24. #define EBADMSG 9905
  25. #endif
  26. #ifndef ECONNABORTED
  27. #define ECONNABORTED 9906
  28. #endif
  29. #ifndef EALREADY
  30. #define EALREADY 9907
  31. #endif
  32. #ifndef ECONNREFUSED
  33. #define ECONNREFUSED 9908
  34. #endif
  35. #ifndef ECONNRESET
  36. #define ECONNRESET 9909
  37. #endif
  38. #ifndef EDESTADDRREQ
  39. #define EDESTADDRREQ 9910
  40. #endif
  41. #ifndef EHOSTUNREACH
  42. #define EHOSTUNREACH 9911
  43. #endif
  44. #ifndef EIDRM
  45. #define EIDRM 9912
  46. #endif
  47. #ifndef EMSGSIZE
  48. #define EMSGSIZE 9913
  49. #endif
  50. #ifndef ENETDOWN
  51. #define ENETDOWN 9914
  52. #endif
  53. #ifndef ENETRESET
  54. #define ENETRESET 9915
  55. #endif
  56. #ifndef ENETUNREACH
  57. #define ENETUNREACH 9916
  58. #endif
  59. #ifndef ENOBUFS
  60. #define ENOBUFS 9917
  61. #endif
  62. #ifndef ENOLINK
  63. #define ENOLINK 9918
  64. #endif
  65. #ifndef ENODATA
  66. #define ENODATA 9919
  67. #endif
  68. #ifndef ENOMSG
  69. #define ENOMSG 9920
  70. #endif
  71. #ifndef ENOPROTOOPT
  72. #define ENOPROTOOPT 9921
  73. #endif
  74. #ifndef ENOSR
  75. #define ENOSR 9922
  76. #endif
  77. #ifndef ENOTSOCK
  78. #define ENOTSOCK 9923
  79. #endif
  80. #ifndef ENOSTR
  81. #define ENOSTR 9924
  82. #endif
  83. #ifndef ENOTCONN
  84. #define ENOTCONN 9925
  85. #endif
  86. #ifndef ENOTSUP
  87. #define ENOTSUP 9926
  88. #endif
  89. #ifndef ECANCELED
  90. #define ECANCELED 9927
  91. #endif
  92. #ifndef EINPROGRESS
  93. #define EINPROGRESS 9928
  94. #endif
  95. #ifndef EOPNOTSUPP
  96. #define EOPNOTSUPP 9929
  97. #endif
  98. #ifndef EWOULDBLOCK
  99. #define EWOULDBLOCK 9930
  100. #endif
  101. #ifndef EOWNERDEAD
  102. #define EOWNERDEAD 9931
  103. #endif
  104. #ifndef EPROTO
  105. #define EPROTO 9932
  106. #endif
  107. #ifndef EPROTONOSUPPORT
  108. #define EPROTONOSUPPORT 9933
  109. #endif
  110. #ifndef ENOTRECOVERABLE
  111. #define ENOTRECOVERABLE 9934
  112. #endif
  113. #ifndef ETIME
  114. #define ETIME 9935
  115. #endif
  116. #ifndef ETXTBSY
  117. #define ETXTBSY 9936
  118. #endif
  119. #ifndef ETIMEDOUT
  120. #define ETIMEDOUT 9938
  121. #endif
  122. #ifndef ELOOP
  123. #define ELOOP 9939
  124. #endif
  125. #ifndef EOVERFLOW
  126. #define EOVERFLOW 9940
  127. #endif
  128. #ifndef EPROTOTYPE
  129. #define EPROTOTYPE 9941
  130. #endif
  131. #ifndef ENOSYS
  132. #define ENOSYS 9942
  133. #endif
  134. #ifndef EINVAL
  135. #define EINVAL 9943
  136. #endif
  137. #ifndef ERANGE
  138. #define ERANGE 9944
  139. #endif
  140. #ifndef EILSEQ
  141. #define EILSEQ 9945
  142. #endif
  143. // Windows Mobile doesn't appear to define these:
  144. #ifndef E2BIG
  145. #define E2BIG 9946
  146. #endif
  147. #ifndef EDOM
  148. #define EDOM 9947
  149. #endif
  150. #ifndef EFAULT
  151. #define EFAULT 9948
  152. #endif
  153. #ifndef EBADF
  154. #define EBADF 9949
  155. #endif
  156. #ifndef EPIPE
  157. #define EPIPE 9950
  158. #endif
  159. #ifndef EXDEV
  160. #define EXDEV 9951
  161. #endif
  162. #ifndef EBUSY
  163. #define EBUSY 9952
  164. #endif
  165. #ifndef ENOTEMPTY
  166. #define ENOTEMPTY 9953
  167. #endif
  168. #ifndef ENOEXEC
  169. #define ENOEXEC 9954
  170. #endif
  171. #ifndef EEXIST
  172. #define EEXIST 9955
  173. #endif
  174. #ifndef EFBIG
  175. #define EFBIG 9956
  176. #endif
  177. #ifndef ENAMETOOLONG
  178. #define ENAMETOOLONG 9957
  179. #endif
  180. #ifndef ENOTTY
  181. #define ENOTTY 9958
  182. #endif
  183. #ifndef EINTR
  184. #define EINTR 9959
  185. #endif
  186. #ifndef ESPIPE
  187. #define ESPIPE 9960
  188. #endif
  189. #ifndef EIO
  190. #define EIO 9961
  191. #endif
  192. #ifndef EISDIR
  193. #define EISDIR 9962
  194. #endif
  195. #ifndef ECHILD
  196. #define ECHILD 9963
  197. #endif
  198. #ifndef ENOLCK
  199. #define ENOLCK 9964
  200. #endif
  201. #ifndef ENOSPC
  202. #define ENOSPC 9965
  203. #endif
  204. #ifndef ENXIO
  205. #define ENXIO 9966
  206. #endif
  207. #ifndef ENODEV
  208. #define ENODEV 9967
  209. #endif
  210. #ifndef ENOENT
  211. #define ENOENT 9968
  212. #endif
  213. #ifndef ESRCH
  214. #define ESRCH 9969
  215. #endif
  216. #ifndef ENOTDIR
  217. #define ENOTDIR 9970
  218. #endif
  219. #ifndef ENOMEM
  220. #define ENOMEM 9971
  221. #endif
  222. #ifndef EPERM
  223. #define EPERM 9972
  224. #endif
  225. #ifndef EACCES
  226. #define EACCES 9973
  227. #endif
  228. #ifndef EROFS
  229. #define EROFS 9974
  230. #endif
  231. #ifndef EDEADLK
  232. #define EDEADLK 9975
  233. #endif
  234. #ifndef EAGAIN
  235. #define EAGAIN 9976
  236. #endif
  237. #ifndef ENFILE
  238. #define ENFILE 9977
  239. #endif
  240. #ifndef EMFILE
  241. #define EMFILE 9978
  242. #endif
  243. #ifndef EMLINK
  244. #define EMLINK 9979
  245. #endif
  246. #endif // include guard