revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-mingw32 / bsdsocket / winsock2.h
blobadb06d07ea437ee442f95014c296f67555bb30a0
1 #ifdef __x86_64__
2 #define __stdcall
3 #else
4 #define __stdcall __attribute__((stdcall))
5 #endif
7 #define FD_READ_BIT 0
8 #define WS_FD_READ (1 << FD_READ_BIT)
9 #define FD_WRITE_BIT 1
10 #define WS_FD_WRITE (1 << FD_WRITE_BIT)
11 #define FD_OOB_BIT 2
12 #define WS_FD_OOB (1 << FD_OOB_BIT)
13 #define FD_ACCEPT_BIT 3
14 #define WS_FD_ACCEPT (1 << FD_ACCEPT_BIT)
15 #define FD_CONNECT_BIT 4
16 #define WS_FD_CONNECT (1 << FD_CONNECT_BIT)
17 #define FD_CLOSE_BIT 5
18 #define WS_FD_CLOSE (1 << FD_CLOSE_BIT)
20 #define WSABASEERR 10000
22 struct PROTOENT
24 char *p_name;
25 char **p_aliases;
26 short p_proto;
29 struct WSsockaddr
31 u_short sa_family;
32 char sa_data[14];