summaryrefslogtreecommitdiff
path: root/dbm
Commit message (Collapse)AuthorAgeFilesLines
* My closest approximation of what the dbm hack for the Netwarewrowe2008-11-243-0/+844
| | | | | | | | build aught to look like. Could be way off, certainly about the naming conventions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@720099 13f79535-47bb-0310-9956-ffa450edef68
* Win32 build schema for DBM_LIST, at the moment including onlywrowe2008-11-242-0/+430
| | | | | | | | | | berkeley (db) and gdbm. Unsure of the lib binding for gdbm, so substituted libgdbm.lib for that library name. Overlaps the load baseaddr's of dbd_freetds (duplicates dbd_odbc) and dbd_sqlite2 (dbd_sqlite3 is the expected implementation). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@720090 13f79535-47bb-0310-9956-ffa450edef68
* Assorted corrections and bug fixes I had missed, as Unixwrowe2008-11-215-17/+26
| | | | | | | | was picking up an odd path through the dbm source files. Tests now pass (linux x86 for sdbm/gdbm/db4). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@719533 13f79535-47bb-0310-9956-ffa450edef68
* Fix if/ifdef confusion.wrowe2008-11-211-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@719520 13f79535-47bb-0310-9956-ffa450edef68
* Introduce DBM DSO linkage.wrowe2008-11-214-60/+144
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@719504 13f79535-47bb-0310-9956-ffa450edef68
* Now, revert r719466. Must quit using commit -m ""wrowe2008-11-214-143/+60
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@719468 13f79535-47bb-0310-9956-ffa450edef68
* replace missing commentwrowe2008-11-214-60/+143
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@719467 13f79535-47bb-0310-9956-ffa450edef68
* size'edness issues in sdbm, which is limited to int'swrowe2007-10-232-6/+6
| | | | | | (and in one case, manipulates an array of short's) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@587439 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused macro and explicit conversion (cast) from datum to apr_datum_t,davi2007-08-041-36/+46
| | | | | | | they might have different size, alignments, etc. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562730 13f79535-47bb-0310-9956-ffa450edef68
* Remove confuse boilerplate macros, they are not helpful at all. It also fixesdavi2007-08-041-84/+68
| | | | | | | | | | | | | | a gcc warnings (empty body in an else-statement) and explicit conversion from datum to apr_datum_t (they might have different size, alignments, etc.) Diffstat: apr_dbm_gdbm.c | 154 +++++++++++++++++++++++++-------------------------------- 1 file changed, 69 insertions(+), 85 deletions(-) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562728 13f79535-47bb-0310-9956-ffa450edef68
* Simplify SDBM usednames code, we have to copy the string again anyway.davi2007-08-041-10/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562727 13f79535-47bb-0310-9956-ffa450edef68
* The SDBM functions returns APR error codes.davi2007-08-041-9/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562718 13f79535-47bb-0310-9956-ffa450edef68
* Remove confuse boilerplate macros, they are not helpful at all.davi2007-08-041-70/+41
| | | | | | | | | | | Diffstat: apr_dbm_sdbm.c | 111 +++++++++++++++++++++------------------------------------ 1 file changed, 41 insertions(+), 70 deletions(-) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562631 13f79535-47bb-0310-9956-ffa450edef68
* Revert revision 562623, the argument order is right.davi2007-08-041-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562628 13f79535-47bb-0310-9956-ffa450edef68
* The last two arguments to APR_DBM_FETCH were inverted, causing the datum ofdavi2007-08-041-1/+1
| | | | | | | | the key to be used as the return datum and vice-versa. Found while investigating PR 43025. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562623 13f79535-47bb-0310-9956-ffa450edef68
* Use the APR_FLOCK_TYPEMASK mask to extract the lock type (shared or exclusive)davi2007-07-221-2/+3
| | | | | | | | | | while still preserving the other bits. This change allows the APR_FLOCK_NONBLOCK flag to be passed to apr_file_lock(). PR: 28718 git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@558403 13f79535-47bb-0310-9956-ffa450edef68
* 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