Volker Lendecke
ddd3da8ab7
Simplify async_connect_send slightly
2009-02-28 12:32:22 +01:00
Stefan Metzmacher
b934f509ed
lib/torture: fix depency to map_nt_error_from_unix()
...
This should fix the build on Mac OS 10
metze
2009-02-26 17:47:00 +01:00
Stefan Metzmacher
3a1f24f286
tevent: add tevent_queue infrastructure
...
metze
2009-02-26 14:22:12 +01:00
Volker Lendecke
4d22554e98
Add tevent_ntstatus
2009-02-26 13:04:33 +01:00
Michael Adam
bd121b532c
s3:libsmbconf: add transactions to the libsmbconf api
...
This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.
Michael
2009-02-26 11:05:23 +01:00
Volker Lendecke
26f238466c
Speed up "net conf list"
...
With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:21 +01:00
Stefan Metzmacher
c21ae8d1bf
libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
...
metze
2009-02-26 10:48:10 +01:00
Stefan Metzmacher
e17df483fb
lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop
...
The reason for tdb_reopen_all() is that the seek pointer on fds are shared between
parent and child.
metze
2009-02-25 13:57:11 -08:00
Stefan Metzmacher
e2f37ec106
tevent: add private_print function feature to tevent_req
...
metze
2009-02-25 14:30:55 +01:00
Stefan Metzmacher
13ac0dc456
tevent: add tevent_req_poll() function
...
metze
2009-02-25 14:08:36 +01:00
Volker Lendecke
423c1d88fc
Remove async_req based async_send
2009-02-25 13:04:19 +01:00
Volker Lendecke
00ad0c4a43
Remove async_req based async_recv
2009-02-25 13:04:18 +01:00
Volker Lendecke
9e3178e838
Attempt to fix the OpenChange build -- sorry for the break
2009-02-25 11:02:48 +01:00
Volker Lendecke
25df6d7413
Add more conventional async_recv
2009-02-24 20:40:48 +01:00
Volker Lendecke
a60480b71a
Add more conventional async_send
2009-02-24 20:40:48 +01:00
Volker Lendecke
08f028f179
Remove unused param_connect struct
2009-02-24 20:40:48 +01:00
Volker Lendecke
bbbdfa2056
Remove unused recvall
2009-02-24 20:40:48 +01:00
Volker Lendecke
4021029cdd
Add async read_packet
2009-02-24 20:40:47 +01:00
Volker Lendecke
f9df355bef
Fix async writev
2009-02-24 20:40:47 +01:00
Volker Lendecke
e50075a580
Remove async sendall
2009-02-24 20:40:47 +01:00
Volker Lendecke
76c6330dfb
Add async writev
2009-02-24 20:40:47 +01:00
Volker Lendecke
39976035eb
Convert async_connect to tevent_req
2009-02-24 20:40:47 +01:00
Volker Lendecke
70814474f5
tevent.h requires bool and uint[16|32|64]_t
2009-02-24 20:40:46 +01:00
Volker Lendecke
c50233695e
Add tevent_req_is_unix_error
2009-02-24 20:40:46 +01:00
Steven Danneman
8d63c596a0
Refactored sys_fork() and sys_pid() into shared util library
...
This fixes a bug in 116ce19b
, where we didn't clear the pid cache in
become_daemon() and thus the /var/run/smbd.pid didn't match the actual
pid of the parent process.
Currently S4 will clear the pid cache on fork but doesn't yet take
advantage of the pid cache by using sys_pid() instead of the direct
get_pid().
2009-02-23 21:17:12 -08:00
Jeremy Allison
faa1100d22
More warning fixes for Solaris.
...
Jeremy.
2009-02-23 16:22:43 -08:00
Björn Jacke
cd6ae0de52
all BSDs use this evironment variable
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-23 09:43:23 +01:00
Tim Prouty
39b508e38e
Fix shadowed declaration warning
2009-02-21 14:00:05 -08:00
Jelmer Vernooij
c9a057bc04
pytevent: Fix include path - tevent_util is not installed.
2009-02-21 19:08:24 +01:00
Steven Danneman
116ce19b10
Moved become_daemon() and close_low_fds() to shared util lib
2009-02-20 16:30:12 -08:00
Stefan Metzmacher
975a881d54
tevent: add tevent_wakeup_send/recv()
...
This can be used as tevent_req based timer event.
metze
2009-02-18 10:31:36 +01:00
Stefan Metzmacher
7f6618a3de
tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()
...
This makes more clear what the function does.
metze
2009-02-18 10:31:35 +01:00
Kai Blin
612c5e746b
async_sock: Use tevent_timeval instead of timeval functions
2009-02-17 09:19:31 +01:00
Kai Blin
48b874e376
tevent: Rename ev_timeval* functions to tevent_timeval, export them.
...
Also add tevent_timeval_add() and tevent_timeval_current_ofs()
to help not depending on lub/util/time.c for things that just need tevent
2009-02-17 09:19:31 +01:00
Stefan Metzmacher
406e6d6114
tevent: fix compiler warning in pytevent.c
...
metze
2009-02-16 09:53:49 +01:00
Stefan Metzmacher
6211162d3e
lib/tevent: change to LGPLv3+
...
metze
2009-02-16 08:53:25 +01:00
Volker Lendecke
f0440d0d56
Add missing prototype for "tevent_req_print"
2009-02-14 22:00:44 +01:00
Volker Lendecke
d39849ddcd
Fix a warning and a bug: pipe(2) can fail
2009-02-14 22:00:44 +01:00
Volker Lendecke
01aff219dd
Add two variable assignments to shut up gcc
2009-02-14 22:00:43 +01:00
Stefan Metzmacher
946573aaed
tevent: raise version to 0.9.3
...
- aio events are removed
- tevent_req infrastructure was added
metze
2009-02-13 18:55:21 +01:00
Stefan Metzmacher
113651c517
lib/tevent: add tevent_req infrastructure
...
This is almost a copy of the async_req code,
which will be removed later.
metze
2009-02-13 18:37:01 +01:00
Stefan Metzmacher
f337974ed5
lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.c
...
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
fa2461ae73
lib/tevent: expose ev_timeval_zero() for internal usage
...
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
1d949fe742
lib/tevent: remove broken tevent_aio support
...
It makes no sense to support aio events because,
the current implementation was based on IOCB_CMD_EPOLL_WAIT
which never made it into the main kernel tree.
The native linux aio can be used with select/epoll
using eventfd(), which means we can implement aio
with fd events and implement aio outside of tevent.
metze
2009-02-13 16:02:13 +01:00
Volker Lendecke
0844cca1d5
Replace get_myname() with the talloc version from v3-3-test
2009-02-13 12:15:03 +01:00
Volker Lendecke
c2f7f1b40b
Fix Coverity ID 707 (RESOURCE_LEAK)
2009-02-13 10:21:03 +01:00
Björn Jacke
dc9387ec42
enable IPv6 support for NetBSD, FreeBSD
...
most systems include netinet/in.h via netdb.h but *BSD don't.
2009-02-11 10:19:12 -08:00
Tim Prouty
1696298aad
s3 async: Fix the build on systems that have ETIMEDOUT but not ETIME
...
Fallback on EAGAIN
2009-02-09 13:23:44 -08:00
Jelmer Vernooij
0afa0ab442
Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4"
...
lib/util already has discard_const_p.
This reverts commit 0cb430c22e
.
2009-02-09 17:48:30 +01:00
Kai Blin
b8cafc5ad2
async_sock: Map ASYNC_REQ_TIMEOUT to ETIMEDOUT instead of ETIME
...
Also, fall back to EIO if ETIMEDOUT is not present
2009-02-09 12:13:58 +01:00
Kai Blin
c3b9b6c8aa
async_sock: Use unix errnos instead of NTSTATUS
...
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would
be pointless to convert to errno first and to wbcErr later.
2009-02-09 08:36:08 +01:00
Stefan Metzmacher
e6bb55c3d5
lib/tdb: don't generate a static library for the samba4 build
...
We also don't do this for talloc and ldb.
metze
2009-02-03 10:24:38 +01:00
Volker Lendecke
d3f9b0fab6
Next step disentangling async_req from NTSTATUS
...
Now I need to document this :-)
2009-02-02 20:15:03 +01:00
Volker Lendecke
cfc27ece10
Attempt to fix "make test" on host "tridge"
2009-02-02 15:39:13 +01:00
Stefan Metzmacher
886df1ac86
lib/tevent: the python bindings don't use swig anymore
...
metze
2009-02-02 15:16:08 +01:00
Stefan Metzmacher
662e05f7a9
lib/tdb: the python bindings don't use swig anymore
...
metze
2009-02-02 15:16:08 +01:00
Stefan Metzmacher
8249a467e3
lib/tevent: s/private/private_data
...
metze
2009-02-02 13:09:18 +01:00
Stefan Metzmacher
48a0721606
lib/util: s/new/pn in idtree.c
...
metze
2009-02-02 13:09:16 +01:00
Stefan Metzmacher
5e6e370c4e
lib/util: s/class/dclass
...
metze
2009-02-02 13:09:16 +01:00
Simo Sorce
10c907bcdb
Fix headers, only ldb.h is required
2009-02-01 13:06:13 -05:00
Volker Lendecke
c14b7e648b
Split up async_req into a generic and a NTSTATUS specific part
2009-02-01 19:05:39 +01:00
Stefan Metzmacher
412b89afba
lib/replace: move MAXHOSTNAMELEN to system/network.h
...
Some platforms define it in netdb.h, so we should
define the replace after including metdb.h.
metze
2009-01-31 09:32:14 +01:00
Simo Sorce
de4f7c0787
Do not install private headers
2009-01-30 20:12:50 -05:00
Tim Prouty
2c2545d45a
s3 build: Remove unused fstat check to fix a bunch of HAVE_FSTAT warnings
2009-01-30 14:41:07 -08:00
Stefan Metzmacher
84ca20a6b5
lib/tevent: include replace.h in pytevent.c
...
This fixes the build on Tru64.
metze
2009-01-30 19:39:34 +01:00
Stefan Metzmacher
3718cf294a
lib/tdb: include replace.h and system/filesys.h in pytdb.c
...
This fixes the build on Tru64.
metze
2009-01-30 19:38:59 +01:00
Stefan Metzmacher
2f8a398296
lib/talloc: include replace.h in pytalloc.c
...
This fixes the build on Tru64.
metze
2009-01-30 19:38:09 +01:00
Stefan Metzmacher
c28952c555
lib/replace: check if we have dirfd()
...
Note: we only use this internally and don't replace it by default.
metze
2009-01-30 18:42:08 +01:00
Stefan Metzmacher
24a1b556fc
s4:lib/util: fix the build
...
metze
2009-01-30 18:42:08 +01:00
Stefan Metzmacher
94cb0835ca
s4:build: kill DEFAULT_HEADERS variable
...
metze
2009-01-30 17:38:40 +01:00
Simo Sorce
4e0a619701
Fix standalone configure scripts
2009-01-30 01:02:23 -05:00
Jeremy Allison
77bac5b78c
Fix coverity CID#66. Resource leak in error path.
...
Jeremy.
2009-01-29 17:16:34 -08:00
Kai Blin
ab63bad94b
async_sock: Move to top level
2009-01-28 11:35:32 +01:00
Michael Adam
86ed67f073
libreplace: fix detection of netinet/ip.h on solaris 8
...
(The test needs to additionally include <netinet/in_systm.h>.)
Michael
2009-01-27 15:48:54 +01:00
Stefan Metzmacher
920f8b1568
tevent: change SA_INFO_QUEUE_COUNT from 10 to 100
...
The samba3 aio code requires lp_max_mux() with a default of 50
and the samba3 linux oplock code requires 100.
May we could make the size dynamic later.
metze
2009-01-27 15:28:06 +01:00
Kai Blin
a7e620522e
async_req: Fix the S4 build
2009-01-27 12:38:11 +01:00
Michael Adam
cdab2a4127
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
...
under solaris
Michael
2009-01-27 12:38:01 +01:00
Kai Blin
481183ab02
s4: add ../lib/async_req to the s4 build
2009-01-23 17:57:33 +01:00
Kai Blin
85b36d95fb
async_req: Move to top level dir
2009-01-23 17:57:33 +01:00
Stefan Metzmacher
7fc7ee9331
lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
...
metze
2009-01-22 12:39:34 +01:00
Jelmer Vernooij
b711faa53f
libsmbconf: Remove use of some Samba3-specific macros.
2009-01-21 18:50:16 +01:00
Jelmer Vernooij
97ff9d479a
libsmbconf: Add build magic for Samba 4.
2009-01-21 18:50:02 +01:00
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
Stefan Metzmacher
d33b6aeff3
tevent: rename event_loop_* => tevent_loop_*
...
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
8bdc947993
tevent: rename event_set_default_backend() => tevent_set_default_backend()
...
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
0ffed7d992
tevent: use libreplace headers instead of system headers
...
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
3f8f99eaec
s4:tevent: move event_context_find() to tevent_s4.c
...
metze
2009-01-02 18:16:48 +01:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Tim Prouty
0cb430c22e
s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4
2008-12-30 16:19:42 -08:00
Stefan Metzmacher
c2dc2e0b46
lib/tevent: fix standalone make distclean realdistclean
...
Bug report by Brad Hards <bradh@frogmouth.net>.
metze
2008-12-30 08:58:52 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
7bf5768a52
lib/tevent: rename event_* => tevent_* in the header file
...
We have compat macros to keep the callers happy.
metze
2008-12-29 08:42:00 +01:00
Stefan Metzmacher
83bcc4e027
lib/tevent: libtevent will change a lot until it's version 1.0.0
...
metze
2008-12-24 13:59:00 +01:00
Jelmer Vernooij
30bdb68c9e
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-23 23:26:32 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Jelmer Vernooij
32e03f9fa5
Install tevent_internal.h, as Samba 4 needs it.
2008-12-23 22:57:00 +01:00
Jelmer Vernooij
5c75b65ca1
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-23 22:12:23 +01:00
Jelmer Vernooij
ef80d1b794
Fix use of "time offset" parameter, and add test to make sure I don't break it again :-)
2008-12-23 22:10:34 +01:00
Jelmer Vernooij
31dc07ee28
pytevent: Add missing file.
2008-12-23 20:13:17 +01:00
Jelmer Vernooij
8b24da201b
Allow using external libtevent.
2008-12-23 19:59:57 +01:00
Jelmer Vernooij
22703bf3ff
standalone: Use more variables, preparing to include these files from main
...
Samba 4 makefile.
2008-12-23 19:44:11 +01:00
Jelmer Vernooij
465f78021e
Move Samba4-specific file out of common libtevent.
2008-12-23 19:28:22 +01:00
Jeremy Allison
aaea68791c
In gcc version 4.3.2 we get warnings for functions declared with
...
attribute warn_unused_result. Start to fix these.
Jeremy.
2008-12-22 20:08:14 -08:00
Jelmer Vernooij
bbc95fb1a8
ldb: Fix linking against tevent library (rather than events)
...
replace: Fix copyright for dlfcn.c.
2008-12-23 04:18:31 +01:00
Jelmer Vernooij
86cee0b28c
pytalloc: Add some comments, use talloc object location in repr rather
...
than python object location.
2008-12-23 04:06:21 +01:00
Jelmer Vernooij
998d588192
python/tevent: Remove use of pytalloc.h.
2008-12-23 03:25:51 +01:00
Jelmer Vernooij
e6d5552250
Fix prefixing swig library directory with prefix.
2008-12-23 01:40:08 +01:00
Jelmer Vernooij
e9deb75759
Fix installation of standalone tevent Python module.
2008-12-22 23:55:01 +01:00
Jelmer Vernooij
6704c27a78
Fix standalone build of tdb python module, update ignores for standalone tdb.
2008-12-22 23:39:30 +01:00
Jelmer Vernooij
c023828962
Fix missing symbols issues when building with shared libraries.
2008-12-22 21:03:09 +01:00
Jelmer Vernooij
50b0c5325e
Never build tevent modules as shared objects.
2008-12-22 17:56:28 +01:00
Jelmer Vernooij
29dd98be09
Remove unused Samba4-specific init functions for libtevent.
2008-12-22 17:43:46 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
eeb25cf548
Fix more introduced regressions in new bindings.
2008-12-21 04:36:16 +01:00
Jelmer Vernooij
2e7a6cb6bf
py: Fix initialisation of subtypes, fix segfaults.
2008-12-21 03:08:14 +01:00
Jelmer Vernooij
c1a9b68623
Create and use convenience function for creating new talloc-wrapping Python Objects, support subtypes of DCE/RPC interfaces properly
2008-12-21 00:37:31 +01:00
Jelmer Vernooij
5688f9b13e
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-20 21:21:19 +01:00
Jelmer Vernooij
ec80992ef5
Fix tevent python module build as part of samba 4.
2008-12-20 21:19:48 +01:00
Jelmer Vernooij
28f80dbb7c
Stop using SWIG for ldb Python bindings.
2008-12-20 19:54:13 +01:00
Jelmer Vernooij
1f4bd4b82c
Fix standalone compilation of events library.
2008-12-20 19:23:30 +01:00
Jelmer Vernooij
383e7c4d16
Add missing files for standalone build.
2008-12-20 18:06:31 +01:00
Jelmer Vernooij
a57b1aa0f1
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
2008-12-19 01:22:07 +00:00
Jelmer Vernooij
6fe6983e4c
Make sure to not close tdb database more than once.
2008-12-18 20:42:50 +00:00
Jelmer Vernooij
8c1ede0b32
Remove swig use from tdb standalone build.
2008-12-18 19:49:53 +00:00
Jelmer Vernooij
2da551bbcc
Implement missing functions in pytdb.
2008-12-18 19:41:02 +00:00
Jelmer Vernooij
2a61fd41e9
Add simple manually written replacement for the tdb module.
2008-12-18 18:57:21 +00:00
Stefan Metzmacher
b97f17ddf1
lib/util: make it possible to use debug.h with using xfile.h
...
metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
46eda79090
s4:lib/tevent: add lib/events/ compat and let things compile
...
metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
504f8816e3
s4:lib/events: move to toplevel directory as lib/tevent/
...
This commit will not compile on its own.
metze
2008-12-17 13:31:28 +01:00
Tim Prouty
e48a5cd5d4
s3/s4: Fix "shadows a global declaration" warning
2008-12-16 08:34:53 -08:00
Holger Hetterich
42366bcbbd
Added a simple tdb integrity check to tdbtool. The command "check" runs traverse on the currently open tdb, and returns the number of entries if the integrity check is successful.
2008-12-16 13:58:48 +01:00
Andrew Tridgell
936d76802f
imported the tdb_repack() code from CTDB
...
The tdb_repack() function repacks a TDB so that it has a single
freelist entry. The file doesn't shrink, but it does remove all
freelist fragmentation. This code originated in the CTDB vacuuming
code, but will now be used in ldb to cope with fragmentation from
re-indexing
2008-12-16 14:38:17 +11:00
Andrew Tridgell
2e4247782b
make tdbbackup use transactions
...
tdbbackup was originally written before we had transactions, and it
attempted to use its own fsync() calls to make it safe. Now that we
have transactions we can do it in a much safer (and faster!) fashion
2008-12-16 14:36:56 +11:00
Tim Prouty
1eb743ab8e
s3: Change sockaddr util function names for consistency
...
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Andreas Schneider
b39611c36b
Fix circular dependency error with autoconf 2.6.3.
...
Signed-off-by: Andreas Schneider <anschneider@suse.de>
2008-11-26 16:44:50 +01:00
Tim Prouty
363fe11536
s3/s4 build: Fix "might be unitialized" warning
2008-11-20 18:04:42 -08:00
Tim Prouty
2b85288e82
s3 build: Fix incomplete types warnings
2008-11-20 13:11:59 -08:00
Tim Prouty
1115b7b342
s3/s4 build: Fix execinfo and sasl build error when the libs/headers are in non-standard locations.
...
These configure checks have the correct flags at configure time, so
let's pass them through so they are used at compile time.
2008-11-18 17:43:51 -08:00
Jelmer Vernooij
1c07c30d31
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-11-18 01:36:02 +01:00
Jelmer Vernooij
ab55ecb881
Explicitly include samba4 includes.h to fix the build.
2008-11-18 01:35:10 +01:00
Andrew Bartlett
3d0a3c1078
Add helpful function for comparison of DATA_BLOB elements
2008-11-17 10:12:13 +11:00
Stefan Metzmacher
64b6d2d3e3
lib/util: hex_encode_talloc(): fix error path and set talloc name
...
metze
2008-11-16 16:24:33 +01:00
Stefan Metzmacher
45cf68ce8f
s4:torture: fix the build with auto dependencies
...
metze
2008-11-16 16:21:25 +01:00
Jelmer Vernooij
0e553a06ce
Remove unused init function in subunit code.
2008-11-16 01:36:17 +01:00
Jelmer Vernooij
8beecd42f2
Move torture directory to top-level.
2008-11-16 00:58:08 +01:00
Jelmer Vernooij
badfac4412
Move libtorture to top-level.
2008-11-16 00:55:35 +01:00
Jelmer Vernooij
b327c0a2da
Samba3: Remove more configure tests already done by libreplace.
2008-11-02 17:39:41 +01:00
Jelmer Vernooij
29177203e5
Rename class to "cls" since the first is a keyword name in C++. Thanks,
...
Brad.
2008-11-02 04:50:32 +01:00
Jelmer Vernooij
57a60f0920
Move lp_*() calls a bit higher up the calls tack.
2008-11-01 22:13:47 +01:00
Jelmer Vernooij
fa7bb8ac53
Remove convert_string_talloc_descriptor, add iconv_talloc().
2008-11-01 20:56:27 +01:00