Home | History | Annotate | only in /src/usr.bin/db
History log of /src/usr.bin/db
RevisionDateAuthorComments
 1.4 14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.3 05-Sep-2008  lukem branches: 1.3.6;
crank to WARNS=4
 1.2 28-May-2007  tls branches: 1.2.12;
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.1 11-Dec-2002  lukem branches: 1.1.1;
Initial revision
 1.1.1.1 11-Dec-2002  lukem db(1) - manipulate db(3)'s btree(3) and hash(3) databases
 1.2.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.3.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.28 09-Aug-2022  charlotte PR bin/51878: db(1)'s man page to describe the actual behavior of '-q'
 1.27 17-Feb-2012  wiz Fix typo. Bump date for previous.
 1.26 17-Feb-2012  apb db(1) "-N" flag means "Include the NUL byte at the end of the key
or value". (Previously, the description was reversed.) Also expand
the description.

This is the first half of a fix for PR 46035.
 1.25 28-Jan-2009  wiz branches: 1.25.8;
Bump date for previous.
 1.24 28-Jan-2009  lukem update documentation to reflect reality:
* read mode supports -D for btree
* all modes support -U
 1.23 05-Sep-2008  wiz branches: 1.23.4;
Sort SEE ALSO.
Remove unnecessary Bk/Ek in SYNOPSIS.
 1.22 05-Sep-2008  lukem Add -P pagesize, to tune the btree psize and hash bsize.
Set to 0 to let the system choose (based on st_blksize of the file)
Defaults to 4096.
 1.21 05-Sep-2008  lukem Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or write
 1.20 04-Sep-2008  lukem Support -Th to enable VIS_HTTPSTYLE.
Expand description of -T so there's less need to consult
both vis(1) and strvis(3) to determine what the characters mean.
 1.19 30-Apr-2008  martin branches: 1.19.2;
Convert TNF licenses to new 2 clause variant
 1.18 27-Dec-2007  wiz branches: 1.18.4;
Comment out xref to makemap(8), which does not exist.
 1.17 20-Jun-2005  lukem branches: 1.17.12;
Allow the input [file] field separator to be a string and not just a
single character.
Use argument-specific value names in the usage string & manual page
to simplify searching for the value's use.
 1.16 26-Jun-2003  wiz Add another Ns to avoid a space.
 1.15 26-Jun-2003  wiz Add Ns to avoid a space.
 1.14 20-May-2003  wiz More option sorting; sync -f argument name with db.c.
 1.13 20-May-2003  wiz Sort options. New sentence, new line.
 1.12 19-May-2003  seb Bump date for last change.
 1.11 19-May-2003  seb Add option -S to specify strvis(3) encoding of keys and/or values
when reading a database. Add options -T and -X to tweak encoding.

Add option -U to specify strunvis(3) decoding of keys and/or values
when writing a database or deleting entries from a database.

Kill TODO item 'add option to strunvis(3) key (& value) from infile
?': unvis(1) can be used to achieve that.

Approved by lukem@. And thanks to him for suggestions.
 1.10 18-May-2003  lukem -N also prevents NUL termination of value
 1.9 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.8 14-Feb-2003  grant The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
 1.7 19-Jan-2003  atatat The next release will be 2.0, not 1.7.
 1.6 05-Jan-2003  seb Fix usage message and SYNOPSIS section wrt to option O as suggested by wiz.
 1.5 29-Dec-2002  seb After discussion with lukem rename 's' option to 'O'.
Hopefully 's' option has been here only a couple of hours.
 1.4 29-Dec-2002  seb Fix error message for option `F' when passed a bogus argument.
Actually activate option `F' in getopt's optstring.
Implement option `s' to specify output field separator string.

Approved by lukem.
 1.3 22-Dec-2002  lukem document defaults
 1.2 18-Dec-2002  wiz Drop trailing whitespace, use Aq instead of Lt and Gt.
 1.1 11-Dec-2002  lukem branches: 1.1.1;
Initial revision
 1.1.1.1 11-Dec-2002  lukem db(1) - manipulate db(3)'s btree(3) and hash(3) databases
 1.17.12.1 09-Jan-2008  matt sync with HEAD
 1.18.4.1 18-May-2008  yamt sync with head.
 1.19.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.23.4.2 06-Feb-2009  snj Pull up following revision(s) (requested by lukem in ticket #404):
usr.bin/db/db.1: revision 1.25
Bump date for previous.
 1.23.4.1 06-Feb-2009  snj Pull up following revision(s) (requested by lukem in ticket #404):
usr.bin/db/db.1: revision 1.24
update documentation to reflect reality:
* read mode supports -D for btree
* all modes support -U
 1.25.8.1 17-Apr-2012  yamt sync with head
 1.28 10-Aug-2022  charlotte db(1): Don't lie in the usage message re: `-q`
 1.27 25-Aug-2021  rillig db: fix lint warnings about wrong call to ctype functions
 1.26 17-Feb-2012  apb The "-N" command line option means "include the terminating NUL byte",
so rename the corresponding flag from F_NO_NUL to F_INCLUDE_NUL to match
the behaviour.

This is the second half of the fix for PR 46035.
 1.25 01-Sep-2011  joerg branches: 1.25.2;
static + __dead
 1.24 28-Jan-2009  lukem Rework how reading keys functions so that key lookups from hash databases
works again. (I accidentally broke that in rev 1.15)
Fixes problem noted by Masao Uebayashi.
 1.23 18-Jan-2009  lukem fix -Wsign-compare issues
 1.22 07-Oct-2008  lukem branches: 1.22.2;
Explicitly pull in "nbtool_config.h" if available.
Fixes tools/db build, as reported by Matthias Scheler.
 1.21 07-Oct-2008  lukem Fail with a non-zero exit code if deleting a non-existant key.
Fixes bug introduced in rev 1.15, and reported in PR 39710 from Juan RP.

Don't display various warnings in delete if -q.
Suggested in PR 39710.

Add some sanity enforcing abort()s.
 1.20 05-Sep-2008  lukem Add -P pagesize, to tune the btree psize and hash bsize.
Set to 0 to let the system choose (based on st_blksize of the file)
Defaults to 4096.
 1.19 05-Sep-2008  lukem Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or write
 1.18 05-Sep-2008  lukem Fix -N so that it sets O_TRUNC in the flags to pass to dbopen(3)
and not the flags used by db(1) to control internal behaviour.
 1.17 04-Sep-2008  lukem Support -Th to enable VIS_HTTPSTYLE.
Expand description of -T so there's less need to consult
both vis(1) and strvis(3) to determine what the characters mean.
 1.16 28-Apr-2008  martin branches: 1.16.2;
Remove clause 3 and 4 from TNF licenses
 1.15 03-Apr-2007  lukem branches: 1.15.10;
* Support reading multiple keys with the same name if '-D' is given,
using db->seq() and match comparison rather than db->get().
* Deleting multiple keys of the same name appears to already work as-is
with a single db->del() call; I had code to implement this if '-D'
is given but it appears to be unnecessary.
* Cosmetic/KNF tweaks.
 1.14 20-Jun-2005  lukem Allow the input [file] field separator to be a string and not just a
single character.
Use argument-specific value names in the usage string & manual page
to simplify searching for the value's use.
 1.13 04-Oct-2004  lukem When vis encoding with -S, only remove the trailing NUL if -N isn't used and
the item's size is > 0.
 1.12 05-Jan-2004  jmmv branches: 1.12.4;
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.11 16-Oct-2003  itojun safer use of realloc
 1.10 23-Jun-2003  aymeric add missing #ifdef __RCSID
(these files are compiled as host tools)
from Nicolas Ollinger, fixes PR#21892
 1.9 20-May-2003  wiz Sync usage with man page; break to 80 chars/line.
 1.8 19-May-2003  seb Add option -S to specify strvis(3) encoding of keys and/or values
when reading a database. Add options -T and -X to tweak encoding.

Add option -U to specify strunvis(3) decoding of keys and/or values
when writing a database or deleting entries from a database.

Kill TODO item 'add option to strunvis(3) key (& value) from infile
?': unvis(1) can be used to achieve that.

Approved by lukem@. And thanks to him for suggestions.
 1.7 05-Jan-2003  seb Fix usage message and SYNOPSIS section wrt to option O as suggested by wiz.
 1.6 29-Dec-2002  seb After discussion with lukem rename 's' option to 'O'.
Hopefully 's' option has been here only a couple of hours.
 1.5 29-Dec-2002  seb Fix error message for option `F' when passed a bogus argument.
Actually activate option `F' in getopt's optstring.
Implement option `s' to specify output field separator string.

Approved by lukem.
 1.4 22-Dec-2002  lukem fix -E endian
 1.3 11-Dec-2002  lukem some todo items
 1.2 11-Dec-2002  lukem - set cachesize to 1MB (instead of default 2.5KB); greatly improves
performance on large imports
- remove unnecessary asserts
 1.1 11-Dec-2002  lukem branches: 1.1.1;
Initial revision
 1.1.1.1 11-Dec-2002  lukem db(1) - manipulate db(3)'s btree(3) and hash(3) databases
 1.12.4.1 05-May-2005  riz Pull up revision 1.13 (requested by seb in ticket #1142):
When vis encoding with -S, only remove the trailing NUL if -N isn't used and
the item's size is > 0.
 1.15.10.1 18-May-2008  yamt sync with head.
 1.16.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.22.2.1 06-Feb-2009  snj Pull up following revision(s) (requested by lukem in ticket #404):
usr.bin/db/db.c: revision 1.24
Rework how reading keys functions so that key lookups from hash databases
works again. (I accidentally broke that in rev 1.15)
Fixes problem noted by Masao Uebayashi.
 1.25.2.1 17-Apr-2012  yamt sync with head

RSS XML Feed