summaryrefslogtreecommitdiffstats
path: root/lib/libc/db (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove some double semicolons (hmm, do two semis equal a maxi?).millert2003-08-061-3/+3
| | | | I've skipped the GNU stuff for now. From Patrick Latifi.
* convert some complicated lists to displays;jmc2003-07-073-69/+31
|
* pull in headersderaadt2003-06-253-9/+14
|
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-8/+8
| | | | where applicable.
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-22/+11
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0243-288/+116
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* section reorder;jmc2003-05-301-3/+3
|
* typos;jmc2003-05-072-6/+10
|
* -Wall cleanup, make rcsid variables constavsm2003-05-0131-61/+61
| | | | millert@ ok
* snprintfderaadt2002-06-051-4/+3
|
* use int32_t, not int, for on-disk format structure.itojun2002-05-311-18/+18
|
* o) start new sentence on a new line;mpech2002-05-012-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;millert2002-03-251-2/+6
| | | | Christopher L. Cousins
* Cosmetic changes such as correct printf format specifiers on LP64millert2002-02-2510-75/+75
| | | | machines and whitespace nits. Some from NetBSD.
* We have search.h in /usr/include so we don't need this private one.millert2002-02-242-58/+1
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-172-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.millert2002-02-1622-172/+172
|
* Allow O_SYNC and O_NOFOLLOW flags in dbopen()millert2002-02-091-4/+4
|
* Only squeeze a short key/value pair onto a page with other complete key/valuemillert2002-02-011-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 amillert2002-02-011-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 anmillert2002-02-011-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'smillert2002-02-011-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 amillert2002-02-011-4/+4
| | | | split; mycroft@netbsd.org
* Fill in missing (default) mmap(2) flag MAP_FILE.millert2002-01-311-3/+3
| | | | mycroft@netbsd.org
* Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2).millert2002-01-313-24/+20
| | | | Based on changes from NetBSD (thorpej).
* return 0, not NULL, the function returns an intart2001-09-161-3/+3
|
* o) We always close .Bl and .Bd tags;mpech2001-08-063-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 aftermillert2001-08-041-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.fmderaadt2001-06-231-2/+3
|
* ok, tmac is now fixedderaadt2001-06-231-2/+3
|
* join .%A entries; most by bk@rt.fmderaadt2001-06-231-3/+2
|
* -1 -> MAP_FAILEDart2001-05-111-3/+3
|
* Man page for hsearch/hcreate/hdestroy from NetBSDmillert2001-04-162-2/+196
|
* grammer/spellingtodd2001-01-041-2/+2
|
* Make it an error to open a zero-length file for read-only access.millert2001-01-031-3/+3
| | | | | This makes cap_mkdb happier, though cap_mkdb still behaves incorrectly when given multiple files (but that is cap_mkdb's fault).
* prevent type overflow; dzerkel@columbus.rr.comderaadt2000-11-211-3/+3
|
* DBM_READONLY -> DBM_RDONLY; dugsong@aaron2000-10-251-2/+2
|
* Another round of man page cleanup, this time to remove more hard sentenceaaron2000-10-181-5/+5
| | | | breaks and getting rid of short lines, making these files easier to work with.
* bt_open.c: parenthesize - and & proper (from freebsd);mickey2000-10-034-17/+19
| | | | | | 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.
* Traditional NDBM supports dbm_open(foo, O_WRONLY) but dbopen() doesmillert2000-08-011-2/+7
| | | | | not allow O_WRONLY (it returns EINVAL). If the users passes O_WRONLY to dbm_open, strip it and use O_RDWR instead.
* Repairs.aaron2000-04-187-136/+230
|
* Suffix "i.e." and "e.g." with a comma. Just another really picky man pageaaron2000-03-143-7/+7
| | | | | commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
* Use .Va macro when referring to the global variable errno.aaron2000-01-221-8/+12
|
* Add missing MLINKsmillert1999-11-171-1/+4
|
* - remove all trailing whitespaceaaron1999-07-094-9/+9
| | | | | | | | | | * 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...
* spurious words and misc fixeshugh1999-07-081-2/+2
|
* when using `-' as a negative sign, escape it with a backslash so troff knowsaaron1999-07-072-12/+12
| | | | it's not supposed to be a hyphen/dash
* The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os.aaron1999-07-077-14/+14
| | | | | | | 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.
* trash some old leftover macros and replace them with -mdoc macrosaaron1999-07-042-22/+27
|
* .Dd should not be given abbreviated month namesaaron1999-07-021-2/+2
|