aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/db
Commit message (Collapse)AuthorAgeFilesLines
* MFC r190482: zero out memory before use and free.Xin LI2009-04-115-28/+11
| | | | | | | Security: Potential Information Leak Notes: svn path=/stable/6/; revision=190940
* MFC rev. 1.9: dbm_close(3) returns void.Maxim Konovalov2006-05-011-5/+1
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=158224
* Expand *n't contractions.Ruslan Ermilov2005-02-132-3/+3
| | | | Notes: svn path=/head/; revision=141846
* Fix a condition where the hole would be inserted in the wrongJun Kuriyama2004-09-131-4/+2
| | | | | | | | | place during a split. Obtained from: NetBSD Notes: svn path=/head/; revision=135178
* I found "portsdb -u" dumps core with recent INDEX file, and this isJun Kuriyama2004-09-101-0/+2
| | | | | | | | | | | | | | | | | | caused by refering broken (uninitialized?) pointer which is retrieved from __bt_new() (and from mpool_new()). I don't know why this linp[0] is read before stored because this should be controlled by .lower and .upper member of PAGE structure which are correctly initialized. But this workaround fixes the problem on my environment and this module has #ifdef PURIFY option which initializes new and reused memory from mpool by memset(p, 0xff, size) like as I did. Please feel free to fix the real bug instead of my workaround. Notes: svn path=/head/; revision=135038
* Fix format strings to unbreak with -DDEBUG option.Jun Kuriyama2004-09-103-17/+18
| | | | Notes: svn path=/head/; revision=135024
* Remove the misleading description of the 'key' argument toPeter Pentchev2004-08-271-17/+1
| | | | | | | | | | | | mpool_open(3) - it is *not* really used for synchronization; in fact, it is not used at all. PR: 70929 Submitted by: Martin Kammerhofer <dada@sbox.tugraz.at> MFC after: 3 days Notes: svn path=/head/; revision=134381
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-023-4/+4
| | | | Notes: svn path=/head/; revision=131504
* Simplify mpool_get() and mpool_write() by using pread() and pwrite()David Schultz2004-01-201-6/+3
| | | | | | | | | | instead of lseek()/_read() and lseek()/_write(). PR: bin/54276 Submitted by: <dnelson@allantgroup.com> Notes: svn path=/head/; revision=124735
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-085-7/+7
| | | | Notes: svn path=/head/; revision=119893
* Fix a sizeof error in __bt_put: when writing they key and data sizesThomas Moestl2003-05-301-3/+5
| | | | | | | | | | | | | to a buffer in the big key/data case, memmove() was used on pointers to size_ts, but only sizeof(u_int32_t) bytes where copied. This broke on big_endian architectures where sizeof(size_t) > sizeof(u_int32_t). This bug broke portupgrade (by way of ruby_bdb1) on sparc64. Approved by: re (rwatson) Notes: svn path=/head/; revision=115411
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-166-10/+14
| | | | | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5 Notes: svn path=/head/; revision=111010
* The .Fn functionPhilippe Charnier2003-02-061-12/+13
| | | | Notes: svn path=/head/; revision=110440
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-195-22/+46
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-183-6/+50
| | | | Notes: svn path=/head/; revision=108037
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-187-14/+12
| | | | Notes: svn path=/head/; revision=107052
* Correct the headers needed to use dbopen(3) and friends.Mark Murray2002-10-181-1/+2
| | | | Notes: svn path=/head/; revision=105404
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-281-14/+1
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=97407
* W/o __P, the internal declarations will all fit on one line.David E. O'Brien2002-03-231-6/+3
| | | | Notes: svn path=/head/; revision=93039
* Fix the style of the SCM ID's.David E. O'Brien2002-03-223-3/+3
| | | | | | | I believe have made all of libc .h's as consistent as possible. Notes: svn path=/head/; revision=92991
* Fix the style of the SCM ID's.David E. O'Brien2002-03-2223-36/+62
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Remove multi-line __P() usage.David E. O'Brien2002-03-224-6/+6
| | | | Notes: svn path=/head/; revision=92941
* Remove __P() usage.David E. O'Brien2002-03-2122-169/+189
| | | | Notes: svn path=/head/; revision=92905
* Remove 'register' keyword.David E. O'Brien2002-03-2110-81/+93
| | | | Notes: svn path=/head/; revision=92889
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-016-13/+13
| | | | Notes: svn path=/head/; revision=84306
* Mark some functions as __printflike() and/or taking const char * argumentsKris Kennaway2001-08-201-1/+1
| | | | | | | | | instead of char *. MFC after: 2 weeks Notes: svn path=/head/; revision=81975
* mdoc(7) police: replace `\*(Ba' with a simple `|', it's handled specially.Ruslan Ermilov2001-08-161-1/+1
| | | | Notes: svn path=/head/; revision=81773
* Don't clobber the default for CFLAGS.Bruce Evans2001-08-031-1/+2
| | | | Notes: svn path=/head/; revision=81118
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).Ruslan Ermilov2001-07-061-1/+1
| | | | Notes: svn path=/head/; revision=79366
* Remove duplicate words.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78686
* Add new, from scratch implementation of hsearch() et al that actually works.Ruslan Ermilov2001-05-152-110/+1
| | | | | | | | Obtained from: NetBSD MFC after: 1 month Notes: svn path=/head/; revision=76613
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* mdoc(7) cleanup.Ruslan Ermilov2001-02-121-90/+86
| | | | Notes: svn path=/head/; revision=72414
* Add a man page for the dbm_* functions, and update the Makefile to linkNik Clayton2001-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> Notes: svn path=/head/; revision=72365
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-061-1/+2
| | | | | | | | | Compatability is not an existing english word. Add $FreeBSD$. Notes: svn path=/head/; revision=72092
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72045
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-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 Notes: svn path=/head/; revision=71579
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-115-681/+845
| | | | Notes: svn path=/head/; revision=70936
* Fix SCCS id string abuse I introduced.David E. O'Brien2001-01-021-1/+1
| | | | Notes: svn path=/head/; revision=70592
* Fix a tailq conversion bug that resulted in, e.g., nvi crashing uponBrian Feldman2000-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. Notes: svn path=/head/; revision=70512
* Use TAILQ instead of CIRCLEQ.Poul-Henning Kamp2000-12-291-21/+18
| | | | Notes: svn path=/head/; revision=70492
* Use size_t rather than a 16-bit data type fo the length.David E. O'Brien2000-11-071-1/+5
| | | | | | | | PR: 9350 Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com> Notes: svn path=/head/; revision=68455
* More secure temporary filename. This needs to be revisited to useKris Kennaway2000-11-021-1/+1
| | | | | | | mkstemp(). Notes: svn path=/head/; revision=68234
* If using a DB_RECNO, db::put should return the new key if R_IAFTER isBrian Feldman2000-08-081-1/+9
| | | | | | | | | set, not the previous key. Add $FreeBSD$, not taking this off the vendor branch because it's not on. Notes: svn path=/head/; revision=64381
* Prevent TMPDIR overflow.Kris Kennaway2000-08-041-1/+5
| | | | Notes: svn path=/head/; revision=64239
* cleanup the tsearch import.Alfred Perlstein2000-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 Notes: svn path=/head/; revision=62684
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-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 Notes: svn path=/head/; revision=56698
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-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(). Notes: svn path=/head/; revision=55837
* $Header$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50488