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