summaryrefslogtreecommitdiff
path: root/usr.bin/db
AgeCommit message (Collapse)Author
2022-08-10db(1): Don't lie in the usage message re: `-q`charlotte
2022-08-09PR bin/51878: db(1)'s man page to describe the actual behavior of '-q'charlotte
2021-08-25db: fix lint warnings about wrong call to ctype functionsrillig
2012-02-17Fix typo. Bump date for previous.wiz
2012-02-17The "-N" command line option means "include the terminating NUL byte",apb
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.
2012-02-17db(1) "-N" flag means "Include the NUL byte at the end of the keyapb
or value". (Previously, the description was reversed.) Also expand the description. This is the first half of a fix for PR 46035.
2011-09-01static + __deadjoerg
2009-04-14Enable WARNS=4 by default for usr.bin, except for:lukem
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
2009-01-28Bump date for previous.wiz
2009-01-28Rework how reading keys functions so that key lookups from hash databaseslukem
works again. (I accidentally broke that in rev 1.15) Fixes problem noted by Masao Uebayashi.
2009-01-28update documentation to reflect reality:lukem
* read mode supports -D for btree * all modes support -U
2009-01-18fix -Wsign-compare issueslukem
2008-10-07Explicitly pull in "nbtool_config.h" if available.lukem
Fixes tools/db build, as reported by Matthias Scheler.
2008-10-07Fail with a non-zero exit code if deleting a non-existant key.lukem
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.
2008-09-05Sort SEE ALSO.wiz
Remove unnecessary Bk/Ek in SYNOPSIS.
2008-09-05crank to WARNS=4lukem
2008-09-05Add -P pagesize, to tune the btree psize and hash bsize.lukem
Set to 0 to let the system choose (based on st_blksize of the file) Defaults to 4096.
2008-09-05Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or writelukem
2008-09-05Fix -N so that it sets O_TRUNC in the flags to pass to dbopen(3)lukem
and not the flags used by db(1) to control internal behaviour.
2008-09-04Support -Th to enable VIS_HTTPSTYLE.lukem
Expand description of -T so there's less need to consult both vis(1) and strvis(3) to determine what the characters mean.
2008-04-30Convert TNF licenses to new 2 clause variantmartin
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-12-27Comment out xref to makemap(8), which does not exist.wiz
2007-05-28Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls
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.
2007-04-03* Support reading multiple keys with the same name if '-D' is given,lukem
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.
2005-06-20Allow the input [file] field separator to be a string and not just alukem
single character. Use argument-specific value names in the usage string & manual page to simplify searching for the value's use.
2004-10-04When vis encoding with -S, only remove the trailing NUL if -N isn't used andlukem
the item's size is > 0.
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
to be the most common practice in our tree.
2003-10-16safer use of reallocitojun
2003-06-26Add another Ns to avoid a space.wiz
2003-06-26Add Ns to avoid a space.wiz
2003-06-23add missing #ifdef __RCSIDaymeric
(these files are compiled as host tools) from Nicolas Ollinger, fixes PR#21892
2003-05-20Sync usage with man page; break to 80 chars/line.wiz
2003-05-20More option sorting; sync -f argument name with db.c.wiz
2003-05-20Sort options. New sentence, new line.wiz
2003-05-19Bump date for last change.seb
2003-05-19Add option -S to specify strvis(3) encoding of keys and/or valuesseb
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.
2003-05-18-N also prevents NUL termination of valuelukem
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-02-14The correct capitalisation of 'NetBSD.org' is (yougrant
guessed it) 'NetBSD.org'. some mdoc fixes.
2003-01-19The next release will be 2.0, not 1.7.atatat
2003-01-05Fix usage message and SYNOPSIS section wrt to option O as suggested by wiz.seb
2002-12-29After discussion with lukem rename 's' option to 'O'.seb
Hopefully 's' option has been here only a couple of hours.
2002-12-29Fix error message for option `F' when passed a bogus argument.seb
Actually activate option `F' in getopt's optstring. Implement option `s' to specify output field separator string. Approved by lukem.
2002-12-22fix -E endianlukem
2002-12-22document defaultslukem
2002-12-18Drop trailing whitespace, use Aq instead of Lt and Gt.wiz
2002-12-11some todo itemslukem
2002-12-11- set cachesize to 1MB (instead of default 2.5KB); greatly improveslukem
performance on large imports - remove unnecessary asserts
2002-12-11db(1) - manipulate db(3)'s btree(3) and hash(3) databaseslukem