Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
3dd1ef87
Commit
3dd1ef87
authored
May 02, 2004
by
Nick Mathewson
🎨
Browse files
Fix windows compile.
svn:r1776
parent
af08c4f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/common/fakepoll.c
View file @
3dd1ef87
...
...
@@ -26,6 +26,7 @@
#elif defined(_MSC_VER)
#include
<winsock.h>
#endif
#include
<assert.h>
/* by default, windows handles only 64 fd's */
#if defined(MS_WINDOWS) && !defined(FD_SETSIZE)
...
...
src/common/util.c
View file @
3dd1ef87
...
...
@@ -1116,7 +1116,7 @@ int tor_socket_errno(int sock)
*/
#ifdef MS_WINDOWS
#define E(code, s) { code, (s " [" #code " ]") }
struct
{
int
code
;
char
*
msg
;
}
windows_socket_errors
=
{
struct
{
int
code
;
const
char
*
msg
;
}
windows_socket_errors
[]
=
{
E
(
WSAEINTR
,
"Interrupted function call"
),
E
(
WSAEACCES
,
"Permission denied"
),
E
(
WSAEFAULT
,
"Bad address"
),
...
...
@@ -1128,19 +1128,19 @@ struct { int code; char *msg; } windows_socket_errors = {
E
(
WSAENOTSOCK
,
"Socket operation on nonsocket"
),
E
(
WSAEDESTADDRREQ
,
"Destination address required"
),
E
(
WSAEMSGSIZE
,
"Message too long"
),
E
(
W
A
SEPROTOTYPE
,
"Protocol wrong for socket"
),
E
(
WS
A
EPROTOTYPE
,
"Protocol wrong for socket"
),
E
(
WSAENOPROTOOPT
,
"Bad protocol option"
),
E
(
WSAEPROTONOSUPPORT
,
"Protocol not supported"
),
E
(
WSAESOCKTNOSUPPORT
,
"Socket type not supported"
),
/* What's the difference between NOTSUPP and NOSUPPORT? :) */
E
(
W
A
SEOPNOTSUPP
,
"Operation not supported"
),
E
(
WS
A
EOPNOTSUPP
,
"Operation not supported"
),
E
(
WSAEPFNOSUPPORT
,
"Protocol family not supported"
),
E
(
WSAEAFNOSUPPORT
,
"Address family not supported by protocol family"
),
E
(
WSAEADDRINUSE
,
"Address already in use"
),
E
(
WSAEADDRNOTAVAIL
,
"Cannot assign requested address"
),
E
(
WSAENETDOWN
,
"Network is down"
),
E
(
WSAENETUNREACH
,
"Network is unreachable"
),
E
(
WSAENETRESET
,
"Network dropped connection on reset"
)
E
(
WSAENETRESET
,
"Network dropped connection on reset"
)
,
E
(
WSAECONNABORTED
,
"Software caused connection abort"
),
E
(
WSAECONNRESET
,
"Connection reset by peer"
),
E
(
WSAENOBUFS
,
"No buffer space avaialable"
),
...
...
@@ -1156,8 +1156,10 @@ struct { int code; char *msg; } windows_socket_errors = {
E
(
WSASYSNOTREADY
,
"Network subsystem is unavailable"
),
E
(
WSAVERNOTSUPPORTED
,
"Winsock.dll out of range"
),
E
(
WSANOTINITIALISED
,
"Successful WSAStartup not yet performed"
),
E
(
WSAEDISCONN
,
"Graceful shutdown no in progress"
),
E
(
WSAEDISCON
,
"Graceful shutdown now in progress"
),
#ifdef WSATYPE_NOT_FOUND
E
(
WSATYPE_NOT_FOUND
,
"Class type not found"
),
#endif
E
(
WSAHOST_NOT_FOUND
,
"Host not found"
),
E
(
WSATRY_AGAIN
,
"Nonauthoritative host not found"
),
E
(
WSANO_RECOVERY
,
"This is a nonrecoverable error"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment