tdb: delete from CCAN. This was an early experiment in putting code into CCAN, but TDB is a public library distributed as part of the Samba sources; there is no reason to publish it here (especially now the unit tests are also in Samba).
tdb: spelling fixes
tdb: port trivial differences across from SAMBA Whitespace and C++-compatibility mainly.
Import 03b3682e3fa53c9f5fdf2c4beac8b5d030fd2630 from ctdb: tdb: rename 'struct list_struct' into 'struct tdb_record' metze (cherry picked from samba commit 3b62e250c066f44d0ab08a7db037b6b4f74a914b) Signed-off-by: Stefan Metzmacher <metze@samba.org>
tdb: locking cleanup Explicitly split lock and unlock, for future replacement with user-supplied functions. Use explicit flags enum for marking, blocking and probing. Indicate upon unlock whether we had a read or write lock (POSIX doesn't care, but wrappers might, and it's nice to be explicit).
Use _ convention everywhere: lock.c uses it already.
Make TDB 32 bit clean (not just 31 bit) for systems with 64 bit file offsets.
Wean off TDB_ERRCODE. It was a regrettable hack to reduce line count in tdb; in fact it caused confusion as can be seen in this patch. In particular, ecode now needs to be set before TDB_LOG. Also, we should never set errno, as io.c was doing.
Fix early transaction unlock when traverse done inside transaction. Generalizes traverse in traverse fix from rusty@rustcorp.com.au-20090629073630-3eduhyypx2tp6u80
Better tdb tracing, start of decent replay_trace.
Fix traverse nesting unlock bug.
First cut of replay_trace for tdb.
Tracing for tdb operations.
Initial TDB import.