summaryrefslogtreecommitdiffstats
path: root/lib/libevent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* revert change to call kevent immediately.tedu2015-12-251-6/+65
| | | | | | | | | tcpbench (at a minimum) relies on the old behavior of changes all happening after all event handlers run. in particular, it resets the event for the listening socket *before* calling accept(), when it is still readable. kevent then (correctly) says it is readable on the next go through the loop. silly, subtle, and stupid. problem reported by kettenis
* change the kqueue backend to call kevent() as events are added insteadtedu2015-12-161-65/+6
| | | | | | | | | | | | of deferring until the dispatch loop. kqueue support for various types of files and filesystems has been historically incomplete, and kevent handles this condition by returning an error. the libevent dispatch loop has no way to recover from this error and fails catastrophically, bringing down the entire process because one file went bad. now, instead of all that happending, event_add will return an error. the application can choose to handle or ignore this error, but at least the band will play on. ok nicm
* Libraries should not print to stderr, ok tedu beck deraadtnicm2015-12-111-22/+1
|
* update NAME section to include all documented functions,jmc2015-11-101-3/+3
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* Another couple of commas in the wrong place, ok jmcnicm2015-04-141-2/+2
|
* Remove an extra comma pointed out by jmc@.nicm2015-04-141-2/+2
|
* Reorder prototypes to better match manpage layout and add some missingnicm2015-04-142-74/+74
| | | | argument names, from Fabian Raetz. ok deraadt
* Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert2015-02-051-2/+2
|
* Backout revision 1.37. Setting ev->ev_pncalls to NULL results inbluhm2015-01-061-5/+2
| | | | | | | a use after free if the callback has freed the ev. With F in malloc.conf both tmux and the regression tests triggered a segmentation fault. OK nicm@
* Apply commit e0e6958aa074a7714cd7c4aa779a1dfede3a03b1 from upstream.bluhm2015-01-061-14/+8
| | | | | | | | | | - Avoid deadlock when activating signals. Fixes bug 3048812. Based on patch by Nicholas Marriott. The deadlock was ultimately fixed in a different way (by disabling reinit - see event.c r1.25). Add it now for consistency but without the Windows compatibility code. Convert the fnctl() calls to SOCK_CLOEXEC | SOCK_NONBLOCK to simplify the code. OK nicm@
* Apply commit 2d8cf0b720cdd5f9f292f174a10ff74e62a380ec from upstream.bluhm2015-01-061-2/+5
| | | | | - Defensive programming to prevent (hopefully impossible) stack-stomping OK nicm@
* Fix CVE-2014-6272 in Libevent 1.4 from upstream:bluhm2015-01-052-11/+25
| | | | | | | | | | | - https://github.com/libevent/libevent/commit/7b21c4eabf1f3946d3f63cce1319c490caab8ecf - For this fix, we need to make sure that passing too-large inputs to the evbuffer functions can't make us do bad things with the heap. On top of that do: - Update libevent version to 1.4.15-stable. - Use SIZE_MAX from limits.h instead of a private define. - Do not declare 'size_t need' twice to avoid a compiler warning. OK sthen
* libraries shouldnt print to stderr when things dont go their way.dlg2014-11-211-3/+3
| | | | | | | | | switch fprintf(stderr) over to event_warn() on malloc failure. fix up an errant newline in an existing event_warn while there. originally i just wanted to delete the fprintf diff from nicm@ who is away from a keyboard right now so cant commit guenther@ agrees with the idea
* evbuffer_read will return 0 one an end of file condition.dlg2014-11-211-2/+3
|
* zap some stray commas;jmc2014-11-201-3/+3
|
* add evbuffer_expand to NAME;jmc2014-11-201-1/+2
|
* put MLINKS in the order they appear in the man page, so i don;t go blindjmc2014-11-201-32/+32
| | | | trying to check what's missing;
* document the only macro i find useful when working with evbuffers.dlg2014-11-201-1/+10
|
* might help to Xr evbuffer_new 3dlg2014-11-201-2/+3
|
* im not good at grammar things.dlg2014-11-201-2/+2
| | | | from schwarze@
* use .Va to say errno is a variable.dlg2014-11-201-6/+14
| | | | from schwarze@
* fix erroneous capitalisation of a word in the middle of a sentence.dlg2014-11-191-2/+2
| | | | from schwarze again
* less worse escapes for \ from ingo. im sure there's a much nicer way todlg2014-11-191-2/+2
| | | | represent newlines still.
* use .In to specify includes.dlg2014-11-192-5/+5
|
* ingo also points out we're documenting things that work withdlg2014-11-191-2/+2
| | | | evbuffers, not evbufbuffers.
* ingo points outdlg2014-11-191-3/+11
| | | | | | | | | | | | .Fo evbuffer_readln .Fa "struct evbuffer *buf" .Fa "size_t *read_out" .Fa "enum evbuffer_eol_style eol_style" .Fc is more readable mdoc for very long prototypes than lines like .Fn "evbuffer_readln" "struct evbuffer *buf" "size_t *read_out" "enum evbuffer_eol_style eol_style"
* i got sick of having to read the source code to know what thedlg2014-11-193-48/+261
| | | | | | | | | | | | | | | evbuffer_foo functions do. reyk, nicm, jmc, and schwarze seem to support a manpage as a reasonable solution to this problem. im putting this in a separate manpage because i find they get too cumbersome when they get too big. ingo agrees (and suggests even this might be too big). the file is evbuffer_new.3 rather than evbuffer.3 because we document functions. ok reyk@ nicm@ jmc@ schwarze@ this is rough, everyone has tweaks coming.
* BUGS is no longer relevant, according to nicm;jmc2014-11-191-8/+2
|
* Libevent has compatibilty wrappers in evutil. OpenBSD does not usebluhm2014-10-311-3/+6
| | | | | | | | | them anymore, but evutil is still part of libevent's interface. Separate the API of evutil from libevent and do not include evutil.h from event.h automatically. A version bump is not necessary as the library itself does not change. Bulk ports build done by landry@ had no fallout. OK nicm@ deraadt@
* Use CDIAGFLAGS from bsd.own.mk and append additional warning flags.bluhm2014-10-311-11/+10
| | | | | All warnings have been fixed in libevent. OK nicm@
* Fix whitespace errors in libevent.bluhm2014-10-309-63/+63
| | | | OK nicm@
* The fdsz and n_events variables contain unsigned values that arebluhm2014-10-301-6/+6
| | | | | | derived from size_t and passed to functions as size_t parameters. Change them from int to size_t to avoid compiler warnings. OK doug@ nicm@
* After removing all the #ifdef, the wrappers in evutil are ratherbluhm2014-10-2910-53/+44
| | | | | useless. Let libevent call the libc functions directly. OK nicm@
* Remove workaround for Mac OS X kqueue bug.bluhm2014-10-291-22/+1
| | | | OK nicm@
* Do not cast a (const void *) pointer to (void *) to avoid a warning.bluhm2014-10-291-2/+2
| | | | OK nicm@
* Remove some #ifdef from libevent.bluhm2014-10-184-36/+7
| | | | OK nicm@
* Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.bluhm2014-10-186-38/+7
| | | | OK nicm@
* Remove #ifdef HAVE_backend and remove references to unimplementedbluhm2014-10-172-36/+3
| | | | | backends. OK nicm@
* Remove some #ifdef HAVE_syscall.bluhm2014-10-173-45/+3
| | | | OK nicm@
* Remove #ifdef HAVE_.*_H, just include the header files.bluhm2014-10-1711-95/+22
| | | | | Do not include sys/param.h. OK nicm@
* Remove #ifdef HAVE_CONFIG_H, there is no config.h file.bluhm2014-10-1610-44/+10
| | | | OK nicm@
* Remove #ifndef HAVE_TAILQFOREACH containing a private tailqbluhm2014-10-152-19/+2
| | | | | implementation. OK nicm@
* Userland reallocarray() audit.doug2014-10-111-5/+5
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* iRemove the #ifdef WIN32 implementation from libevent.bluhm2014-10-088-219/+16
| | | | OK nicm@
* use reallocarray() to detect multiplicative integer overflow; obviousderaadt2014-10-083-16/+16
| | | | | pattern. This commit does not fix the non-obvious bloody horror of select.c.
* Remove the #ifdef HAVE_SIGACTION from libevent. The structbluhm2014-10-063-39/+3
| | | | | evsignal_info does not change, so no library crank. OK nicm@ deraadt@
* Replace all queue *_END macro calls except CIRCLEQ_END with NULL.doug2014-09-131-3/+2
| | | | | | | | CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@
* The libevent event_log() function called by event_msgx() adds a newbluhm2014-09-011-3/+2
| | | | | | line itself. Do not print a double new line when EVENT_SHOW_METHOD is set. OK nicm@
* sort SEE ALSO;jmc2014-04-031-2/+2
|
* add helper functions to use asr with libevent.eric2014-04-035-8/+123
| | | | ok deraadt@