summaryrefslogtreecommitdiff
path: root/lib/libc/db
AgeCommit message (Collapse)Author
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
2001-06-23ok, tmac is now fixedTheo de Raadt
2001-06-23join .%A entries; most by bk@rt.fmTheo de Raadt
2001-05-11-1 -> MAP_FAILEDArtur Grabowski
2001-04-16Man page for hsearch/hcreate/hdestroy from NetBSDTodd C. Miller
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-11-21prevent type overflow; dzerkel@columbus.rr.comTheo de Raadt
2000-10-25DBM_READONLY -> DBM_RDONLY; dugsong@Aaron Campbell
2000-10-18Another round of man page cleanup, this time to remove more hard sentenceAaron Campbell
breaks and getting rid of short lines, making these files easier to work with.
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.
2000-04-18Repairs.Aaron Campbell
2000-03-14Suffix "i.e." and "e.g." with a comma. Just another really picky man pageAaron Campbell
commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
2000-01-22Use .Va macro when referring to the global variable errno.Aaron Campbell
1999-11-17Add missing MLINKsTodd C. Miller
1999-07-09- remove all trailing whitespaceAaron Campbell
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
1999-07-08spurious words and misc fixesHugh Graham
1999-07-07when using `-' as a negative sign, escape it with a backslash so troff knowsAaron Campbell
it's not supposed to be a hyphen/dash