Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix a mem leak and a potential NULL deref; from NetBSD's coverity analysis. | 2006-03-19 | 1 | -5/+9 | ||
| | | | | ok millert@ | |||||
* | Fix a memory leak that could be trigged by a read error | 2006-01-25 | 1 | -5/+11 | ||
| | | | | | | | 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@ | |||||
* | Add missing break; in a switch case statement from r1.7 pread() changes. From | 2006-01-24 | 1 | -1/+2 | ||
| | | | | dhelder AT arbor.net. millert@ ok | |||||
* | Use queue macros instead of directly accessing fields. ok millert@ | 2005-10-12 | 1 | -8/+5 | ||
| | ||||||
* | Pass local var instead of mp->lqh.cqh_first to CIRCLEQ_REMOVE macro. | 2005-10-10 | 1 | -3/+3 | ||
| | | | | | | 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@ | |||||
* | zap remaining rcsid. | 2005-08-08 | 2 | -18/+2 | ||
| | | | | | | Kill old files that are no longer compiled. okay theo | |||||
* | zap rcsid | 2005-08-05 | 28 | -247/+28 | ||
| | ||||||
* | - punctuation, macro, layout, wording improvements | 2005-07-17 | 8 | -107/+120 | ||
| | | | | | | | | | - avoid first person - document dbm_rdonly - update some error return values in the mpool(3) routines - sync header file excerpts ok jmc | |||||
* | ansify. ok deraadt@ moritz@ | 2005-03-23 | 28 | -548/+232 | ||
| | ||||||
* | deregister | 2005-01-03 | 6 | -75/+67 | ||
| | ||||||
* | Avoid namespace pollution by renaming index variables -> idx. | 2005-01-03 | 7 | -105/+105 | ||
| | | | | Idea from NetBSD; OK deraadt@ | |||||
* | Make a u_int32_t-sized copy of data->size and key->size (which are size_t) | 2005-01-03 | 1 | -5/+7 | ||
| | | | | | so when we memmove() it we get the correct 32 bits copied on sparc64. Adapted from FreeBSD. OK otto@ | |||||
* | Avoid overwriting the cursor page when the cursor page becomes the | 2004-10-01 | 1 | -3/+11 | ||
| | | | | | LRU page. From pacman at manson dot clss dot net. ok deraadt@ millert@ | |||||
* | ansi and ARSUSED | 2004-09-15 | 1 | -4/+4 | ||
| | ||||||
* | Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net. | 2004-06-24 | 4 | -309/+4 | ||
| | | | | Now passes the regress tests. | |||||
* | another errno -> err in a structure. OK deraadt@ | 2004-06-21 | 3 | -15/+15 | ||
| | ||||||
* | O_NOFOLLOW and O_SYNC are also valid flags to dbopen(3) | 2004-05-05 | 1 | -1/+3 | ||
| | ||||||
* | Make ndbm match POSIX. A datum consists of a void *dptr and a size_t dsize. | 2004-05-03 | 3 | -12/+15 | ||
| | | | | Also make the open functions take a mode_t, not int. OK deraadt@ | |||||
* | datbase -> database; from Jared Yanovich | 2003-10-21 | 1 | -2/+2 | ||
| | ||||||
* | Remove some double semicolons (hmm, do two semis equal a maxi?). | 2003-08-06 | 1 | -3/+3 | ||
| | | | | I've skipped the GNU stuff for now. From Patrick Latifi. | |||||
* | convert some complicated lists to displays; | 2003-07-07 | 3 | -69/+31 | ||
| | ||||||
* | pull in headers | 2003-06-25 | 3 | -9/+14 | ||
| | ||||||
* | Sync with share/misc/license.template and add missing DARPA credit | 2003-06-17 | 1 | -8/+8 | ||
| | | | | where applicable. | |||||
* | Use an ISC-tyle license for all my code; it is simpler and more permissive. | 2003-06-03 | 1 | -22/+11 | ||
| | ||||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 43 | -288/+116 | ||
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | |||||
* | section reorder; | 2003-05-30 | 1 | -3/+3 | ||
| | ||||||
* | typos; | 2003-05-07 | 2 | -6/+10 | ||
| | ||||||
* | -Wall cleanup, make rcsid variables const | 2003-05-01 | 31 | -61/+61 | ||
| | | | | millert@ ok | |||||
* | snprintf | 2002-06-05 | 1 | -4/+3 | ||
| | ||||||
* | use int32_t, not int, for on-disk format structure. | 2002-05-31 | 1 | -18/+18 | ||
| | ||||||
* | o) start new sentence on a new line; | 2002-05-01 | 2 | -7/+12 | ||
| | | | | | | | o) always close .Bl tags; o) fix usage of .Xr; millert@ ok | |||||
* | Fix temporary buffer memory leak with big hash keys and data; | 2002-03-25 | 1 | -2/+6 | ||
| | | | | Christopher L. Cousins | |||||
* | Cosmetic changes such as correct printf format specifiers on LP64 | 2002-02-25 | 10 | -75/+75 | ||
| | | | | machines and whitespace nits. Some from NetBSD. | |||||
* | We have search.h in /usr/include so we don't need this private one. | 2002-02-24 | 2 | -58/+1 | ||
| | ||||||
* | Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree) | 2002-02-17 | 2 | -6/+6 | ||
| | ||||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 22 | -172/+172 | ||
| | ||||||
* | Allow O_SYNC and O_NOFOLLOW flags in dbopen() | 2002-02-09 | 1 | -4/+4 | ||
| | ||||||
* | Only squeeze a short key/value pair onto a page with other complete key/value | 2002-02-01 | 1 | -5/+11 | ||
| | | | | pairs, not onto a page containing the end of a big pair; mycroft@netbsd.org | |||||
* | Return a useful errno value in the overflow case. Also, print a | 2002-02-01 | 1 | -3/+9 | ||
| | | | | message to stderr in one more case. mycroft@netbsd.org | |||||
* | If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause an | 2002-02-01 | 1 | -7/+19 | ||
| | | | | | | | | | | | | 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 | |||||
* | After writing a page out to disk, run the page back through the user's | 2002-02-01 | 1 | -2/+11 | ||
| | | | | | | | | | | | 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 | |||||
* | Fix a condition where the hole would be inserted in the wrong place during a | 2002-02-01 | 1 | -4/+4 | ||
| | | | | split; mycroft@netbsd.org | |||||
* | Fill in missing (default) mmap(2) flag MAP_FILE. | 2002-01-31 | 1 | -3/+3 | ||
| | | | | mycroft@netbsd.org | |||||
* | Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2). | 2002-01-31 | 3 | -24/+20 | ||
| | | | | Based on changes from NetBSD (thorpej). | |||||
* | return 0, not NULL, the function returns an int | 2001-09-16 | 1 | -3/+3 | ||
| | ||||||
* | o) We always close .Bl and .Bd tags; | 2001-08-06 | 3 | -6/+4 | ||
| | | | | | | | | | | 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 | |||||
* | Move decision whether to make a new hash table or not to be after | 2001-08-04 | 1 | -13/+8 | ||
| | | | | | | | | 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. | |||||
* | more .%A handling; bk@rt.fm | 2001-06-23 | 1 | -2/+3 | ||
| | ||||||
* | ok, tmac is now fixed | 2001-06-23 | 1 | -2/+3 | ||
| | ||||||
* | join .%A entries; most by bk@rt.fm | 2001-06-23 | 1 | -3/+2 | ||
| |