History log of /freebsd-10.1-release/usr.bin/cmp/cmp.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


# 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


# 149388 23-Aug-2005 brian

Add a -h option to tell cmp not to follow symbolic links.

MFC after: 3 weeks
Sponsored by: Sophos/ActiveState


# 100815 28-Jul-2002 dwmalone

ANSIify function definitions to avoid a warning.


# 97985 07-Jun-2002 tjr

No need to check for "-" explicitly in getopt() loop.


# 97984 07-Jun-2002 tjr

Exit >1 when an error occurs, regardless of whether -s is specified (SUSv3)


# 92920 21-Mar-2002 imp

remove __P


# 87628 10-Dec-2001 dwmalone

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


# 87241 02-Dec-2001 markm

Turn on WARNS=2.
Use __FBSDID().


# 86099 05-Nov-2001 dwmalone

Make filenames const to avoid a few warnings.
Add FreeBSD tags.

Reviewed by: cmp


# 63843 25-Jul-2000 sheldonh

Fix a bug introduced in rev 1.8, where special files ended up
being treated like regular files because of missing braces.

PR: 20143


# 63157 14-Jul-2000 brian

Add the -z flag to check file sizes first
Correct the cmp.1 usage message
Correct the -l/-s incompatibility message

Submitted by: Mark Knight <markk@knigma.org>


# 60583 15-May-2000 phk

Let cmp(1) grow in -x option to print differences in contemporarry hex
format rather than the mixed decimal/octal format of -l.


# 41568 06-Dec-1998 archie

Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


# 28421 19-Aug-1997 jlemon

Permit hex/octal parameters to cmp, to match what the manual page says.

PR: 3850, 3855


# 26957 26-Jun-1997 charnier

Correct usage string. Program name converted to bold in man page.


# 24360 29-Mar-1997 imp

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


# 2149 20-Aug-1994 jkh

I don't like what they did to cmp(1) in 4.4 Lite; now it whines all
the time, even with -s. Make cmp SHUT UP about non-existant files
when run with -s.
Submitted by: jkh


# 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