summaryrefslogtreecommitdiff
path: root/lib/libc/db
AgeCommit message (Collapse)Author
2007-01-25Move paragraphs unrelated to bfname out of this list item.Alexander Bluhm
ok millert jmc
2006-04-03a few size_t casts are needed here; ok ottoTheo de Raadt
2006-03-19Fix a mem leak and a potential NULL deref; from NetBSD's coverity analysis.Otto Moerbeek
ok millert@
2006-01-25Fix a memory leak that could be trigged by a read errorTodd C. Miller
Update the count of currently cached pages in mpool_delete() Use CIRCLEQ_EMPTY in the loop that delets the lru cache Don't update the pageread statistic if there was a read error With aaron@, OK krw@
2006-01-24Add missing break; in a switch case statement from r1.7 pread() changes. FromAaron Campbell
dhelder AT arbor.net. millert@ ok
2005-10-12Use queue macros instead of directly accessing fields. ok millert@Otto Moerbeek
2005-10-10Pass local var instead of mp->lqh.cqh_first to CIRCLEQ_REMOVE macro.Otto Moerbeek
The latter might fail, depending on the actual implementation of CIRCLEQ_REMOVE. Found by a strict queue.h I'm working on. ok pedro@ millert@
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
2005-08-05zap rcsidMarc Espie
2005-07-17- punctuation, macro, layout, wording improvementsJared Yanovich
- avoid first person - document dbm_rdonly - update some error return values in the mpool(3) routines - sync header file excerpts ok jmc
2005-03-23ansify. ok deraadt@ moritz@Otto Moerbeek
2005-01-03deregisterTodd C. Miller
2005-01-03Avoid namespace pollution by renaming index variables -> idx.Todd C. Miller
Idea from NetBSD; OK deraadt@
2005-01-03Make a u_int32_t-sized copy of data->size and key->size (which are size_t)Todd C. Miller
so when we memmove() it we get the correct 32 bits copied on sparc64. Adapted from FreeBSD. OK otto@
2004-10-01Avoid overwriting the cursor page when the cursor page becomes theOtto Moerbeek
LRU page. From pacman at manson dot clss dot net. ok deraadt@ millert@
2004-09-15ansi and ARSUSEDTheo de Raadt
2004-06-24Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.Todd C. Miller
Now passes the regress tests.
2004-06-21another errno -> err in a structure. OK deraadt@Marco S Hyman
2004-05-05O_NOFOLLOW and O_SYNC are also valid flags to dbopen(3)Todd C. Miller
2004-05-03Make ndbm match POSIX. A datum consists of a void *dptr and a size_t dsize.Todd C. Miller
Also make the open functions take a mode_t, not int. OK deraadt@
2003-10-21datbase -> database; from Jared YanovichJason McIntyre
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-07-07convert some complicated lists to displays;Jason McIntyre
2003-06-25pull in headersTheo de Raadt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-30section reorder;Jason McIntyre
2003-05-07typos;Jason McIntyre
2003-05-01-Wall cleanup, make rcsid variables constAnil Madhavapeddy
millert@ ok
2002-06-05snprintfTheo de Raadt
2002-05-31use int32_t, not int, for on-disk format structure.Jun-ichiro itojun Hagino
2002-05-01o) start new sentence on a new line;Mike Pechkin
o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
2002-03-25Fix temporary buffer memory leak with big hash keys and data;Todd C. Miller
Christopher L. Cousins
2002-02-25Cosmetic changes such as correct printf format specifiers on LP64Todd C. Miller
machines and whitespace nits. Some from NetBSD.
2002-02-24We have search.h in /usr/include so we don't need this private one.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-09Allow O_SYNC and O_NOFOLLOW flags in dbopen()Todd C. Miller
2002-02-01Only squeeze a short key/value pair onto a page with other complete key/valueTodd C. Miller
pairs, not onto a page containing the end of a big pair; mycroft@netbsd.org
2002-02-01Return a useful errno value in the overflow case. Also, print aTodd C. Miller
message to stderr in one more case. mycroft@netbsd.org
2002-02-01If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause anTodd C. Miller
invariant (actually, an ugly hack) to fail, and all Hell would break loose. When deleting a big key, the offset of an empty page should be bsize, not bsize-1; otherwise an insertion into the empty page will cause the new key to be elongated by 1 byte. Make the packing more dense in a couple of cases. From mycroft@netbsd.org
2002-02-01After writing a page out to disk, run the page back through the user'sTodd C. Miller
input filter to ensure we don't end up with a cached copy of the page in the wrong byte-order for the host cpu. This fixes a fatal bug which bites when the DB 'lorder' is different to the cpu's, and a cached page is accessed soon after it was flushed to disk. From scw@netbsd.org
2002-02-01Fix a condition where the hole would be inserted in the wrong place during aTodd C. Miller
split; mycroft@netbsd.org
2002-01-31Fill in missing (default) mmap(2) flag MAP_FILE.Todd C. Miller
mycroft@netbsd.org
2002-01-31Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2).Todd C. Miller
Based on changes from NetBSD (thorpej).
2001-09-16return 0, not NULL, the function returns an intArtur Grabowski
2001-08-06o) We always close .Bl and .Bd tags;Mike Pechkin
o) .Sh AUTHOR -> .Sh AUTHORS; o) We don't like .Pp before/after .Sh; o) We don't like .Pp before/after .Rs/.Re; o) NetBSD -> .Nx; o) OpenBSD -> .Ox; millert@ ok
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-06-23more .%A handling; bk@rt.fmTheo de Raadt