summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: remove some unused_result warnings.Günther Deschner2010-09-091-2/+7
| | | | Guenther
* lib/util: add time_mono() for monotonic time a la time()Björn Jacke2010-09-072-0/+26
|
* dnspython: Update to latest upstream.Jelmer Vernooij2010-09-0430-104/+225
|
* subunit: Import latest upstream.Jelmer Vernooij2010-09-0413-118/+300
|
* testtools: Import latest upstream.Jelmer Vernooij2010-09-0428-207/+2334
|
* util: added samba_start_debugger()Andrew Tridgell2010-09-042-0/+18
| | | | | This developer function is useful for debugging unusual error conditions
* pidl-python: cope with NULL pointers in more placesAndrew Tridgell2010-09-022-0/+24
| | | | NULL is converted to Py_None
* pytalloc: treat a NULL ptr as Py_NoneAndrew Tridgell2010-09-021-1/+7
|
* tdb/waf: the deps for rt are provided by libreplaceBjörn Jacke2010-08-311-1/+1
|
* replace/waf: add rt to deps at this placeBjörn Jacke2010-08-311-1/+1
|
* lib/util: add nsec_time_diff to calulate diffs from timespecsBjörn Jacke2010-08-312-0/+14
|
* lib/util: add function to query the monotonic clock with the required ↵Björn Jacke2010-08-312-0/+15
| | | | fallback to the realtime clock
* libreplace: make a define for a best effort monotonic clockBjörn Jacke2010-08-311-0/+7
|
* libreplace: add clock_gettime replacement function for systems that don't ↵Björn Jacke2010-08-314-0/+32
| | | | have it
* libreplace/waf: look for clock_gettimeBjörn Jacke2010-08-311-0/+1
|
* libreplace: move detection of clock_gettime to libreplaceBjörn Jacke2010-08-311-0/+43
|
* libreplace: move gettimeofday TZ arg check hereBjörn Jacke2010-08-312-9/+10
|
* lib/util: remove implicit discard_const_p() from SAFE_FREE()Stefan Metzmacher2010-08-281-1/+1
| | | | | | | | This should fix a lot of warnings on IRIX. If callers know what they're doing they can use discard_const_p() on their own. metze
* Revert "lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen"Stefan Metzmacher2010-08-283-39/+39
| | | | | | | | This reverts commit 3d4fb698660381e650d7caeb5b7cff12847c0fb8. This was wrong... The problem was in the caller, sa_len is a macro on irix metze
* lib/tsocket: sa_socklen is a macro on irix, so better use sasocklenStefan Metzmacher2010-08-273-39/+39
| | | | metze
* pytalloc: fixed py_talloc_steal()Andrew Tridgell2010-08-252-1/+9
| | | | | | | | | | | py_talloc_steal() was implemented as a macro which evaluated it's 2nd argument twice. It was often called via a macro with a 2nd argument that was a function call, for example an allocation in py_talloc_new(). This meant it allocated memory twice, and leaked one of them. This re-implements py_talloc_steal() as a function, so that it only does the allocation once.
* s4-pytalloc: use better names for python talloc objectsAndrew Tridgell2010-08-251-0/+2
|
* replace: Fix ifndefs for formatting defines.Jelmer Vernooij2010-08-231-3/+3
| | | | Thanks to Michael Brown for pointing this out.
* libreplace: fixed the strptime() waf testAndrew Tridgell2010-08-231-8/+2
| | | | Thanks to Jelmer for pointing this out
* Use DocBook DTD rather than Samba one, as no Samba-specific things areJelmer Vernooij2010-08-223-3/+3
| | | | used in the tdb manpages.
* smbtorture: Emit correct test results if setup fails.James Peach2010-08-171-15/+31
| | | | | | If the test setup fails, we still need to format the test result for the UI. At leas in the subunit case, the format doesn't specify what to do here, so we fail every test manually with the setup failure message.
* s3: Fix a ton of type-punned warningsVolker Lendecke2010-08-171-4/+4
|
* s3: Fix a typoVolker Lendecke2010-08-151-1/+1
|
* talloc:documentation - explain that "talloc_free" works also with "NULL" ↵Matthias Dieter Wallnöfer2010-08-142-14/+26
| | | | | | | | | | | | | | | | | | | pointers (talloc.c) ... > static inline int _talloc_free_internal(void *ptr, const char *location) > { > struct talloc_chunk *tc; > > if (unlikely(ptr == NULL)) { > return -1; > } > > tc = talloc_chunk_from_ptr(ptr); ... Obviously this never had been documented before.
* tdb: workaround starvation problem in locking entire database.Rusty Russell2010-08-144-19/+131
| | | | | | | | | | | | | | | | | | | | | | | We saw tdb_lockall() take 71 seconds under heavy load; this is because Linux (at least) doesn't prevent new small locks being obtained while we're waiting for a big log. The workaround is to do divide and conquer using non-blocking chainlocks: if we get down to a single chain we block. Using a simple test program where children did "hold lock for 100ms, sleep for 1 second" the time to do tdb_lockall() dropped signifiantly. There are ln(hashsize) locks taken in the contended case, but that's slow anyway. More analysis is given in my blog at http://rusty.ozlabs.org/?p=120 This may also help transactions, though in that case it's the initial read lock which uses this gradual locking routine; the update-to-write-lock code is separate and still tries to update in one go. Even though ABI doesn't change, minor version bumped so behavior change can be easily detected. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: add TDB_DEPS variable filled with required librariesBjörn Jacke2010-08-134-8/+21
| | | | | This is required for Solaris, which needs to link in librt to make use of fdatasync().
* Fix tdb_check() to work with read-only tdb databases. The function ↵Jeremy Allison2010-07-291-3/+3
| | | | | | tdb_lockall() uses F_WRLCK internally, which doesn't work on a fd opened with O_RDONLY. Use tdb_lockall_read() instead. Jeremy.
* lib: added samba-util.pc creationAndrew Tridgell2010-07-262-1/+13
| | | | Thanks to Brad Hards for this patch
* s4 nss_switch: fix build problem on computer without the iniparserMatthieu Patou2010-07-171-1/+1
| | | | | Although the build was ok on my workstation it appears that on build server it was not because the include path was not correct.
* s4-waf: add the missing bits for builing nss_winbind and pam_winbindMatthieu Patou2010-07-171-0/+7
| | | | This is something that was not picked up during the migration to waf
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-163-12/+12
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* tsocket: Fix some unreachable codeVolker Lendecke2010-07-111-2/+1
|
* tdb: fix the build on mac os x 10.6.4.Günther Deschner2010-07-011-0/+4
| | | | Guenther
* nss_wrapper: Fixed a possible NULL pointer problem.Andreas Schneider2010-06-281-1/+1
|
* Move UCS2 macros to common codeJelmer Vernooij2010-06-251-0/+23
|
* s4-ldb: use CHECK_XSLTPROC_MANPAGES()Andrew Tridgell2010-06-241-2/+1
|
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-241-1/+1
| | | | | | | | Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* smbtorture: Move interactive shell into a separate file.James Peach2010-06-212-2/+2
|
* tsocket: Fix some type-punned warningsVolker Lendecke2010-06-211-2/+2
|
* pytdb: Cleanup formatting.Jelmer Vernooij2010-06-191-3/+8
|
* wafsamba: Fix typo: noextenion -> noextension.Jelmer Vernooij2010-06-193-3/+3
|
* replace: Avoid hiding symbols when libreplace is builtin, as thisJelmer Vernooij2010-06-181-1/+5
| | | | appears to cause unresolved symbols at the moment.
* lib/crypto: only include what is needed.Günther Deschner2010-06-1611-10/+15
| | | | Guenther
* librpc: Install the right headers.Jelmer Vernooij2010-06-131-1/+1
|
* Since idtree assigns sequentially, it rarely reaches high numbers.Rusty Russell2010-06-101-3/+5
| | | | | | | | | But such numbers can be forced with idr_get_new_above(), and that reveals two bugs: 1) Crash in sub_remove() caused by pa array being too short. 2) Shift by more than 32 in _idr_find(), which is undefined, causing the "outside the current tree" optimization to misfire and return NULL.