Andrew Tridgell
c56e3ccfc9
lib: don't install public headers if a private library
...
for talloc/tevent/tdb, only install headers if we are doing a
standalone build
2011-03-15 12:22:20 +11:00
Andrew Tridgell
5ca9db07f5
lib: fixed header paths
...
this is a public header, and needs to use sane paths for the public
header creation
2011-03-15 12:22:19 +11:00
Andrew Tridgell
7293c370d3
talloc: use <talloc.h> not "talloc.h"
...
this ensures we use the right header
2011-03-15 12:22:19 +11:00
Andrew Tridgell
7b948a39e1
tdb: use public_headers to install header files
2011-03-15 12:22:19 +11:00
Andrew Tridgell
0a0ebd73fb
tdb: use system include style for system headers
2011-03-15 12:22:19 +11:00
Andrew Tridgell
a18a556237
tevent: use public_headers for tevent.h
2011-03-15 12:22:18 +11:00
Andrew Tridgell
e3e1eada45
talloc: use public_headers to install talloc.h and pytalloc.h
...
this allows them to be included in the test_headers.h generated header
2011-03-15 12:22:18 +11:00
Matthias Dieter Wallnöfer
f5ce61ea57
lib/util/fault.c - "call_backtrace" - no need to have "backtrace_size" as size_t
...
The function "backtrace" returns an "int".
2011-03-10 11:12:05 +01:00
Stefan Metzmacher
494d497b99
tevent: change version to 0.9.11
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 10 10:24:49 CET 2011 on sn-devel-104
2011-03-10 10:24:49 +01:00
Stefan Metzmacher
b7d5ddfa61
tevent/poll: use fde->additional_flags to hold the array index
...
metze
2011-03-10 09:37:02 +01:00
Stefan Metzmacher
20284f2a84
tevent: change tevent_fd->additional_flags to uint64_t
...
metze
2011-03-10 09:37:02 +01:00
Stefan Metzmacher
a29999392a
socket_wrapper: fix handling of addr and addrlen
...
metze
2011-03-09 12:27:25 +01:00
Andreas Schneider
d4867ef838
tevent: Fixed tevent_wakeup_send code example.
2011-03-09 09:28:27 +01:00
Stefan Metzmacher
2c7c3d03d5
lib/socket_wrapper: try to fix the build on solaris
...
struct msg does not contain msg_control, msg_controllen and msg_flags
on solaris.
metze
2011-03-04 21:19:05 +01:00
Andrew Tridgell
3560db3da3
debug: fixed a valgrind error
...
Thanks to Volker for spotting this one!
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Mar 4 03:09:52 CET 2011 on sn-devel-104
2011-03-04 03:09:52 +01:00
Günther Deschner
9167d70e77
libreplace: move "struct timespec" checks into libreplace (where timespec is already used).
...
Bjoern, Metze, please check.
Guenther
2011-03-04 00:28:27 +01:00
Stefan Metzmacher
a5d54579ea
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 3 23:43:39 CET 2011 on sn-devel-104
2011-03-03 23:43:39 +01:00
Stefan Metzmacher
e831376f91
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg()
...
This also adds the same logic for broadcast as in swrap_sendto()
for SOCK_DGRAM.
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
4a736f0fbe
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_send()
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
a2db6b4dba
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto()
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
8c6d7d7b27
socket_wrapper: add swrap_sendmsg_before/after helper functions
...
Currently have almost the same logic in swrap_send(), swrap_sendto(),
swrap_writev() and swrap_sendmsg(), this helper functions
let combine all the logic in 2 places.
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
c9ae810209
socket_wrapper: replace recvmsg() correctly
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
ec028b555b
socket_wrapper: readv() should only work on connected sockets
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
7bdc3db9ea
socket_wrapper: move swrap_ioctl() above the send*/recv* functions
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
0ad8d459c6
socket_wrapper: fix compiler warnings
...
metze
2011-03-03 22:57:25 +01:00
Stefan Metzmacher
e3c0d66110
socket_wrapper: don't allow connect() to the broadcast address
...
This will simplify other code later.
metze
2011-03-03 22:57:25 +01:00
Günther Deschner
875d9b8098
lib/util: LIBCRYPTO is in common already, so add it to samba-util-common.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 3 18:08:30 CET 2011 on sn-devel-104
2011-03-03 18:08:30 +01:00
Andrew Bartlett
5f5ca913b7
lib/util: new merged debug system
...
This is the s3 debug system, with a number of changes to tidy it up
for common use. The debug class system is simplified by the removal of the
ISSET table, the system no longer attempts to cope with assignment of
DEBUGLEVEL, and the full class table is always available (rather than
just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer
confusingly described as a hack, but as the initial table.
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
2011-03-01 04:32:12 +01:00
Andrew Bartlett
4acef317a0
lib/util move debug.[ch] out of the way
...
This will allow a modified version of the s3 debug system to be the
new common debug system.
Andrew Bartlett
2011-03-01 03:46:18 +01:00
Andrew Bartlett
608c8e7872
lib/util/time: Merge time functions from source3/lib/time.c
2011-03-01 02:13:22 +01:00
Jeremy Allison
410f9fad6c
Fix "cast from pointer to integer of different size" warnings on a 64-bit machine.
2011-02-28 21:58:20 +01:00
Jelmer Vernooij
1a6fd61a41
tevent: Add lib/tevent as include directory.
2011-02-28 21:11:21 +01:00
Jelmer Vernooij
31d09b13d3
tdb: Use <tdb.h> to include tdb so system headers are found when building against system tdb.
2011-02-28 21:11:21 +01:00
Jelmer Vernooij
4a42272f09
tdr: Inline proto header to allow tdr.h to be used as it's a public header.
2011-02-28 21:11:21 +01:00
Jelmer Vernooij
21d926f0ef
Use <tevent.h> so the system tevent gets included, if enabled.
2011-02-28 21:11:21 +01:00
Jeremy Allison
6e66208f63
Finish the range checking on all FD_SET calls for select().
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb 28 21:10:08 CET 2011 on sn-devel-104
2011-02-28 21:10:08 +01:00
Volker Lendecke
d163f5d67c
Remove sys_select[_intr]
2011-02-28 16:40:20 +01:00
Volker Lendecke
3254e39220
tevent: Add a poll backend
2011-02-28 16:40:20 +01:00
Volker Lendecke
d825b5e2cb
s3: Eliminate select from libaddns
2011-02-28 16:40:20 +01:00
Volker Lendecke
83becbe369
s3: Add sys_poll_intr
2011-02-28 16:40:19 +01:00
Volker Lendecke
be33e2e0a7
s3: Add sys_poll
2011-02-28 16:40:19 +01:00
Volker Lendecke
0fc1650e09
libreplace: poll based on select
2011-02-28 16:40:19 +01:00
Volker Lendecke
fec0baacb6
s3: Make is_zero_addr take a sockaddr_storage
...
All callers had to cast this anyway
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
2011-02-27 11:02:53 +01:00
Volker Lendecke
b0aba17538
nss_wrapper: Fix a segfault when libnss_winbind.so is not loadable
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 26 13:19:01 CET 2011 on sn-devel-104
2011-02-26 13:19:01 +01:00
Volker Lendecke
22d8d277c6
nss_wrapper: Make nwrap_module_init a bit more readable
2011-02-26 12:00:48 +01:00
Günther Deschner
110f11d136
lib/util/charset: ICONV_WRAPPER needs talloc.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 23 12:46:33 CET 2011 on sn-devel-104
2011-02-23 12:46:33 +01:00
Andrew Tridgell
3c12c4c1a4
build: move idtree.c into samba-util-common
2011-02-23 00:45:21 +01:00
Andrew Tridgell
9174d73173
build: moved more files into samba-util-common
...
this removes UTIL_SRC from the s3 waf build, as it is now all in
common with samba-util-common
2011-02-23 00:45:21 +01:00
Andrew Tridgell
457025eee7
build: created samba-util-common library
...
this library will contain files that can be built in common between s3
and s4. Both samba-util and samba-util3 depend on it.
Currently this library needs to be marked as allow_undefined_symbols,
in order to allow s4 to build it. We can remove that flag once we have
all the needed symbols in common
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-23 00:45:21 +01:00
Stefan Metzmacher
d7fa349052
s3:auth: change num_groups to from size_t to uint32_t
...
This will help with the change from UNIX_USER_TOKEN to security_unix_token
metze
2011-02-22 16:20:11 +11:00