The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / cksum

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Jun 25 02:22:42 2022 UTC (2 years, 9 months ago) by gutteridge
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, 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.51: preferred, colored
Changes since revision 1.51: +6 -3 lines
cksum.c: don't fault if the hash algorithm is fed invalid data

Addresses PR bin/56897 from RVP, who provided the patch.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Aug 25 23:03:01 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +13 -13 lines
cksum: remove trailing whitespace

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Aug 25 22:59:57 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
cksum: fix lint warning about wrong call to isspace

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Mar 18 18:12:35 2021 UTC (4 years, 1 month ago) by cheusov
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +6 -6 lines
cksum: use POSIX type uint32_t instead of u_int32_t

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jun 16 22:54:10 2015 UTC (9 years, 10 months ago) by christos
Branches: MAIN
CVS tags: 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4 lines
fix some error handling.

Revision 1.46.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 31 17:23:00 2014 UTC (10 years, 7 months ago) by riz
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +20 -11 lines
Pull up following revision(s) (requested by christos in ticket #73):
	usr.bin/cksum/cksum.1: revision 1.46
	usr.bin/cksum/cksum.1: revision 1.47
	usr.bin/cksum/cksum.c: revision 1.47
PR/49134: Kamil Rytarowski: Add -q flag.
New sentence, new line.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Aug 31 07:05:33 2014 UTC (10 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +20 -11 lines
PR/49134: Kamil Rytarowski: Add -q flag.

Revision 1.45.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:57 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +4 -5 lines
Rebase to HEAD as of a few days ago.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:42:43 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +4 -5 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Oct 18 20:47:06 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -5 lines
fix unused variable warnings

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Aug 29 14:12:29 2011 UTC (13 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +8 -8 lines
static + __dead

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Jan 2 09:42:51 2009 UTC (16 years, 3 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.43: preferred, colored
Changes since revision 1.43: +23 -30 lines
Clean up the usage display to match reality.
Allow 'sum' to take '-a algorithm', so that its usage matches 'cksum'.
Per discussion with Igor Sobrado resulting from PR 39658.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Oct 8 03:55:05 2008 UTC (16 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-5-base, 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-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, 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, matt-mips64-base2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -7 lines
use a const struct hash pointer

Revision 1.41.12.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:29:09 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:19:21 2008 UTC (16 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Jan 17 00:21:43 2007 UTC (18 years, 3 months ago) by hubertf
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-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-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -3 lines
Remove duplicate #includes
From Slava Semushin <slava.semushin@gmail.com>, via private mail

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Oct 30 20:22:54 2006 UTC (18 years, 5 months ago) by christos
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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -4 lines
kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Oct 22 16:14:07 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
use c99 initializer.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Sep 22 22:35:57 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -2 lines
PR/34584: Geoff C. Wing: cksum not closing filescriptors after finishing
processing files.
Applied patch, thanks!

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun May 7 12:22:55 2006 UTC (18 years, 11 months ago) by hubertf
Branches: MAIN
CVS tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +9 -4 lines
Be more liberal about whitespaces when verifying checksums.
This allows checking md5/sha1 shecksums generates on Linux, which
add more whitespace.

Based on patch by Jukka Salmi (j+nbsd at 2006 dot salmi dot ch)

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri May 5 22:07:22 2006 UTC (18 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -45 lines
remove -1, -2, -4, -5, -6, -m.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Apr 24 21:07:43 2006 UTC (19 years ago) by hubertf
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +16 -11 lines
Allow reading the checksum list from stdin if no file is given with -c.
This allows verifying the checksums e.g. after downloading a NetBSD
release:
		cat BSDSUM CKSUM MD5 SHA512 SYSVSUM | cksum -c

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Apr 24 19:41:41 2006 UTC (19 years ago) by hubertf
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +35 -24 lines
Try guessing hash types. Prefix output with hash type,
the output format was inspired by Linux & OpenBSD.

This now allows doing something like:

miyu% ( md4 *.c ; md5 *.c ; sha1 *.c ) > /tmp/x
miyu% md5 -c /tmp/x
miyu% cksum -c /tmp/x
miyu% echo $?
0
miyu% date >test.c
miyu% cksum -c /tmp/x
(MD4) test.c: FAILED
(MD5) test.c: FAILED
(SHA1) test.c: FAILED
miyu% echo $?
1

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Apr 23 16:40:16 2006 UTC (19 years ago) by hubertf
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +207 -32 lines
Add a switch "-c file" to verify a list of checksums generated by the
cksum program and stored in file against files on disk.  E.g. first
run "md5 *.tgz >MD5" to generate a list of MD5 checksums in MD5, then
use the following command to verify them use "md5 -c MD5"

Inspired by Linux' md5sum,
called for by Jukka Salmi <j+nbsd@2006.salmi.ch>on netbsd-help@,
reviewed by rui@.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jan 15 16:50:05 2006 UTC (19 years, 3 months ago) by elad
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -3 lines
sync usage().

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Sep 24 22:40:32 2005 UTC (19 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Use crypto/rmd160.h.

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 12 12:17:35 2005 UTC (19 years, 7 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +53 -6 lines
Apply patch (requested by elad in ticket #754):
- Deprecate -1, -2, -4, -5, -6, -m flags.
- Add -a <algorithm> flag.
- Support SHA2 hashing.
cksum(1) now supports ``sha256'', ``sha384'', and ``sha512''.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Sep 2 17:39:23 2005 UTC (19 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -4 lines
Avoid defining max. hash length ugliness simply by passing NULL for the
buffer to the File routines.

Noted by pooka@.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Sep 2 16:52:34 2005 UTC (19 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Forgot +1 for NUL termination.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Sep 2 16:52:03 2005 UTC (19 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Use MAXHASHLEN to indicate largest possible hash.
Fixes buffer overflow found by xtraeme@.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Aug 24 19:59:08 2005 UTC (19 years, 8 months ago) by elad
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +12 -2 lines
Add support for SHA2 in cksum.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Aug 21 19:33:10 2005 UTC (19 years, 8 months ago) by elad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -2 lines
Add comments about intentionally not documenting the deprecated -1, -2, -4,
-5, -6, and -m flags so they are not mistakenly get documented again in the
future.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Aug 21 18:51:44 2005 UTC (19 years, 8 months ago) by elad
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +33 -4 lines
Some changes to cksum:

1. Deprecate the -1, -2, -4, -5, -6, and -m flags. For now, simply remove
   them from the documentation.

2. Add and document ``-a algorithm''.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Feb 5 00:13:34 2005 UTC (20 years, 2 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
De-register.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jan 20 15:44:59 2005 UTC (20 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -5 lines
whitespace, remove main() prototype.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jan 12 17:04:35 2005 UTC (20 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +13 -20 lines
* Kill __P()
* ANSIfy
* No parenthesis are needed around the return value

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Jul 9 11:44:30 2004 UTC (20 years, 9 months ago) by wiz
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Add missing -n, -1, -2, -4, -5, and -6 to cksum usage.
From Kouichirou Hiratsuka in PR 26195.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:25:39 2004 UTC (20 years, 10 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base, 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, 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
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +6 -2 lines
Pull up revision 1.20 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:15 2004 UTC (20 years, 10 months ago) by jmc
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -2 lines
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 21 08:13:20 2003 UTC (21 years, 4 months ago) by tron
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +6 -5 lines
Pull up revision 1.19 (requested by kleink in ticket #1580):
Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 20 23:41:38 2003 UTC (21 years, 4 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -5 lines
Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:13:20 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +33 -3 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Oct 18 20:30:13 2002 UTC (22 years, 6 months ago) by atatat
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +21 -12 lines
Add a -n flag for the hash output forms, so that the output is
"normal", ie, "hash filename" (like all the simple checksum output
forms) as opposed to "hashname (filename) = hash".  This output form
is, imho, somewhat more useful because you can pass it directly to
sort to find identical files.  For example:

	md5 * | sort | uniq -c | grep -v ' 1 '

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Mar 31 14:43:22 2002 UTC (23 years ago) by bjh21
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Mar 21 03:16:38 2001 UTC (24 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
Apparently changing crc() to ccrc() was bad, since mtree does a reachover.
Revert ccrc() to crc() and change local variables called crc to thecrc
instead.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Mar 20 18:48:10 2001 UTC (24 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Rename the crc() function to ccrc() since that removes a compiler warning
when WARNS=2.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Mar 20 18:46:25 2001 UTC (24 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +134 -44 lines
Add MD2, MD4, SHA1, and RMD160 support to cksum.  Adding new hashes to
cksum(1) should now be easy.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Feb 19 23:03:45 2001 UTC (24 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -6 lines
convert to use getprogname()

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Feb 5 01:39:27 2001 UTC (24 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -3 lines
fix nested extern

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Oct 17 11:36:59 1997 UTC (27 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -8 lines
WARNSify

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jun 26 23:24:01 1997 UTC (27 years, 10 months ago) by kleink
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -2 lines
POSIX.2 utilities must call setlocale(LC_ALL, "");

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jan 30 01:10:34 1997 UTC (28 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +91 -12 lines
Add support for generating MD5 checksums, partially derived from the
FreeBSD md5(1) program.  MD5 checksums may be generated by using the
"-m" flag to cksum, or by invoking this program as "md5".

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Sep 2 05:45:18 1995 UTC (29 years, 7 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -5 lines
Sync with 4.4lite2

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Sep 2 05:39:35 1995 UTC (29 years, 7 months ago) by jtc
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +27 -18 lines
imported from 44lite2

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Mar 26 05:15:17 1995 UTC (30 years, 1 month ago) by glass
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -2 lines
merged with 4.4Lite

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 26 04:58:40 1995 UTC (30 years, 1 month ago) by glass
Branches: WFJ-920714, CSRG
CVS tags: lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +16 -12 lines
Import from 4.4Lite

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 15 06:43:52 1995 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +22 -15 lines
Add sum(1) alias, per Matt Green.  Various other cleanup.  Someone should
finish the addition to the HISTORY section.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Dec 24 16:02:45 1994 UTC (30 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
cksum uses 32-bit quantites, internally

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:33:10 1993 UTC (31 years, 5 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +17 -13 lines
update to the latest cksum utility from uunet.  this one is posix
compliant (i think), and fixes a bogon in the old CRC calculation.
yes, that's right, the CRC's it generates are different.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:17:48 1993 UTC (31 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Add RCS identifiers.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
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>