summaryrefslogtreecommitdiff
path: root/source4/lib/tdb
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r3091: link only the needed stuffStefan Metzmacher1-2/+2
metze (This used to be commit 71ccac56c21635e7f6eb8d558230f637f50149ad)
2007-10-10r3005: added talloc wrappers around tdb_open() and ldb_connect(), so that theAndrew Tridgell1-3/+3
caller doesn't have to worry about the constraint of only opening a database a single time in a process. These wrappers will ensure that only a single open is done, and will auto-close when the last instance is gone. When you are finished with a database pointer, use talloc_free() to close it. note that this code does not take account of the threads process model, and does not yet take account of symlinks or hard links to tdb files. (This used to be commit 04e1171996612ddb15f84134cadded68f0d173b2)
2007-10-10r2985: got rid of the unused tdb_lockkeys() and tdb_unlockkeys() functionsAndrew Tridgell2-74/+0
they have been broken for 4 years (ever since they were added) and have been never used, which makes them prime candidates for destruction. (This used to be commit 0b53ab85aae4569c04495f07c18a65fd6b47bf4c)
2007-10-10r2981: Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys().Jeremy Allison1-3/+3
Spotted by Taj Khattra <taj.khattra@gmail.com>. Jeremy. (This used to be commit a7d92301bbf45cb9e475e4876fdbb37644ad5871)
2007-10-10r2634: use discard_const_p() in a few placesAndrew Tridgell1-1/+1
(This used to be commit 56ecda2178e33508c55c6195ccec41c06e099d6f)
2007-10-10r2493: allow tdb to build standaloneAndrew Tridgell1-0/+4
(This used to be commit 0d5af5b70bd010e7107b18f73a4b899e05c4f025)
2007-10-10r2238: the tdb_debug() function was totally bogus - remove it (you can'tAndrew Tridgell3-36/+23
convert a ... varargs function to a va_list by just a cast!!) also mark the tdb log function with PRINTF_ATTRIBUTE() and fixed some bad format errors in tdb.c that jim found. (This used to be commit c26c92eb8f538748fcbb2ae5a0a8a02bffbbbf86)
2007-10-10r2154: Merge of Jim's format string fixup in r2130:2131Tim Potter1-1/+1
(This used to be commit 17a53eaac2d0d76413c8bb27a6f1c80536ccf3a7)
2007-10-10r2092: fix the build(don't catch main() by make proto)Stefan Metzmacher2-2/+2
metze (This used to be commit ecdb0b442659e80ca91d5ec5b505224c68a97c5a)
2007-10-10r2088: add tdbtorture tdbdump and tdbtest to the buildStefan Metzmacher5-17/+119
NOTE: tdbbackup and tdbtool seems to be broken... NOTE: I also added SMB_EXT_LIB(GDBM,...) because that is needed by tdbtest metze (This used to be commit e66630662d4203ccecbb20962e83dbf50a2c056f)
2007-10-10r2034: Allow user-selectable hash functions on open only.Jeremy Allison2-16/+21
Jeremy. (This used to be commit b43320ee5c9ac14c330e61ae62e0786b088e04fa)
2007-10-10r1054: Build extra binaries in bin directory like ldb does.Tim Potter1-5/+5
(This used to be commit 6c15d5f31bdb2559656c96ae7f01f99d1ab9cb36)
2007-10-10r1053: Make tdb build standalone:Tim Potter4-17/+18
- #include <stdint.h> - uint_t isn't a valid type, change back to unsigned int (This used to be commit f690325565d2393bba3cb9f6e7cdf3753cbd4423)
2007-10-10r990: fix tdb standalone buildStefan Metzmacher1-2/+2
metze (This used to be commit 4c1c9f59ccea8b6cd7edf3bad8acb9cd8c772670)
2007-10-10r962: convert 'unsigned' and 'unsigned int' to uint_tStefan Metzmacher2-3/+3
metze (This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
2007-10-10r960: convert 'unsigned int' to uint_t in the most placesStefan Metzmacher3-17/+17
metze (This used to be commit 18062d2ed9fc9224c43143c10efbf2f6f1f5bbe0)
2007-10-10r943: change samba4 to use 'uint8_t' instead of 'unsigned char'Stefan Metzmacher3-5/+5
metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
2007-10-10r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher1-4/+4
metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
2007-10-10r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher1-4/+4
metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
2007-10-10r888: more ..int32 -> ..int32_t stuffStefan Metzmacher1-5/+5
metze (This used to be commit f3b1d3bdc74f08ee2a1d22102d57bff94f71f5a5)
2007-10-10r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher1-35/+35
metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2007-10-10r849: move tdb/tools/Makefile to tdb/Makefile.tdbStefan Metzmacher2-29/+29
like in ldb also fix the makefile to let it compile the tools fine metze (This used to be commit e3191b54ea583913a9fd21eeb4e57d82e996c847)
2007-10-10r848: convert lib/tdb into the same layout as lib/ldbStefan Metzmacher15-3/+1307
metze (This used to be commit bacab322ce89979f0ad0811cd15b73d81eceb69d)
2007-10-10r826: removed a pile of old code, in preparation for a new ACL handling ↵Andrew Tridgell1-62/+0
system. I'd like to get rid of DOM_SID completely soon (This used to be commit e306e27cf333e176195a47b19e3de591b4a59650)
2007-10-10r808: fix libtdb build by ifedffing out an smb_panic() and copying over ↵Simo Sorce1-3/+44
CatchSignal fn from lib/signal changing it's name to TdbCatchSignal (This used to be commit e1afaa1e9c8de5615030015b1360529b450d2047)
2007-10-10r728: - let libldb_tdb depend on new subsystem LIBTDBStefan Metzmacher4-59/+68
- remove tdb logging helper functions out of LIBTDB subsystem - build libtdb shared lib with 'make library_libtdb' the libs are not usable for now, tridge: please remove the dependecy of CatchSignal() and smb_panic() from libtdb maybe use function pointers in the TDB_CONTEXT then run make library_libtdb and then make build/tests/trivial.o and then gcc -o trivial -L./bin -ltdb and then gcc -o trivial -L./bin -lldb metze (This used to be commit 520b9762161d9b5d5223b42910494af80fd5c1e3)
2007-10-10r452: move from first-fit to best-fit in tdb record allocation. For aAndrew Tridgell1-48/+97
situation where we are continually increasing the size of a record (such as ldb index records) this reduces the resulting tdb size by a factor of over 100x, due to reductions in fragmentation. It appears to have no noticable effect on the speed in other cases. (This used to be commit b61d7f8bbc0c01d648ce204ffb6ea657e0b04c03)
2004-04-01allow "struct TDB_DATA" as well as just "TDB_DATA"Andrew Tridgell1-1/+1
in general I prefer the struct form for Samba4 structures. I think its clearer. (This used to be commit 63b26557744ce4cbf5c9419f752fbd63ed8bfec6)
2004-03-28merge some recent tdb changed from samba3Andrew Tridgell2-9/+74
(This used to be commit 0e845ecd49841c620f7f9c5ba6c5bfbb0c572032)
2004-03-28switch from SIG_ATOMIC_T to sig_atomic_tAndrew Tridgell3-4/+4
(This used to be commit b881b72cb9cb5a4a8ad27b621e8cbe9dcfa7ba7f)
2004-03-28after discussion with the copyright holders tdb is now under the LGPLAndrew Tridgell3-38/+56
(This used to be commit 51409e2a417fb0673f59e5c823d7fe54b21e6f76)
2004-03-28added a TDB_MODIFY flag to tdb_store() that says "if the recordAndrew Tridgell2-0/+7
doesn't exist then fail the store" (This used to be commit 6aec1457f8772cf81b88a0a00cc2ad7c16cd0d87)
2004-03-28added a private pointer to tdb_traverse() to allow callers to supplyAndrew Tridgell2-4/+4
data to their traverse function (This used to be commit 76bf816485bf869c293791659da5dff2425d2d32)
2004-03-28removed the state parameter to tdb_traverse and the TDB_MODIFY flagAndrew Tridgell2-12/+7
(This used to be commit 6505efc7e9bfcdae3e370d8557328470608b87ca)
2003-12-12 * the RPC-ECHO pipe now works in smbd, as long as the data sizesAndrew Tridgell1-2/+1
don't cause fragmented pdus (I'll add fragments shortly) * change data_blob_talloc() to not zero memory when the 2nd argument is NULL. The zeroing just masks bugs, and can't even allow a DOS attack * modified pidl to ensure that [ref] arguments to the out side of functions are allocated when parsing the in side. This allows rpc backends to assume that [ref] variables are all setup. Doesn't work correctly for [ref] arrays yet * changed DLIST_ADD_END() to take the type instead of a tmp variable. This means you don't need to declare a silly tmp variable in the caller (This used to be commit 46e0a358198eeb9af1907ee2a29025d3ab23b6d1)
2003-12-10 * removed some unused codeAndrew Tridgell4-49/+174
* updated tdb to latest version from Samba3 * removed some extraneous ';' in tdbutil.c (Thanks to Erlend Aasland for pointing this out) (This used to be commit f3eaf270e57d8d2e2157a6a36e260860c7f71c19)
2003-08-15more fixes from the IRIX compiler (thanks herb!)Andrew Tridgell2-3/+3
(This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025)
2003-08-13first public release of samba4 codeAndrew Tridgell8-0/+3550
(This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f)