Michael Adam
a868d2f3d5
libsmbconf: move the non-registry parts of libsmbconf to top level
...
Michael
2009-01-21 18:40:58 +01:00
Stefan Metzmacher
bd576b93bd
socket_wrapper: fix PCAP support broken by aaea68791c
...
We should note close the fd after writing the first packet.
metze
2009-01-20 00:42:01 +01:00
Stefan Metzmacher
3347ed7e6e
tevent: rename signal handler functions to start with tevent_common_
...
This makes debugging with gdb easier.
metze
2009-01-20 00:40:40 +01:00
Stefan Metzmacher
9967907190
util_str: setup the correct talloc name for strings
...
metze
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2009-01-19 07:05:21 +01:00
Günther Deschner
87fec1450f
lib: add strlen_m_term_null from s3.
...
Guenther
2009-01-16 00:28:45 +01:00
Jelmer Vernooij
0cbce777a3
Fix indentation for some configure options.
2009-01-15 21:17:56 +01:00
Michael Adam
6f53a487b4
nss_wrapper.pl: fix "Use of uninitialized value $i in array element" messages
...
I just saw this in "make test" after "SMBD OUTPUT:"...
Michael
2009-01-12 13:04:40 +01:00
Stefan Metzmacher
5d19187d3d
tevent: use for() loops instead of while() loops
...
metze
2009-01-12 09:23:05 +01:00
Tim Prouty
cd5039b188
tevent: Fix build break
2009-01-11 11:00:50 -08:00
Bo Yang
de4812ea1c
Fix tevent_common_context_destructor to remove all events instead of just the first one
...
Signed-off-by: Bo Yang <boyang@novell.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-11 15:26:47 +01:00
Stefan Metzmacher
49a6d757b4
s4:debug: make setup_logging() a bit more compatible with samba3
...
In samba3 the 2nd argument is bool interactive.
E.g ndrdump uses true there which used to map to DEBUG_FILE
in samba4, it maps to DEBUG_STDOUT now, which is better.
In the end end samba3 should also use the samba4 version of
setup_logging()
metze
2009-01-09 13:10:07 +01:00
Jelmer Vernooij
078879735b
Print the failed value in the time tests.
2009-01-08 12:45:57 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Stefan Metzmacher
4e7f0a8851
tevent: don't try to dereference fde->event_ctx when the event context doesn't exists anymore
...
metze
2009-01-07 06:36:23 +01:00
Jelmer Vernooij
a97c9bab44
Add dependency to talloc in tevent pc file.
2009-01-06 15:53:50 +01:00
Andrew Bartlett
a7e7fa8490
Ensure libreplace is included into the tevent python bindings
...
Without this, the samba4.tevent.python test fails
Andrew Bartlett
2009-01-06 22:44:45 +11:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Stefan Metzmacher
e83a55c356
tevent: add some debugging for timer events, that mostly matches samba3
...
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
b09718fef2
tevent: add tevent_context destructor that unlinks the events from the context
...
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
e240ca5bdd
tevent: don't crash if te->event_ctx is NULL
...
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
ceac26008c
tevent: keep a linked list of fd_events
...
metze
2009-01-05 22:44:53 +01:00
Stefan Metzmacher
b24924d6a6
tevent: keep a linked list of signal events
...
metze
2009-01-05 22:44:53 +01:00
Stefan Metzmacher
a99f76960d
tevent: make tevent_debug() a noop if ev is NULL
...
metze
2009-01-05 22:44:52 +01:00
Volker Lendecke
6572eff183
Attempt to fix the build on netbsd5
2009-01-05 22:10:25 +01:00
Stefan Metzmacher
beb8b8fc2d
tevent: fix tevent_add_timer() and tevent_add_aio() macros
...
metze
2009-01-05 10:53:39 +01:00
Stefan Metzmacher
033428d7da
tevent: move samba4 stuff from libtevent.m4 to samba.m4
...
metze
2009-01-04 18:57:18 +01:00
Stefan Metzmacher
e058e51d63
tevent: completely initialize tevent_fd structs
...
This fixes crash bugs... I forgot to commit and squash
this to commit e45ed828d0
metze
2009-01-04 09:39:17 +01:00
Stefan Metzmacher
c652b42612
tevent: raise version to 0.9.2 after AUTOCLOSE changes
...
metze
2009-01-03 19:58:55 +01:00
Stefan Metzmacher
67810019a0
tevent: remove TEVENT_FD_AUTOCLOSE feature
...
TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER,
which is bad. Callers should use tevent_fd_set_close_fn() now.
metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
2c8a10fe88
tevent: remove dependency to SOCKET_WRAPPER via "system/network.h"
...
metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
193eba85a9
tevent: add tevent_fd_set_auto_close()
...
tevent_fd_set_auto_close() is a simple wrapper
arround tevent_fd_set_close_fn() with a callback
that uses plain close(2).
metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e45ed828d0
tevent: add tevent_fd_set_close_fn()
...
Let callers specify a close function
as an alternative to TEVENT_FD_AUTOCLOSE.
metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e928d863e2
tevent: move some common tevent_fd related functions into tevent_fd.c
...
metze
2009-01-03 19:58:50 +01:00
Stefan Metzmacher
1a26b67ee3
tevent: specify argument names for the event handlers
...
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
7dff14df46
tevent: fix standalone make test
...
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
b00f6d169c
tevent: raise version to 0.9.1
...
This 0.9.1 isn't compatible with 0.9.0,
but it makes only sense to raise the major version
after we have reached 1.0.0.
metze
2009-01-03 09:14:23 +01:00
Jeremy Allison
11576353f6
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
2009-01-02 11:39:04 -08:00
Jeremy Allison
2234173220
Fix warnings in make test code.
...
Jeremy.
2009-01-02 11:38:24 -08:00
Stefan Metzmacher
73ef1773be
tevent: only provide compat macros if the caller wants them
...
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
2176295b02
tevent: change pytevent to tevent_*
...
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
784b2dc8d0
tevent: use TEVENT_FD_* instead of EVENT_FD_*
...
metze
2009-01-02 18:16:53 +01:00
Stefan Metzmacher
4f04b06ac2
tevent: rename ev_debug_ops => tevent_debug_ops
...
And related changes, but we keep compat macros
metze
2009-01-02 18:16:53 +01:00
Stefan Metzmacher
d79fc2ffcd
tevent: rename events => tevent in tevent.pc
...
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
227f799dee
tevent: pass down handler_name and location to the backend layer
...
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
49acf9799a
tevent: make tevent_add_*() macros arround _tevent_add_*()
...
This passes some additional debug information into
the events system to make it easier to find bugs.
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
b12e78e645
tevent: use HAVE_EPOLL instead of HAVE_EVENTS_EPOLL
...
metze
2009-01-02 18:16:51 +01:00
Stefan Metzmacher
d9529a331a
tevent: rename event_register_backend() => tevent_register_backend()
...
And fix the callers and there init functions.
metze
2009-01-02 18:16:51 +01:00
Stefan Metzmacher
0a73e8b334
tevent: rename event_context_init* => tevent_context_init*()
...
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
7db6399069
tevent: rename event_[s|g]et_fd_flags => tevent_fd_[s|g]et_flags
...
metze
2009-01-02 18:16:50 +01:00