Commit Graph

19 Commits

Author SHA1 Message Date
kleink 4bd5e026a4 Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).
2003-12-20 23:41:38 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
atatat 9dfabd39b8 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 '
2002-10-18 20:30:12 +00:00
bjh21 8088602c68 Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-03-31 14:43:22 +00:00
atatat 157a88bcf0 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.
2001-03-21 03:16:38 +00:00
atatat 0d2c6226b0 Rename the crc() function to ccrc() since that removes a compiler warning
when WARNS=2.
2001-03-20 18:48:10 +00:00
atatat 61e4caef25 Add MD2, MD4, SHA1, and RMD160 support to cksum. Adding new hashes to
cksum(1) should now be easy.
2001-03-20 18:46:25 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
christos 35d2e40e99 fix nested extern 2001-02-05 01:39:27 +00:00
lukem 76da6c89a7 WARNSify 1997-10-17 11:36:51 +00:00
kleink 52a3f39615 POSIX.2 utilities must call setlocale(LC_ALL, ""); 1997-06-26 23:18:05 +00:00
thorpej 0941c04d45 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".
1997-01-30 01:10:32 +00:00
jtc 3e4b73c5a6 Sync with 4.4lite2 1995-09-02 05:45:13 +00:00
glass 7659edad1f merged with 4.4Lite 1995-03-26 04:55:22 +00:00
mycroft 92702177a0 Add sum(1) alias, per Matt Green. Various other cleanup. Someone should
finish the addition to the HISTORY section.
1995-01-15 06:43:49 +00:00
cgd 8020777591 cksum uses 32-bit quantites, internally 1994-12-24 16:02:45 +00:00
cgd 19f1d2d611 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.
1993-11-02 07:33:08 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00