Mariusz Zaborski
abdfa0b19c
Restrict stdin if it's not in use.
...
Reviewed by: emaste, cem
Differential Revision: https://reviews.freebsd.org/D8184
2016-10-07 19:02:13 +00:00
Mariusz Zaborski
a4e3fc54a0
Remove the duplicated code using Capsicum helpers.
...
Reviewed by: cem, ed, bapt, emaste
Differential Revision https://reviews.freebsd.org/D8140
2016-10-07 17:56:57 +00:00
Conrad Meyer
d36899d10f
Move sys/capsicum.h includes after types.h or param.h
...
This is not actually documented or even implied in style(9). Make the change
to match convention. Someone should document this convention in style(9).
Reported by: jhb
Sponsored by: EMC Dell Isilon
2016-09-19 20:43:03 +00:00
Conrad Meyer
e75a7302d3
cmp(1): Capsicumify
...
Reviewed by: allanjude, bapt, oshogbo
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D7912
2016-09-19 16:13:00 +00:00
Joel Dahl
da52b4caaf
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
2010-12-11 08:32:16 +00:00
Brian Somers
e1bfde1b04
Add a -h option to tell cmp not to follow symbolic links.
...
MFC after: 3 weeks
Sponsored by: Sophos/ActiveState
2005-08-23 13:13:13 +00:00
David Malone
f2e8e0dad7
ANSIify function definitions to avoid a warning.
2002-07-28 15:13:17 +00:00
Tim J. Robbins
6e473901a3
No need to check for "-" explicitly in getopt() loop.
2002-06-07 02:35:21 +00:00
Tim J. Robbins
c87180589e
Exit >1 when an error occurs, regardless of whether -s is specified (SUSv3)
2002-06-07 02:30:56 +00:00
Warner Losh
f1bb2cd2aa
remove __P
2002-03-22 01:22:50 +00:00
David Malone
9f5b04e925
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.
2001-12-10 21:13:08 +00:00
Mark Murray
6af414cb2e
Turn on WARNS=2.
...
Use __FBSDID().
2001-12-02 23:29:26 +00:00
David Malone
c5250ed112
Make filenames const to avoid a few warnings.
...
Add FreeBSD tags.
Reviewed by: cmp
2001-11-05 20:33:40 +00:00
Sheldon Hearn
1727cb4cae
Fix a bug introduced in rev 1.8, where special files ended up
...
being treated like regular files because of missing braces.
PR: 20143
2000-07-25 13:01:34 +00:00
Brian Somers
3e6902efc8
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>
2000-07-14 16:54:59 +00:00
Poul-Henning Kamp
e03983a32c
Let cmp(1) grow in -x option to print differences in contemporarry hex
...
format rather than the mixed decimal/octal format of -l.
2000-05-15 08:30:43 +00:00
Archie Cobbs
fa146c5335
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
1998-12-06 22:58:23 +00:00
Jonathan Lemon
1e17b9450c
Permit hex/octal parameters to cmp, to match what the manual page says.
...
PR: 3850, 3855
1997-08-19 14:34:04 +00:00
Philippe Charnier
f771f05273
Correct usage string. Program name converted to bold in man page.
1997-06-26 11:22:12 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Jordan K. Hubbard
e526625999
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
1994-08-20 11:14:07 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00