summaryrefslogtreecommitdiffstats
path: root/lib/util/util_tdb.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/util_tdb: factor out tdb_data_talloc_copy()Gregor Beck2013-02-191-0/+15
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.cRusty Russell2012-06-221-0/+79
| | | | | | | We're about to use them for dbwrap. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util_tdb: depend directly on tdb, not tdb_compat.Rusty Russell2012-06-191-4/+4
| | | | | | | Simple change, as we get rid of tdb_compat in favour of tdb directly. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell2012-06-191-4/+0
| | | | | | | Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util: Move map_nt_error_from_tdb to the top levelAndrew Bartlett2012-04-181-1/+64
| | | | | | This will help with making dbwrap available as a top level library. Andrew Bartlett
* lib/util/util_tdb: adhere to coding style for tdb_data_is_empty()Michael Adam2011-12-061-1/+2
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Dec 6 15:22:08 CET 2011 on sn-devel-104
* lib/util: factor out tdb_data_is_emptyGregor Beck2011-12-031-0/+4
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Dec 3 05:20:30 CET 2011 on sn-devel-104
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-4/+4
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-201-7/+7
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-201-3/+3
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-201-1/+1
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: Use <tdb.h> to include tdb so system headers are found when building ↵Jelmer Vernooij2011-02-281-1/+1
| | | | against system tdb.
* Spelling fixes for libutilBrad Hards2010-02-221-2/+2
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s3: Add tdb_data_equalVolker Lendecke2010-02-121-0/+8
|
* Fix builds with external tdbSimo Sorce2009-10-111-1/+1
| | | | | | Make sure we do not reference our internal tdb directly. Let configure define what tdb.h file to use so that builds that use an extrenal tdb do not include 2 different versions of the tdb header.
* Ensure documentation matches the tdb_util function usage.Jeremy Allison2009-05-111-2/+2
| | | | Jeremy.
* Use common util_file code.Jelmer Vernooij2008-10-121-2/+2
|
* Sync util_tdb implementations.Jelmer Vernooij2008-10-121-233/+27
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+546
Conflicts: source4/Makefile