summaryrefslogtreecommitdiffstats
path: root/src/util/db2/hash
Commit message (Collapse)AuthorAgeFilesLines
* Move the db2 library to the site of its one use, the kdb-db2 module.Ken Raeburn2005-10-0416-4470/+0
| | | | | | Update configuration scripts, pathname make variables, etc., accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17407 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-101-0/+1
| | | | | | | | 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
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-291-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-231-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBMINOR): Bump due to addition of bt_rseq()Tom Yu2002-08-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * hash/hash_func.c (hash4): Declare first argument constEzra Peisach2001-07-093-12/+13
| | | | | | | | | * 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-061-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13573 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash_log2.c: Include hash.h, page.h and extern.h forEzra Peisach2001-07-051-0/+3
| | | | | | prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13555 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_delete.c, btree/bt_put.c, recno/rec_delete.c,Ezra Peisach2001-06-211-3/+3
| | | | | | | | | 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
* * recno/rec_seq.c: Include unused sccsid when LIBC_SCCS definedEzra Peisach2000-07-033-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * configure.in: Rework to use krb5 build systemTom Yu2000-06-301-0/+12
| | | | | | | | | | | | | | | | | | * Makefile.in: Rework to use krb5 build system. * btree/Makefile.in: New file. * clib/Makefile.in: New file. * db/Makefile.in: New file. * mpool/Makefile.in: New file. * recno/Makefile.in: New file. * test/Makefile.in: New file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12487 dc483132-0cff-0310-8789-dd5450dbe970
* merge from krb5-1-2-beta4Ken Raeburn2000-06-231-2/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12426 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/extern.h: Additional renamingTom Yu1998-02-134-3/+40
| | | | | | | | | | | * hash/hash_page.c (page_to_oaddr): (is_bitmap_pgno): Declare static to avoid leaking symbols. * hash/search.h: Additional renaming. * hash/hash_log2.c (__log2): Rename explicitly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10444 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash.c (__kdb2_hash_open): Rename to avoid potentialTom Yu1998-02-132-25/+25
| | | | | | | | | | | | collision with NetBSD libc. * hash/dbm.c: Rename lots of functions to avoid colliding with native dbm implementations. * db/db.c (kdb2_dbopen): Rename to avoid colliding with NetBSD libc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10431 dc483132-0cff-0310-8789-dd5450dbe970
* * btree/bt_open.c: Added O_BINARY for __CYGWIN32__.Ezra Peisach1998-01-213-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * clib/mkstemp.c: Added O_BINARY for __CYGWIN32__. * db/db.c: Added O_BINARY for __CYGWIN32__. * hash/dbm.c: Added O_BINARY for __CYGWIN32__. * hash/hash.c: Added O_BINARY for __CYGWIN32__. * hash/hsearch.c: Added O_BINARY for __CYGWIN32__. * include/db-int.h: Added O_BINARY for __CYGWIN32__. * recno/rec_open.c: Added O_BINARY for __CYGWIN32__. * test/dbtest.c: Added O_BINARY for __CYGWIN32__. * test/SEQ_TEST/t.c: Added O_BINARY for __CYGWIN32__. * test/btree.tests/main.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/driver2.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tcreat3.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tdel.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/thash4.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tread2.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tseq.c: Added O_BINARY for __CYGWIN32__. * test/hash1.tests/tverify.c: Added O_BINARY for __CYGWIN32__. * test/hash2.tests/bigtest.c: Added O_BINARY for __CYGWIN32__. * test/hash2.tests/passtest.c: Added O_BINARY for __CYGWIN32__. Changes originally by Jeremy Allison (jra@cygnus.com) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10364 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash_bigkey.c (collect_key, collect_data): Cast mallocEzra Peisach1998-01-151-3/+3
| | | | | | | | | | | | | | | return value to correct types. (raeburn@cygnus.com) * obj/Makefile.in (check): Set srcdir in environment. (raeburn@cygnus.com) * configure.in (AC_COMPILE_TYPE): replacment for AC_CHECK_TYPE that uses AC_TRY_COMPILE instead of AC_EGREP_CPP. For now, only use it for the int32 types (where AC_CHECK_TYPE gets the wrong result on __CYGWIN32__) and plan that AC_CHECK_TYPE itself gets repaired. (Fix by eichin@cygnus.com) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10351 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/dbm.c: Rename the errno member of HTABTom Yu1997-12-213-9/+9
| | | | | | | | | | * hash/hash.h: Rename the errno member of HTAB to local_errno to avoid a collision with a glibc macro. * hash/hash.c: Rename the errno member of HTAB to local_errno to avoid a collision with a glibc macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10342 dc483132-0cff-0310-8789-dd5450dbe970
* * db2: overflow_page fixes, __P redefMark Eichin1996-11-112-2/+9
| | | | | | | * db2 tests: better alternate dictionary support (orignal ChangeLogs included) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9373 dc483132-0cff-0310-8789-dd5450dbe970
* * hash/hash.c, hash/hash_func.c, hash/hash_page.c: Add "static" toTom Yu1996-07-303-12/+12
| | | | | | | some function defn's that need them; they were prototyped as static but not defined as static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8863 dc483132-0cff-0310-8789-dd5450dbe970
* obj/dbm.c: Copy the elements between the struct DBT andEzra Peisach1996-07-231-0/+53
| | | | | | | datum. Otherwise on an Alpha where the size fields are different sizes, casting loses with random stack garbage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8786 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-2215-0/+4347
OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970