summaryrefslogtreecommitdiff
path: root/lib/libc/db/hash
AgeCommit message (Collapse)Author
2001-08-04Move decision whether to make a new hash table or not to be afterTodd C. Miller
the open(). That way if the user opened with O_EXLOCK and another process has the .db locked we don't decide to zero hash before the locking process has had a chance to write to the database. This also makes the logic simpler since we can just fstat the fd and check for size == 0 && !O_RDONLY. Closes PR 1934.
2001-01-04grammer/spellingTodd T. Fries
2001-01-03Make it an error to open a zero-length file for read-only access.Todd C. Miller
This makes cap_mkdb happier, though cap_mkdb still behaves incorrectly when given multiple files (but that is cap_mkdb's fault).
2000-10-03bt_open.c: parenthesize - and & proper (from freebsd);Michael Shalayeff
hash_bigkey.c: fix NULL dereference exposed on big bsize values; hash_buf.c: fix DEBUG1 cases to make them print, not crash; hash.3: document real default values for bsize and ffactor.
2000-08-01Traditional NDBM supports dbm_open(foo, O_WRONLY) but dbopen() doesTodd C. Miller
not allow O_WRONLY (it returns EINVAL). If the users passes O_WRONLY to dbm_open, strip it and use O_RDWR instead.
1999-04-18o Opening a zero-length hash file should not be an errorTodd C. Miller
o Correct odbm support o Add man links for ndbm and odbm
1999-02-16real dbm_rdonlyTodd C. Miller
1999-02-16kludge to get rid of dbm_rdonly not being definedimp
1999-02-15 o Minor changes from db.1.86 (sleepycat). Does not include the new hashTodd C. Miller
routines since they cannot read a hashed .db file from the old code. Most of these files just have their RCS/SCCS tags standardized. Note that mpool.3 has not been updated to reflect the new mpool interface. o Add a real dbm(3) manpage
1999-02-12It's always a good idea to test those last minute changes to make sure they ↵Todd C. Miller
compile...
1999-02-12add old dbm-compatible interface from db-1.86 with minor changes by me ↵Todd C. Miller
(needs a man page)
1998-11-20Add thread-safety to libc, so that libc_r will build (on i386 at least).David Leonard
All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
1998-08-28do not toss memory dribble into the output files (small performance loss)Theo de Raadt
1998-07-27bad Theo, changed a variable name ;-)Todd C. Miller
1998-07-27include sys/param.h to pull in MAXPATHLENTodd C. Miller
1998-07-27clone mkstemp() setup in ../btreeTheo de Raadt
1998-03-19some -WallTodd C. Miller
1998-03-05string.h for memset protoTheo de Raadt
1997-07-23tabifykstailey
1997-02-16need errno.hTheo de Raadt
1997-02-15buf oflow, danny@freebsd.orgTheo de Raadt
1996-10-14zero out the pageJason Downs
1996-09-15Remove dead codeThorsten Lockert
Remove unused variables Silence some warnings lint(1) is your friend
1996-08-19Fix RCS idsThorsten Lockert
Make sure everything uses {SYS,}LIBC_SCCS properly
1996-05-07db release 1.85Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt