_wsa_errnos.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef WSABASEERR
  7. #define WSABASEERR 10000
  8. #define WSAEINTR (WSABASEERR + 4 )
  9. #define WSAEBADF (WSABASEERR + 9 )
  10. #define WSAEACCES (WSABASEERR + 13 )
  11. #define WSAEFAULT (WSABASEERR + 14 )
  12. #define WSAEINVAL (WSABASEERR + 22 )
  13. #define WSAEMFILE (WSABASEERR + 24 )
  14. #define WSAEWOULDBLOCK (WSABASEERR + 35 )
  15. #define WSAEINPROGRESS (WSABASEERR + 36 )
  16. #define WSAEALREADY (WSABASEERR + 37 )
  17. #define WSAENOTSOCK (WSABASEERR + 38 )
  18. #define WSAEDESTADDRREQ (WSABASEERR + 39 )
  19. #define WSAEMSGSIZE (WSABASEERR + 40 )
  20. #define WSAEPROTOTYPE (WSABASEERR + 41 )
  21. #define WSAENOPROTOOPT (WSABASEERR + 42 )
  22. #define WSAEPROTONOSUPPORT (WSABASEERR + 43 )
  23. #define WSAESOCKTNOSUPPORT (WSABASEERR + 44 )
  24. #define WSAEOPNOTSUPP (WSABASEERR + 45 )
  25. #define WSAEPFNOSUPPORT (WSABASEERR + 46 )
  26. #define WSAEAFNOSUPPORT (WSABASEERR + 47 )
  27. #define WSAEADDRINUSE (WSABASEERR + 48 )
  28. #define WSAEADDRNOTAVAIL (WSABASEERR + 49 )
  29. #define WSAENETDOWN (WSABASEERR + 50 )
  30. #define WSAENETUNREACH (WSABASEERR + 51 )
  31. #define WSAENETRESET (WSABASEERR + 52 )
  32. #define WSAECONNABORTED (WSABASEERR + 53 )
  33. #define WSAECONNRESET (WSABASEERR + 54 )
  34. #define WSAENOBUFS (WSABASEERR + 55 )
  35. #define WSAEISCONN (WSABASEERR + 56 )
  36. #define WSAENOTCONN (WSABASEERR + 57 )
  37. #define WSAESHUTDOWN (WSABASEERR + 58 )
  38. #define WSAETOOMANYREFS (WSABASEERR + 59 )
  39. #define WSAETIMEDOUT (WSABASEERR + 60 )
  40. #define WSAECONNREFUSED (WSABASEERR + 61 )
  41. #define WSAELOOP (WSABASEERR + 62 )
  42. #define WSAENAMETOOLONG (WSABASEERR + 63 )
  43. #define WSAEHOSTDOWN (WSABASEERR + 64 )
  44. #define WSAEHOSTUNREACH (WSABASEERR + 65 )
  45. #define WSAENOTEMPTY (WSABASEERR + 66 )
  46. #define WSAEPROCLIM (WSABASEERR + 67 )
  47. #define WSAEUSERS (WSABASEERR + 68 )
  48. #define WSAEDQUOT (WSABASEERR + 69 )
  49. #define WSAESTALE (WSABASEERR + 70 )
  50. #define WSAEREMOTE (WSABASEERR + 71 )
  51. #define WSASYSNOTREADY (WSABASEERR + 91 )
  52. #define WSAVERNOTSUPPORTED (WSABASEERR + 92 )
  53. #define WSANOTINITIALISED (WSABASEERR + 93 )
  54. #define WSAEDISCON (WSABASEERR + 101 )
  55. #ifndef WSAHOST_NOT_FOUND
  56. #define WSAHOST_NOT_FOUND (WSABASEERR + 1001)
  57. #endif
  58. #ifndef WSATRY_AGAIN
  59. #define WSATRY_AGAIN (WSABASEERR + 1002)
  60. #endif
  61. #ifndef WSANO_RECOVERY
  62. #define WSANO_RECOVERY (WSABASEERR + 1003)
  63. #endif
  64. #ifndef WSANO_DATA
  65. #define WSANO_DATA (WSABASEERR + 1004)
  66. #endif
  67. #endif /* WSABASEERR */
  68. #ifdef _WINSOCK2API_
  69. #ifndef WSAENOMORE
  70. #define WSAENOMORE (WSABASEERR + 102)
  71. #endif
  72. #ifndef WSAECANCELLED
  73. #define WSAECANCELLED (WSABASEERR + 103)
  74. #endif
  75. #ifndef WSAEINVALIDPROCTABLE
  76. #define WSAEINVALIDPROCTABLE (WSABASEERR + 104)
  77. #endif
  78. #ifndef WSAEINVALIDPROVIDER
  79. #define WSAEINVALIDPROVIDER (WSABASEERR + 105)
  80. #endif
  81. #ifndef WSAEPROVIDERFAILEDINIT
  82. #define WSAEPROVIDERFAILEDINIT (WSABASEERR + 106)
  83. #endif
  84. #ifndef WSASYSCALLFAILURE
  85. #define WSASYSCALLFAILURE (WSABASEERR + 107)
  86. #endif
  87. #ifndef WSASERVICE_NOT_FOUND
  88. #define WSASERVICE_NOT_FOUND (WSABASEERR + 108)
  89. #endif
  90. #ifndef WSATYPE_NOT_FOUND
  91. #define WSATYPE_NOT_FOUND (WSABASEERR + 109)
  92. #endif
  93. #ifndef WSA_E_NO_MORE
  94. #define WSA_E_NO_MORE (WSABASEERR + 110)
  95. #endif
  96. #ifndef WSA_E_CANCELLED
  97. #define WSA_E_CANCELLED (WSABASEERR + 111)
  98. #endif
  99. #ifndef WSAEREFUSED
  100. #define WSAEREFUSED (WSABASEERR + 112)
  101. #endif
  102. #ifndef WSA_QOS_RECEIVERS
  103. #define WSA_QOS_RECEIVERS (WSABASEERR + 1005)
  104. #endif
  105. #ifndef WSA_QOS_SENDERS
  106. #define WSA_QOS_SENDERS (WSABASEERR + 1006)
  107. #endif
  108. #ifndef WSA_QOS_NO_SENDERS
  109. #define WSA_QOS_NO_SENDERS (WSABASEERR + 1007)
  110. #define WSA_QOS_NO_RECEIVERS (WSABASEERR + 1008)
  111. #define WSA_QOS_REQUEST_CONFIRMED (WSABASEERR + 1009)
  112. #define WSA_QOS_ADMISSION_FAILURE (WSABASEERR + 1010)
  113. #define WSA_QOS_POLICY_FAILURE (WSABASEERR + 1011)
  114. #define WSA_QOS_BAD_STYLE (WSABASEERR + 1012)
  115. #define WSA_QOS_BAD_OBJECT (WSABASEERR + 1013)
  116. #define WSA_QOS_TRAFFIC_CTRL_ERROR (WSABASEERR + 1014)
  117. #define WSA_QOS_GENERIC_ERROR (WSABASEERR + 1015)
  118. #define WSA_QOS_ESERVICETYPE (WSABASEERR + 1016)
  119. #define WSA_QOS_EFLOWSPEC (WSABASEERR + 1017)
  120. #define WSA_QOS_EPROVSPECBUF (WSABASEERR + 1018)
  121. #endif
  122. #ifndef WSA_QOS_EFILTERSTYLE
  123. #define WSA_QOS_EFILTERSTYLE (WSABASEERR + 1019)
  124. #endif
  125. #ifndef WSA_QOS_EFILTERTYPE
  126. #define WSA_QOS_EFILTERTYPE (WSABASEERR + 1020)
  127. #endif
  128. #ifndef WSA_QOS_EFILTERCOUNT
  129. #define WSA_QOS_EFILTERCOUNT (WSABASEERR + 1021)
  130. #endif
  131. #ifndef WSA_QOS_EOBJLENGTH
  132. #define WSA_QOS_EOBJLENGTH (WSABASEERR + 1022)
  133. #endif
  134. #ifndef WSA_QOS_EFLOWCOUNT
  135. #define WSA_QOS_EFLOWCOUNT (WSABASEERR + 1023)
  136. #endif
  137. #ifndef WSA_QOS_EUNKNOWNPSOBJ
  138. #define WSA_QOS_EUNKNOWNPSOBJ (WSABASEERR + 1024)
  139. #endif
  140. #ifndef WSA_QOS_EPOLICYOBJ
  141. #define WSA_QOS_EPOLICYOBJ (WSABASEERR + 1025)
  142. #endif
  143. #ifndef WSA_QOS_EFLOWDESC
  144. #define WSA_QOS_EFLOWDESC (WSABASEERR + 1026)
  145. #endif
  146. #ifndef WSA_QOS_EPSFLOWSPEC
  147. #define WSA_QOS_EPSFLOWSPEC (WSABASEERR + 1027)
  148. #endif
  149. #ifndef WSA_QOS_EPSFILTERSPEC
  150. #define WSA_QOS_EPSFILTERSPEC (WSABASEERR + 1028)
  151. #endif
  152. #ifndef WSA_QOS_ESDMODEOBJ
  153. #define WSA_QOS_ESDMODEOBJ (WSABASEERR + 1029)
  154. #endif
  155. #ifndef WSA_QOS_ESHAPERATEOBJ
  156. #define WSA_QOS_ESHAPERATEOBJ (WSABASEERR + 1030)
  157. #endif
  158. #ifndef WSA_QOS_RESERVED_PETYPE
  159. #define WSA_QOS_RESERVED_PETYPE (WSABASEERR + 1031)
  160. #endif
  161. #endif /* _WINSOCK2API_ */
  162. #ifndef __WSA_ERR_MACROS_DEFINED
  163. #define __WSA_ERR_MACROS_DEFINED
  164. #define h_errno WSAGetLastError()
  165. #define HOST_NOT_FOUND WSAHOST_NOT_FOUND
  166. #define TRY_AGAIN WSATRY_AGAIN
  167. #define NO_RECOVERY WSANO_RECOVERY
  168. #define NO_DATA WSANO_DATA
  169. #define WSANO_ADDRESS WSANO_DATA
  170. #define NO_ADDRESS WSANO_ADDRESS
  171. #endif /* __WSA_ERR_MACROS_DEFINED */
  172. #if 0
  173. #define EWOULDBLOCK WSAEWOULDBLOCK
  174. #define EINPROGRESS WSAEINPROGRESS
  175. #define EALREADY WSAEALREADY
  176. #define ENOTSOCK WSAENOTSOCK
  177. #define EDESTADDRREQ WSAEDESTADDRREQ
  178. #define EMSGSIZE WSAEMSGSIZE
  179. #define EPROTOTYPE WSAEPROTOTYPE
  180. #define ENOPROTOOPT WSAENOPROTOOPT
  181. #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
  182. #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
  183. #define EOPNOTSUPP WSAEOPNOTSUPP
  184. #define EPFNOSUPPORT WSAEPFNOSUPPORT
  185. #define EAFNOSUPPORT WSAEAFNOSUPPORT
  186. #define EADDRINUSE WSAEADDRINUSE
  187. #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
  188. #define ENETDOWN WSAENETDOWN
  189. #define ENETUNREACH WSAENETUNREACH
  190. #define ENETRESET WSAENETRESET
  191. #define ECONNABORTED WSAECONNABORTED
  192. #define ECONNRESET WSAECONNRESET
  193. #define ENOBUFS WSAENOBUFS
  194. #define EISCONN WSAEISCONN
  195. #define ENOTCONN WSAENOTCONN
  196. #define ESHUTDOWN WSAESHUTDOWN
  197. #define ETOOMANYREFS WSAETOOMANYREFS
  198. #define ETIMEDOUT WSAETIMEDOUT
  199. #define ECONNREFUSED WSAECONNREFUSED
  200. #define ELOOP WSAELOOP
  201. #define ENAMETOOLONG WSAENAMETOOLONG
  202. #define EHOSTDOWN WSAEHOSTDOWN
  203. #define EHOSTUNREACH WSAEHOSTUNREACH
  204. #define ENOTEMPTY WSAENOTEMPTY
  205. #define EPROCLIM WSAEPROCLIM
  206. #define EUSERS WSAEUSERS
  207. #define EDQUOT WSAEDQUOT
  208. #define ESTALE WSAESTALE
  209. #define EREMOTE WSAEREMOTE
  210. #endif /* #if 0 */