summaryrefslogtreecommitdiffstats
path: root/src/util/db2
Commit message (Collapse)AuthorAgeFilesLines
* Move the db2 library to the site of its one use, the kdb-db2 module.Ken Raeburn2005-10-04116-50894/+0
| | | | | | Update configuration scripts, pathname make variables, etc., accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17407 dc483132-0cff-0310-8789-dd5450dbe970
* Delete .cvsignore files; contents have already been Sam Hartman2005-08-243-8/+0
| | | | | | set on svn:ignore properties. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17353 dc483132-0cff-0310-8789-dd5450dbe970
* All configure.in scripts: Use K5_AC_INIT instead of AC_INITKen Raeburn2005-08-202-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17342 dc483132-0cff-0310-8789-dd5450dbe970
* remove old makefileKen Raeburn2005-06-211-652/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17255 dc483132-0cff-0310-8789-dd5450dbe970
* * run.test (getnwords): Run data through "cat -v", because at least one versionKen Raeburn2004-08-272-1/+11
| | | | | | | of Debian Linux has an English dictionary with Latin-1 characters and a "rev" that seems to default to some sort of Unicode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16690 dc483132-0cff-0310-8789-dd5450dbe970
* * run.test (getnwords): Rewrite to drop blank lines before counting lines, ↵Ken Raeburn2004-08-152-1/+6
| | | | | | not after git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16665 dc483132-0cff-0310-8789-dd5450dbe970
* * run.test (getnwords): New function. Uses sed to get N words from $DICT asKen Raeburn2004-08-122-11/+21
| | | | | | | other functions did before, but discards blank lines. (test1, test2, test12, test13, test20): Call getnwords. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16660 dc483132-0cff-0310-8789-dd5450dbe970
* ignore generated timestamp file autoconf.stmpKen Raeburn2004-06-191-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16498 dc483132-0cff-0310-8789-dd5450dbe970
* * mpool/mpool.c (mpool_get, mpool_write): Check that the offset calculationKen Raeburn2004-06-192-0/+17
| | | | | | didn't overflow. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16495 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (include/generated.stmp): New intermediate target file, toKen Raeburn2004-06-123-5/+18
| | | | | | | | | | prevent repeated generation of unchanging header files. (include/config.h, include/db-config.h): Depend on it. ($(srcdir)/include/autoconf.stmp, $(srcdir)/include/config.h.in): Likewise. (clean-includes): Delete the new intermediate target files. * configure.in: Generate include/generated.stmp when config.status is run. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16438 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(srcdir)/include/config.h.in): Always use --include, never tryKen Raeburn2004-06-082-1/+6
| | | | | | --localdir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16421 dc483132-0cff-0310-8789-dd5450dbe970
* Change all uses of LIB in UNIX makefiles to LIBBASE, for better WindowsKen Raeburn2004-06-042-1/+5
| | | | | | | | | compatibility. (Windows nmake exports make variables into the environment, and LIB is treated by the Windows linker as a search path for libraries, thus breaking the linking on Windows of anything needing libraries from the search path in directories where we build libraries on UNIX.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16411 dc483132-0cff-0310-8789-dd5450dbe970
* Use compile-time tests using system headers to determine byte order on AIX.Ken Raeburn2004-05-234-1/+13
| | | | | | | | | | | (cf ticket 2551, already pulled up and marked resolved) * configure.in: Check for sys/param.h too. * include/db-int.h: Include sys/param.h if available. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16351 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for machine/endian.h too.Ken Raeburn2004-05-074-2/+32
| | | | | | | | | | * include/db-int.h: Include machine/endian.h if available. Check for __LITTLE_ENDIAN__ and __BIG_ENDIAN__, _MIPSEB and _MIPSEL. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16322 dc483132-0cff-0310-8789-dd5450dbe970
* Since the AES code builds, and doesn't do any configure-time byte order checksKen Raeburn2004-05-065-1/+77
| | | | | | | | | | | | | | | | | | | | | | | | that I noticed, something similar ought to work for the DB code. This is the first cut; nightly testing builds should tell us if it's sufficient on most of the platforms we work on. * include/db-int.h: Include stdlib.h, and endian.h if available. (LITTLE_ENDIAN, BIG_ENDIAN, BYTE_ORDER): If not defined, and if versions with one or two leading underscores are defined, define the no-underscore form in terms of the with-underscore one. (DB_BYTE_ORDER): Define by checking LITTLE_ENDIAN, BIG_ENDIAN, and BYTE_ORDER; report an error if that doesn't work. Don't check WORDS_BIGENDIAN. * Makefile.in (all-prerecurse): Make sure headers generated by config.status are up to date. (include/config.h, $(srcdir)/include/config.h.in, include/db-config.h): New rules. * configure.in: Don't check byte order here. Check for endian.h. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16317 dc483132-0cff-0310-8789-dd5450dbe970
* Add files containing the export lists used on UNIX, in each directoryKen Raeburn2004-04-222-0/+103
| | | | | | | | | | | | | | where we build a shared library, whether or not it gets installed. These should match the complete AIX export lists for a full build including krb4 support, and will eventually be used on other UNIX platforms, and cut down to just the symbols we actually want to export. We'll also have to add additional information, eventually, for versioning and such, but currently this is just a list of C symbol names. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16259 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_seq.c: Include string.hKen Raeburn2004-04-032-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16228 dc483132-0cff-0310-8789-dd5450dbe970
* ignore some more generated filesKen Raeburn2004-02-241-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16119 dc483132-0cff-0310-8789-dd5450dbe970
* don't install in-tree libdbTom Yu2003-04-022-1/+5
| | | | | | | | | | | | | Don't install the in-tree libdb. This requires that libkdb, etc. explicitly pull in the object files of the in-tree libdb if not using the system libdb. ticket: new status: open target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15320 dc483132-0cff-0310-8789-dd5450dbe970
* Search for ar, ranlib, install in KRB5_BUILD_LIBRARY* macros rather thanKen Raeburn2003-01-102-1/+2
| | | | | | explicitly in directories using those macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15111 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-109-9/+18
| | | | | | | | to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
* Only system headers should declare errnoSam Hartman2003-01-055-4/+17
| | | | | | | | | | | | | Many parts of krb5 declare errno in source files using extern int errno. This has not been needed in ANSI C for a long time, and actively breaks modern versions of glibc. So these declarations are removed and errno.h included where necessary. Ticket: new Component: krb5-build git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15082 dc483132-0cff-0310-8789-dd5450dbe970
* blahSam Hartman2003-01-011-0/+645
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15077 dc483132-0cff-0310-8789-dd5450dbe970
* use stdint.h and inttypes.h if availableKen Raeburn2002-09-054-1/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14833 dc483132-0cff-0310-8789-dd5450dbe970
* * acconfig.h: Remove file. All handled by configure.in nowEzra Peisach2002-09-032-15/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14813 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-2910-8/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore a bunch of files generated by building in the source tree, excludingKen Raeburn2002-08-292-0/+4
| | | | | | | those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the moment, may need updates for other configurations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14783 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_split.c (bt_psplit): Correctly account forTom Yu2002-08-282-2/+9
| | | | | | | sizeof(indx_t) when computing space used in a page by an item. [patch from www.sleepycat.com] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14780 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile: DeletedKen Raeburn2002-08-242-23/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14763 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-2310-8/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* * dbtest.c: Include btree.h if we're compiled with -DSTATISTICSTom Yu2002-08-233-1/+21
| | | | | | * Makefile.in: Add rules for bttest; also add a clean rule. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14754 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Disable append(); we don't have R_APPEND in this releaseTom Yu2002-08-232-8/+88
| | | | | | | | | | | | | | of DB for some reason. Disable load() due to lack of fgetline(). Conditionalize lots of things on -DSTATISTICS or -DDEBUG as appropriate. (rlist): New function; does recursive listing of principals. (main): Fix up naming of *_ENDIAN macros. Default to read-only open, with new "-w" option for opening read/write. Actually call db->sync with the correct number of arguments. (show): Update call to __bt_dpage(). (usage): Update. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14753 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBMINOR): Bump due to addition of bt_rseq()Tom Yu2002-08-238-12/+474
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hash/hash_debug.c: Remove inclusion of compat.h, as we don't have it in our build system. * btree/extern.h: Add missing prototypes/renames for __bt_dmpage(). Add renames for bt_rseq() support functions. * btree/bt_seq.c (bt_rseq): New function; like __bt_seq() but does recursive descent rather than using the prev/next pointers. This will catch some pages that might be missed if the database is inconsistent. Added support functions for bt_rseq() as well. * btree/bt_page.c (__bt_free): Set B_METADIRTY when updating free list. (__bt_new): Set B_METADIRTY when updating free list. [patch from www.sleepycat.com] * btree/bt_debug.c (__bt_dump): Bound loop by number of pages actually in file to avoid getting a nigh-infinite number of all-zeroes pages. (__bt_dmpage): Print a newline after dumping the meta page. (__bt_dpage): Add DB* parameter; use this to get pagesize in order to limit dumping of page contents, in case NEXTINDEX(h) happens to be bogus. (__bt_stat): Bound loop by number of pages actually in file so as to stop counting pages after the actual end of file. * btree/bt_close.c (__bt_sync): Apply a Kerbnet fix from long ago; don't return prematurely when B_METADIRTY is set but B_MODIFIED is clear. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14752 dc483132-0cff-0310-8789-dd5450dbe970
* * db.h: Add rename and prototype for bt_rseq(); this is a kludgeTom Yu2002-08-232-0/+7
| | | | | | to avoid stuffing more things into the DB handle. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14751 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SUBDIROBJLISTS): New variableKen Raeburn2002-08-152-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14720 dc483132-0cff-0310-8789-dd5450dbe970
* * dbtest.c: Test for __STDC__ defined, not nonzero, to decide whether to useKen Raeburn2002-05-082-3/+8
| | | | | | | stdarg.h or varargs.h. (err): Similarly for function signature. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14436 dc483132-0cff-0310-8789-dd5450dbe970
* * run.test: Use "/bin/." instead of "/bin" in find commands in case /bin itselfKen Raeburn2002-02-203-12/+31
| | | | | | | | | | | is a symlink. (test8): Check exit status of dbtest program. * dbtest.c (compare): Exit with error indication if comparison of contents indicates a difference. (get): Exit with error indication after printing message if key not found. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14154 dc483132-0cff-0310-8789-dd5450dbe970
* Check test results more carefully.Ken Raeburn2002-01-045-6/+28
| | | | | | Fix big-endian-64-bit bug in btree implementation (for sparcv9). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14086 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add optional argument to AC_DEFINE to provideEzra Peisach2001-10-243-11/+16
| | | | | | | | comment in generated header file. * acconfig.h: Remove int32_t and u_int32_t, handled by configure.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13843 dc483132-0cff-0310-8789-dd5450dbe970
* * db-config.h.in: Remove unnecessary definitions for includingEzra Peisach2001-10-242-12/+6
| | | | | | | db.h header file. These include WORDS_BIGENDIAN, ssize_t, u_short, int8_t, u_int8_t, int16_t, u_int16_t, int32_t. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13842 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash_func.c (hash4): Declare first argument constEzra Peisach2001-07-094-12/+22
| | | | | | | | | * hash/hash.h: struct HTAB fname element now const. * hash/hash.c: Declare third argument to hash_access and init_hash const. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13590 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/dbm.c: Include db-dbm.h for prototypesEzra Peisach2001-07-062-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13573 dc483132-0cff-0310-8789-dd5450dbe970
* * db-dbm.h: New header file which lists the dbm interfacesEzra Peisach2001-07-063-1/+31
| | | | | | | * db-ndbm.h: Change prototype from dirinfo to dirfno which matches code and ndbm API. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13572 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash_log2.c: Include hash.h, page.h and extern.h forEzra Peisach2001-07-052-0/+7
| | | | | | prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13555 dc483132-0cff-0310-8789-dd5450dbe970
* * test/dbtest.c: Cast argument to isspace() to int. Do not shadowEzra Peisach2001-06-215-51/+59
| | | | | | | | | global variables type and flags. * btree/bt_search.c, btree/bt_seq.c, recno/rec_search.c: Change local variable index to idx. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13467 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_delete.c, btree/bt_put.c, recno/rec_delete.c,Ezra Peisach2001-06-216-68/+76
| | | | | | | | | recno/rec_put.c: Change local variable index to idx. * hash/hash_page.c: Change local variable stat to status to prevent shadowing system function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13437 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in (AC_COMPILE_TYPE): Declare with AC_DEFUN() insteadEzra Peisach2000-11-012-1/+7
| | | | | | | of define() as newer versions of autoconf check for AC_REQUIRE use outside of AC_DEFUN. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12830 dc483132-0cff-0310-8789-dd5450dbe970
* Add AC_PROG_INSTALL to allow the library to be installedEzra Peisach2000-08-112-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12620 dc483132-0cff-0310-8789-dd5450dbe970
* * test/dbtest.c: Cleanup gcc -Wall complaints with printf formatEzra Peisach2000-07-042-12/+20
| | | | | | strings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12532 dc483132-0cff-0310-8789-dd5450dbe970
* * recno/rec_seq.c: Include unused sccsid when LIBC_SCCS definedEzra Peisach2000-07-039-11/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | * recno/rec_close.c (__rec_close): Explicit braces to avoid ambiguous `else' * btree/bt_split.c (bt_psplit): Parenthesis about && and || conditional. * btree/bt_put.c (__bt_put): Extra {} to make nested if/else unambiguous. * btree/bt_open.c (__bt_open): Add parenthesis to ensure precedence ordering. * hash/dbm.c (kdb2_dbm_firstkey): Conditionalize defintion of variables based on use. * hash/hash_func.c: Ifdef out unused static hash functions. * hash/hash.c (init_htab): Remove unused variable. gcc -Wall warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12515 dc483132-0cff-0310-8789-dd5450dbe970