History log of /freebsd-10.1-release/usr.bin/cksum/cksum.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 229403 03-Jan-2012 ed

Replace index() and rindex() calls with strchr() and strrchr().

The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 179024 15-May-2008 brooks

Change a use of u_int32_t to uint32_t.

PR: bin/93172
Submitted by: Robert Millan <rmh at aybabtu dot com>
MFC after: 1 week


# 112212 13-Mar-2003 robert

- For variables holding offset values, use off_t rather than
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


# 100815 28-Jul-2002 dwmalone

ANSIify function definitions to avoid a warning.


# 99112 30-Jun-2002 obrien

Consistently use FBSDID


# 92920 21-Mar-2002 imp

remove __P


# 87212 02-Dec-2001 markm

WARNS=2 fixup.
kill 'register' keyword.


# 78718 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


# 54162 05-Dec-1999 charnier

Minimal use of .Ar and .Nm.
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.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 34447 10-Mar-1998 jb

cksum does a 32-bit checksum, so it needs to use u_int32_t variables,
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.


# 31056 09-Nov-1997 obrien

Need to skip argv[0] when we are named "sum".


# 31054 09-Nov-1997 obrien

When called "sum", it is not documented as accepting any arguments.


# 29868 26-Sep-1997 phk

Add canonical 32bit crc as alorithm 3.

PR: 4615
Reviewed by: phk
Submitted by: Mike Meyer <mwm@shiva.the-park.com>


# 27223 06-Jul-1997 bde

Default to `cksum' instead of to `sum' for unusual program names.
Mention `sum' in the usage message.


# 27222 06-Jul-1997 bde

Merge from Lite2 (make the command `sum' an alias for `cksum -o 1', and
reject -o args other than "1" or "2").


# 26922 25-Jun-1997 charnier

Update manpage to newer version. Use err(3).


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources