4 * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
\r
5 * ------------------------------------------------------------------------
\r
7 * GNU XBoard is free software: you can redistribute it and/or modify
\r
8 * it under the terms of the GNU General Public License as published by
\r
9 * the Free Software Foundation, either version 3 of the License, or (at
\r
10 * your option) any later version.
\r
12 * GNU XBoard is distributed in the hope that it will be useful, but
\r
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
15 * General Public License for more details.
\r
17 * You should have received a copy of the GNU General Public License
\r
18 * along with this program. If not, see http://www.gnu.org/licenses/. *
\r
20 *------------------------------------------------------------------------
\r
21 ** See the file ChangeLog for a revision history. */
\r
23 /* Windows sockets error map */
\r
24 /* These messages ought to be in the Windows message catalog! */
\r
26 #include <windows.h>
\r
27 #include <winsock.h>
\r
28 #include "wsockerr.h"
\r
31 { {WSAEINTR, "Interrupted system call"},
\r
32 {WSAEBADF, "Bad file number"},
\r
33 {WSAEACCES, "Permission denied"},
\r
34 {WSAEFAULT, "Bad address"},
\r
35 {WSAEINVAL, "Invalid argument"},
\r
36 {WSAEMFILE, "Too many open files"},
\r
37 {WSAEWOULDBLOCK, "Operation would block"},
\r
38 {WSAEINPROGRESS, "Operation now in progress"},
\r
39 {WSAEALREADY, "Operation already in progress"},
\r
40 {WSAENOTSOCK, "Socket operation on non-socket"},
\r
41 {WSAEMSGSIZE, "Message too long"},
\r
42 {WSAEPROTOTYPE, "Protocol wrong type for socket"},
\r
43 {WSAENOPROTOOPT, "Protocol not available"},
\r
44 {WSAEPROTONOSUPPORT, "Protocol not supported"},
\r
45 {WSAESOCKTNOSUPPORT, "Socket type not supported"},
\r
46 {WSAEOPNOTSUPP, "Operation not supported on socket"},
\r
47 {WSAEPFNOSUPPORT, "Protocol family not supported"},
\r
48 {WSAEAFNOSUPPORT, "Address family not supported by protocol family"},
\r
49 {WSAEADDRINUSE, "Address already in use"},
\r
50 {WSAEADDRNOTAVAIL, "Can't assign requested address"},
\r
51 {WSAENETDOWN, "Network is down"},
\r
52 {WSAENETUNREACH, "Network is unreachable"},
\r
53 {WSAENETRESET, "Network dropped connection on reset"},
\r
54 {WSAECONNABORTED, "Software caused connection abort"},
\r
55 {WSAECONNRESET, "Connection reset by peer"},
\r
56 {WSAENOBUFS, "No buffer space available"},
\r
57 {WSAEISCONN, "Socket is already connected"},
\r
58 {WSAENOTCONN, "Socket is not connected"},
\r
59 {WSAESHUTDOWN, "Can't send after socket shutdown"},
\r
60 {WSAETOOMANYREFS, "Too many references: can't splice"},
\r
61 {WSAETIMEDOUT, "Connection timed out"},
\r
62 {WSAECONNREFUSED, "Connection refused"},
\r
63 {WSAELOOP, "Too many levels of symbolic links"},
\r
64 {WSAENAMETOOLONG, "File name too long"},
\r
65 {WSAEHOSTDOWN, "Host is down"},
\r
66 {WSAEHOSTUNREACH, "No route to host"},
\r
67 {WSAENOTEMPTY, "Directory not empty"},
\r
68 {WSAEPROCLIM, "Too many processes"},
\r
69 {WSAEUSERS, "Too many users"},
\r
70 {WSAEDQUOT, "Disc quota exceeded"},
\r
71 {WSAESTALE, "Stale NFS file handle"},
\r
72 {WSAEREMOTE, "Too many levels of remote in path"},
\r
73 {WSAEDISCON, "Undocumented Winsock error code WSAEDISCON"},
\r
74 {WSASYSNOTREADY, "Winsock subsystem unusable"},
\r
75 {WSAVERNOTSUPPORTED, "Required Winsock version is not supported"},
\r
76 {WSANOTINITIALISED, "Winsock not initialized"},
\r
77 {WSAHOST_NOT_FOUND, "Host name not found by name server (authoritative)"},
\r
78 {WSATRY_AGAIN, "Host name not found by name server (nonauthoritative), or name server failure"},
\r
79 {WSANO_RECOVERY, "Nonrecoverable name server error"},
\r
80 {WSANO_DATA, "Host name has no address data of required type"},
\r