cerrno.hpp 4.1 KB

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