1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/lib
Andrew Tridgell 0868b7c77d r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change
just involves splitting up the core tdb.c code into separate files on
logical boundaries, but there are some minor functional changes as well:

 - move the 'struct tdb_context' into tdb_private.h, hiding it from
   users. This was done to allow the structure to change without
   breaking code that uses tdb.

 - added accessor functions tdb_fd(), tdb_name(), and tdb_log_fn() to
   access the elements of struct tdb_context that were used by
   external code but are no longer visible

 - simplied tdb_append() to use tdb_fetch()/tdb_store(), which is just
   as good due to the way tdb locks work

 - changed some of the types (such as tdb_off to tdb_off_t) to make
   syntax highlighting work better

 - removed the old optional spinlock code. It was a bad idea.

 - fixed a bug in tdb_reopen_all() that caused tdbtorture to sometimes
   fail or report nasty looking errors. This is the only real bug
   fixed in this commit. Jeremy/Jerry, you might like to pickup this
   change for Samba3, as that could definately affect smbd in
   Samba3.

The aim of all of these changes is to make the tdb
transactions/journaling code I am working on easier to write. I
started to write it on top of the existing tdb.c code and it got very
messy. Splitting up the code makes it much easier to follow.

There are more cleanups we could do in tdb, such as using uint32_t
instead of u32 (suggested by metze). I'll leave those for another day.
(This used to be commit 4673cdd0d2)
2007-10-10 13:38:12 -05:00
..
appweb r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking 2007-10-10 13:35:01 -05:00
charset r9078: - move charset stuff to lib/charset 2007-10-10 13:31:14 -05:00
cmdline r10245: Get rid of XFILE in a few places. 2007-10-10 13:38:11 -05:00
com r8567: fixed the build after the com idl changes 2007-10-10 13:29:39 -05:00
compression r6129: - add our own MSZIP decompression implementation 2007-10-10 13:11:20 -05:00
crypto r9421: Move arcfour code into it's own file, in lib/crypto. 2007-10-10 13:33:37 -05:00
events r9703: r9683@blu: tridge | 2005-08-27 18:56:05 +1000 2007-10-10 13:34:51 -05:00
ldb r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change 2007-10-10 13:38:12 -05:00
messaging r8923: put the IRPC default timeout back to 10s (I didn't mean to commit this, it was 2007-10-10 13:30:58 -05:00
netif r9063: - don't pollute the global $LIBS variable with -ldl 2007-10-10 13:31:13 -05:00
popt r10161: Check for alloca.h to prevent incorrect local declaration. 2007-10-10 13:38:04 -05:00
registry r10207: Add some const 2007-10-10 13:38:08 -05:00
replace r9949: Portability fixes for mingw32 2007-10-10 13:36:24 -05:00
samba3 r9919: Remove debug statement from samba3sam 2007-10-10 13:36:22 -05:00
socket r10200: added a composite_trigger_done() call that allows a composite function 2007-10-10 13:38:08 -05:00
socket_wrapper r8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves us 2 more chars 2007-10-10 13:29:54 -05:00
talloc r8985: Automatically generate make dependency rules for 2007-10-10 13:31:04 -05:00
tdb r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change 2007-10-10 13:38:12 -05:00
tdr r10030: Add hierarchical memory allocation to TDR's pull functions 2007-10-10 13:36:31 -05:00
tls r8482: gnutls_x509_crt_set_subject_key_id is not available in some versions 2007-10-10 13:23:08 -05:00
basic.mk r10246: Remove unused function 2007-10-10 13:38:11 -05:00
capability.c r3471: split out capabilities code from lib/system.c - should fix IRIX 6.5 build 2007-10-10 13:05:18 -05:00
credentials.c r10245: Get rid of XFILE in a few places. 2007-10-10 13:38:11 -05:00
data_blob.c r6980: added data_blob_append(), which I use in the web server 2007-10-10 13:17:01 -05:00
db_wrap.c r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change 2007-10-10 13:38:12 -05:00
debug.c r7525: Unify lp_load(), load_interfaces and logging setup into popt(). 2007-10-10 13:18:06 -05:00
dprintf.c r7265: fixed d_printf() so it works again. 2007-10-10 13:17:33 -05:00
fault.c r8685: an alpha in the build farm is dying with a floating point 2007-10-10 13:29:54 -05:00
fsusage.c r3447: more include/system/XXX.h include files 2007-10-10 13:05:12 -05:00
gencache.c r9357: Remove DBGC_CLASS cruft copied over from Samba 3. I would like to 2007-10-10 13:33:27 -05:00
gendb.c r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names 2007-10-10 13:33:32 -05:00
genrand.c r8394: Make sure the argument to ctype is*(3) macros are unsigned char as 2007-10-10 13:20:14 -05:00
idtree.c r6687: added a idr helper function for creating random IDs 2007-10-10 13:16:34 -05:00
ms_fnmatch.c r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking 2007-10-10 13:35:01 -05:00
mutex.c r5306: removed all the unused mutex functions from mutex.c. When (if?) we 2007-10-10 13:09:40 -05:00
pidfile.c r5308: trimmed back a lot of the old macros from smb_macros.h 2007-10-10 13:09:40 -05:00
select.c r9591: - Remove empty file 2007-10-10 13:34:33 -05:00
signal.c r3450: portability fixes 2007-10-10 13:05:13 -05:00
substitute.c r9591: - Remove empty file 2007-10-10 13:34:33 -05:00
system.c r5298: - got rid of pstring.h from includes.h. This at least makes it a bit 2007-10-10 13:09:38 -05:00
time.c r8886: Exchange the arguments of timeval_compare, this makes it behave like strcmp. 2007-10-10 13:30:15 -05:00
unix_privs.c r9591: - Remove empty file 2007-10-10 13:34:33 -05:00
util_file.c r10246: Remove unused function 2007-10-10 13:38:11 -05:00
util_getent.c r4055: fixed more places to use type safe allocation macros 2007-10-10 13:06:20 -05:00
util_pw.c r4058: added a type safe version of smb_xmalloc() 2007-10-10 13:06:20 -05:00
util_sock.c r5298: - got rid of pstring.h from includes.h. This at least makes it a bit 2007-10-10 13:09:38 -05:00
util_str.c r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking 2007-10-10 13:35:01 -05:00
util_strlist.c r9798: Add generic functions for handling smb.conf files (the parameters don't to be pre-declared). Also doesn't use any globals, so multiple files can be loaded at once. 2007-10-10 13:35:02 -05:00
util_unistr.c r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the 2007-10-10 13:09:15 -05:00
util.c r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000 2007-10-10 13:35:01 -05:00
version.c r5871: Remove file with unused function (that uses fstring) 2007-10-10 13:11:06 -05:00
xfile.c r4055: fixed more places to use type safe allocation macros 2007-10-10 13:06:20 -05:00