summaryrefslogtreecommitdiffstats
path: root/lib/libc/db
Commit message (Collapse)AuthorAgeFilesLines
* Use size_t rather than a 16-bit data type fo the length.obrien2000-11-071-1/+5
| | | | | PR: 9350 Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
* More secure temporary filename. This needs to be revisited to usekris2000-11-021-1/+1
| | | | mkstemp().
* If using a DB_RECNO, db::put should return the new key if R_IAFTER isgreen2000-08-081-1/+9
| | | | | | set, not the previous key. Add $FreeBSD$, not taking this off the vendor branch because it's not on.
* Prevent TMPDIR overflow.kris2000-08-041-1/+5
|
* cleanup the tsearch import.alfred2000-07-062-53/+4
| | | | | | | | | | | | remove (comment out) functions defined or depricated elsewhere: bsearch, lfind, lsearch, insque, remque change hcreate to take a size_t rather than uint (essentially the same) since hcreate/hdestroy are now in <search.h>, remove private search.h in lib/libc/db/hash/ add $FreeBSD tags to hsearch.c
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-277-26/+24
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-127-24/+41
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* $Header$ -> $FreeBSD$peter1999-08-282-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-2813-13/+13
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-124-0/+4
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-163-7/+6
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* Change obsolete $@ to ${.TARGET}.imp1998-09-111-1/+1
|
* Don't trust TMPDIR if we're setuid root. This is used only for theimp1998-09-111-2/+3
| | | | | | | | | | backing file for an anonymous (memory based) btree, and I don't think that any setuid programs actually use it, but it is better to be safe than sorry. This has been in my tree for a long time, maybe a year or more... Inspired by: Similar changes in OpenBSD, if memory serves (like nearly a year ago)
* Fix btree problems. This passes regressions tests.guido1998-06-252-2/+5
| | | | | | PR: 7009 Obtained from: http://www.sleepycat.com/update/patch.185.html, patches 1.2, 1.3 and 1.4
* Sorted lists.bde1997-10-211-4/+3
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-161-4/+3
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Submitted by: Sin'ichiro MIYATANI / Phase One, Inc <siu@phaseone.co.jp>julian1997-09-241-1/+1
| | | | | Basic support for the Shift JIS encoding of japanese. (and one tiny typo fixed in a comment)
* Many places in the code NULL is used in integer context, wherephk1997-09-181-1/+1
| | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-037-19/+29
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Reviewed by: Bruce Evans <bde@freebsd.org>danny1997-02-151-0/+6
| | | | | Guard against possible buffer overrun in filename passed. Another candidate for 2.2.
* Sweep through the tree fixing mmap() usage:alex1997-01-161-1/+1
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* make u_char * -> char * conversion explicit.jkh1996-12-051-1/+1
| | | | Found-By: insight's "insure++" tool.
* Back out most of the last backout. :-) Guido removed the 1.1.1.1->1.1.1.2peter1996-10-191-10/+18
| | | | | | changes from the vendor branch as well, backing the db-1.82 changes. This file should now be the same as it was in rev 1.1.1.2.
* Backout bzero patch.guido1996-10-181-21/+11
| | | | | | Somehow, I also managed to get quite some other changes in this file at the same time. All I did was checkout the file and made a single change. If someone has an explanation how these PURIFFY defines got in...
* When freeing buffers in the db routines, also zeroize themguido1996-10-171-1/+3
| | | | | | This should solve the bug where a coredumping ftpd reveals encrypted passwords. Obtained from: OpenBSD
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-051-1/+2
|
* Bring in fixes to db 1.85 from NetBSD. These fixes have been documented aspst1996-07-213-18/+39
| | | | | being sent back to Bostic by the NetBSD crew. Obtained from: NetBSD-current
* General -Wall warning cleanup, part I.jkh1996-07-123-6/+6
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Close PR#218. Don't reference non-existant dbm(3) and ndbm(3) manualjkh1996-03-031-4/+4
| | | | pages.
* Fix conflicts and merge into mainlinepst1996-02-2716-25286/+724
|
* This commit was generated by cvs2svn to compensate for changes in r14272,pst1996-02-2735-1081/+26814
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import updated Berkeley DB into CSRG branchpst1996-02-2746-1680/+27446
| |
* | move stat behind open to cover corner casepst1996-02-251-2/+8
| |
* | If a .db file is 0 length, initialize it as if it did not exist.pst1996-02-231-1/+2
| | | | | | | | Reviewed by: wollman
* | Reviewed by: julian and (hsu?)julian1996-01-223-10/+10
| | | | | | | | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* | Remove trailing whitespace.rgrimes1995-05-3015-30/+30
| |
* | Added the mpool.3 manpage to the installed manpages. It is referred from theats1994-12-111-0/+1
| | | | | | | | other manpages and there is no conflict.
* | First crack at making libc work with the new make macros. It compiles onwollman1994-08-051-1/+1
|/ | | | | my machine, and a simple static (genassym) and shared (sysctl) executable both work. Still to be done: RPCand YP merge.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-2771-0/+40026
OpenPOWER on IntegriCloud