sjg
008d7c831f
Add META_MODE support.
...
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
sjg
75a137820d
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
sjg
b137080f19
Merge from head@274682
2014-11-19 01:07:58 +00:00
ngie
70c01e4074
Integrate usr.bin/cmp/tests from NetBSD into atf/kyua
...
In collaboration with: sjg
Sponsored by: EMC / Isilon Storage Division
2014-10-09 00:50:33 +00:00
sjg
5860f0d106
Updated dependencies
2014-05-16 14:09:51 +00:00
sjg
1a7e48acf1
Updated dependencies
2014-05-10 05:16:28 +00:00
sjg
5e568154a0
Merge head
2014-04-28 07:50:45 +00:00
eadler
5e21fc1880
Bump .Dd for recent change
2013-11-18 23:11:42 +00:00
eadler
6d2e922ab9
Indicate which options are extensions to POSIX.
...
Inspired by: DragonFlyBSD
2013-11-18 22:53:24 +00:00
sjg
6d37b86f2b
Updated dependencies
2013-03-11 17:21:52 +00:00
sjg
0ee5295509
Updated dependencies
2013-02-16 01:23:54 +00:00
marcel
9dd41e3647
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
...
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
ed
a86a6f0c85
Add missing static keywords to cmp(1)
2011-11-06 08:14:16 +00:00
delphij
3eae894196
Eliminate unneeded headers.
2011-06-21 20:44:06 +00:00
joel
29af67e52c
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
delphij
0842b7d53f
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
delphij
b963db4652
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
charnier
3881e50cba
add __unused to succeed at WARNS=6
2008-07-10 13:26:46 +00:00
ru
b95ba6dd8d
Refine markup and add the EXIT STATUS section where appropriate.
2006-12-19 10:34:14 +00:00
ru
4de1ee30af
-mdoc sweep.
2005-11-18 10:36:29 +00:00
brian
8cf3c89522
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
murray
6210723d81
phk added the -x option in May 2000, but only for regular files; for
...
special files it was treated like -l. This commit adds the -x option
in for special files as well.
PR: bin/46249
Submitted by: Colin Percival <cperciva@sfu.ca>
2003-06-19 07:24:26 +00:00
das
3fa6bd360f
The cmp utility has the questionable feature of using mmap when
...
comparing regular files. Add a SIGSEGV handler to make its
behavior less surprising when a read error occurs. The handler
does not attempt to distinguish errors from file truncation, but
anyone actively modifying a file while trying to compare it
shouldn't even expect something sane to happen.
PR: 45391
Reviewed by: mike (mentor)
2003-02-26 06:44:46 +00:00
schweikh
86f7487fb6
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
dwmalone
6b76694948
ANSIify function definitions to avoid a warning.
2002-07-28 15:13:17 +00:00
tjr
586068906c
No need to check for "-" explicitly in getopt() loop.
2002-06-07 02:35:21 +00:00
tjr
c4d587cfbc
Exit >1 when an error occurs, regardless of whether -s is specified (SUSv3)
2002-06-07 02:30:56 +00:00
imp
74d826c7a6
remove __P
2002-03-22 01:22:50 +00:00
markm
ae2558974f
Remove leaf node WARNS?=2 (that mainly I added). This should
...
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
dwmalone
d9613ea383
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
dwmalone
2a38aa8ed1
Cast off_t to long long before printing. Use %ll instead of %q incase
...
long long and quad_t are not the same.
2001-12-03 20:56:16 +00:00
markm
155bbc12c7
Turn on WARNS=2.
...
Use __FBSDID().
2001-12-02 23:29:26 +00:00
dwmalone
3e00db61ef
Make filenames const to avoid a few warnings.
...
Add FreeBSD tags.
Reviewed by: cmp
2001-11-05 20:33:40 +00:00
dwmalone
c296aeaf7d
Don't use gcc -Wall flag. Add FreeBSD: line.
2001-11-05 20:27:17 +00:00
dwmalone
473a686e79
Make cmp work by mmapping chunks of a file, rather than the whole
...
file at one time.
PR: 24732
Submitted by: Andrew L. Neporada <andr@dgap.mipt.ru>
MFC after: 2 weeks
2001-11-04 21:31:16 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
sheldonh
ff63b77588
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
55485e0103
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
green
0cb8713619
Make cmp -s work properly if skip values are given. Also, exit(1)
...
is now exit(DIFF_EXIT).
PR: 18597
Submitted by: Anatoly Vorobey <mellon@pobox.com>
Committed at: Usenix terminal room
2000-06-20 20:28:40 +00:00
phk
f2836e8cf7
Oops, byte offset was as off_t.
2000-05-15 08:43:25 +00:00
phk
d529a5a010
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
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
green
a448a2abc0
Fix improper mmap length paramater which can result in improper behavior
...
or cmp crashing in specific cases.
1999-07-29 23:26:22 +00:00
imp
22f901a57c
More egcs warning fixes:
...
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int
o #ifdef 0 -> #if 0
Reviewed by: obrien and chuckr
1999-04-25 22:37:58 +00:00
archie
167c036e91
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
1998-12-06 22:58:23 +00:00
steve
57e422edf2
"EOF of file..." is written to stderr and not stdout.
...
PR: 6756
1998-05-26 00:39:12 +00:00
jlemon
34cfd5d300
Permit hex/octal parameters to cmp, to match what the manual page says.
...
PR: 3850, 3855
1997-08-19 14:34:04 +00:00
charnier
6b6d733955
Correct usage string. Program name converted to bold in man page.
1997-06-26 11:22:12 +00:00
imp
141381e1cb
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