summaryrefslogtreecommitdiffstats
path: root/lib/libc/db
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-016-13/+13
|
* Mark some functions as __printflike() and/or taking const char * argumentskris2001-08-201-1/+1
| | | | | | instead of char *. MFC after: 2 weeks
* mdoc(7) police: replace `\*(Ba' with a simple `|', it's handled specially.ru2001-08-161-1/+1
|
* Don't clobber the default for CFLAGS.bde2001-08-031-1/+2
|
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).ru2001-07-061-1/+1
|
* Remove duplicate words.dd2001-06-241-1/+1
|
* Add new, from scratch implementation of hsearch() et al that actually works.ru2001-05-152-110/+1
| | | | | Obtained from: NetBSD MFC after: 1 month
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* mdoc(7) cleanup.ru2001-02-121-90/+86
|
* Add a man page for the dbm_* functions, and update the Makefile to linknik2001-02-112-1/+211
| | | | | | | | | | it in. Some review from -hackers (some time ago), and I think the best way to get this improved (if it needs improving) or updating, is to bring it in. PR: docs/12557 Submitted by: Tim Singletary <tsingle@triana.gsfc.nasa.gov>
* Fix typo: compatability -> compatibility.asmodai2001-02-061-1/+2
| | | | | | Compatability is not an existing english word. Add $FreeBSD$.
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.bde2001-02-051-1/+1
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-248-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* man(7) -> mdoc(7).ru2001-01-115-681/+845
|
* Fix SCCS id string abuse I introduced.obrien2001-01-021-1/+1
|
* Fix a tailq conversion bug that resulted in, e.g., nvi crashing upongreen2000-12-301-1/+2
| | | | | | | | | | | | quitting every time. The way to free a CIRCLEQ was to loop until the current == current->head, but the way to free a TAILQ is to loop until current->head == NULL. In any case, the CORRECT way to do it is a loop of TAILQ_EMPTY() checks and TAILQ_REMOVE()al of TAILQ_FIRST(). This bug wouldn't have happened if the loop wasn't hard-coded... There may be more bugs of this type from the conversion.
* Use TAILQ instead of CIRCLEQ.phk2000-12-291-21/+18
|
* 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.
OpenPOWER on IntegriCloud