summaryrefslogtreecommitdiff
path: root/dbm
Commit message (Collapse)AuthorAgeFilesLines
* Commit #4,124 (okay, it just seems like that) for adding buffered flags tojerenkrantz2007-02-282-2/+1
| | | | | | | sdbm...now featuring a +1 from OtherBill. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@513046 13f79535-47bb-0310-9956-ffa450edef68
* Justin dons a paper bag. Good grief.jerenkrantz2007-02-281-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@512867 13f79535-47bb-0310-9956-ffa450edef68
* * dbm/sdbm/sdbm.c: Remove unused macros.jorton2007-02-281-4/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@512856 13f79535-47bb-0310-9956-ffa450edef68
* * dbm/sdbm/dbm.c: Constify mask array.jorton2007-02-281-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@512853 13f79535-47bb-0310-9956-ffa450edef68
* Only enable APR buffering if we aren't intending to write to the sdbm.jerenkrantz2007-02-281-1/+2
| | | | | | | Suggested by: Joe git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@512842 13f79535-47bb-0310-9956-ffa450edef68
* Use buffered I/O with SDBM.jerenkrantz2007-02-281-1/+1
| | | | | | | | Submitted by: Joe Schaefer Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@512557 13f79535-47bb-0310-9956-ffa450edef68
* Update license headers.jerenkrantz2007-01-1512-72/+72
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@496440 13f79535-47bb-0310-9956-ffa450edef68
* Fix precedence problem in sdbm dbm back end.rooneg2006-10-091-2/+2
| | | | | | | | | | | | | Submitted by: Larry Cipriani <lvc lucent.com> PR: 40659 * dbm/sdbm/sdbm.c (getnext): Actually check error from apr_file_seek. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@454383 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.jerenkrantz2005-02-0412-12/+24
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@151413 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-182-8/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@76270 13f79535-47bb-0310-9956-ffa450edef68
* * dbm/sdbm/sdbm_private.h, dbm/sdbm/sdbm_pair.h: Move global butjorton2004-03-032-8/+12
| | | | | | | private symbols into the apu__ namespace. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58997 13f79535-47bb-0310-9956-ffa450edef68
* * dbm/apr_dbm_sdbm.c (vt_sdbm_exists): Fix (size_t *) -> (int *) castsjorton2004-02-161-2/+4
| | | | | | | | | | | | missed in earlier fix for PR 14861. (broken only on bigendian LP64 platforms) * test/testdb.c (doit): Add regression test. * test/Makefile.in: Link test programs using -no-install. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58990 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0.jerenkrantz2004-02-1312-588/+120
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58989 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencygstein2004-02-052-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58980 13f79535-47bb-0310-9956-ffa450edef68
* * configure.instriker2003-08-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add apu_want.h to the output list. * aprutil.dsp * libaprutil.dsp Add new sourcefiles: apu_want.h* * dbm/apr_dbm_berkeleydb.c Include the Berkeley DB header by using the new APU_WANT_DB. * include/apu.h.in * include/apu.hnw * include/apu.hw Remove the inclusion of db.h triggered by a private symbol. * include/apu_want.h.in * include/apu_want.hnw * include/apu_want.hw New files, introducing conditional action based on APU_WANT_xxx. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58916 13f79535-47bb-0310-9956-ffa450edef68
* Fix brokenness in sdbm when sizeof(int) != sizeof(size_t)trawick2003-01-231-6/+6
| | | | | | | | | | | | | | (e.g., 64-bit AIX, 64-bit Solaris). apr_datum_t is (char *, apr_size_t) and apr_sdbm_datum_t is (char *, int), and the CONVERT_DATUM and RETURN_DATUM macros in apr_dbm_sdbm.c assumed that the structures could be copied just by casting instead of copying member-by- member. PR: 14861 git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58837 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notifications to 2003.thommay2003-01-0112-12/+12
| | | | | | | No Functional changes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58816 13f79535-47bb-0310-9956-ffa450edef68
* Remove the DB_AUTO_COMMIT handling for DB4.1. We're creatingbrane2002-10-241-15/+2
| | | | | | | | | | standalone databases files (passing a NULL DB_ENV to db_create), and those don't support transactions. DB_AUTO_COMMIT can only be used if the database is part of an environment that was created with DB_INIT_TXN. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58782 13f79535-47bb-0310-9956-ffa450edef68
* Add further support for DB_AUTO_COMMIT flag which is required in DB4.1+jerenkrantz2002-10-041-13/+25
| | | | | | | | | | when a NULL transaction is passed. Note that we treat DB 4.0 as DB_VER == 3, while higher versions of 4.x are treated as DB_VER == 4 which has these API changes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58773 13f79535-47bb-0310-9956-ffa450edef68
* Fix so that we can use compile against db-4.1.24 which altered the openjerenkrantz2002-09-191-3/+10
| | | | | | | signature. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58757 13f79535-47bb-0310-9956-ffa450edef68
* change apr_dbm_get_usednames_ex() to return an error whentrawick2002-08-231-10/+12
| | | | | | | the specified dbm type is not implemented/invalid git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58740 13f79535-47bb-0310-9956-ffa450edef68
* Bug #9789 NDBM support for apr_dbm.ianh2002-08-213-1/+281
| | | | | | | | | this still needs a bit more testing, but it seems to work ok for me Submitted by: Toomas Soome <tsoome@muhv.pri.ee> git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58739 13f79535-47bb-0310-9956-ffa450edef68
* Rearrange INCLUDES so that APRUTIL_PRIV_INCLUDES is first to preventjerenkrantz2002-05-082-2/+2
| | | | | | | | | | | installed copies specified by either APR_INCLUDES or APRUTIL_INCLUDES directives from potentially overriding our source includes. Submitted by: Garrett Rooney <rooneg@electricjellyfish.net> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58615 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-1311-11/+11
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58571 13f79535-47bb-0310-9956-ffa450edef68
* Switch APRUTIL over to use the APR_FIND_APR macro provided by APR.gstein2002-02-062-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also cleaned up the configuration (ues apr-config, avoid APRVARS, handle includes better, etc). Revamp all the Makefiles to simplify their INCLUDES handling and to toss the unused srcdir variable. * configure.in: use ../apr/build/find_apr.m4; this will eventually need to change to a copied find_apr, but there is more work for that to happen (we also have to get rules.mk from an installed APR, for instance). revamp all the includes stuff: the INCLUDES symbol was unused. define APRUTIL_INCLUDES for the public includes (will go into apu-config) and APRUTIL_PRIV_INCLUDES for our private stuff (only used in our build). don't worry about setting CFLAGS either. LIBS now uses APR_LIBS, but we probably don't want to set LIBS. * apu-conf.m4: remove custom --with-apr processing and use APR_FIND_APR (from find_apr.m4). tweak some of the fetching-of-flags from APR to use apr-config. * test/Makefile.in: don't refer to libapr.la explicitly. use APR_LIBS. * uri/Makefile.in: create uri_delims.h in BUILD/uri/ rather than our private include area. add the .c file as a dep of apr_uri.lo. ensure that the INCLUDES has an "-I." to pick up the delims. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58551 13f79535-47bb-0310-9956-ffa450edef68
* With Berkeley DB1-based systems, we need to return a NULL nextkey whenjerenkrantz2002-02-061-3/+6
| | | | | | | | we see RET_SPECIAL. (This mimics the earlier change to DB2+, but was not added to this DB1 code.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58549 13f79535-47bb-0310-9956-ffa450edef68
* compatibility issue:ianh2002-01-251-0/+2
| | | | | | | | sdbm returns a NULL key on getnextkey at EOF. berkeleyDB didn't git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58540 13f79535-47bb-0310-9956-ffa450edef68
* make the berkeleyDB db.h include private.ianh2002-01-191-0/+1
| | | | | | | (only include it in the code which requires it) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58530 13f79535-47bb-0310-9956-ffa450edef68
* APRUTIL_INCLUDES now available.ianh2002-01-182-2/+2
| | | | | | | todo: get httpd to link to it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58525 13f79535-47bb-0310-9956-ffa450edef68
* Fix for db1 where DB_NOTFOUND is not defined.striker2002-01-181-1/+7
| | | | | | | | Submitted by: Greg Stein Reviewed by: Roy T. Fielding git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58524 13f79535-47bb-0310-9956-ffa450edef68
* vt_db_fetch() should zero out *pvalue if the value isn't found, notstriker2002-01-161-126/+101
| | | | | | | | | | return an error. While in there clean up the macros, they are not needed anymore. Submitted by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58520 13f79535-47bb-0310-9956-ffa450edef68
* Fix up VPATH support so that it will survive config.status invocations.jerenkrantz2002-01-042-2/+9
| | | | | | | | | | | - Add srcdir, VPATH, and top_srcdir to all Makefile.in's - Remove configure.in hack to add srcdir and VPATH to all Makefiles - Rely on APR_INCLUDES for APR's path. (Should switch to find_apr.m4 ASAP) - Make all INCLUDES paths relative to top_srcdir/top_builddir rather than relying on ../../../../ (way too confusing to maintain) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58505 13f79535-47bb-0310-9956-ffa450edef68
* Add DB4 detection. It is identical to DB3 for all of our current purposes.jerenkrantz2001-12-091-2/+6
| | | | | | | | Also, clean up the autoconf DB macros to be name-space protected and cleaner per Greg's suggestions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58487 13f79535-47bb-0310-9956-ffa450edef68
* Clean up some of the preprocessor conditionals.jerenkrantz2001-12-091-4/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58486 13f79535-47bb-0310-9956-ffa450edef68
* Berkeley DB v2 had a API change in a minor version.ianh2001-12-041-0/+5
| | | | | | | | | | | DB v2 doesn't have strerror PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58480 13f79535-47bb-0310-9956-ffa450edef68
* Allow us to compile with db1 (no db_strerror function there).jerenkrantz2001-11-291-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58470 13f79535-47bb-0310-9956-ffa450edef68
* Gratuitous code style changes. (tabs->spaces, proper format, etc, etc, etc.)jerenkrantz2001-11-294-49/+37
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58467 13f79535-47bb-0310-9956-ffa450edef68
* Fix for strcasecmp on win32ianh2001-11-281-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58462 13f79535-47bb-0310-9956-ffa450edef68
* Multi DBM supportianh2001-11-285-4/+78
| | | | | | | | | 2 new functions apr_dbm_open_ex apr_dbm_get_usednames_ex git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58461 13f79535-47bb-0310-9956-ffa450edef68
* * Copy a lot of code unchanged from apr_dbm.c to apr_dbm_*.c. Changesgstein2001-11-115-258/+385
| | | | | | | | | | | | | | | | | | occurred: - open() and exists() split the #if logic out to the three files - vt_db_fetch() had minor changes related to the 'rd' variable - the various exists() functions were tweaked * the geterror() was eliminated as apr_dbm.c can handle it * Jeff Trawick's comments re: static vs APU_DECLARE_DATA for the vtables. * apu_conf.m4, dbm/Makefile.in: build/link in the appropriate dbm file (until we start buildig/linking all of them) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58448 13f79535-47bb-0310-9956-ffa450edef68
* We are calling abort(), so we should include stdlib.h.jerenkrantz2001-11-083-2/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58446 13f79535-47bb-0310-9956-ffa450edef68
* My Solaris native compiler was not happy with the returnjfclere2001-11-071-1/+1
| | | | | | | (void function cannot return value). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58445 13f79535-47bb-0310-9956-ffa450edef68
* Capture some low-hanging fruit on shifting functionality to thegstein2001-11-074-78/+90
| | | | | | | | | | | | | | | | | | | | | | separate .c files: set_error, close, freedatum, and getusednames. Set the vtable uesd in the DBM_VTABLE cpp symbol and store it within the apr_dbm_t type returned by open(). NEEDS_CLEANUP was removed in this pass, as we shifted and them simplified the #if/#else/#endif branches in freedatum. set_error and getusednames were shifted from #if sequences into three new code sections; no changes within the code blocks. close was a simply copy to the new .c files since they all still use the APR_DBM_CLOSE cover macro. Note: no macro expansions were done yet. Keeping the code shift simple for review purposes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58443 13f79535-47bb-0310-9956-ffa450edef68
* Fix for the NEXTKEY functionality in the Berkeley DB code.gstein2001-11-072-2/+13
| | | | | | | | | | Submitted by: Mladen Turk Fix for gdbm code to handle freedatum properly (I broken it when I previously removed the NEEDS_CLEANUP cpp symbol). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58442 13f79535-47bb-0310-9956-ffa450edef68
* * define a default REGISTER_CLEANUP and have gdbm replace it (the onlygstein2001-11-064-49/+322
| | | | | | | | | | | | | | | | | | | | | | | user of this option). shift datum_cleanup() to apr_dbm_gdbm.c. * define SET_FILE() macro so that we can properly handle the berkeley configuration; it uses a structure rather than a ptr, so we need some extra work to occur (the macro covers the work). [ the above macros are temporary until full breakout ] * shift apr_posix_perms2mode() to the end of apr_dbm.c and always define the thing. * add GET_BDB macro to revamp how we access the berkeley stuff (the APR_DBM_* macros). also tweak the apr_dbm_fetch() function to compensate. * add vtables and functions for each database, and fill them with abort() calls until their code is filled in. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58441 13f79535-47bb-0310-9956-ffa450edef68
* Begin integration of Ian's multiple DBM work. This is different from Ian'sgstein2001-11-064-193/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | work (so far) in that: * first phase only: shifted macros from apr_dbm.c into the other .c files and simply #include'd those files (i.e. not using the vtables yet) NOTE for code review: no changes were made to the macros. This was a pure shift only. apr_dbm_private.h is the only new code (thus, good for review). * no per-dbm .h files; all entry points will be thru vtables. since we need to map names to <something> (to allow for external registration of DBM types), then we may as well map to a complete vtable which includes the open and used_names entry points. * similar to buckets, the predefined types are variables specified in apr_dbm_private.h for use by the dbm registration code. * removed a couple entry points from Ian's apr_dbm_type_t (set error and a cleanup function) Next steps: add infrastructure for using the types; revamp the macro stuff into real function calls; provide for multiple, available dbm types. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58440 13f79535-47bb-0310-9956-ffa450edef68
* add a truncate option to apr_dbm_open APR_DBM_RWTRUNCianh2001-09-271-0/+7
| | | | | | | | | | | which will truncate the existing dbm if it is there PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58425 13f79535-47bb-0310-9956-ffa450edef68
* Get VPATH builds working for APR-util again. We need to include bothrbb2001-09-132-2/+2
| | | | | | | | builddir and srcdir include directories if we are going to get all of the header files we need. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58419 13f79535-47bb-0310-9956-ffa450edef68
* testdbm now works with berkelyDB 3 DBMianh2001-08-291-6/+12
| | | | | | | db3 version also produces meaningfull error strings git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58411 13f79535-47bb-0310-9956-ffa450edef68
* Convert apr-util to use APR's build directory. This greatly simplifiesrbb2001-07-302-0/+6
| | | | | | | apr-util's build system, because it has basically been removed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58339 13f79535-47bb-0310-9956-ffa450edef68