]> granicus.if.org Git - libevent/log
libevent
16 years agoMove bufferevent tests to regress_bufferevent.c file.
Nick Mathewson [Tue, 3 Feb 2009 18:28:53 +0000 (18:28 +0000)]
Move bufferevent tests to regress_bufferevent.c file.

svn:r1101

16 years agoEnable (and debug) WSARecv for evbuffer iovec-like reads.
Nick Mathewson [Tue, 3 Feb 2009 05:22:57 +0000 (05:22 +0000)]
Enable (and debug) WSARecv for evbuffer iovec-like reads.

The two things we were missing: the flags parameter is not optional, and an error can actually indicate a close.

svn:r1100

16 years agoCompile http_connection_retry_test, but mark it skipped on win32.
Nick Mathewson [Mon, 2 Feb 2009 22:17:32 +0000 (22:17 +0000)]
Compile http_connection_retry_test, but mark it skipped on win32.

svn:r1099

16 years agoSome mingws have AF_UNIX, which may have prevented our socketpair from working at...
Nick Mathewson [Mon, 2 Feb 2009 21:59:53 +0000 (21:59 +0000)]
Some mingws have AF_UNIX, which may have prevented our socketpair from working at all on them.  Fix that.

svn:r1098

16 years agoconvert new bufferevent_*.c files to event-config.h only.
Nick Mathewson [Mon, 2 Feb 2009 21:24:04 +0000 (21:24 +0000)]
convert new bufferevent_*.c files to event-config.h only.

svn:r1097

16 years agoforward-port: Make evdns_resolve_reverse args const.
Nick Mathewson [Mon, 2 Feb 2009 19:22:27 +0000 (19:22 +0000)]
forward-port: Make evdns_resolve_reverse args const.

svn:r1096

16 years agocheckpoint work on big bufferevent refactoring
Nick Mathewson [Mon, 2 Feb 2009 19:22:13 +0000 (19:22 +0000)]
checkpoint work on big bufferevent refactoring

svn:r1095

16 years agoAllocate callback entries with contents 0d out.
Nick Mathewson [Sun, 1 Feb 2009 05:26:47 +0000 (05:26 +0000)]
Allocate callback entries with contents 0d out.

svn:r1093

16 years agoEnable the edge-triggered test again
Nick Mathewson [Sun, 1 Feb 2009 02:20:16 +0000 (02:20 +0000)]
Enable the edge-triggered test again

svn:r1092

16 years agoSupport temporarily suspending an evbuffer callback. This is different from disablin...
Nick Mathewson [Sun, 1 Feb 2009 01:43:58 +0000 (01:43 +0000)]
Support temporarily suspending an evbuffer callback.  This is different from disabling the callback, since we want to process changes, but not just yet.

svn:r1091

16 years agoUnit tests for evbuffer callback manipulation
Nick Mathewson [Sun, 1 Feb 2009 01:07:42 +0000 (01:07 +0000)]
Unit tests for evbuffer callback manipulation

svn:r1090

16 years agoFix a typo in buffer.h
Nick Mathewson [Sun, 1 Feb 2009 01:07:33 +0000 (01:07 +0000)]
Fix a typo in buffer.h

svn:r1089

16 years agoChange evbuffer callbacks to use tinytest natively and never assert.
Nick Mathewson [Sun, 1 Feb 2009 01:07:22 +0000 (01:07 +0000)]
Change evbuffer callbacks to use tinytest natively and never assert.

svn:r1088

16 years agoMove evbuffer tests into their own file.
Nick Mathewson [Sun, 1 Feb 2009 01:07:12 +0000 (01:07 +0000)]
Move evbuffer tests into their own file.

svn:r1087

16 years agoslightly more coverage for evutil.
Nick Mathewson [Sat, 31 Jan 2009 19:32:20 +0000 (19:32 +0000)]
slightly more coverage for evutil.

svn:r1086

16 years agoConvert evtag test.
Nick Mathewson [Sat, 31 Jan 2009 18:36:47 +0000 (18:36 +0000)]
Convert evtag test.

svn:r1085

16 years agoMove rpc_test to regress_rpc.
Nick Mathewson [Sat, 31 Jan 2009 18:36:37 +0000 (18:36 +0000)]
Move rpc_test to regress_rpc.

svn:r1084

16 years agoConvert RPC suite. There are still some places it can exit(1), but those always...
Nick Mathewson [Sat, 31 Jan 2009 18:36:24 +0000 (18:36 +0000)]
Convert RPC suite.  There are still some places it can exit(1), but those always run forked, so no big deal.

svn:r1083

16 years agoAdd missing initializers
Nick Mathewson [Sat, 31 Jan 2009 18:36:08 +0000 (18:36 +0000)]
Add missing initializers

svn:r1082

16 years agoPort DNS tests.
Nick Mathewson [Sat, 31 Jan 2009 07:32:14 +0000 (07:32 +0000)]
Port DNS tests.

svn:r1081

16 years agoTinytest update: mostly just to allow test skipping.
Nick Mathewson [Sat, 31 Jan 2009 07:32:00 +0000 (07:32 +0000)]
Tinytest update: mostly just to allow test skipping.

svn:r1080

16 years agoBuild with the -fno-strict-aliasing flag on GCC.
Nick Mathewson [Sat, 31 Jan 2009 07:31:47 +0000 (07:31 +0000)]
Build with the -fno-strict-aliasing flag on GCC.

You do not want to know about the 2 hours I just spent tracking down
an evdns bug that only affected me on some platforms to the way we
were using sockaddr* and sockaddr_in*.  Suffice it to say that I do
not think this is the only C99-aliasing-dubiousness in our code, nor
that I am smart enough to keep my code correct with the GCC's strict
aliasing optimizations in place.

svn:r1079

16 years agoDo not attempt to pass a va_args to regular snprintf. Hilarity will ensue. Fortunat...
Nick Mathewson [Sat, 31 Jan 2009 05:45:26 +0000 (05:45 +0000)]
Do not attempt to pass a va_args to regular snprintf.  Hilarity will ensue.  Fortunately, 1.4 does not have this bug.

svn:r1078

16 years agoRename a couple of http tests so they all end with _test. This lets us simplify...
Nick Mathewson [Sat, 31 Jan 2009 05:45:16 +0000 (05:45 +0000)]
Rename a couple of http tests so they all end with _test.  This lets us simplify the naming.

svn:r1077

16 years agoPort the HTTP unit tests. Most are still legacy (since they use test_ok so much...
Nick Mathewson [Fri, 30 Jan 2009 17:44:13 +0000 (17:44 +0000)]
Port the HTTP unit tests.  Most are still legacy (since they use test_ok so much), but at least they no longer exit(1) on failure

svn:r1076

16 years agoMove util tests to regress_util.c
Nick Mathewson [Fri, 30 Jan 2009 17:43:59 +0000 (17:43 +0000)]
Move util tests to regress_util.c

svn:r1075

16 years agoConvert test_evutil_strtoll to new framework.
Nick Mathewson [Fri, 30 Jan 2009 17:43:48 +0000 (17:43 +0000)]
Convert test_evutil_strtoll to new framework.

svn:r1074

16 years agoRefactor unit tests using my spiffy new "tinytest" framework.
Nick Mathewson [Thu, 29 Jan 2009 23:19:57 +0000 (23:19 +0000)]
Refactor unit tests using my spiffy new "tinytest" framework.

The big win here is that we can get process-level isolation.

This has been tested to work okay on at least Linux and Win32.  Only
the tests in regress.c have been converted wrapped in the new wrapper
functions; the others are still on the old system.

svn:r1073

16 years agoMake ht-internal.h get distributed.
Nick Mathewson [Thu, 29 Jan 2009 20:07:59 +0000 (20:07 +0000)]
Make ht-internal.h get distributed.

svn:r1072

16 years agofix signed/unsigned warning in unit tests. can we just use "char*" on all new APIs...
Nick Mathewson [Thu, 29 Jan 2009 18:15:36 +0000 (18:15 +0000)]
fix signed/unsigned warning in unit tests.  can we just use "char*" on all new APIs?  this void/unsigned char*/char* business is awful.

svn:r1071

16 years agoHave util-internal.h define socklen_t if we need it, and include it appropriately...
Nick Mathewson [Thu, 29 Jan 2009 15:09:24 +0000 (15:09 +0000)]
Have util-internal.h define socklen_t if we need it, and include it appropriately.  This fixes win32 compilation.

svn:r1070

16 years agomake it so that evbuffer_add_file where we read the complete contents of the file...
Niels Provos [Thu, 29 Jan 2009 03:22:47 +0000 (03:22 +0000)]
make it so that evbuffer_add_file where we read the complete contents of the file can fail without side effects

svn:r1069

16 years agotest evbuffer_add_reference
Niels Provos [Thu, 29 Jan 2009 03:20:40 +0000 (03:20 +0000)]
test evbuffer_add_reference

svn:r1068

16 years agoFix an unlikely degenerate case of evutil_vsnprintf
Nick Mathewson [Wed, 28 Jan 2009 20:31:19 +0000 (20:31 +0000)]
Fix an unlikely degenerate case of evutil_vsnprintf

svn:r1067

16 years agoUse size_t for name length in DNS requests. Not that it matters much.
Nick Mathewson [Wed, 28 Jan 2009 20:24:12 +0000 (20:24 +0000)]
Use size_t for name length in DNS requests.  Not that it matters much.

svn:r1066

16 years agoUpdate copyright statements to reflect the facts that:
Nick Mathewson [Tue, 27 Jan 2009 22:34:36 +0000 (22:34 +0000)]
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

16 years agoReplace all use of config.h with event-config.h.
Nick Mathewson [Tue, 27 Jan 2009 22:30:46 +0000 (22:30 +0000)]
Replace all use of config.h with event-config.h.

svn:r1064

16 years agoRemove all trailing whitespace in all the source files.
Nick Mathewson [Tue, 27 Jan 2009 21:10:31 +0000 (21:10 +0000)]
Remove all trailing whitespace in all the source files.

svn:r1063

16 years agomake it so that test_persistent_timeout can call loopexit only once; reported by...
Niels Provos [Tue, 27 Jan 2009 16:35:28 +0000 (16:35 +0000)]
make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov

svn:r1062

16 years agofix memory leak whens etting up priorities; reported by Alexander Drozdov
Niels Provos [Tue, 27 Jan 2009 16:29:48 +0000 (16:29 +0000)]
fix memory leak whens etting up priorities; reported by Alexander Drozdov

svn:r1061

16 years agoFix some warnings on linux gcc with --enable-gcc-warnings
Nick Mathewson [Tue, 27 Jan 2009 13:37:09 +0000 (13:37 +0000)]
Fix some warnings on linux gcc with --enable-gcc-warnings

svn:r1060

16 years agouse %zu for off_t
Niels Provos [Tue, 27 Jan 2009 06:21:12 +0000 (06:21 +0000)]
use %zu for off_t

svn:r1059

16 years agomake it compile on linux
Niels Provos [Tue, 27 Jan 2009 06:18:45 +0000 (06:18 +0000)]
make it compile on linux

svn:r1058

16 years agosendfile/mmap and memory reference implementation for evbuffers
Niels Provos [Tue, 27 Jan 2009 06:05:38 +0000 (06:05 +0000)]
sendfile/mmap and memory reference implementation for evbuffers

svn:r1057

16 years agosecond argument to evbuffer_pullup should be ssize_t
Niels Provos [Tue, 27 Jan 2009 05:33:39 +0000 (05:33 +0000)]
second argument to evbuffer_pullup should be ssize_t

svn:r1056

16 years agoMore docs and example code in whatsnew
Nick Mathewson [Mon, 26 Jan 2009 18:04:18 +0000 (18:04 +0000)]
More docs and example code in whatsnew

svn:r1055

16 years agoInitial documentation for evdns server functions. Also deprecate the one that didn...
Nick Mathewson [Mon, 26 Jan 2009 17:29:45 +0000 (17:29 +0000)]
Initial documentation for evdns server functions.  Also deprecate the one that didn't take an event_base.

svn:r1054

16 years agoAccept evutil_socket_t for evdns_server_ports.
Nick Mathewson [Mon, 26 Jan 2009 17:29:27 +0000 (17:29 +0000)]
Accept evutil_socket_t for evdns_server_ports.

svn:r1053

16 years agoFor every deprecated function, explain why it is deprecated and what you should call...
Nick Mathewson [Mon, 26 Jan 2009 17:09:37 +0000 (17:09 +0000)]
For every deprecated function, explain why it is deprecated and what you should call instead.

svn:r1052

16 years agoDocumentation (or more accurate documentation) for a few more functions.
Nick Mathewson [Mon, 26 Jan 2009 17:09:22 +0000 (17:09 +0000)]
Documentation (or more accurate documentation) for a few more functions.

svn:r1051

16 years agoReformat util.h slightly so that it looks ok with 8-char tabs.
Nick Mathewson [Mon, 26 Jan 2009 17:09:09 +0000 (17:09 +0000)]
Reformat util.h slightly so that it looks ok with 8-char tabs.

svn:r1050

16 years agofix memleak in evmap_signal_clear; from Alexander Drozdov
Niels Provos [Mon, 26 Jan 2009 06:13:24 +0000 (06:13 +0000)]
fix memleak in evmap_signal_clear; from Alexander Drozdov

svn:r1049

16 years agoreally install the buffer_compat.h file
Niels Provos [Sat, 24 Jan 2009 17:38:27 +0000 (17:38 +0000)]
really install the buffer_compat.h file

svn:r1048

16 years agoAdd a "flags" field to evbuffer callbacks.
Nick Mathewson [Fri, 23 Jan 2009 18:04:34 +0000 (18:04 +0000)]
Add a "flags" field to evbuffer callbacks.

For now, there is just one: enabled.  This lets us avoid lots of
mallocs/frees/tailq-manipulations just to turn a callback on and off.
The revised bufferevent code wants this.

svn:r1047

16 years agoRemove in_callbacks check: allow full recursion in evbuffer callbacks. If you get...
Nick Mathewson [Fri, 23 Jan 2009 18:03:45 +0000 (18:03 +0000)]
Remove in_callbacks check: allow full recursion in evbuffer callbacks.  If you get yourself in an infinite loop, that's not our fault.  Note this in the docs.  Also reindent some docs now that my tabs match Niels's.

svn:r1046

16 years agoalso install the buffer_compat.h header file
Niels Provos [Fri, 23 Jan 2009 02:04:41 +0000 (02:04 +0000)]
also install the buffer_compat.h header file

svn:r1044

16 years agoMove obsolete evbuffer function into include/event2/buffer_compat.h
Nick Mathewson [Fri, 23 Jan 2009 01:35:57 +0000 (01:35 +0000)]
Move obsolete evbuffer function into include/event2/buffer_compat.h

svn:r1043

16 years agoCode to allow multiple callbacks per evbuffer.
Nick Mathewson [Fri, 23 Jan 2009 01:11:13 +0000 (01:11 +0000)]
Code to allow multiple callbacks per evbuffer.

svn:r1042

16 years agoStart writing more of whatsnew-xx.txt, which will become whatsnew-2.0.txt
Nick Mathewson [Fri, 23 Jan 2009 01:04:10 +0000 (01:04 +0000)]
Start writing more of whatsnew-xx.txt, which will become whatsnew-2.0.txt

svn:r1041

16 years agoRemove evperiodic_assign and its related parts: its functionality is subsumed by...
Nick Mathewson [Thu, 22 Jan 2009 17:56:15 +0000 (17:56 +0000)]
Remove evperiodic_assign and its related parts: its functionality is subsumed by EV_PERSIST timeouts.

svn:r1040

16 years agoUse EV_PERSIST on notify event for efficiency and simplicity.
Nick Mathewson [Thu, 22 Jan 2009 17:48:55 +0000 (17:48 +0000)]
Use EV_PERSIST on notify event for efficiency and simplicity.

svn:r1039

16 years agoUse EV_PERSIST in bufferevents for efficiency and simplicity.
Nick Mathewson [Thu, 22 Jan 2009 17:48:27 +0000 (17:48 +0000)]
Use EV_PERSIST in bufferevents for efficiency and simplicity.

svn:r1038

16 years agoFix warnings on compile: make static functions static.
Nick Mathewson [Thu, 22 Jan 2009 17:48:16 +0000 (17:48 +0000)]
Fix warnings on compile: make static functions static.

svn:r1037

16 years agofix signal processing for non-kqueue backends; when a signal callback delivers a...
Niels Provos [Thu, 22 Jan 2009 06:23:14 +0000 (06:23 +0000)]
fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov

svn:r1035

16 years agorename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation...
Niels Provos [Thu, 22 Jan 2009 02:47:35 +0000 (02:47 +0000)]
rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku

svn:r1033

16 years agoChange the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that...
Niels Provos [Thu, 22 Jan 2009 02:33:38 +0000 (02:33 +0000)]
Change the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that case will now repeat until deleted.

svn:r1032

16 years agoNew functions to provide sane threading callbacks with pthreads and win32 threading...
Nick Mathewson [Wed, 21 Jan 2009 07:51:25 +0000 (07:51 +0000)]
New functions to provide sane threading callbacks with pthreads and win32 threading implementations.

svn:r1031

16 years agofix freebsd compile; from Alexander Drozdov
Niels Provos [Wed, 21 Jan 2009 07:18:31 +0000 (07:18 +0000)]
fix freebsd compile; from Alexander Drozdov

svn:r1030

16 years agorename the backend from "event ports" to "evport" - this will allow environment based...
Niels Provos [Mon, 19 Jan 2009 23:52:21 +0000 (23:52 +0000)]
rename the backend from "event ports" to "evport" - this will allow environment based disabling to work

svn:r1027

16 years agobug fix and potentital race condition from Alexander Drozdov
Niels Provos [Mon, 19 Jan 2009 23:40:11 +0000 (23:40 +0000)]
bug fix and potentital race condition from Alexander Drozdov

svn:r1025

16 years agoChange evbuffer_read implementation to split data across chunks, and use readv when...
Nick Mathewson [Mon, 19 Jan 2009 21:53:03 +0000 (21:53 +0000)]
Change evbuffer_read implementation to split data across chunks, and use readv when available.  This should make us use less space.

svn:r1024

16 years agoUse eventfd for main-thread notification where available (i.e., linux).
Nick Mathewson [Mon, 19 Jan 2009 20:37:24 +0000 (20:37 +0000)]
Use eventfd for main-thread notification where available (i.e., linux).

svn:r1023

16 years agoChange the semantics of notify so we can implement it with eventfd or (given a differ...
Nick Mathewson [Mon, 19 Jan 2009 20:22:47 +0000 (20:22 +0000)]
Change the semantics of notify so we can implement it with eventfd or (given a different backend for win32) a windows Event.

svn:r1022

16 years agoDebug and enable pipe notification
Nick Mathewson [Mon, 19 Jan 2009 19:46:03 +0000 (19:46 +0000)]
Debug and enable pipe notification

svn:r1021

16 years agomake event ports compile again
Niels Provos [Mon, 19 Jan 2009 07:00:51 +0000 (07:00 +0000)]
make event ports compile again

svn:r1020

16 years agoMake event_break threadsafe; make notify-thread mechanism a little more generic;...
Nick Mathewson [Mon, 19 Jan 2009 01:34:14 +0000 (01:34 +0000)]
Make event_break threadsafe; make notify-thread mechanism a little more generic; let it use pipes where they work.

svn:r1019

16 years agoFix osx compile
Nick Mathewson [Sun, 18 Jan 2009 01:33:18 +0000 (01:33 +0000)]
Fix osx compile

svn:r1018

16 years agotry to make devpoll work again; i dont have access to a machine
Niels Provos [Sat, 17 Jan 2009 07:50:34 +0000 (07:50 +0000)]
try to make devpoll work again; i dont have access to a machine

svn:r1017

16 years agoclean up buffered data on reset; reported by Brian O'Kelley
Niels Provos [Fri, 16 Jan 2009 00:25:54 +0000 (00:25 +0000)]
clean up buffered data on reset; reported by Brian O'Kelley

svn:r1015

16 years agorename time-test in comment to signal-test
Niels Provos [Thu, 15 Jan 2009 06:15:24 +0000 (06:15 +0000)]
rename time-test in comment to signal-test

svn:r1013

16 years agoNote the one restriction on what you can do with the evbuffers of a bufferevent.
Nick Mathewson [Wed, 14 Jan 2009 22:17:46 +0000 (22:17 +0000)]
Note the one restriction on what you can do with the evbuffers of a bufferevent.

svn:r1011

16 years agoMake some evbuffer functions const
Nick Mathewson [Wed, 14 Jan 2009 22:17:31 +0000 (22:17 +0000)]
Make some evbuffer functions const

svn:r1010

16 years agoUpdate win32 code to put indices in evmap.
Nick Mathewson [Wed, 14 Jan 2009 21:13:58 +0000 (21:13 +0000)]
Update win32 code to put indices in evmap.

svn:r1009

16 years agoMove per-fd info from eventops into evmap. Not done for win32.c yet.
Nick Mathewson [Wed, 14 Jan 2009 20:52:32 +0000 (20:52 +0000)]
Move per-fd info from eventops into evmap.  Not done for win32.c yet.

svn:r1008

16 years agoDo not allow chain length to expand indefinitely.
Nick Mathewson [Wed, 14 Jan 2009 19:39:17 +0000 (19:39 +0000)]
Do not allow chain length to expand indefinitely.

svn:r1007

16 years agoThe element size for our linear evmaps is a pointer, not the whole struct.
Nick Mathewson [Wed, 14 Jan 2009 18:45:42 +0000 (18:45 +0000)]
The element size for our linear evmaps is a pointer, not the whole struct.

svn:r1006

16 years agoAdd initializer functions for evmap types.
Nick Mathewson [Wed, 14 Jan 2009 18:38:03 +0000 (18:38 +0000)]
Add initializer functions for evmap types.

svn:r1005

16 years agoSimplify evbuffer_write logic: combine nearly all of WSASend and writev cases.
Nick Mathewson [Wed, 14 Jan 2009 14:58:48 +0000 (14:58 +0000)]
Simplify evbuffer_write logic: combine nearly all of WSASend and writev cases.

svn:r1004

16 years agoFix compilation on win32 WSASend evbuffer_write() code.
Nick Mathewson [Tue, 13 Jan 2009 22:02:32 +0000 (22:02 +0000)]
Fix compilation on win32 WSASend evbuffer_write() code.
Still not enabled until I make sure that the unit tests test this.  They _do_ pass.

svn:r1003

16 years agoFix win32 compilation. Surprisingly, unit tests pass too.
Nick Mathewson [Tue, 13 Jan 2009 21:39:32 +0000 (21:39 +0000)]
Fix win32 compilation.  Surprisingly, unit tests pass too.

svn:r1002

16 years agoThere is no WSAEAGAIN. There is only Zuul^WSAEWOULDBLOCK.
Nick Mathewson [Tue, 13 Jan 2009 20:50:34 +0000 (20:50 +0000)]
There is no WSAEAGAIN.  There is only Zuul^WSAEWOULDBLOCK.

svn:r1001

16 years agoRename four internal headers to follow the -internal.h convention.
Nick Mathewson [Tue, 13 Jan 2009 20:26:37 +0000 (20:26 +0000)]
Rename four internal headers to follow the -internal.h convention.

svn:r1000

16 years agoUntested (and compiled-out) evbuffer_write backend to use WSASend on win32 where...
Nick Mathewson [Tue, 13 Jan 2009 19:34:50 +0000 (19:34 +0000)]
Untested (and compiled-out) evbuffer_write backend to use WSASend on win32 where we use writev on unix.

svn:r998

16 years agoStop linking backends into libevent_extra.la
Nick Mathewson [Tue, 13 Jan 2009 19:20:22 +0000 (19:20 +0000)]
Stop linking backends into libevent_extra.la

svn:r997

16 years agoMove internal headers into noinst_HEADERS automake target where they belong.
Nick Mathewson [Tue, 13 Jan 2009 19:20:14 +0000 (19:20 +0000)]
Move internal headers into noinst_HEADERS automake target where they belong.

svn:r996

16 years agoUse new EVUTIL_ERR_*_RETRIABLE macros when we're testing an errno for blocking.
Nick Mathewson [Tue, 13 Jan 2009 19:20:04 +0000 (19:20 +0000)]
Use new EVUTIL_ERR_*_RETRIABLE macros when we're testing an errno for blocking.
Previously, we used inconsistent and incompletely ported ifdefs.
(We don't use these macros in platform-specific files like evpoll.c, since
they don't need to work on win32.)

svn:r995

16 years agoNew EVUTIL_ERR_*_RETRIABLE macros to tell if an errno blocked or failed.
Nick Mathewson [Tue, 13 Jan 2009 19:19:50 +0000 (19:19 +0000)]
New EVUTIL_ERR_*_RETRIABLE macros to tell if an errno blocked or failed.

svn:r994

16 years agoAdd a new evbuffer_write_atmost() functino to write no more than a given number of...
Nick Mathewson [Mon, 12 Jan 2009 20:42:19 +0000 (20:42 +0000)]
Add a new evbuffer_write_atmost() functino to write no more than a given number of bytes to an fd.

svn:r993

16 years agoSmall cleanups to buffer.h documentation.
Nick Mathewson [Mon, 12 Jan 2009 20:42:06 +0000 (20:42 +0000)]
Small cleanups to buffer.h documentation.

svn:r992

16 years agoMove strlcpy.c into libevent-core, so that code built against libevent-core on platfo...
Nick Mathewson [Mon, 12 Jan 2009 20:36:24 +0000 (20:36 +0000)]
Move strlcpy.c into libevent-core, so that code built against libevent-core on platforms without strlcpy can link.

svn:r991