summaryrefslogtreecommitdiff
path: root/lib/util/util_tdb.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-19lib/util_tdb: factor out tdb_data_talloc_copy()Gregor Beck1-0/+15
Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-06-22util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.cRusty Russell1-0/+79
We're about to use them for dbwrap. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-19lib/util_tdb: depend directly on tdb, not tdb_compat.Rusty Russell1-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>
2012-06-19TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell1-4/+0
Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-04-18lib/util: Move map_nt_error_from_tdb to the top levelAndrew Bartlett1-1/+64
This will help with making dbwrap available as a top level library. Andrew Bartlett
2011-12-06lib/util/util_tdb: adhere to coding style for tdb_data_is_empty()Michael Adam1-1/+2
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Dec 6 15:22:08 CET 2011 on sn-devel-104
2011-12-03lib/util: factor out tdb_data_is_emptyGregor Beck1-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
2011-06-20tdb_compat: Higher level API fixes.Rusty Russell1-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>
2011-06-20tdb_store: check returns for 0, not -1.Rusty Russell1-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>
2011-06-20tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell1-3/+3
This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell1-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>
2011-02-28tdb: Use <tdb.h> to include tdb so system headers are found when building ↵Jelmer Vernooij1-1/+1
against system tdb.
2010-02-22Spelling fixes for libutilBrad Hards1-2/+2
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-12s3: Add tdb_data_equalVolker Lendecke1-0/+8
2009-10-11Fix builds with external tdbSimo Sorce1-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.
2009-05-11Ensure documentation matches the tdb_util function usage.Jeremy Allison1-2/+2
Jeremy.
2008-10-12Use common util_file code.Jelmer Vernooij1-2/+2
2008-10-12Sync util_tdb implementations.Jelmer Vernooij1-233/+27
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+546
Conflicts: source4/Makefile