1 /* Workable version of <sys/socket.h> based on winsock.h */
6 /* defeat the multiple include protection */
11 #if 0 /* What's wrong with winsock.h version ? - kkm */
12 /* avoid clashing with our version of FD_SET if already defined */
20 /* allow us to provide our own version of fd_set */
21 #define fd_set ws_fd_set
24 /* avoid duplicate definition of timeval */
26 #define timeval ws_timeval
31 #if 0 /* What's wrong with winsock.h version ? - kkm */
32 /* revert to our version of FD_SET */
45 /* map winsock error codes to standard names */
46 #define EWOULDBLOCK WSAEWOULDBLOCK
47 #define EINPROGRESS WSAEINPROGRESS
48 #define EALREADY WSAEALREADY
49 #define ENOTSOCK WSAENOTSOCK
50 #define EDESTADDRREQ WSAEDESTADDRREQ
51 #define EMSGSIZE WSAEMSGSIZE
52 #define EPROTOTYPE WSAEPROTOTYPE
53 #define ENOPROTOOPT WSAENOPROTOOPT
54 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
55 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
56 #define EOPNOTSUPP WSAEOPNOTSUPP
57 #define EPFNOSUPPORT WSAEPFNOSUPPORT
58 #define EAFNOSUPPORT WSAEAFNOSUPPORT
59 #define EADDRINUSE WSAEADDRINUSE
60 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
61 #define ENETDOWN WSAENETDOWN
62 #define ENETUNREACH WSAENETUNREACH
63 #define ENETRESET WSAENETRESET
64 #define ECONNABORTED WSAECONNABORTED
65 #define ECONNRESET WSAECONNRESET
66 #define ENOBUFS WSAENOBUFS
67 #define EISCONN WSAEISCONN
68 #define ENOTCONN WSAENOTCONN
69 #define ESHUTDOWN WSAESHUTDOWN
70 #define ETOOMANYREFS WSAETOOMANYREFS
71 #define ETIMEDOUT WSAETIMEDOUT
72 #define ECONNREFUSED WSAECONNREFUSED
73 #define ELOOP WSAELOOP
74 /* #define ENAMETOOLONG WSAENAMETOOLONG */
75 #define EHOSTDOWN WSAEHOSTDOWN
76 #define EHOSTUNREACH WSAEHOSTUNREACH
77 /* #define ENOTEMPTY WSAENOTEMPTY */
78 #define EPROCLIM WSAEPROCLIM
79 #define EUSERS WSAEUSERS
80 #define EDQUOT WSAEDQUOT
81 #define ESTALE WSAESTALE
82 #define EREMOTE WSAEREMOTE
84 #endif /* _SOCKET_H_ */