Home | History | Annotate | Download | only in cksum
History log of /src/usr.bin/cksum/crc.c
RevisionDateAuthorComments
 1.22  18-Mar-2021  cheusov cksum: use POSIX type uint32_t instead of u_int32_t
 1.21  27-Apr-2020  martin Explicitly cast the number of bytes passed to crc_buf() to size_t, as
we made sure it is positive already.
Fixes the build.
 1.20  27-Apr-2020  riastradh Speed up cksum word-by-word with a 15 KB table generated dynamically.

(Really we could generate the main table dynamically too.)

From anonymous.
 1.19  29-Oct-2014  uebayasi Fix build.
 1.18  04-Sep-2006  dsl branches: 1.18.60;
Separate out the CRC functions in a manner that actually makes them useful
for other program binaries.
Fixes build of 'config' where I added code (commented out) to use the CRC
function - but didn't comment out the #include :-(
 1.17  05-Feb-2005  simonb De-register.
 1.16  12-Jan-2005  xtraeme * Kill __P()
* ANSIfy
* No parenthesis are needed around the return value
 1.15  20-Jun-2004  jmc 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
 1.14  20-Dec-2003  kleink branches: 1.14.2;
Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).
 1.13  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.12  31-Mar-2002  bjh21 branches: 1.12.2;
Protect __RCSID and __COPYRIGHT from being invoked if not defined.
 1.11  10-Nov-2001  mycroft Remove calculation of crc_total from here, making the routine approximately
twice as fast.
 1.10  21-Mar-2001  atatat 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.
 1.9  20-Mar-2001  atatat Rename the crc() function to ccrc() since that removes a compiler warning
when WARNS=2.
 1.8  17-Oct-1997  lukem WARNSify
 1.7  27-Feb-1996  jtc use const qualifer for crctab
 1.6  27-Feb-1996  cgd what's the point of having prototypes if they're not actually _used_
in the appropriate places? include extern.h in these files, and fix
up the bugs that its inclusion uncovered.
 1.5  26-Mar-1995  glass merged with 4.4Lite
 1.4  24-Dec-1994  cgd cksum uses 32-bit quantites, internally
 1.3  02-Nov-1993  cgd 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.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.2.1  21-Dec-2003  tron Pull up revision 1.14 (requested by kleink in ticket #1580):
Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).
 1.14.2.1  22-Jun-2004  tron Pull up revision 1.15 (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
 1.18.60.1  06-Mar-2015  snj Pull up following revision(s) (requested by mrg in ticket #572):
usr.bin/cksum/crc.c: revision 1.19
Fix build.

RSS XML Feed