summaryrefslogtreecommitdiffstats
path: root/source/tdb
Commit message (Collapse)AuthorAgeFilesLines
* Added John Reilly's enumports/addprinter/delprinter scripting code plus theJeremy Allison2000-07-311-0/+14
| | | | | | | | | | fix for the Win9x printer drivers. Changed command names to add "command" string on the end for some consistancy with the other scripting commands. Added '%P' option to tdbpack/unpack to store long comment string. Made port name be "Samba Printer Port" if no enum port script given. Fixed prs_uint32_pre code to cope with null args. Jeremy.
* support both read and write locks inside the tdbAndrew Tridgell2000-06-151-1/+6
|
* - use read locks when possibleAndrew Tridgell2000-06-151-42/+44
| | | | - don't use as many locks on a store
* use the right MMAP flagAndrew Tridgell2000-06-151-1/+1
|
* Moved tdb functions that access parse structs into parse_prs.cJeremy Allison2000-06-081-30/+0
| | | | | to prevent builkd breaking. Jeremy.
* Fixing get/set of security descriptors.Jeremy Allison2000-06-071-8/+4
| | | | | | Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy.
* added some debug code to track down pack/unpack problemsAndrew Tridgell2000-06-041-0/+12
|
* getting and setting security descriptors on printers now worksAndrew Tridgell2000-05-271-10/+42
| | | | this needed some fixes in tdb_unpack(). Tim, you'll need to update
* added tdb_pack() and tdb_unpack()Andrew Tridgell2000-05-241-0/+148
|
* While we're all making incompatible tdb changes, I changed the implementationTim Potter2000-05-121-4/+4
| | | | | | | | | of tdb_{store,get}_int() to store the length of the string key + 1 so the stored key contains the trailing NULL character. This allows normal string library routines to manipulate keys. Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs consistent.
* use gcc not insure by default in tdb buildAndrew Tridgell2000-05-121-1/+1
|
* an imcompatible tdb format change (sorry!)Andrew Tridgell2000-05-122-11/+3
| | | | | this will give us a much nicer migration path for the proposed semaphore code
* when creating the database zero the reserved spaceAndrew Tridgell2000-05-101-0/+8
|
* - add some reserved space to every tdb, this will beAndrew Tridgell2000-05-101-2/+3
| | | | | used for semaphores and future expansion - update tdb version number to 2
* Use a prime for default tdb hash size - this makes a difference !Herb Lewis2000-05-101-1/+1
| | | | Jeremy.
* Added tdb_store_by_string() and tdb_fetch_by_string() functions to storeTim Potter2000-05-091-0/+27
| | | | data with null terminated string keys.
* fixed typoAndrew Tridgell2000-05-011-1/+1
|
* added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.Andrew Tridgell2000-05-015-45/+76
| | | | TDB_INTERNAL replaces the old method of passing a null filename
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-301-20/+15
| | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much
* put tdb utility functions in a separate fileAndrew Tridgell2000-04-292-44/+67
|
* Added tdb_get/set_int_byblob, which takes a size_t len and then implementedJeremy Allison2000-04-281-7/+19
| | | | | | the tdb_get/set_int string functions in terms of them. Will be useful in storing POSIX pending close records (which are ints but indexed by dev/inode pairs). Jeremy.
* added TDB_MODIFY flag - patch from from lukeAndrew Tridgell2000-04-253-5/+30
|
* dump in a binary formatAndrew Tridgell2000-04-241-3/+45
|
* use an size_t not a ssize_t when checking for out of bounds errorsAndrew Tridgell2000-04-241-1/+1
|
* locking/locking.c: Fixed placeholder code for POSIX locking.Jeremy Allison2000-04-181-0/+2
| | | | | | | | printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy
* added tdb_get_int() and tdb_store_int()Andrew Tridgell2000-04-161-0/+34
| | | | they are very useful for database versioning
* Added standard shell command thing using '!' as first character.Tim Potter2000-03-131-41/+49
|
* Check for null tdb context in tdb_exists()Tim Potter2000-03-011-0/+7
|
* Makefile for tdb directory.Tim Potter2000-02-281-0/+21
|
* Oops - put back filename argument to tdb_open().Tim Potter2000-02-281-1/+1
|
* Modifications to tdb_traverse() arguments to remove compile warnings.Tim Potter2000-02-282-3/+10
|
* Allow tdb databases to be created "in memory" without having a fileTim Potter2000-02-281-55/+99
| | | | | associated with them. tdb can then be used as a hash table data structure.
* Added tdbtool to .cvsignore list.Tim Potter2000-02-281-0/+1
|
* Updated docs for tdb_traverse.Tim Potter2000-02-171-2/+3
|
* More checks for passing NULL tdb contexts to tdb functions.Tim Potter2000-02-161-0/+77
|
* tdb_traverse() now takes three arguments.Tim Potter2000-02-161-3/+3
|
* Return "Invalid tdb context" instead of crashing when tdb_error calledTim Potter2000-02-151-2/+6
| | | | with NULL tdb context.
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-044-12/+13
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
* tdb record read error return check fix from Dave Airlie <airlied@samba.org>.Jeremy Allison2000-01-241-1/+1
| | | | Jeremy.
* casts and defines to make solaris happyAndrew Tridgell2000-01-141-0/+4
|
* improved the error checkingAndrew Tridgell2000-01-083-27/+86
|
* don't use strcpyAndrew Tridgell2000-01-071-1/+2
|
* don't require readlineAndrew Tridgell2000-01-071-1/+13
|
* - patch from Rusty to neaten up the code a bitAndrew Tridgell2000-01-072-232/+109
| | | | - fixed a race condition in tdb_open()
* lower the default hash size a bitAndrew Tridgell2000-01-051-1/+1
|
* ignore a few filesAndrew Tridgell2000-01-031-0/+5
|
* drop the alignment to 4 bytes - this makes tdb more space efficientAndrew Tridgell2000-01-031-1/+1
| | | | and doesn't seem to affect performance
* updated docsAndrew Tridgell2000-01-022-3/+7
|
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-025-21/+54
| | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants
* show test result in ops/secAndrew Tridgell2000-01-021-2/+2
|