summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/recno
Commit message (Collapse)AuthorAgeFilesLines
* db(3): Fix aliasing warnings from modern GCC.pfg2016-02-241-3/+2
| | | | | | While here also drop a malloc cast. Obtained from: NetBSD (CVS Rev. 1.18 - 1.20)
* db/recno: Open with close-on-exec like btree and hash do.jilles2015-09-131-1/+1
|
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}marcel2014-03-041-1/+1
| | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc.
* Several signed/unsigned warning fixes.delphij2009-03-282-3/+3
|
* Our realloc(3) and reallocf(3) can handle NULL, which turns it into adelphij2009-03-052-15/+5
| | | | | | malloc(3) call, so don't test if a pointer is NULL. Obtained from: OpenBSD (in spirit)
* Style changes (including additional casts to shut up warnings). Thisdelphij2009-03-046-10/+11
| | | | commit does not affect MD5 of object file.
* Rename variable 'index' to 'idx' to avoid name collision with index(3),delphij2009-03-033-24/+21
| | | | | | | this commit does not affect any object code. Obtained from: OpenBSD Verified with: md5(1)
* Diff reduction against OpenBSD: ANSI'fy prototypes.delphij2009-03-028-58/+17
| | | | | | | | (This is part of a larger changeset which is intended to reduce diff only, thus some prototypes were left intact since they will be changed in the future). Verified with: md5(1)
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-0910-40/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-02-162-3/+5
| | | | | | | 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
* libc_r wasn't so tied to libc for 22 months.ru2002-11-181-1/+1
|
* Fix the style of the SCM ID's.obrien2002-03-221-0/+1
| | | | I believe have made all of libc .h's as consistent as possible.
* Fix the style of the SCM ID's.obrien2002-03-226-10/+12
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove __P() usage.obrien2002-03-212-18/+21
|
* Remove 'register' keyword.obrien2002-03-211-2/+4
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-242-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix SCCS id string abuse I introduced.obrien2001-01-021-1/+1
|
* 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>
* 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.
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-272-4/+4
| | | | | | | | | | | | | | | | | 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-122-4/+9
| | | | | | 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().
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-162-6/+5
| | | | | | | | | | | 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...
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-2/+3
| | | | | | | | | | 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.
* 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 u_char * -> char * conversion explicit.jkh1996-12-051-1/+1
| | | | Found-By: insight's "insure++" tool.
* Fix conflicts and merge into mainlinepst1996-02-273-31/+57
|
* This commit was generated by cvs2svn to compensate for changes in r14272,pst1996-02-276-127/+178
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import updated Berkeley DB into CSRG branchpst1996-02-279-155/+232
| |
* | Remove trailing whitespace.rgrimes1995-05-303-3/+3
|/
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-2711-0/+1612
OpenPOWER on IntegriCloud