f83ef71171ad0793711047925af5bb57b611e4c4
[xboard.git] / winboard / wsockerr.c
1 /* Windows sockets error map */\r
2 /* These messages ought to be in the Windows message catalog! */\r
3 \r
4 #include <windows.h>\r
5 #include <winsock.h>\r
6 #include "wsockerr.h"\r
7 \r
8 ErrorMap errmap[] = \r
9 { {WSAEINTR, "Interrupted system call"},\r
10   {WSAEBADF, "Bad file number"},\r
11   {WSAEACCES, "Permission denied"},\r
12   {WSAEFAULT, "Bad address"},\r
13   {WSAEINVAL, "Invalid argument"},\r
14   {WSAEMFILE, "Too many open files"},\r
15   {WSAEWOULDBLOCK, "Operation would block"},\r
16   {WSAEINPROGRESS, "Operation now in progress"},\r
17   {WSAEALREADY, "Operation already in progress"},\r
18   {WSAENOTSOCK, "Socket operation on non-socket"},\r
19   {WSAEMSGSIZE, "Message too long"},\r
20   {WSAEPROTOTYPE, "Protocol wrong type for socket"},\r
21   {WSAENOPROTOOPT, "Protocol not available"},\r
22   {WSAEPROTONOSUPPORT, "Protocol not supported"},\r
23   {WSAESOCKTNOSUPPORT, "Socket type not supported"},\r
24   {WSAEOPNOTSUPP, "Operation not supported on socket"},\r
25   {WSAEPFNOSUPPORT, "Protocol family not supported"},\r
26   {WSAEAFNOSUPPORT, "Address family not supported by protocol family"},\r
27   {WSAEADDRINUSE, "Address already in use"},\r
28   {WSAEADDRNOTAVAIL, "Can't assign requested address"},\r
29   {WSAENETDOWN, "Network is down"},\r
30   {WSAENETUNREACH, "Network is unreachable"},\r
31   {WSAENETRESET, "Network dropped connection on reset"},\r
32   {WSAECONNABORTED, "Software caused connection abort"},\r
33   {WSAECONNRESET, "Connection reset by peer"},\r
34   {WSAENOBUFS, "No buffer space available"},\r
35   {WSAEISCONN, "Socket is already connected"},\r
36   {WSAENOTCONN, "Socket is not connected"},\r
37   {WSAESHUTDOWN, "Can't send after socket shutdown"},\r
38   {WSAETOOMANYREFS, "Too many references: can't splice"},\r
39   {WSAETIMEDOUT, "Connection timed out"},\r
40   {WSAECONNREFUSED, "Connection refused"},\r
41   {WSAELOOP, "Too many levels of symbolic links"},\r
42   {WSAENAMETOOLONG, "File name too long"},\r
43   {WSAEHOSTDOWN, "Host is down"},\r
44   {WSAEHOSTUNREACH, "No route to host"},\r
45   {WSAENOTEMPTY, "Directory not empty"},\r
46   {WSAEPROCLIM, "Too many processes"},\r
47   {WSAEUSERS, "Too many users"},\r
48   {WSAEDQUOT, "Disc quota exceeded"},\r
49   {WSAESTALE, "Stale NFS file handle"},\r
50   {WSAEREMOTE, "Too many levels of remote in path"},\r
51   {WSAEDISCON, "Undocumented Winsock error code WSAEDISCON"},\r
52   {WSASYSNOTREADY, "Winsock subsystem unusable"},\r
53   {WSAVERNOTSUPPORTED, "Required Winsock version is not supported"},\r
54   {WSANOTINITIALISED, "Winsock not initialized"},\r
55   {WSAHOST_NOT_FOUND, "Host name not found by name server (authoritative)"},\r
56   {WSATRY_AGAIN, "Host name not found by name server (nonauthoritative), or name server failure"},\r
57   {WSANO_RECOVERY, "Nonrecoverable name server error"},\r
58   {WSANO_DATA, "Host name has no address data of required type"},\r
59   {0, NULL}\r
60 };\r