Nick Mathewson
f13bede758
Fix an unlikely degenerate case of evutil_vsnprintf
...
svn:r1067
2009-01-28 20:31:19 +00:00
Nick Mathewson
b85b710cf5
Update copyright statements to reflect the facts that:
...
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
2009-01-27 22:34:36 +00:00
Nick Mathewson
8889a77039
Replace all use of config.h with event-config.h.
...
svn:r1064
2009-01-27 22:30:46 +00:00
Nick Mathewson
9993137cbb
Remove all trailing whitespace in all the source files.
...
svn:r1063
2009-01-27 21:10:31 +00:00
Niels Provos
70405e3c7a
fix freebsd compile; from Alexander Drozdov
...
svn:r1030
2009-01-21 07:18:31 +00:00
Nick Mathewson
9935d5b01e
Fix win32 compilation. Surprisingly, unit tests pass too.
...
svn:r1002
2009-01-13 21:39:32 +00:00
Nick Mathewson
169321c9e6
Rename four internal headers to follow the -internal.h convention.
...
svn:r1000
2009-01-13 20:26:37 +00:00
Nick Mathewson
980bcd68f7
Work better with platforms that do not have ipv6 structures, or that do not have sin_len fields, etc.
...
svn:r986
2009-01-02 21:21:58 +00:00
Nick Mathewson
cfbd168008
Add another function to parse the common address:port combination formats into a sockaddr.
...
svn:r984
2009-01-02 20:46:26 +00:00
Nick Mathewson
0d9d5cfe22
New functions in evutil to clone inet_pton and inet_ntop, with tests.
...
Adapted from Tor code.
svn:r983
2009-01-02 20:46:12 +00:00
Nick Mathewson
fded0a8783
Fix compilation of recent error code with win32.
...
svn:r937
2008-09-05 16:47:04 +00:00
Nick Mathewson
de069b9977
On win32, errno is not the last socket error. Worse, WSAGetLastError() is not the last socket error sometimes (i.e., EWOULDBLOCK). Also, strerror() does not handle winsock errors. Therefore, event_err() and event_warn() are completely wrong for windows socket errors. Fix that.
...
svn:r936
2008-09-05 16:29:56 +00:00
Niels Provos
55f914941d
fix evutil_snprintf on windows
...
svn:r860
2008-06-24 16:29:02 +00:00
Nick Mathewson
0cafdeb6f5
Tweaks to make unit tests fail less badly on mingw on trunk.
...
svn:r814
2008-05-12 17:16:47 +00:00
Nick Mathewson
c6da86ffcb
r19709@catbus: nickm | 2008-05-12 12:42:48 -0400
...
Possible fix for [1960723] snprintf and vsnprintf return values are wrong on win32
svn:r813
2008-05-12 16:44:24 +00:00
Nick Mathewson
7868ab5a43
r19667@catbus: nickm | 2008-05-08 23:49:26 -0400
...
fwd-port: Always include winsock2.h before windows.h. Apparently some SDKs need this.
svn:r803
2008-05-09 04:00:17 +00:00
Nick Mathewson
3d60bccc8e
r19656@catbus: nickm | 2008-05-08 10:25:08 -0400
...
forward-port: Remove #include "misc.h"s.
svn:r795
2008-05-08 14:25:44 +00:00
Nick Mathewson
a26442c5ac
r19649@catbus: nickm | 2008-05-08 10:00:14 -0400
...
Replace gettimeofday() usage with a new evutil_gettimeofday(). This removes all previous need for win32-code/misc.[ch]
svn:r792
2008-05-08 14:06:33 +00:00
Nick Mathewson
0ac73078ed
r15193@tombo: nickm | 2008-04-16 16:00:35 -0400
...
Split event.h into several new headers in include/event2. event.h is now just a wrapper that includes all the subheaders.
svn:r711
2008-04-16 20:01:51 +00:00
Nick Mathewson
807ab182d0
r14211@tombo: nickm | 2008-02-16 15:28:54 -0500
...
Add new evutil_strtoll() function so we can apply 64-bit content-length patch from Scott Lamb in a portable way.
svn:r640
2008-02-16 20:49:47 +00:00
Nick Mathewson
1120f04f3e
r16731@catbus: nickm | 2007-11-25 16:52:53 -0500
...
Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32.
svn:r552
2007-11-25 21:53:06 +00:00
Nick Mathewson
e1f09dfe5c
Fix evutil code to use correct EVUTIL_SET_SOCKET_ERROR macro.
...
svn:r460
2007-10-12 17:55:37 +00:00
Nick Mathewson
fe4829776b
r15324@catbus: nickm | 2007-09-24 12:22:21 -0400
...
New evutil.h macros to manipulate winsock errors. Use them in http.c and in evutil_socketpair().
svn:r451
2007-09-24 16:26:11 +00:00
Nick Mathewson
d85bce4e96
Remove gratuitous tor-isms in evutil_socketpair(); fix a windows warning in http.c.
...
svn:r446
2007-09-20 18:38:31 +00:00
Nick Mathewson
250071830a
r15216@catbus: nickm | 2007-09-20 13:58:23 -0400
...
Add a new evutil module to contain the usual cross-platform hacks: socketpair, closesocket, and make_socket_nonblocking()
svn:r441
2007-09-20 18:26:40 +00:00