|
18 | 18 |
|
19 | 19 | #if _SQUID_WINDOWS_ || _SQUID_MINGW_ |
20 | 20 |
|
21 | | -int |
22 | | -xaccept(int s, struct sockaddr *a, socklen_t *l); |
| 21 | +/// Provide POSIX accept(2) API on MinGW and Visual Studio build environments |
| 22 | +int xaccept(int s, struct sockaddr *a, socklen_t *l); |
23 | 23 |
|
24 | | -int |
25 | | -xbind(int s, const struct sockaddr * n, socklen_t l); |
| 24 | +/// Provide POSIX bind(2) API on MinGW and Visual Studio build environments |
| 25 | +int xbind(int s, const struct sockaddr * n, socklen_t l); |
26 | 26 |
|
27 | | -int |
28 | | -xconnect(int s, const struct sockaddr * n, socklen_t l); |
| 27 | +/// Provide POSIX connect(2) API on MinGW and Visual Studio build environments |
| 28 | +int xconnect(int s, const struct sockaddr * n, socklen_t l); |
29 | 29 |
|
30 | | -int |
31 | | -xclose(int fd); |
| 30 | +/// Provide POSIX close(2) API on MinGW and Visual Studio build environments |
| 31 | +int xclose(int fd); |
32 | 32 |
|
33 | | -struct hostent * |
34 | | -xgethostbyname(const char *n); |
| 33 | +/// Provide POSIX gethostbyname(2) API on MinGW and Visual Studio build environments |
| 34 | +struct hostent *xgethostbyname(const char *n); |
35 | 35 |
|
36 | | -int |
37 | | -xsetsockopt(int s, int l, int o, const void *v, socklen_t n); |
38 | | -// for windows/mingw calls referring to INVALID_SOCKET, use setsockopt() |
| 36 | +/// Provide POSIX setsockopt(2) API on MinGW and Visual Studio build environments |
| 37 | +int xsetsockopt(int s, int l, int o, const void *v, socklen_t n); |
39 | 38 |
|
40 | 39 | #else /* !(_SQUID_WINDOWS_ || _SQUID_MINGW_) */ |
41 | 40 |
|
|
0 commit comments