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


Keyword substitution: kv
Default branch: MAIN


Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Aug 10 00:28:00 2022 UTC (2 years, 4 months ago) by charlotte
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
db(1): Don't lie in the usage message re: `-q`

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Aug 25 23:11:51 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -6 lines
db: fix lint warnings about wrong call to ctype functions

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:30 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +6 -6 lines
sync with head

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Feb 17 11:37:33 2012 UTC (12 years, 9 months ago) by apb
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -6 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 1 13:25:02 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +32 -33 lines
static + __dead

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 6 00:45:43 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +57 -22 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 28 05:48:49 2009 UTC (15 years, 10 months ago) by lukem
Branches: 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
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +57 -22 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 18 01:04:34 2009 UTC (15 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
fix -Wsign-compare issues

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Oct 7 10:03:47 2008 UTC (16 years, 2 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: netbsd-5
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -2 lines
Explicitly pull in "nbtool_config.h" if available.
Fixes tools/db build, as reported by Matthias Scheler.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Oct 7 01:32:51 2008 UTC (16 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +18 -9 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 18 04:29:10 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +59 -28 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Sep 5 07:55:33 2008 UTC (16 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +38 -18 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 5 05:04:40 2008 UTC (16 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -12 lines
Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or write

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Sep 5 03:41:35 2008 UTC (16 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 4 09:54:56 2008 UTC (16 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +10 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 12:36:04 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +2 -9 lines
sync with head.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:12 2008 UTC (16 years, 7 months ago) by martin
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Apr 3 04:52:32 2007 UTC (17 years, 8 months ago) by lukem
Branches: 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +35 -15 lines
* 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 - view: text, markup, annotated - select for diffs
Mon Jun 20 02:53:38 2005 UTC (19 years, 5 months ago) by lukem
Branches: 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
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +37 -34 lines
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 - view: text, markup, annotated - select for diffs
Thu May 5 19:31:51 2005 UTC (19 years, 7 months ago) by riz
Branches: 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
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +16 -15 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 4 10:56:12 2004 UTC (20 years, 2 months ago) by lukem
Branches: 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
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +16 -15 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 5 23:23:34 2004 UTC (20 years, 11 months ago) by jmmv
Branches: 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 16 06:47:22 2003 UTC (21 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -3 lines
safer use of realloc

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 23 20:02:54 2003 UTC (21 years, 5 months ago) by aymeric
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -2 lines
add missing #ifdef __RCSID
(these files are compiled as host tools)
from Nicolas Ollinger, fixes PR#21892

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue May 20 08:34:52 2003 UTC (21 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +11 -10 lines
Sync usage with man page; break to 80 chars/line.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon May 19 00:27:07 2003 UTC (21 years, 6 months ago) by seb
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +199 -35 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 5 13:07:38 2003 UTC (21 years, 11 months ago) by seb
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5 lines
Fix usage message and SYNOPSIS section wrt to option O as suggested by wiz.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 29 18:42:49 2002 UTC (21 years, 11 months ago) by seb
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -9 lines
After discussion with lukem rename 's' option to 'O'.
Hopefully 's' option has been here only a couple of hours.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Dec 29 11:17:04 2002 UTC (21 years, 11 months ago) by seb
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -8 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 22 11:26:20 2002 UTC (21 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
fix  -E endian

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Dec 11 14:33:15 2002 UTC (22 years ago) by lukem
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -3 lines
some todo items

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Dec 11 14:30:53 2002 UTC (22 years ago) by lukem
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -6 lines
- set cachesize to 1MB (instead of default 2.5KB); greatly improves
  performance on large imports
- remove unnecessary asserts

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Wed Dec 11 13:43:16 2002 UTC (22 years ago) by lukem
Branches: TNF
CVS tags: db-20021212
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
db(1) - manipulate db(3)'s btree(3) and hash(3) databases

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 13:43:16 2002 UTC (22 years ago) by lukem
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>