summaryrefslogtreecommitdiff
path: root/lib/libc/db
AgeCommit message (Collapse)Author
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
1999-07-07The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os.Aaron Campbell
Out of the approximately 1450 man pages, only about 90 of them were wrong. Thanks to kwesterback@home.com for coming up with a script and patch to repair this. The patch also inserted a .Os macro in the few man pages that were missing one.
1999-07-04trash some old leftover macros and replace them with -mdoc macrosAaron Campbell
1999-07-02.Dd should not be given abbreviated month namesAaron Campbell
1999-06-05use .Tn instead of .Em for logical/bitwise OR + ANDAaron Campbell
1999-05-28"SEE ALSO" -> SEE ALSO, missed these files beforeAaron Campbell
1999-05-27more missing .El macros filled inAaron Campbell
1999-05-27or'ing -> OR'ingAaron Campbell
1999-05-25punctuationAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-16Cleanup xrefs under SEE ALSO. Specifically:Alex Feldman
- Sort xrefs by section, and then alphabetically. - Add missing commas between xref items. - Remove commas from the last xref entry. - Remove duplicate entries.
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-03-11fix more comma splices that involve misuse of conjunctive adverbsPaul Janzen
1999-03-10fix comma splices involving 'however'Paul Janzen
1999-02-27make function names the correct caseTheo de Raadt
1999-02-26Use .Fn for dbopen() declaration and add from Dv for NULLTodd C. Miller
1999-02-26.Ar -> .Fa and NULL is DvTodd C. Miller