ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/Changes
(Generate patch)

Comparing libev/Changes (file contents):
Revision 1.161 by root, Sun Feb 14 19:23:19 2010 UTC vs.
Revision 1.313 by root, Wed Dec 28 04:22:06 2016 UTC

1Revision history for libev, a high-performance and full-featured event loop. 1Revision history for libev, a high-performance and full-featured event loop.
2 2
34.24 Wed Dec 28 05:19:55 CET 2016
4 - bump version to 4.24, as the release tarball inexplicably
5 didn't have the right version in ev.h, even though the cvs-tagged
6 version did have the right one (reported by Ales Teska).
7
84.23 Wed Nov 16 18:23:41 CET 2016
9 - move some declarations at the beginning to help certain retarded
10 microsoft compilers, even though their documentation claims
11 otherwise (reported by Ruslan Osmanov).
12
134.22 Sun Dec 20 22:11:50 CET 2015
14 - when epoll detects unremovable fds in the fd set, rebuild
15 only the epoll descriptor, not the signal pipe, to avoid
16 SIGPIPE in ev_async_send. This doesn't solve it on fork,
17 so document what needs to be done in ev_loop_fork
18 (analyzed by Benjamin Mahler).
19 - remove superfluous sys/timeb.h include on win32
20 (analyzed by Jason Madden).
21 - updated libecb.
22
234.20 Sat Jun 20 13:01:43 CEST 2015
24 - prefer noexcept over throw () with C++ 11.
25 - update ecb.h due to incompatibilities with c11.
26 - fix a potential aliasing issue when reading and writing
27 watcher callbacks.
28
294.19 Thu Sep 25 08:18:25 CEST 2014
30 - ev.h wasn't valid C++ anymore, which tripped compilers other than
31 clang, msvc or gcc (analyzed by Raphael 'kena' Poss). Unfortunately,
32 C++ doesn't support typedefs for function pointers fully, so the affected
33 declarations have to spell out the types each time.
34 - when not using autoconf, tighten the check for clock_gettime and related
35 functionality.
36
374.18 Fri Sep 5 17:55:26 CEST 2014
38 - events on files were not always generated properly with the
39 epoll backend (testcase by Assaf Inbal).
40 - mark event pipe fd as cloexec after a fork (analyzed by Sami Farin).
41 - (ecb) support m68k, m88k and sh (patch by Miod Vallat).
42 - use a reasonable fallback for EV_NSIG instead of erroring out
43 when we can't detect the signal set size.
44 - in the absence of autoconf, do not use the clock syscall
45 on glibc >= 2.17 (avoids the syscall AND -lrt on systems
46 doing clock_gettime in userspace).
47 - ensure extern "C" function pointers are used for externally-visible
48 loop callbacks (not watcher callbacks yet).
49 - (ecb) work around memory barriers and volatile apparently both being
50 broken in visual studio 2008 and later (analysed and patch by Nicolas Noble).
51
524.15 Fri Mar 1 12:04:50 CET 2013
53 - destroying a non-default loop would stop the global waitpid
54 watcher (Denis Bilenko).
55 - queueing pending watchers of higher priority from a watcher now invokes
56 them in a timely fashion (reported by Denis Bilenko).
57 - add throw() to all libev functions that cannot throw exceptions, for
58 further code size decrease when compiling for C++.
59 - add throw () to callbacks that must not throw exceptions (allocator,
60 syserr, loop acquire/release, periodic reschedule cbs).
61 - fix event_base_loop return code, add event_get_callback, event_base_new,
62 event_base_get_method calls to improve libevent 1.x emulation and add
63 some libevent 2.x functionality (based on a patch by Jeff Davey).
64 - add more memory fences to fix a bug reported by Jeff Davey. Better
65 be overfenced than underprotected.
66 - ev_run now returns a boolean status (true meaning watchers are
67 still active).
68 - ev_once: undef EV_ERROR in ev_kqueue.c, to avoid clashing with
69 libev's EV_ERROR (reported by 191919).
70 - (ecb) add memory fence support for xlC (Darin McBride).
71 - (ecb) add memory fence support for gcc-mips (Anton Kirilov).
72 - (ecb) add memory fence support for gcc-alpha (Christian Weisgerber).
73 - work around some kernels losing file descriptors by leaking
74 the kqueue descriptor in the child.
75 - work around linux inotify not reporting IN_ATTRIB changes for directories
76 in many cases.
77 - include sys/syscall.h instead of plain syscall.h.
78 - check for io watcher loops in ev_verify, check for the most
79 common reported usage bug in ev_io_start.
80 - choose socket vs. WSASocket at compiletime using EV_USE_WSASOCKET.
81 - always use WSASend/WSARecv directly on windows, hoping that this
82 works in all cases (unlike read/write/send/recv...).
83 - try to detect signals around a fork faster (test program by
84 Denis Bilenko).
85 - work around recent glibc versions that leak memory in realloc.
86 - rename ev::embed::set to ev::embed::set_embed to avoid clashing
87 the watcher base set (loop) method.
88 - rewrite the async/signal pipe logic to always keep a valid fd, which
89 simplifies (and hopefully correctifies :) the race checking
90 on fork, at the cost of one extra fd.
91 - add fat, msdos, jffs2, ramfs, ntfs and btrfs to the list of
92 inotify-supporting filesystems.
93 - move orig_CFLAGS assignment to after AC_INIT, as newer autoconf
94 versions ignore it before
95 (https://bugzilla.redhat.com/show_bug.cgi?id=908096).
96 - add some untested android support.
97 - enum expressions must be of type int (reported by Juan Pablo L).
98
994.11 Sat Feb 4 19:52:39 CET 2012
100 - INCOMPATIBLE CHANGE: ev_timer_again now clears the pending status, as
101 was documented already, but not implemented in the repeating case.
102 - new compiletime symbols: EV_NO_SMP and EV_NO_THREADS.
103 - fix a race where the workaround against the epoll fork bugs
104 caused signals to not be handled anymore.
105 - correct backend_fudge for most backends, and implement a windows
106 specific workaround to avoid looping because we call both
107 select and Sleep, both with different time resolutions.
108 - document range and guarantees of ev_sleep.
109 - document reasonable ranges for periodics interval and offset.
110 - rename backend_fudge to backend_mintime to avoid future confusion :)
111 - change the default periodic reschedule function to hopefully be more
112 exact and correct even in corner cases or in the far future.
113 - do not rely on -lm anymore: use it when available but use our
114 own floor () if it is missing. This should make it easier to embed,
115 as no external libraries are required.
116 - strategically import macros from libecb and mark rarely-used functions
117 as cache-cold (saving almost 2k code size on typical amd64 setups).
118 - add Symbols.ev and Symbols.event files, that were missing.
119 - fix backend_mintime value for epoll (was 1/1024, is 1/1000 now).
120 - fix #3 "be smart about timeouts" to not "deadlock" when
121 timeout == now, also improve the section overall.
122 - avoid "AVOIDING FINISHING BEFORE RETURNING" idiom.
123 - support new EV_API_STATIC mode to make all libev symbols
124 static.
125 - supply default CFLAGS of -g -O3 with gcc when original CFLAGS
126 were empty.
127
1284.04 Wed Feb 16 09:01:51 CET 2011
129 - fix two problems in the native win32 backend, where reuse of fd's
130 with different underlying handles caused handles not to be removed
131 or added to the select set (analyzed and tested by Bert Belder).
132 - do no rely on ceil() in ev_e?poll.c.
133 - backport libev to HP-UX versions before 11 v3.
134 - configure did not detect nanosleep and clock_gettime properly when
135 they are available in the libc (as opposed to -lrt).
136
1374.03 Tue Jan 11 14:37:25 CET 2011
138 - officially support polling files with all backends.
139 - support files, /dev/zero etc. the same way as select in the epoll
140 backend, by generating events on our own.
141 - ports backend: work around solaris bug 6874410 and many related ones
142 (EINTR, maybe more), with no performance loss (note that the solaris
143 bug report is actually wrong, reality is far more bizarre and broken
144 than that).
145 - define EV_READ/EV_WRITE as macros in event.h, as some programs use
146 #ifdef to test for them.
147 - new (experimental) function: ev_feed_signal.
148 - new (to become default) EVFLAG_NOSIGMASK flag.
149 - new EVBACKEND_MASK symbol.
150 - updated COMMON IDIOMS SECTION.
151
1524.01 Fri Nov 5 21:51:29 CET 2010
153 - automake fucked it up, apparently, --add-missing -f is not quite enough
154 to make it update its files, so 4.00 didn't install ev++.h and
155 event.h on make install. grrr.
156 - ev_loop(count|depth) didn't return anything (Robin Haberkorn).
157 - change EV_UNDEF to 0xffffffff to silence some overzealous compilers.
158 - use "(libev) " prefix for all libev error messages now.
159
1604.00 Mon Oct 25 12:32:12 CEST 2010
161 - "PORTING FROM LIBEV 3.X TO 4.X" (in ev.pod) is recommended reading.
3 - ev_embed_stop did not correctly stop the watcher (very good 162 - ev_embed_stop did not correctly stop the watcher (very good
4 testcase by Vladimir Timofeev). 163 testcase by Vladimir Timofeev).
164 - ev_run will now always update the current loop time - it erroneously
165 didn't when idle watchers were active, causing timers not to fire.
166 - fix a bug where a timeout of zero caused the timer not to fire
167 in the libevent emulation (testcase by Péter Szabó).
5 - applied win32 fixes by Michael Lenaghan. 168 - applied win32 fixes by Michael Lenaghan (also James Mansion).
169 - replace EV_MINIMAL by EV_FEATURES.
170 - prefer EPOLL_CTL_ADD over EPOLL_CTL_MOD in some more cases, as it
171 seems the former is *much* faster than the latter.
172 - linux kernel version detection (for inotify bug workarounds)
173 did not work properly.
174 - reduce the number of spurious wake-ups with the ports backend.
6 - remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu). 175 - remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu).
176 - do async init within ev_async_start, not ev_async_set, which avoids
177 an API quirk where the set function must be called in the C++ API
178 even when there is nothing to set.
179 - add (undocumented) EV_ENABLE when adding events with kqueue,
180 this might help with OS X, which seems to need it despite documenting
181 not to need it (helpfully pointed out by Tilghman Lesher).
182 - do not use poll by default on freebsd, it's broken (what isn't
183 on freebsd...).
184 - allow to embed epoll on kernels >= 2.6.32.
7 - configure now prepends -O3, not appends it, so one can still 185 - configure now prepends -O3, not appends it, so one can still
8 override it. 186 override it.
187 - ev.pod: greatly expanded the portability section, added a porting
188 section, a description of watcher states and made lots of minor fixes.
9 - disable poll backend on AIX, the poll header spams the namespace 189 - disable poll backend on AIX, the poll header spams the namespace
10 and it's not worth working around dead platforms (reported 190 and it's not worth working around dead platforms (reported
11 and analyzed by Aivars Kalvans). 191 and analyzed by Aivars Kalvans).
192 - improve header file compatibility of the standalone eventfd code
193 in an obscure case.
194 - implement EV_AVOID_STDIO option.
195 - do not use sscanf to parse linux version number (smaller, faster,
196 no sscanf dependency).
197 - new EV_CHILD_ENABLE and EV_SIGNAL_ENABLE configurable settings.
198 - update libev.m4 HAVE_CLOCK_SYSCALL test for newer glibcs.
199 - add section on accept() problems to the manpage.
200 - rename EV_TIMEOUT to EV_TIMER.
201 - rename ev_loop_count/depth/verify/loop/unloop.
202 - remove ev_default_destroy and ev_default_fork.
203 - switch to two-digit minor version.
204 - work around an apparent gentoo compiler bug.
205 - define _DARWIN_UNLIMITED_SELECT. just so.
206 - use enum instead of #define for most constants.
207 - improve compatibility to older C++ compilers.
208 - (experimental) ev_run/ev_default_loop/ev_break/ev_loop_new have now
209 default arguments when compiled as C++.
210 - enable automake dependency tracking.
211 - ev_loop_new no longer leaks memory when loop creation failed.
212 - new ev_cleanup watcher type.
12 213
133.9 Thu Dec 31 07:59:59 CET 2009 2143.9 Thu Dec 31 07:59:59 CET 2009
14 - signalfd is no longer used by default and has to be requested 215 - signalfd is no longer used by default and has to be requested
15 explicitly - this means that easy to catch bugs become hard to 216 explicitly - this means that easy to catch bugs become hard to
16 catch race conditions, but the users have spoken. 217 catch race conditions, but the users have spoken.
17 - point out the unspecified signal mask in the documentation, and 218 - point out the unspecified signal mask in the documentation, and
18 that this is a race condition regardless of EV_SIGNALFD. 219 that this is a race condition regardless of EV_SIGNALFD.
19 - backport inotify code to C89. 220 - backport inotify code to C89.
20 - inotify file descriptors could leak into child processes. 221 - inotify file descriptors could leak into child processes.
21 - ev_stat watchers could keep an errornous extra ref on the loop, 222 - ev_stat watchers could keep an erroneous extra ref on the loop,
22 preventing exit when unregistering all watchers (testcases 223 preventing exit when unregistering all watchers (testcases
23 provided by ry@tinyclouds.org). 224 provided by ry@tinyclouds.org).
24 - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration 225 - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration
25 symbols to make it easier for apps to do their own fd management. 226 symbols to make it easier for apps to do their own fd management.
26 - support EV_IDLE_ENABLE being disabled in ev++.h 227 - support EV_IDLE_ENABLE being disabled in ev++.h
32 - changed minimum glibc requirement from glibc 2.9 to 2.7, for 233 - changed minimum glibc requirement from glibc 2.9 to 2.7, for
33 signalfd. 234 signalfd.
34 - add missing string.h include (Denis F. Latypoff). 235 - add missing string.h include (Denis F. Latypoff).
35 - only replace ev_stat.prev when we detect an actual difference, 236 - only replace ev_stat.prev when we detect an actual difference,
36 so prev is (almost) always different to attr. this might 237 so prev is (almost) always different to attr. this might
37 have caused the probems with 04_stat.t. 238 have caused the problems with 04_stat.t.
38 - add ev::timer->remaining () method to C++ API. 239 - add ev::timer->remaining () method to C++ API.
39 240
403.8 Sun Aug 9 14:30:45 CEST 2009 2413.8 Sun Aug 9 14:30:45 CEST 2009
41 - incompatible change: do not necessarily reset signal handler 242 - incompatible change: do not necessarily reset signal handler
42 to SIG_DFL when a sighandler is stopped. 243 to SIG_DFL when a sighandler is stopped.
43 - ev_default_destroy did not properly free or zero some members, 244 - ev_default_destroy did not properly free or zero some members,
44 potentially causing crashes and memory corruption on repated 245 potentially causing crashes and memory corruption on repeated
45 ev_default_destroy/ev_default_loop calls. 246 ev_default_destroy/ev_default_loop calls.
46 - take advantage of signalfd on GNU/Linux systems. 247 - take advantage of signalfd on GNU/Linux systems.
47 - document that the signal mask might be in an unspecified 248 - document that the signal mask might be in an unspecified
48 state when using libev's signal handling. 249 state when using libev's signal handling.
49 - take advantage of some GNU/Linux calls to set cloexec/nonblock 250 - take advantage of some GNU/Linux calls to set cloexec/nonblock
84 - correctly zero the idx values for arrays, so destroying and 285 - correctly zero the idx values for arrays, so destroying and
85 reinitialising the default loop actually works (patch by 286 reinitialising the default loop actually works (patch by
86 Malek Hadj-Ali). 287 Malek Hadj-Ali).
87 - implement ev_suspend and ev_resume. 288 - implement ev_suspend and ev_resume.
88 - new EV_CUSTOM revents flag for use by applications. 289 - new EV_CUSTOM revents flag for use by applications.
89 - add documentation section about priorites. 290 - add documentation section about priorities.
90 - add a glossary to the dcoumentation. 291 - add a glossary to the documentation.
91 - extend the ev_fork description slightly. 292 - extend the ev_fork description slightly.
92 - optimize a jump out of call_pending. 293 - optimize a jump out of call_pending.
93 294
943.53 Sun Feb 15 02:38:20 CET 2009 2953.53 Sun Feb 15 02:38:20 CET 2009
95 - fix a bug in event pipe creation on win32 that would cause a 296 - fix a bug in event pipe creation on win32 that would cause a
171 do similar changes for event.c. 372 do similar changes for event.c.
172 373
1733.45 Tue Oct 21 21:59:26 CEST 2008 3743.45 Tue Oct 21 21:59:26 CEST 2008
174 - disable inotify usage on linux <2.6.25, as it is broken 375 - disable inotify usage on linux <2.6.25, as it is broken
175 (reported by Yoann Vandoorselaere). 376 (reported by Yoann Vandoorselaere).
176 - ev_stat errornously would try to add inotify watchers 377 - ev_stat erroneously would try to add inotify watchers
177 even when inotify wasn't available (this should only 378 even when inotify wasn't available (this should only
178 have a performance impact). 379 have a performance impact).
179 - ev_once now passes both timeout and io to the callback if both 380 - ev_once now passes both timeout and io to the callback if both
180 occur concurrently, instead of giving timeouts precedence. 381 occur concurrently, instead of giving timeouts precedence.
181 - disable EV_USE_INOTIFY when sys/inotify.h is too old. 382 - disable EV_USE_INOTIFY when sys/inotify.h is too old.
249 - enable inlining with gcc versions 2 and 3. 450 - enable inlining with gcc versions 2 and 3.
250 - work around broken poll implementations potentially 451 - work around broken poll implementations potentially
251 not clearing revents field in ev_poll (Brandon Black) 452 not clearing revents field in ev_poll (Brandon Black)
252 (no such systems are known at this time). 453 (no such systems are known at this time).
253 - work around a bug in realloc on openbsd and darwin, 454 - work around a bug in realloc on openbsd and darwin,
254 also makes the errornous valgrind complaints 455 also makes the erroneous valgrind complaints
255 go away (noted by various people). 456 go away (noted by various people).
256 - fix ev_async_pending, add c++ wrapper for ev_async 457 - fix ev_async_pending, add c++ wrapper for ev_async
257 (based on patch sent by Johannes Deisenhofer. 458 (based on patch sent by Johannes Deisenhofer).
258 - add sensible set method to ev::embed. 459 - add sensible set method to ev::embed.
259 - made integer constants type int in ev.h. 460 - made integer constants type int in ev.h.
260 461
2613.2 Wed Apr 2 17:11:19 CEST 2008 4623.2 Wed Apr 2 17:11:19 CEST 2008
262 - fix a 64 bit overflow issue in the select backend, 463 - fix a 64 bit overflow issue in the select backend,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines