summaryrefslogtreecommitdiffstats
path: root/lib/tevent
Commit message (Collapse)AuthorAgeFilesLines
* build: tevent_epoll.c is conditional on HAVE_EPOLLAndrew Tridgell2010-04-061-1/+3
|
* build: started to split up wafsamba.py into separate modulesAndrew Tridgell2010-04-061-0/+4
|
* build: added BUILD_SUBDIR() wrapperAndrew Tridgell2010-04-061-2/+2
|
* build: added ADD_CFLAGS() and started of Samba4 buildAndrew Tridgell2010-04-061-1/+1
|
* build: added waf build rules for ldbAndrew Tridgell2010-04-061-3/+7
|
* build: neater way to find libreplace and start on tevent waf buildAndrew Tridgell2010-04-061-0/+30
|
* tevent: added tevent_re_initialise()Andrew Tridgell2010-03-262-0/+17
| | | | | | | | | | This allows us to re-initialise a tevent context without destroying the pointer. That means that if someone keeps a long term ptr to the event context across a fork it will still work. This also brings the memory handling in single and standard process models much closer together, which means less bugs that we don't find with make test.
* Spelling fixes for tevent.Brad Hards2010-02-223-4/+4
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* util: update three other copies of our dlinklist.h macrosAndrew Tridgell2010-02-141-48/+115
| | | | | ldb and tevent have their own copies of these macros. This brings them in sync with the master copy of dlinklist.h
* s3: signals are processed twice in child.Bo Yang2010-02-093-5/+36
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* tevent: create symbol links to shared libraries see ↵Brian Lu2010-01-061-0/+4
| | | | | | https://bugzilla.samba.org/show_bug.cgi?id=6991 for details Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: prefix types and defined with tevent_ and TEVENT_Stefan Metzmacher2009-12-201-37/+39
| | | | | | This fixes the build warnings on some build-farm hosts. metze
* tevent: Fix a commentVolker Lendecke2009-11-261-1/+1
|
* NULL is not a valid event context.Jeremy Allison2009-10-011-1/+1
| | | | Jeremy.
* Fixing timeval calculationSimo Sorce2009-09-251-1/+1
| | | | The code was always doubling microseconds when attempting to round up.
* lib/tevent: a cleaner fix for be4ac227842530d484659f2db683453366326d8b segvRusty Russell2009-09-221-7/+1
| | | | | | | | | | | | | | | | Revert 23abcd2318c69753aa2a144e1dc0f9cf9efdb705 and fix logic bug. The current code loops through the event contexts, when it sees a different one, it notifies the current one (ev) and updates ev to point to the new one. This is dumb, because: (1) ev starts as NULL, so this code crashes, and (2) The final context will not be notified. The correct fix for this is to update ev to the new one, then notify it. Volker's fix works because we currently always have one event context. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tevent: make sure we don't set errno within the signal handler function.Stefan Metzmacher2009-09-211-0/+3
| | | | metze
* tevent:mksyms: fix spelling...Michael Adam2009-09-112-2/+2
| | | | Michael
* tevent:signatures: add _tevent_req_cancel and tevent_req_set_cancel_fnMichael Adam2009-09-111-0/+2
| | | | | | introduced in 45e4be0d96abdc729252df1e97bb9a56302e5a4a Michael
* tevent:exports: add _tevent_req_cancel and tevent_req_set_cancel_fn.Michael Adam2009-09-111-0/+2
| | | | | | These were added in 45e4be0d96abdc729252df1e97bb9a56302e5a4a Michael
* tevent:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion argsMichael Adam2009-09-111-1/+1
| | | | Michael
* tevent:mksigs: normalize bool -> _BoolMichael Adam2009-09-111-0/+3
| | | | Michael
* tevent:mksigs: ignore symbols (like _DEPRECATED_) after closing function ↵Michael Adam2009-09-111-0/+1
| | | | | | parentheses Michael
* tevent:mksigs: correctly ignode multiline function typedefsMichael Adam2009-09-111-5/+5
| | | | | | by first concatenating multilint parentheses and removing typefes afterwards. Michael
* tevent:mksigs: ignore struct forward declarations.Michael Adam2009-09-111-0/+1
| | | | Michael
* tevent:mksyms: allow characters after closing functions parenthesis.Michael Adam2009-09-111-2/+2
| | | | Michael
* tevent:mksyms: allow double pointer return value of functions.Michael Adam2009-09-111-1/+1
| | | | Michael
* tevent: add abi_checks to "make test"Michael Adam2009-09-111-0/+2
| | | | Michael
* tevent: remove filese generated by "make abi_checks" in "make clean".Michael Adam2009-09-111-0/+2
| | | | Michael
* tevent: add a make target "make abi_checks"Michael Adam2009-09-111-0/+4
| | | | Michael
* tevent: move the original abi_checks script to script/abi_checks_gcc.shMichael Adam2009-09-111-0/+0
| | | | Michael
* tevent: add script/abi_checks.sh. check for abi changes without gcc magic.Michael Adam2009-09-111-0/+91
| | | | | | | | | USAGE: abi_checks.sh LIBRARY_NAME header1 [header2 ...] This creates symbol signature lists using the mksyms and mksigs scripts and compares them with the checked in lists. Michael
* tevent: add script to extract signatures from header files.Michael Adam2009-09-111-0/+178
| | | | | | | | | | | | This produces output like the output gcc produces when invoked with the -aux-info switch. Run like this: cat include/tevent.h | ./script/mksigs.pl This simple parser is probably too coarse to handle all possible header files, but it treats tevent.h correctly... Michael
* tevent: add scripts to extract library symbols (exports file) from headersMichael Adam2009-09-112-0/+121
| | | | Michael
* Add release script for teventSimo Sorce2009-09-041-0/+48
|
* tevent: change version to 0.9.8 after some critical bugs have been fixedStefan Metzmacher2009-09-041-1/+1
| | | | metze
* Another part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks.Jeremy Allison2009-09-031-2/+6
| | | | | | SA_INFO_QUEUE_COUNT *MUST* be a power of 2, in order for the ring buffer wrap to work correctly at the 32 bit boundary. Thanks to Petr Vandrovec <petr@vandrovec.name> for this.
* tevent: Fix a segfault upon the first signalVolker Lendecke2009-08-291-0/+6
| | | | | | | | | | | | | When the first signal arrives, tevent_common_signal_handler() crashed: "ev" is initialized to NULL, so the first "write(ev->pipe_fds[1], &c, 1);" dereferences NULL. Rusty, Tridge, please check. Also, can you tell me a bit more about the environment you tested this in? I'd be curious to see where this survived. Thanks, Volker
* lib/tevent: close pipe_fds on event_context destructionRusty Russell2009-08-281-0/+2
| | | | | | | The "hack_fds" were never closed before; now they're inside event_context they should be closed when that is destroyed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tevent: handle tevent_common_add_signal on different event contexts.Rusty Russell2009-08-282-14/+31
| | | | | | | | | | I don't know if this is a problem in real life. The code assumes there's only one tevent_context; all signals will notify the first event context. That's counter-intuitive if you ever use more than one, and there's nothing else in this code which prevents it AFAICT. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tevent: fix race with signals and tevent_common_add_signalRusty Russell2009-08-281-20/+20
| | | | | | | | | | | We carefully preserve the old signal handler, but we replace it before we've set up everything; in particular, if we fail setting up the pipe_hack we could write a NUL char to stdout (fd 0), instead of calling the old signal handler. Replace the signal handler as the very last thing we do. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tevent: remove spectacularly complicated manual subtractionRusty Russell2009-08-281-4/+1
| | | | | | | | | | | To be completely honest, I don't quite know whether to laugh or cry at this one: 1 + (0xFFFFFFFF & ~(s.seen - s.count)) == 1 + (~(s.seen - s.count)) # s.seen, s.count are uint32_t == s.count - s.seen # -A == ~A + 1 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tevent: avoid using reserved c++ word.Günther Deschner2009-08-241-1/+1
| | | | Guenther
* Fix for bug 6651 - smbd SIGSEGV when breaking oplocks.Jeremy Allison2009-08-211-17/+54
| | | | | | | Based on a patch submitted by Petr Vandrovec <petr@vandrovec.name>. Multiple pending signals with siginfo_t's weren't being handled correctly leading to smbd abort with kernel oplock signals. Jeremy
* tevent: fix a commentMichael Adam2009-08-191-1/+1
| | | | Michael
* tevent: change version to 0.9.7 after adding tevent_req_cancel infrastructureStefan Metzmacher2009-08-171-1/+1
| | | | metze
* tevent: add tevent_req_cancel() infrastructureStefan Metzmacher2009-08-173-0/+70
| | | | | | | This offers a generic way for callers to cancel an async request. metze
* tevent: add some more doxygen comments for tevent_req functionsStefan Metzmacher2009-08-151-0/+38
| | | | metze
* tevent: try to fix the build on QNX qnx18 6.4.1 it doesn't have SA_RESTART ↵Stefan Metzmacher2009-07-161-1/+11
| | | | | | defined metze
* Change to talloc_zero_size instead of extra memset.Jeremy Allison2009-07-141-2/+1
| | | | Jeremy.