The NetBSD Project

CVS log for src/usr.bin/db/db.c

[BACK] Up to [cvs.netbsd.org] / src / usr.bin / db

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:30 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 17 11:37:33 2012 UTC (3 months, 1 week ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, HEAD
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored)

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.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Sep 1 13:25:02 2011 UTC (8 months, 3 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6
Branch point for: yamt-pagecache
Changes since 1.24: +32 -33 lines
Diff to previous 1.24 (colored)

static + __dead

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Fri Feb 6 00:45:43 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.22: +57 -22 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

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.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 28 05:48:49 2009 UTC (3 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.23: +57 -22 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jan 18 01:04:34 2009 UTC (3 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

fix -Wsign-compare issues

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 7 10:03:47 2008 UTC (3 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.21: +6 -2 lines
Diff to previous 1.21 (colored)

Explicitly pull in "nbtool_config.h" if available.
Fixes tools/db build, as reported by Matthias Scheler.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 7 01:32:51 2008 UTC (3 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.20: +18 -9 lines
Diff to previous 1.20 (colored)

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.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:29:10 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.16: +59 -28 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 5 07:55:33 2008 UTC (3 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.19: +38 -18 lines
Diff to previous 1.19 (colored)

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.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 5 05:04:40 2008 UTC (3 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.18: +16 -12 lines
Diff to previous 1.18 (colored)

Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or write

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 5 03:41:35 2008 UTC (3 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Sep 4 09:54:56 2008 UTC (3 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.16: +10 -3 lines
Diff to previous 1.16 (colored)

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.

Revision 1.15.10.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:04 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:12 2008 UTC (4 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 3 04:52:32 2007 UTC (5 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.14: +35 -15 lines
Diff to previous 1.14 (colored)

* 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.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 20 02:53:38 2005 UTC (6 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.13: +37 -34 lines
Diff to previous 1.13 (colored)

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.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Thu May 5 19:31:51 2005 UTC (7 years ago) by riz
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.12: +16 -15 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 4 10:56:12 2004 UTC (7 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.12: +16 -15 lines
Diff to previous 1.12 (colored)

When vis encoding with -S, only remove the trailing NUL if -N isn't used and
the item's size is > 0.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:34 2004 UTC (8 years, 4 months ago) by jmmv
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 16 06:47:22 2003 UTC (8 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored)

safer use of realloc

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 23 20:02:54 2003 UTC (8 years, 11 months ago) by aymeric
Branch: MAIN
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

add missing #ifdef __RCSID
(these files are compiled as host tools)
from Nicolas Ollinger, fixes PR#21892

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 20 08:34:52 2003 UTC (9 years ago) by wiz
Branch: MAIN
Changes since 1.8: +11 -10 lines
Diff to previous 1.8 (colored)

Sync usage with man page; break to 80 chars/line.

Revision 1.8 / (download) - annotate - [select for diffs], Mon May 19 00:27:07 2003 UTC (9 years ago) by seb
Branch: MAIN
Changes since 1.7: +199 -35 lines
Diff to previous 1.7 (colored)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 5 13:07:38 2003 UTC (9 years, 4 months ago) by seb
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

Fix usage message and SYNOPSIS section wrt to option O as suggested by wiz.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 29 18:42:49 2002 UTC (9 years, 4 months ago) by seb
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.5: +9 -9 lines
Diff to previous 1.5 (colored)

After discussion with lukem rename 's' option to 'O'.
Hopefully 's' option has been here only a couple of hours.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 29 11:17:04 2002 UTC (9 years, 4 months ago) by seb
Branch: MAIN
Changes since 1.4: +13 -8 lines
Diff to previous 1.4 (colored)

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.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 22 11:26:20 2002 UTC (9 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

fix  -E endian

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 11 14:33:15 2002 UTC (9 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.2: +9 -3 lines
Diff to previous 1.2 (colored)

some todo items

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 11 14:30:53 2002 UTC (9 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.1: +4 -6 lines
Diff to previous 1.1 (colored)

- set cachesize to 1MB (instead of default 2.5KB); greatly improves
  performance on large imports
- remove unnecessary asserts

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Dec 11 13:43:16 2002 UTC (9 years, 5 months ago) by lukem
Branch: TNF
CVS Tags: db-20021212
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

db(1) - manipulate db(3)'s btree(3) and hash(3) databases

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 11 13:43:16 2002 UTC (9 years, 5 months ago) by lukem
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>