314425 |
28-Feb-2017 |
asomers |
MFC r311572, r311895, r311928, r311985, r312395, r312417
r311572: Fix file descriptor leaks in cmp(1)
Also, add a few test cases
Reported by: Coverity CID: 271624 275338 Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9074
r311895: Fix memory leaks during "tail -r" of an irregular file
* Rewrite r_buf to use standard tail queues instead of a hand-rolled circular linked list. Free dynamic allocations when done. * Remove an optimization for the case where the file is a multiple of 128KB in size and there is a scarcity of memory. * Add ATF tests for "tail -r" and its variants.
Reported by: Valgrind Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9067
r311928: Fix build of usr.bin/tail with GCC
Submitted by: pluknet Reported by: pluknet MFC after: 27 days X-MFC-with: 311895 Sponsored by: Spectra Logic Corp
r311985: Fix uninitialized variable CIDs in route6d
The variables in question are actually return arguments, but it's still good form to initialize them.
Reported by: Coverity CID: 979679 979680 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
r312395: Fix several Coverity CIDs in devd
CID 1362055, 1362054: File descriptor leaks during shutdown CID 1362013: Potential null-termination fail with long network device names CID 1362097: Uncaught exception during memory pressure CID 1362017, 1362016: Unchecked errors, possibly resulting in weird behavior if two devd instances start at the same time. CID 1362015: Unchecked error that will probably never fail
Reported by: Coverity CID: 1362055 1362054 1362013 1362097 1362017 1362016 1362015 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
r312417: Fix build of devd with GCC 4.2
Reported by: olivier Pointy-hat-to: asomers MFC after: 27 days X-MFC-with: 312395 Sponsored by: Spectra Logic Corp |
313488 |
09-Feb-2017 |
ngie |
MFC r289172,r290254:
r289172:
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity
r290254:
Remove unused variable (SRCDIR) |
276490 |
01-Jan-2015 |
ngie |
MFC r272777,r272779,r272780,r272781,r272782,r272783,r272784,r272787,r272788:
r272777:
Integrate usr.sbin/nmtree/tests from NetBSD into atf/kyua
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
r272779:
Integrate usr.sbin/basename/tests from NetBSD into atf/kyua
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
r272780:
Integrate usr.bin/cmp/tests from NetBSD into atf/kyua
In collaboration with: sjg Sponsored by: EMC / Isilon Storage Division
r272781:
Integrate usr.bin/dirname/tests from NetBSD into atf/kyua
In collaboration with: pho, sjg Sponsored by: EMC / Isilon Storage Division
r272782:
Integrate bin/sleep/tests from NetBSD into atf/kyua
Sponsored by: EMC / Isilon Storage Division
r272783:
Integrate usr.bin/cut/tests from NetBSD into atf/kyua
Sponsored by: EMC / Isilon Storage Division
r272784:
Integrate usr.bin/grep/tests from NetBSD into atf/kyua
Sponsored by: EMC / Isilon Storage Division
r272787:
Integrate usr.bin/diff/tests from NetBSD into atf/kyua at gnu/usr.bin/diff/tests
Sponsored by: EMC / Isilon Storage Division
r272788:
Integrate usr.bin/gzip/tests from NetBSD into atf/kyua
Sponsored by: EMC / Isilon Storage Division |
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
|
227156 |
06-Nov-2011 |
ed |
Add missing static keywords to cmp(1)
|
223376 |
21-Jun-2011 |
delphij |
Eliminate unneeded headers.
|
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
|
200462 |
13-Dec-2009 |
delphij |
Revert most part of 200420 as requested, as more review and polish is needed.
|
200420 |
11-Dec-2009 |
delphij |
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
|
180426 |
10-Jul-2008 |
charnier |
add __unused to succeed at WARNS=6
|
165345 |
19-Dec-2006 |
ru |
Refine markup and add the EXIT STATUS section where appropriate.
|
152568 |
18-Nov-2005 |
ru |
-mdoc sweep.
|
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
|
116572 |
19-Jun-2003 |
murray |
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>
|
111538 |
26-Feb-2003 |
das |
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)
|
108470 |
30-Dec-2002 |
schweikh |
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ Add FreeBSD Id tag where missing.
|
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 |
22-Mar-2002 |
imp |
remove __P
|
90415 |
08-Feb-2002 |
markm |
Remove leaf node WARNS?=2 (that mainly I added). This should help the GCC3 transition and CURRENT in general.
|
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.
|
87282 |
03-Dec-2001 |
dwmalone |
Cast off_t to long long before printing. Use %ll instead of %q incase long long and quad_t are not the same.
|
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
|
86098 |
05-Nov-2001 |
dwmalone |
Don't use gcc -Wall flag. Add FreeBSD: line.
|
86044 |
04-Nov-2001 |
dwmalone |
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
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
68963 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
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>
|
61883 |
20-Jun-2000 |
green |
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
|
60586 |
15-May-2000 |
phk |
Oops, byte offset was as off_t.
|
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.
|
50477 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49235 |
29-Jul-1999 |
green |
Fix improper mmap length paramater which can result in improper behavior or cmp crashing in specific cases.
|
46081 |
25-Apr-1999 |
imp |
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
|
41568 |
06-Dec-1998 |
archie |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
|
36385 |
26-May-1998 |
steve |
"EOF of file..." is written to stderr and not stdout.
PR: 6756
|
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.
|
23012 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
21786 |
16-Jan-1997 |
alex |
Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present.
Discussed with: bde
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21429 |
08-Jan-1997 |
joerg |
Our mmap(2) has a limitation where the `offset' parameter must be page-aligned. cmp(1) should know about this flaw, and work around it.
While i was at it, fixed an uninitialized variable as reported by -Wall.
|
20312 |
11-Dec-1996 |
dyson |
When mmap is used, do an madvise(MADV_SEQUENTIAL) to make things go much more quickly when file input is really done. Of course, the fully cached case will make no difference.
|
17891 |
29-Aug-1996 |
wosch |
[HISTORY] command appeared in Version 1 AT&T UNIX Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
|
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.
|