summaryrefslogtreecommitdiff
path: root/lib/tevent
AgeCommit message (Collapse)AuthorFilesLines
2009-12-20tevent: prefix types and defined with tevent_ and TEVENT_Stefan Metzmacher1-37/+39
This fixes the build warnings on some build-farm hosts. metze
2009-11-26tevent: Fix a commentVolker Lendecke1-1/+1
2009-10-01NULL is not a valid event context.Jeremy Allison1-1/+1
Jeremy.
2009-09-25Fixing timeval calculationSimo Sorce1-1/+1
The code was always doubling microseconds when attempting to round up.
2009-09-22lib/tevent: a cleaner fix for be4ac227842530d484659f2db683453366326d8b segvRusty Russell1-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>
2009-09-21tevent: make sure we don't set errno within the signal handler function.Stefan Metzmacher1-0/+3
metze
2009-09-11tevent:mksyms: fix spelling...Michael Adam2-2/+2
Michael
2009-09-11tevent:signatures: add _tevent_req_cancel and tevent_req_set_cancel_fnMichael Adam1-0/+2
introduced in 45e4be0d96abdc729252df1e97bb9a56302e5a4a Michael
2009-09-11tevent:exports: add _tevent_req_cancel and tevent_req_set_cancel_fn.Michael Adam1-0/+2
These were added in 45e4be0d96abdc729252df1e97bb9a56302e5a4a Michael
2009-09-11tevent:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion argsMichael Adam1-1/+1
Michael
2009-09-11tevent:mksigs: normalize bool -> _BoolMichael Adam1-0/+3
Michael
2009-09-11tevent:mksigs: ignore symbols (like _DEPRECATED_) after closing function ↵Michael Adam1-0/+1
parentheses Michael
2009-09-11tevent:mksigs: correctly ignode multiline function typedefsMichael Adam1-5/+5
by first concatenating multilint parentheses and removing typefes afterwards. Michael
2009-09-11tevent:mksigs: ignore struct forward declarations.Michael Adam1-0/+1
Michael
2009-09-11tevent:mksyms: allow characters after closing functions parenthesis.Michael Adam1-2/+2
Michael
2009-09-11tevent:mksyms: allow double pointer return value of functions.Michael Adam1-1/+1
Michael
2009-09-11tevent: add abi_checks to "make test"Michael Adam1-0/+2
Michael
2009-09-11tevent: remove filese generated by "make abi_checks" in "make clean".Michael Adam1-0/+2
Michael
2009-09-11tevent: add a make target "make abi_checks"Michael Adam1-0/+4
Michael
2009-09-11tevent: move the original abi_checks script to script/abi_checks_gcc.shMichael Adam1-0/+0
Michael
2009-09-11tevent: add script/abi_checks.sh. check for abi changes without gcc magic.Michael Adam1-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
2009-09-11tevent: add script to extract signatures from header files.Michael Adam1-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
2009-09-11tevent: add scripts to extract library symbols (exports file) from headersMichael Adam2-0/+121
Michael
2009-09-04Add release script for teventSimo Sorce1-0/+48
2009-09-04tevent: change version to 0.9.8 after some critical bugs have been fixedStefan Metzmacher1-1/+1
metze
2009-09-03Another part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks.Jeremy Allison1-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.
2009-08-29tevent: Fix a segfault upon the first signalVolker Lendecke1-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
2009-08-28lib/tevent: close pipe_fds on event_context destructionRusty Russell1-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>
2009-08-28lib/tevent: handle tevent_common_add_signal on different event contexts.Rusty Russell2-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>
2009-08-28lib/tevent: fix race with signals and tevent_common_add_signalRusty Russell1-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>
2009-08-28lib/tevent: remove spectacularly complicated manual subtractionRusty Russell1-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>
2009-08-24tevent: avoid using reserved c++ word.Günther Deschner1-1/+1
Guenther
2009-08-21Fix for bug 6651 - smbd SIGSEGV when breaking oplocks.Jeremy Allison1-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
2009-08-19tevent: fix a commentMichael Adam1-1/+1
Michael
2009-08-17tevent: change version to 0.9.7 after adding tevent_req_cancel infrastructureStefan Metzmacher1-1/+1
metze
2009-08-17tevent: add tevent_req_cancel() infrastructureStefan Metzmacher3-0/+70
This offers a generic way for callers to cancel an async request. metze
2009-08-15tevent: add some more doxygen comments for tevent_req functionsStefan Metzmacher1-0/+38
metze
2009-07-16tevent: try to fix the build on QNX qnx18 6.4.1 it doesn't have SA_RESTART ↵Stefan Metzmacher1-1/+11
defined metze
2009-07-14Change to talloc_zero_size instead of extra memset.Jeremy Allison1-2/+1
Jeremy.
2009-07-14When tallocing a memory block for the state in a tevent_req struct,Jeremy Allison1-0/+1
ensure it's zeroed out. Vl & Metze please check. Jeremy.
2009-07-03Sort the signature filesSimo Sorce2-45/+45
2009-07-03Expose functions need by backend writersSimo Sorce5-52/+67
move publicly needed structures and functions in the public header. Stop installing internal headers. Update the signature and exports files with the new exposed function.
2009-06-18Revert "For tevent to install tevent_util.h"Simo Sorce1-1/+0
This reverts commit b112cc5503350b248949bdbcce8072f5523ce877. tevent_util.h is a private header. Must not be installed.
2009-06-18For tevent to install tevent_util.hEric Sandall1-0/+1
Patch for bug #6270 This patch is for the future when samba4 builds using external libraries. With this patch, tevent now installs tevent_util.h which is required by samba4.
2009-06-15Add exports file and abi checker for teventSimo Sorce7-2/+157
This is a first attempt at exporting symbols only for public functions We also provide a rudimentary ABI checker that tries to check that function signatures are not changed by mistake. Given our use of macros this is not an API checker. It's all based on tevent.h contents and the gcc -aux-info option
2009-06-04Increase tevent version for tevent_req_notify_callback()Volker Lendecke1-1/+1
2009-06-04Add tevent_req_notify_callbackVolker Lendecke2-4/+13
This is necessary for requests that have multiple results. Examples would be SMBEcho and ldap_search.
2009-05-19tevent/python: Makefile was still trying to build some non AC_SUBST python ↵Jelmer Vernooij1-7/+1
targets Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
2009-05-16tevent: Define TALLOC_FREE() if it's not defined yet, to allow buildingJelmer Vernooij1-0/+6
with released versions of talloc.
2009-05-16tevent: Remove python module.Jelmer Vernooij6-219/+0
This module didn't have any functionality that we actually used yet, and it was quite small. Tevent is quite low level and perhaps doesn't make much sense to expose directly as a Python module. It was also causing build problems when used with a system-tevent. We can always back later if necessary.