summaryrefslogtreecommitdiffstats
path: root/usr.bin/cksum
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-201-0/+3
| | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-1/+1
| | | | | | | | | | 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.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-117-28/+0
| | | | | | | | | 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
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-135-1/+4
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-115-4/+1
| | | | Tested with: make universe
* Change a use of u_int32_t to uint32_t.brooks2008-05-151-1/+1
| | | | | | PR: bin/93172 Submitted by: Robert Millan <rmh at aybabtu dot com> MFC after: 1 week
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* - For variables holding offset values, use off_t rather thanrobert2003-03-137-41/+57
| | | | | | | | | | | | | | | | 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-286-25/+9
|
* Consistently use FBSDIDobrien2002-06-306-14/+12
|
* remove __Pimp2002-03-222-10/+10
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* WARNS=2 fixup.markm2001-12-027-34/+44
| | | | kill 'register' keyword.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-5/+1
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* mdoc(7) police: Change -filled displays (which just happenru2001-02-071-1/+1
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* mdoc(7) police: fixed broken references.ru2001-01-161-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-271-8/+1
|
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Minimal use of .Ar and .Nm.charnier1999-12-057-20/+38
| | | | | | | | 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.
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Some man page cleanup. Make the NAME and SYNOPSIS sections agree sompp1999-06-241-2/+3
| | | | | | that whatis(1) will produce the expected results. Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).archie1998-12-065-4/+5
|
* 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-107-29/+31
| | | | | 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
|
* Document the ``-o 3'' option.obrien1997-11-091-2/+9
| | | | The Man award to: Jo"rg
* Need to skip argv[0] when we are named "sum".obrien1997-11-091-1/+2
|
* When called "sum", it is not documented as accepting any arguments.obrien1997-11-091-23/+23
|
* Add canonical 32bit crc as alorithm 3.phk1997-09-265-3/+127
| | | | | | PR: 4615 Reviewed by: phk Submitted by: Mike Meyer <mwm@shiva.the-park.com>
* Default to `cksum' instead of to `sum' for unusual program names.bde1997-07-061-7/+10
| | | | Mention `sum' in the usage message.
* Merge from Lite2 (make the command `sum' an alias for `cksum -o 1', andbde1997-07-062-14/+37
| | | | reject -o args other than "1" or "2").
* This commit was generated by cvs2svn to compensate for changes in r27219,bde1997-07-061-1/+3
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Lite2's src/usr.bin/cksum. The Makefile is still on the vendorbde1997-07-063-22/+45
| | | | | | | | branch and will temporarily give bogus hard links cksum[.1] -> sum[.1].
* | Update manpage to newer version. Use err(3).charnier1997-06-252-19/+20
| |
* | add md5(1) to SEE ALSO section.jmg1997-04-291-1/+3
| | | | | | | | | | Closes PR#3409 Submitted-by: Josh Gilliam
* | ``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)jmg1997-04-271-6/+7
| | | | | | | | | | add missing Id's other minor clean ups
* | compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
|/ | | | posix standard on the topic.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-278-0/+692
OpenPOWER on IntegriCloud