ira/third_party.git
14 years agoauto-repack in transactions that expand the tdb
Andrew Tridgell [Mon, 1 Jun 2009 03:11:39 +0000 (13:11 +1000)]
auto-repack in transactions that expand the tdb

The idea behind this is to recover from badly fragmented free
lists. Choosing the point where the file expands is fairly arbitrary,
but seems to work well.

14 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Mon, 1 Jun 2009 00:39:30 +0000 (10:39 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

14 years agoFix a C++ warning
Volker Lendecke [Sun, 31 May 2009 09:06:23 +0000 (11:06 +0200)]
Fix a C++ warning

14 years agonss_wrapper: try to fix the build of nss_wrapper on solaris.
Günther Deschner [Sat, 30 May 2009 20:43:17 +0000 (22:43 +0200)]
nss_wrapper: try to fix the build of nss_wrapper on solaris.

Guenther

14 years agoHandle EINTR in async_sock.c
Volker Lendecke [Sat, 30 May 2009 07:49:17 +0000 (09:49 +0200)]
Handle EINTR in async_sock.c

14 years agolibwbclient: Add async call framework.
Kai Blin [Thu, 16 Apr 2009 12:53:36 +0000 (14:53 +0200)]
libwbclient: Add async call framework.

14 years agonss_wrapper: add test_nwrap_membership to testsuite.
Günther Deschner [Fri, 29 May 2009 07:21:11 +0000 (09:21 +0200)]
nss_wrapper: add test_nwrap_membership to testsuite.

Guenther

14 years agonss_wrapper: restructure parts of the testsuite.
Günther Deschner [Fri, 29 May 2009 20:37:07 +0000 (22:37 +0200)]
nss_wrapper: restructure parts of the testsuite.

Guenther

14 years agonss_wrapper: add support for getgrouplist.
Günther Deschner [Fri, 29 May 2009 07:19:16 +0000 (09:19 +0200)]
nss_wrapper: add support for getgrouplist.

Guenther

14 years agoutil: Change license on tevent_unix to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 16:28:36 +0000 (18:28 +0200)]
util: Change license on tevent_unix to LGPLv3+

14 years agoasync_sock: Change license to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 12:14:50 +0000 (14:14 +0200)]
async_sock: Change license to LGPLv3+

14 years agos4-smbtorture: add a very basic NSS-WRAPPER testsuite.
Günther Deschner [Thu, 28 May 2009 14:13:33 +0000 (16:13 +0200)]
s4-smbtorture: add a very basic NSS-WRAPPER testsuite.

Guenther

14 years agoutil: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Günther Deschner [Thu, 28 May 2009 14:08:04 +0000 (16:08 +0200)]
util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.

Guenther

14 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Thu, 28 May 2009 12:12:00 +0000 (22:12 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

14 years agonss_wrapper: fix nss_wrapper build for solaris.
Günther Deschner [Thu, 28 May 2009 09:51:46 +0000 (11:51 +0200)]
nss_wrapper: fix nss_wrapper build for solaris.

Guenther

14 years agonss_wrapper: remove re-structuring leftovers (unused variables).
Günther Deschner [Thu, 28 May 2009 08:53:53 +0000 (10:53 +0200)]
nss_wrapper: remove re-structuring leftovers (unused variables).

Guenther

14 years agonss_wrapper: support member add and delete for groups in nss_wrapper.pl.
Günther Deschner [Thu, 28 May 2009 08:39:37 +0000 (10:39 +0200)]
nss_wrapper: support member add and delete for groups in nss_wrapper.pl.

Guenther

14 years agonss_wrapper: split out passwd and group paths in nss_wrapper.pl.
Günther Deschner [Wed, 27 May 2009 20:35:14 +0000 (22:35 +0200)]
nss_wrapper: split out passwd and group paths in nss_wrapper.pl.

Guenther

14 years agonss_wrapper: restructure nwrap calls.
Günther Deschner [Wed, 27 May 2009 16:38:10 +0000 (18:38 +0200)]
nss_wrapper: restructure nwrap calls.

Guenther

14 years agofixed tdbbackup to give tdb error messages
Andrew Tridgell [Thu, 28 May 2009 07:35:12 +0000 (17:35 +1000)]
fixed tdbbackup to give tdb error messages

14 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Thu, 28 May 2009 06:12:34 +0000 (16:12 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

14 years agomake TDB_NOSYNC affect all the fsync/msync calls in transactions
Andrew Tridgell [Thu, 28 May 2009 06:08:28 +0000 (16:08 +1000)]
make TDB_NOSYNC affect all the fsync/msync calls in transactions

During a transaction commit tdb normally uses fsync/msync calls to
make it crash safe. This can be disabled using the TDB_NOSYNC flag,
but it wasn't disabling all the code paths that caused a fsync/msync.

14 years agotdb: Fix some recently introduced warnings in tdbtool
Tim Prouty [Wed, 27 May 2009 19:52:37 +0000 (12:52 -0700)]
tdb: Fix some recently introduced warnings in tdbtool

14 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Tue, 26 May 2009 04:18:16 +0000 (14:18 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

14 years agoAdd support for sendmsg() in socket_wrapper
Andrew Bartlett [Tue, 26 May 2009 01:43:37 +0000 (11:43 +1000)]
Add support for sendmsg() in socket_wrapper

This is required because the deferred connect code skips the connect()
until sending the packet, but unless we catch this call, the connect()
never happens.

Andrew Bartlett

14 years agoadded some more speed tests to tdbtool
Andrew Tridgell [Mon, 25 May 2009 23:24:37 +0000 (09:24 +1000)]
added some more speed tests to tdbtool

This adds 3 simple speed tests to tdbtool, for transaction store,
store and fetch.

On my laptop this shows transactions costing about 10ms

14 years agoChange async_connect to use connect instead of getsockopt to get the error
Volker Lendecke [Sun, 24 May 2009 11:14:12 +0000 (13:14 +0200)]
Change async_connect to use connect instead of getsockopt to get the error

On my Linux box, this is definitely the more reliable strategy with unix domain
sockets, and according to my tests it also works correctly with TCP sockets.

14 years agoAdd "err_on_readability" to writev_send
Volker Lendecke [Sat, 23 May 2009 14:10:54 +0000 (16:10 +0200)]
Add "err_on_readability" to writev_send

A socket where the other side has closed only becomes readable. To catch
errors early when sitting in a pure writev, we need to also test for
readability.

14 years agoAllow NULL queue to writev_send
Volker Lendecke [Sun, 10 May 2009 08:49:18 +0000 (10:49 +0200)]
Allow NULL queue to writev_send

14 years agotsocket: allow empty vectors at the end for tstream_writev()/readv()
Stefan Metzmacher [Fri, 22 May 2009 10:28:17 +0000 (12:28 +0200)]
tsocket: allow empty vectors at the end for tstream_writev()/readv()

metze

15 years agoDetect tight loop in tdb_find()
Jim McDonough [Thu, 21 May 2009 20:26:26 +0000 (16:26 -0400)]
Detect tight loop in tdb_find()

15 years agonsswrapper: implement group_del() in nss_wrapper.pl.
Günther Deschner [Wed, 20 May 2009 00:10:12 +0000 (02:10 +0200)]
nsswrapper: implement group_del() in nss_wrapper.pl.

Guenther

15 years agonsswrapper: implement group_add() in nss_wrapper.pl.
Günther Deschner [Wed, 20 May 2009 00:06:22 +0000 (02:06 +0200)]
nsswrapper: implement group_add() in nss_wrapper.pl.

Guenther

15 years agoSet errno=ENOMEM if tevent_add_fd fails
Volker Lendecke [Tue, 19 May 2009 21:48:41 +0000 (23:48 +0200)]
Set errno=ENOMEM if tevent_add_fd fails

tevent_add_fd does not properly set that. At least in epoll and select this is
the only error condition.

Metze, please check!

15 years agoSimplify the logic of tsocket_bsd_pending
Volker Lendecke [Tue, 19 May 2009 21:31:55 +0000 (23:31 +0200)]
Simplify the logic of tsocket_bsd_pending

Remove two indentation levels by returning early on error.

Metze, please check!

15 years agotevent/python: Makefile was still trying to build some non AC_SUBST python targets
Jelmer Vernooij [Tue, 19 May 2009 21:31:34 +0000 (23:31 +0200)]
tevent/python: Makefile was still trying to build some non AC_SUBST python targets

Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
15 years agotevent: Define TALLOC_FREE() if it's not defined yet, to allow building
Jelmer Vernooij [Sat, 16 May 2009 18:31:59 +0000 (20:31 +0200)]
tevent: Define TALLOC_FREE() if it's not defined yet, to allow building
with released versions of talloc.

15 years agotevent: Remove python module.
Jelmer Vernooij [Sat, 16 May 2009 12:56:37 +0000 (14:56 +0200)]
tevent: Remove python module.

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.

15 years agotevent: Install tevent_internal.h in the standalone build.
Jelmer Vernooij [Sat, 16 May 2009 02:14:21 +0000 (04:14 +0200)]
tevent: Install tevent_internal.h in the standalone build.

This is not ideal, but at least it fixes the build of samba-gtk for now.
I've also added a warning about API guarantees at the top of the header.

15 years agoFix linker flags on non-Linux GNU platforms.
Samuel Thibault [Sat, 16 May 2009 02:05:53 +0000 (04:05 +0200)]
Fix linker flags on non-Linux GNU platforms.

(e.g. Debian GNU/kFreeBSD)

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
15 years agoUpdate copies of config.guess and config.sub.
Jelmer Vernooij [Sat, 16 May 2009 02:03:12 +0000 (04:03 +0200)]
Update copies of config.guess and config.sub.

15 years agotevent: Don't install headers, since we don't install a shared lib
Jelmer Vernooij [Fri, 15 May 2009 23:54:10 +0000 (01:54 +0200)]
tevent: Don't install headers, since we don't install a shared lib
either (from Samba).

15 years agoAdd extensive tests for str_list function behaviour
Andrew Bartlett [Thu, 14 May 2009 15:47:39 +0000 (01:47 +1000)]
Add extensive tests for str_list function behaviour

15 years agoRemove two unused variables
Volker Lendecke [Thu, 14 May 2009 13:39:52 +0000 (15:39 +0200)]
Remove two unused variables

15 years agoAdd new functions and tests: str_list_make_empty(), str_list_make_single()
Andrew Bartlett [Wed, 13 May 2009 06:49:34 +0000 (16:49 +1000)]
Add new functions and tests: str_list_make_empty(), str_list_make_single()

15 years agoTake advantage of the easier-to-use thread macros
Derrell Lipman [Wed, 13 May 2009 18:33:21 +0000 (14:33 -0400)]
Take advantage of the easier-to-use thread macros

- Now that we initialize for the non-thread-safe case in the macro, there's no
  need to do it here too.

Derrell

15 years agoMake the thread functions a bit easier to use
Derrell Lipman [Wed, 13 May 2009 18:31:40 +0000 (14:31 -0400)]
Make the thread functions a bit easier to use

- Create separate macros for lock and unlock so that it's easier to identify
  which request is being made.

- Initialize *ponce in the SMB_THREAD_ONCE macro in the non-thread-safe case,
  rather than requiring each init function to determine if it's in the
  non-thread-safe case and manually initialize.

Derrell

15 years agoAllow a parameter to smb_thread_once's initialization function
Derrell Lipman [Wed, 13 May 2009 13:49:59 +0000 (09:49 -0400)]
Allow a parameter to smb_thread_once's initialization function

- This should make life easier for ourselves. We're no longer constrained to
  the semantics of pthread_once, so let's allow passing a parameter to the
  initialization function. Some of Samba's init functions return a
  value. Although I haven't searched, I suspect that some of the init
  functions require in input parameters. The parameter added here can be used
  for input, output, or both, as necessary... or ignored, as is now done in
  talloc_stackframe_init().

Derrell

15 years agoFix broken smb_thread_once function (again)
Derrell Lipman [Wed, 13 May 2009 01:32:33 +0000 (21:32 -0400)]
Fix broken smb_thread_once function (again)

- It would help if smb_thread_once did, eventually, set the variable that
  prevents the init function from being run again. Sigh. It must be getting
  late.

Derrell

15 years agoFix broken smb_thread_once function
Derrell Lipman [Wed, 13 May 2009 01:22:23 +0000 (21:22 -0400)]
Fix broken smb_thread_once function

- We can't set *ponce=true before running the function because although other
  threads wouldn't re-run the initialization function, they could potentially
  proceed beyond the initialization point while the first thread was still
  running the initialization function. If a second thread gets to an
  SMB_THREAD_ONCE() call while one with the same ponce is running, we need to
  ensure that it enters smb_thread_once() to await the mutex and then recheck
  whether *ponce is set or not.  My original comment about other "once"
  functions possibly being called from within this "once" function is
  irrelevant since those other ones would have their own unique ponce.

Derrell

15 years agoFix definition of smb_thread_once - must return int not void as
Jeremy Allison [Tue, 12 May 2009 05:33:32 +0000 (22:33 -0700)]
Fix definition of smb_thread_once - must return int not void as
it's used in a ? : comparison macro.
Jeremy.

15 years agoEnsure documentation matches the tdb_util function usage.
Jeremy Allison [Tue, 12 May 2009 00:29:16 +0000 (17:29 -0700)]
Ensure documentation matches the tdb_util function usage.
Jeremy.

15 years agoUse bool instead of int for a boolean variable
Derrell Lipman [Mon, 11 May 2009 03:04:00 +0000 (23:04 -0400)]
Use bool instead of int for a boolean variable

15 years agoOptimize smb_thread_once usage by not calling it if known already called
Derrell Lipman [Mon, 11 May 2009 02:58:12 +0000 (22:58 -0400)]
Optimize smb_thread_once usage by not calling it if known already called

- The macro SMB_THREAD_ONCE now tests whether the "once" variable is already
  set, and if so avoids calling smb_thread_once().

Derrell

15 years agoPanic upon mutex lock or unlock failure
Derrell Lipman [Mon, 11 May 2009 02:40:20 +0000 (22:40 -0400)]
Panic upon mutex lock or unlock failure

- It's a serious error if we can't lock or unlock a mutex in
  smb_thread_once(). Panic instead of just displaying a DEBUG message.

Derrell

15 years agoDon't require external use of internal enum smb_thread_lock_type
Derrell Lipman [Mon, 11 May 2009 02:27:54 +0000 (22:27 -0400)]
Don't require external use of internal enum smb_thread_lock_type

- Internally, when locking or unlocking a mutex, we'll pass one of the
  values of enum smb_thread_lock_type. That enum is not available to users
  providing a thread implementation. Externally, we'll document the integer
  values which will be passed to their lock_mutex function, but not require
  them to access our internal header file.

Derrell

15 years agoReplace external thread "once" with an internal implementation
Derrell Lipman [Mon, 11 May 2009 01:55:23 +0000 (21:55 -0400)]
Replace external thread "once" with an internal implementation

Jeremy, please check...

- I'm in the process of providing an interface in libsmbclient to the
  recently-added threading capabilities. In the process, I discovered that
  different thread implementations have varying types for the variable passed
  to the thread_impl_once() function. pthreads, for example, uses type
  pthread_once_t. Since Samba needs to internally declare these variables, it
  would need to know the exact type required by each thread implementation's
  function. After considering multiple methods of obtaining an appropriately
  sized variable, I decided that for the basic "once" functionality required
  by Samba, it would be much simpler to just implement our own "once"
  functionality. We don't require cancellation points et all. This commit adds
  an smb_thread_once() function that is implemented using an internal
  mutex. The mutex itself uses the implementation's create_mutex
  function. This eliminates the need for the user to provide a smb_thread_once
  function pointer and the entire issue of that function's first parameter.

Derrell

15 years agotevent: fix typo async_req_done() => tevent_req_done()
Stefan Metzmacher [Fri, 1 May 2009 15:45:39 +0000 (17:45 +0200)]
tevent: fix typo async_req_done() => tevent_req_done()

metze

15 years agoAvoid --nonet when building manpages; xsltproc will already prefer local
Jelmer Vernooij [Wed, 6 May 2009 15:48:01 +0000 (17:48 +0200)]
Avoid --nonet when building manpages; xsltproc will already prefer local
stylesheets if they are installed.

15 years agoUpdate tdb and talloc web pages
Simo Sorce [Tue, 5 May 2009 23:04:17 +0000 (19:04 -0400)]
Update tdb and talloc web pages

15 years agoAdd release scripts for talloc and tdb
Simo Sorce [Tue, 5 May 2009 13:50:19 +0000 (09:50 -0400)]
Add release scripts for talloc and tdb

15 years agoClean up after Tridge's util_strlist changes
Volker Lendecke [Sun, 3 May 2009 11:08:46 +0000 (13:08 +0200)]
Clean up after Tridge's util_strlist changes

15 years agoAttempt to the build on NetBSD5 and a few others
Volker Lendecke [Fri, 1 May 2009 21:25:31 +0000 (23:25 +0200)]
Attempt to the build on NetBSD5 and a few others

15 years agotsocket: add tstream_readv_pdu_queue_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 16:49:24 +0000 (18:49 +0200)]
tsocket: add tstream_readv_pdu_queue_send/recv()

metze

15 years agotsocket: add tstream_writev_queue_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 16:18:51 +0000 (18:18 +0200)]
tsocket: add tstream_writev_queue_send/recv()

metze

15 years agotsocket: add tstream_readv_pdu_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 15:17:15 +0000 (17:17 +0200)]
tsocket: add tstream_readv_pdu_send/recv()

metze

15 years agotsocket: add tstream implementation for bsd sockets (inet and unix)
Stefan Metzmacher [Fri, 3 Apr 2009 10:15:27 +0000 (12:15 +0200)]
tsocket: add tstream implementation for bsd sockets (inet and unix)

metze

15 years agotsocket: add tstream_context infrastructure similar to tdgram_context
Stefan Metzmacher [Fri, 3 Apr 2009 16:08:10 +0000 (18:08 +0200)]
tsocket: add tstream_context infrastructure similar to tdgram_context

metze

15 years agotsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()
Stefan Metzmacher [Thu, 30 Apr 2009 11:10:54 +0000 (13:10 +0200)]
tsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()

metze

15 years agotsocket: move tsocket_simple_int_recv() to tsocket.c
Stefan Metzmacher [Fri, 3 Apr 2009 15:54:08 +0000 (17:54 +0200)]
tsocket: move tsocket_simple_int_recv() to tsocket.c

metze

15 years agotsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.c
Stefan Metzmacher [Fri, 3 Apr 2009 15:52:15 +0000 (17:52 +0200)]
tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.c

metze

15 years agotsocket: tdgram move input checks to the common code as there're needed for all backends
Stefan Metzmacher [Tue, 14 Apr 2009 08:44:25 +0000 (10:44 +0200)]
tsocket: tdgram move input checks to the common code as there're needed for all backends

We need to make sure that we free the sendto and recvfrom requests before
the tdgram_context

metze

15 years agotsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)
Stefan Metzmacher [Mon, 6 Apr 2009 12:29:24 +0000 (14:29 +0200)]
tsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)

sizeof(struct sockaddr_storage) generates EINVAL.

metze

15 years agotsocket: return EINVAL when tdgram_sendto_send() is used with len == 0
Stefan Metzmacher [Fri, 10 Apr 2009 18:35:12 +0000 (20:35 +0200)]
tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0

metze

15 years agotsocket: fix dependecies
Stefan Metzmacher [Mon, 6 Apr 2009 12:27:24 +0000 (14:27 +0200)]
tsocket: fix dependecies

metze

15 years agotsocket: remove tsocket_context related stuff
Stefan Metzmacher [Fri, 3 Apr 2009 15:29:12 +0000 (17:29 +0200)]
tsocket: remove tsocket_context related stuff

It will be replaced by tdgram_context and tstream_context.

metze

15 years agoFix a missing prototype warning
Volker Lendecke [Tue, 28 Apr 2009 13:33:21 +0000 (15:33 +0200)]
Fix a missing prototype warning

15 years agopm_process():raise level of debug message
Michael Adam [Tue, 28 Apr 2009 10:18:23 +0000 (12:18 +0200)]
pm_process():raise level of debug message

Michael

15 years agoFix push_codepoint function without iconv_convenience.
Jelmer Vernooij [Thu, 23 Apr 2009 15:46:54 +0000 (17:46 +0200)]
Fix push_codepoint function without iconv_convenience.

15 years agoAdd a new non-convenience version of push_codepoint.
Jelmer Vernooij [Thu, 23 Apr 2009 13:24:38 +0000 (15:24 +0200)]
Add a new non-convenience version of push_codepoint.

15 years agoPrevent reallocs of the talloc pool itself
Simo Sorce [Tue, 21 Apr 2009 07:08:37 +0000 (03:08 -0400)]
Prevent reallocs of the talloc pool itself

15 years agoAvoid using deprecated form of AC_CHECK_TYPE.
Brad Hards [Wed, 22 Apr 2009 08:32:53 +0000 (10:32 +0200)]
Avoid using deprecated form of AC_CHECK_TYPE.

libreplace makes use of an older form of AC_CHECK_TYPE which basically
provides a fallback definition for the type if it isn't available.
http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros
shows why this isn't a good idea (its not so important, except for pointer types).
This patch partly addresses the issue.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
15 years agoError out at runtime when seteuid/setresuid or setegid/setresgid are not
Jelmer Vernooij [Mon, 20 Apr 2009 13:54:02 +0000 (15:54 +0200)]
Error out at runtime when seteuid/setresuid or setegid/setresgid are not
available. This means it's possible to compile libreplace when these
functions are not available and use it, as long as this particular
function is not used.

15 years agoOnly define waitpid replacement if wait4 is available. (It isn't on
Jelmer Vernooij [Mon, 20 Apr 2009 13:47:19 +0000 (15:47 +0200)]
Only define waitpid replacement if wait4 is available. (It isn't on
Windows.)

15 years agoCope with the fact that only _mkdir() exists on Windows and that it
Jelmer Vernooij [Mon, 20 Apr 2009 13:39:48 +0000 (15:39 +0200)]
Cope with the fact that only _mkdir() exists on Windows and that it
doesn't take a mode argument.

15 years agoMove check for syslog out of libreplace to source3/ and source4/.
Jelmer Vernooij [Mon, 20 Apr 2009 13:21:39 +0000 (15:21 +0200)]
Move check for syslog out of libreplace to source3/ and source4/.

This should help compiling talloc on Windows.

15 years agoEnsure we have all the definitions needed in both threaded and non-threaded versions.
Jeremy Allison [Mon, 20 Apr 2009 11:25:26 +0000 (04:25 -0700)]
Ensure we have all the definitions needed in both threaded and non-threaded versions.
Jeremy.

15 years agoAttempt to fix build farm on platforms where pthread_once_t is a struct.
Jeremy Allison [Mon, 20 Apr 2009 11:00:06 +0000 (04:00 -0700)]
Attempt to fix build farm on platforms where pthread_once_t is a struct.
Jeremy.

15 years agoFix the pthread_once initialization issue. Make talloc_stackframe use
Jeremy Allison [Mon, 20 Apr 2009 10:04:42 +0000 (03:04 -0700)]
Fix the pthread_once initialization issue. Make talloc_stackframe use
this.
Jeremy.

15 years agotsocket: fix the build without ipv6 support
Stefan Metzmacher [Thu, 16 Apr 2009 05:51:01 +0000 (07:51 +0200)]
tsocket: fix the build without ipv6 support

metze

15 years agoFix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
Jeremy Allison [Wed, 15 Apr 2009 22:40:00 +0000 (15:40 -0700)]
Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
What a difference a name makes... :-). Just because something is missnamed
SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN,
don't automatically use it for a security check in _samr_OpenDomain().
Jeremy.

15 years agoEnsure a tls key is only generated once - wrap create & destroy in a mutex.
Jeremy Allison [Tue, 14 Apr 2009 22:19:39 +0000 (15:19 -0700)]
Ensure a tls key is only generated once - wrap create & destroy in a mutex.
Change the function names to add _once to the tls_create & tls_destroy to
make this obvious.
Jeremy.

15 years agoMake talloc_stack threadsafe using TLS. Volker please
Jeremy Allison [Tue, 14 Apr 2009 19:23:22 +0000 (12:23 -0700)]
Make talloc_stack threadsafe using TLS. Volker please
check. Passes make test and basic valgrind testing.
Jeremy.

15 years agosocket_wrapper: fix the build on systems without ipv6 support
Stefan Metzmacher [Tue, 14 Apr 2009 10:45:48 +0000 (12:45 +0200)]
socket_wrapper: fix the build on systems without ipv6 support

metze

15 years agosocket_wrapper: fix crash bug in swrap_readv/writev
Stefan Metzmacher [Wed, 8 Apr 2009 17:08:34 +0000 (19:08 +0200)]
socket_wrapper: fix crash bug in swrap_readv/writev

metze

15 years agoMerge branch 'wspp-schema'
Andrew Tridgell [Thu, 9 Apr 2009 04:40:19 +0000 (14:40 +1000)]
Merge branch 'wspp-schema'

15 years agoadded _const versions of some of the str_list_*() functions
Andrew Tridgell [Thu, 9 Apr 2009 04:28:38 +0000 (14:28 +1000)]
added _const versions of some of the str_list_*() functions

These const versions don't copy the strings themselves, which
is useful when those strings point at known constant data (into the
schema in this case)

15 years agoadded str_list_unique() and str_list_show()
Andrew Tridgell [Thu, 9 Apr 2009 03:44:27 +0000 (13:44 +1000)]
added str_list_unique() and str_list_show()

I also undid some of the const changes from Andrew, as
they didn't in fact resolve the const warnings.

15 years agoAdd the thread functions to top level lib/util.
Jeremy Allison [Wed, 8 Apr 2009 22:46:49 +0000 (15:46 -0700)]
Add the thread functions to top level lib/util.
Not yet used, that's the next step.
Jeremy.

15 years agoRemove async_req
Volker Lendecke [Wed, 8 Apr 2009 21:03:59 +0000 (23:03 +0200)]
Remove async_req