aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/db/recno
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* lib: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* lib: Remove ancient SCCS tags.Warner Losh2023-11-2711-30/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* libc: Purge unneeded cdefs.hWarner Losh2023-11-017-7/+0
| | | | | | | | | These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-168-16/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2010-0/+20
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-2810-10/+10
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* db(3): Fix aliasing warnings from modern GCC.Pedro F. Giffuni2016-02-241-3/+2
| | | | | | | | | While here also drop a malloc cast. Obtained from: NetBSD (CVS Rev. 1.18 - 1.20) Notes: svn path=/head/; revision=295975
* db/recno: Open with close-on-exec like btree and hash do.Jilles Tjoelker2015-09-131-1/+1
| | | | Notes: svn path=/head/; revision=287761
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-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. Notes: svn path=/head/; revision=262722
* Several signed/unsigned warning fixes.Xin LI2009-03-282-3/+3
| | | | Notes: svn path=/head/; revision=190484
* Our realloc(3) and reallocf(3) can handle NULL, which turns it into aXin LI2009-03-052-15/+5
| | | | | | | | | malloc(3) call, so don't test if a pointer is NULL. Obtained from: OpenBSD (in spirit) Notes: svn path=/head/; revision=189387
* Style changes (including additional casts to shut up warnings). ThisXin LI2009-03-046-10/+11
| | | | | | | commit does not affect MD5 of object file. Notes: svn path=/head/; revision=189327
* Rename variable 'index' to 'idx' to avoid name collision with index(3),Xin LI2009-03-033-24/+21
| | | | | | | | | | this commit does not affect any object code. Obtained from: OpenBSD Verified with: md5(1) Notes: svn path=/head/; revision=189292
* Diff reduction against OpenBSD: ANSI'fy prototypes.Xin LI2009-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) Notes: svn path=/head/; revision=189291
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-0910-40/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-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 Notes: svn path=/head/; revision=111010
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-1/+1
| | | | Notes: svn path=/head/; revision=107052
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-0/+1
| | | | | | | 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-226-10/+12
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Remove __P() usage.David E. O'Brien2002-03-212-18/+21
| | | | Notes: svn path=/head/; revision=92905
* Remove 'register' keyword.David E. O'Brien2002-03-211-2/+4
| | | | Notes: svn path=/head/; revision=92889
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-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 Notes: svn path=/head/; revision=71579
* Fix SCCS id string abuse I introduced.David E. O'Brien2001-01-021-1/+1
| | | | Notes: svn path=/head/; revision=70592
* 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
* 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
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-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 Notes: svn path=/head/; revision=56698
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-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(). Notes: svn path=/head/; revision=55837
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-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... Notes: svn path=/head/; revision=39327
* Changed all paths to be relative to src/lib instead of src/lib/libcJohn Birrell1997-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. Notes: svn path=/head/; revision=25401
* Sweep through the tree fixing mmap() usage:Alexander Langer1997-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 Notes: svn path=/head/; revision=21786
* make u_char * -> char * conversion explicit.Jordan K. Hubbard1996-12-051-1/+1
| | | | | | | Found-By: insight's "insure++" tool. Notes: svn path=/head/; revision=20159
* Fix conflicts and merge into mainlinePaul Traina1996-02-273-31/+57
| | | | Notes: svn path=/head/; revision=14287
* Import updated Berkeley DB into CSRG branchPaul Traina1996-02-276-127/+178
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=14272
* Remove trailing whitespace.Rodney W. Grimes1995-05-303-3/+3
| | | | Notes: svn path=/head/; revision=8870
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-2711-0/+1612
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573