summaryrefslogtreecommitdiffstats
path: root/lib/libevent (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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@
* replace random() with arc4random.dlg2013-08-242-4/+4
| | | | | | | blambert didnt like stuff linking to libevent getting warnings about use of an unsafe api. ok blambert@ mikeb@ deraadt@ millert@
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* use FD_CLOEXEC instead of 1; from David Hillokan2013-04-291-2/+2
| | | | ok otto
* evtag_marshal_timeval() truncates tv_sec to 32 bits, not passing the highderaadt2013-04-171-2/+2
| | | | | | bits. Mark it with XXX 2038. I think it is poor style to create a "marshalling layer" which throws away information someone might need. ok nicm, who will pass the news upstream and ask for them to fix it
* (long long) and %lld for big time_tderaadt2013-04-171-4/+4
| | | | ok nicm, who will pass it upstream
* Expose _EVENT_VERSION in event.h. This is expected by net/tor, which will spewpascal2012-08-283-4/+6
| | | | | | out scary warnings if it's not there. Bump minor accordingly. Requested by and ok dcoppa@, ok nicm@
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-2/+1
| | | | ok guenther@
* r1.27 changed libevent to fire a read event when kqueue returned EBADFnicm2012-02-081-1/+2
| | | | | | | | | | | | | (and several other things, particularly EPIPE) on a file descriptor. This causes Google Chrome to die (probably due to a bug in Chrome but finding that is next to impossible at the moment). It's not really clear what libevent should when an invalid fd is added - the poll backend doesn't fire an event and select exits the event loop. Until this is settled, change kqueue to match poll and ignore EBADF, keeping the behaviour r1.27 fixed on EPIPE. Fix from robert@.
* Handle a wider range of kqueue error return values for an event,nicm2012-01-301-21/+40
| | | | | | | | prevents libevent exiting the event loop when getting EPIPE. Problem first seen by drahn@ and more recently hit by gilles@, fix based on one by Nick Mathewson. ok gilles
* fix typos; while here, improve spacing in comments.sobrado2011-07-071-3/+3
| | | | | | changes to libevent and zlib headers sent to the upstream maintainers. ok jmc@ (for typos), millert@
* Fix from upstream to make all backends reinit on event_reinit(). Thisnicm2010-08-301-2/+7
| | | | | | | | | | was not being done for poll and select, so after fork they would remain using the same socketpair for signal notification, leading to a race between the two processes to read from it and hangs. Problem originally reported by kili@. ok gilles
* add missing header needed by event_warn()chl2010-07-171-1/+2
| | | | ok nicm@
* Update to 1.4.14b.nicm2010-07-126-23/+67
| | | | | | | | | | | | | | From their change log: o Fix memory-leak of signal handler array with kqueue. [backport] o Make evutil_make_socket_nonblocking() leave any other flags alone. o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking(). o Re-add event_siglcb; some old code _was_ still using it. :( o Fix a free(NULL) in min_heap.h o Clean up properly when adding a signal handler fails. Also a local change to use an int rather than a long for fcntl(). ok guenther deraadt
* Hide the timeout_* macros under an EVENT_DEPRECATED ifdef. These namesnicm2010-05-311-1/+11
| | | | | | | | invite conflicts, they are rarely used, can trivially be replaced by evtimer_*, and are deprecated and removed from event.h in later libevent versions. ok guenther deraadt
* tweak previous; ok nicmjmc2010-04-221-10/+11
|
* Whoops, EVUTIL_SET_SOCKET_ERROR went missing.nicm2010-04-221-1/+3
|
* Clean up the awful _EVENT_* poo in the libevent headers, and don'tnicm2010-04-217-421/+23
| | | | | | install event-config.h. Pointed out by deraadt.
* Update libevent to 1.4.13.nicm2010-04-2123-4626/+2972
| | | | | | | | | | | | | This is the core library only, the DNS parts are removed and it does not include the other extra bits (HTTP, DNS, and RPC), a separate port for these will appear in due course. Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've forgotten for testing/comments. Note that /usr/include/evdns.h should be removed after updating. ok deraadt
* Fix evsignal_del()'s use of sigaction(): fill in a sigaction structguenther2010-01-101-2/+7
| | | | | | | and pass a pointer to that instead of passing SIG_DFL directly. (Probably the result of a bad signal()-->sigaction() translation...) ok deraadt@, nicm@, miod@
* change back to preferring kqueue, now that nicm, tedu and i havederaadt2009-11-121-4/+4
| | | | | fixed it (or, all the issues we are aware of so far). discussed with nicm
* stop using kqueue.deraadt2009-10-301-4/+4
|
* In evbuffer_readline, do not lose data upon malloc failure. From mainstream:jacekm2009-10-131-2/+1
| | | | | http://levent.svn.sourceforge.net/viewvc/levent?view=rev&revision=1436 ok gilles@
* - Use a const pointer for bufferevent_write.brad2008-05-024-9/+10
| | | | | | | | - Make event_init return struct event_base *. From the libevent SVN repo. ok millert@
* - Increment MAX_ADDRS in evdns so as to be quite large.brad2008-05-022-9/+10
| | | | | | | | | | - Accept as well-formed DNS replies with questions but no answers. - Fix for crash in evdns_resolve_reverse_ipv6(). - Move end of "extern C {" block to the end of evdns.h. From the libevent SVN repo. ok millert@
* Makefile: sort MLINKS and add event_base_once.3jmc2008-05-022-13/+13
| | | | event.3: fix NAME and remove spurious blank line
* Update to libevent 1.3e while retaining our local changes.brad2008-05-0215-671/+755
| | | | | "No objection" millert@ "the diff looks and works fine" reyk@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
|
* Remove evhttp leftover, okay millert@pedro2007-06-041-216/+0
|
* convert to new .Dd format;jmc2007-05-312-4/+4
|
* do not doc the http partsderaadt2007-03-261-24/+24
|
* do not ship the http parts for now; ok millertderaadt2007-03-263-2423/+2
|
* nicer MLINKS chunkderaadt2007-03-221-17/+21
|