annotate nt/inc/sys/socket.h @ 86783:9fd995c6e740

Standardize license text. Add 2007 to copyright years.
author Glenn Morris <rgm@gnu.org>
date Wed, 28 Nov 2007 07:54:33 +0000
parents b98604865ea0
children 107ccd98fa12 f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75245
2193e586660d Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68648
diff changeset
1 /* Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005,
2193e586660d Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68648
diff changeset
2 2006, 2007 Free Software Foundation, Inc.
36375
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
3
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
4 This file is part of GNU Emacs.
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
5
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
7 it under the terms of the GNU General Public License as published by
78243
9d91cd80a431 Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75245
diff changeset
8 the Free Software Foundation; either version 3, or (at your option)
36375
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
9 any later version.
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
10
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
14 GNU General Public License for more details.
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
15
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
16 You should have received a copy of the GNU General Public License
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 63039
diff changeset
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 63039
diff changeset
19 Boston, MA 02110-1301, USA. */
36375
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
20
19b74f67a4ae Add copyright notice.
Andrew Innes <andrewi@gnu.org>
parents: 31091
diff changeset
21
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
22 /* Workable version of <sys/socket.h> based on winsock.h */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
23
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
24 #ifndef _SOCKET_H_
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
25 #define _SOCKET_H_
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
26
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
27 /* defeat the multiple include protection */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
28 #ifdef _WINSOCKAPI_
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
29 #undef _WINSOCKAPI_
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
30 #endif
31091
65f455b1ab20 (_WINSOCK_H): Undefine if defined.
Andrew Innes <andrewi@gnu.org>
parents: 18726
diff changeset
31 #ifdef _WINSOCK_H
65f455b1ab20 (_WINSOCK_H): Undefine if defined.
Andrew Innes <andrewi@gnu.org>
parents: 18726
diff changeset
32 #undef _WINSOCK_H
65f455b1ab20 (_WINSOCK_H): Undefine if defined.
Andrew Innes <andrewi@gnu.org>
parents: 18726
diff changeset
33 #endif
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
34
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
35 /* avoid confusion with our version of select */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
36 #ifdef select
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
37 #undef select
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
38 #define MUST_REDEF_SELECT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
39 #endif
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
40
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
41 /* avoid clashing with our version of FD_SET if already defined */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
42 #ifdef FD_SET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
43 #undef FD_SET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
44 #undef FD_CLR
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
45 #undef FD_ISSET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
46 #undef FD_ZERO
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
47 #endif
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
48
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
49 /* avoid duplicate definition of timeval */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
50 #ifdef HAVE_TIMEVAL
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
51 #define timeval ws_timeval
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
52 #endif
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
53
81874
361abf526407 Include winsock2.h and ws2tcpip.h instead of winsock.h.
Jason Rumney <jasonr@gnu.org>
parents: 75245
diff changeset
54 #include <winsock2.h>
361abf526407 Include winsock2.h and ws2tcpip.h instead of winsock.h.
Jason Rumney <jasonr@gnu.org>
parents: 75245
diff changeset
55 #include <ws2tcpip.h>
81888
699eb2ba8cef (uint16_t): Define if C99 does not appear to be fully supported.
Jason Rumney <jasonr@gnu.org>
parents: 81874
diff changeset
56 /* process.c uses uint16_t (from C99) for IPv6, but
699eb2ba8cef (uint16_t): Define if C99 does not appear to be fully supported.
Jason Rumney <jasonr@gnu.org>
parents: 81874
diff changeset
57 apparently it is not defined in some versions of mingw and msvc. */
699eb2ba8cef (uint16_t): Define if C99 does not appear to be fully supported.
Jason Rumney <jasonr@gnu.org>
parents: 81874
diff changeset
58 #ifndef UINT16_C
699eb2ba8cef (uint16_t): Define if C99 does not appear to be fully supported.
Jason Rumney <jasonr@gnu.org>
parents: 81874
diff changeset
59 typedef unsigned short uint16_t;
699eb2ba8cef (uint16_t): Define if C99 does not appear to be fully supported.
Jason Rumney <jasonr@gnu.org>
parents: 81874
diff changeset
60 #endif
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
61
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
62 /* redefine select to reference our version */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
63 #ifdef MUST_REDEF_SELECT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
64 #define select sys_select
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
65 #undef MUST_REDEF_SELECT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
66 #endif
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
67
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
68 /* revert to our version of FD_SET */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
69 #undef FD_SET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
70 #undef FD_CLR
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
71 #undef FD_ISSET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
72 #undef FD_ZERO
31091
65f455b1ab20 (_WINSOCK_H): Undefine if defined.
Andrew Innes <andrewi@gnu.org>
parents: 18726
diff changeset
73
65f455b1ab20 (_WINSOCK_H): Undefine if defined.
Andrew Innes <andrewi@gnu.org>
parents: 18726
diff changeset
74 /* allow us to provide our own version of fd_set */
65f455b1ab20 (_WINSOCK_H): Undefine if defined.
Andrew Innes <andrewi@gnu.org>
parents: 18726
diff changeset
75 #define fd_set ws_fd_set
16594
bc3740dfe78c Use new name w32.h for nt.h
Geoff Voelker <voelker@cs.washington.edu>
parents: 15139
diff changeset
76 #include "w32.h"
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
77
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
78 #ifdef HAVE_TIMEVAL
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
79 #undef timeval
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
80 #endif
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
81
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
82 /* shadow functions where we provide our own wrapper */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
83 #define socket sys_socket
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
84 #define bind sys_bind
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
85 #define connect sys_connect
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
86 #define htons sys_htons
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
87 #define ntohs sys_ntohs
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
88 #define inet_addr sys_inet_addr
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
89 #define gethostname sys_gethostname
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
90 #define gethostbyname sys_gethostbyname
45087
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
91 #define getpeername sys_getpeername
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
92 #define getservbyname sys_getservbyname
18726
cfbf43d0fd54 (shutdown): Define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16594
diff changeset
93 #define shutdown sys_shutdown
44040
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
94 #define setsockopt sys_setsockopt
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
95 #define listen sys_listen
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
96 #define getsockname sys_getsockname
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
97 #define accept sys_accept
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
98 #define recvfrom sys_recvfrom
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
99 #define sendto sys_sendto
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
100
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
101 int sys_socket(int af, int type, int protocol);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
102 int sys_bind (int s, const struct sockaddr *addr, int namelen);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
103 int sys_connect (int s, const struct sockaddr *addr, int namelen);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
104 u_short sys_htons (u_short hostshort);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
105 u_short sys_ntohs (u_short netshort);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
106 unsigned long sys_inet_addr (const char * cp);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
107 int sys_gethostname (char * name, int namelen);
45087
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
108 struct hostent * sys_gethostbyname (const char * name);
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
109 struct servent * sys_getservbyname (const char * name, const char * proto);
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
110 int sys_getpeername (int s, struct sockaddr *addr, int * namelen);
18726
cfbf43d0fd54 (shutdown): Define.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16594
diff changeset
111 int sys_shutdown (int socket, int how);
63039
3b68a0c4a187 Change arg 4 of sys_setsockopt to `const void *',
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
112 int sys_setsockopt (int s, int level, int oname, const void * oval, int olen);
44040
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
113 int sys_listen (int s, int backlog);
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
114 int sys_getsockname (int s, struct sockaddr * name, int * namelen);
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
115 int sys_accept (int s, struct sockaddr *addr, int *addrlen);
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
116 int sys_recvfrom (int s, char *buf, int len, int flags,
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
117 struct sockaddr *from, int * fromlen);
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
118 int sys_sendto (int s, const char * buf, int len, int flags,
547d61a816e3 (sys_setsockopt, sys_listen, sys_getsockname)
Jason Rumney <jasonr@gnu.org>
parents: 36375
diff changeset
119 const struct sockaddr *to, int tolen);
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
120
45087
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
121 /* In addition to wrappers for the winsock functions, we also provide
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
122 an fcntl function, for setting sockets to non-blocking mode. */
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
123 int fcntl (int s, int cmd, int options);
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
124 #define F_SETFL 4
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
125 #define O_NDELAY 04000
43b933182a40 (F_SETFL, O_NDELAY): Define.
Jason Rumney <jasonr@gnu.org>
parents: 44040
diff changeset
126
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
127 /* we are providing a real h_errno variable */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
128 #undef h_errno
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
129 extern int h_errno;
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
130
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
131 /* map winsock error codes to standard names */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
132 #define EWOULDBLOCK WSAEWOULDBLOCK
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
133 #define EINPROGRESS WSAEINPROGRESS
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
134 #define EALREADY WSAEALREADY
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
135 #define ENOTSOCK WSAENOTSOCK
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
136 #define EDESTADDRREQ WSAEDESTADDRREQ
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
137 #define EMSGSIZE WSAEMSGSIZE
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
138 #define EPROTOTYPE WSAEPROTOTYPE
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
139 #define ENOPROTOOPT WSAENOPROTOOPT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
140 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
141 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
142 #define EOPNOTSUPP WSAEOPNOTSUPP
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
143 #define EPFNOSUPPORT WSAEPFNOSUPPORT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
144 #define EAFNOSUPPORT WSAEAFNOSUPPORT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
145 #define EADDRINUSE WSAEADDRINUSE
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
146 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
147 #define ENETDOWN WSAENETDOWN
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
148 #define ENETUNREACH WSAENETUNREACH
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
149 #define ENETRESET WSAENETRESET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
150 #define ECONNABORTED WSAECONNABORTED
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
151 #define ECONNRESET WSAECONNRESET
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
152 #define ENOBUFS WSAENOBUFS
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
153 #define EISCONN WSAEISCONN
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
154 #define ENOTCONN WSAENOTCONN
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
155 #define ESHUTDOWN WSAESHUTDOWN
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
156 #define ETOOMANYREFS WSAETOOMANYREFS
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
157 #define ETIMEDOUT WSAETIMEDOUT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
158 #define ECONNREFUSED WSAECONNREFUSED
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
159 #define ELOOP WSAELOOP
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
160 /* #define ENAMETOOLONG WSAENAMETOOLONG */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
161 #define EHOSTDOWN WSAEHOSTDOWN
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
162 #define EHOSTUNREACH WSAEHOSTUNREACH
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
163 /* #define ENOTEMPTY WSAENOTEMPTY */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
164 #define EPROCLIM WSAEPROCLIM
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
165 #define EUSERS WSAEUSERS
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
166 #define EDQUOT WSAEDQUOT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
167 #define ESTALE WSAESTALE
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
168 #define EREMOTE WSAEREMOTE
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
169
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
170 #endif /* _SOCKET_H_ */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
171
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
172 /* end of socket.h */
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 45087
diff changeset
173
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 45087
diff changeset
174 /* arch-tag: e3b8b91c-aaa0-4bc4-be57-a85a1dd247b4
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 45087
diff changeset
175 (do not change this comment) */