summaryrefslogtreecommitdiffstats
path: root/usr.bin/cksum/crc32.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* - For variables holding offset values, use off_t rather thanrobert2003-03-131-9/+10
| | | | | | | | | | | | | | | | int, long int or u_int32_t. This changes the interface of all the CRC calculation and output functions from cksum. - Print variables of type off_t as intmax_t using a cast and %jd. - Use the standardized uint32_t type instead of u_int32_t. To have uint32_t defined, include <stdint.h> where necessary. Style(9): - Move #include directives where they belong (esp. crc32.c). - Add empty lines between #include directives of system headers, standard library headers and local headers. - Test a pointer value against NULL. - Put a space after the return keyword. PR: bin/48424
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-3/+1
|
* Consistently use FBSDIDobrien2002-06-301-4/+2
|
* WARNS=2 fixup.markm2001-12-021-4/+6
| | | | kill 'register' keyword.
* Minimal use of .Ar and .Nm.charnier1999-12-051-0/+5
| | | | | | | | Add section number to .Xr reference. Add DIAGNOSTICS section name. Remove unused #includes. Be consistant in the parsing of flags and add missing option in usage string. Add rcsid.
* Avoid infinite loop if read() fails consistently.des1998-09-161-1/+1
| | | | | PR: misc/7926 Submitted by: Sergey Potapov <sp@alkor.ru>
* cksum does a 32-bit checksum, so it needs to use u_int32_t variables,jb1998-03-101-4/+6
| | | | | not u_long. With this change, cksum stops core dumping on alpha (not a good sign!) and actually computes the same values as it does on i386.
* -Wall cleanup.alex1997-12-291-2/+3
|
* Add canonical 32bit crc as alorithm 3.phk1997-09-261-0/+115
PR: 4615 Reviewed by: phk Submitted by: Mike Meyer <mwm@shiva.the-park.com>
OpenPOWER on IntegriCloud