Revision tags: release/4.6.1, release/4.6.0_cvs |
|
#
f1bb2cd2 |
| 22-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
9f5b04e9 |
| 10-Dec-2001 |
David Malone <dwmalone@FreeBSD.org> |
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 c
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.
show more ...
|
#
5748d9ba |
| 03-Dec-2001 |
David Malone <dwmalone@FreeBSD.org> |
Cast off_t to long long before printing. Use %ll instead of %q incase long long and quad_t are not the same.
|
#
6af414cb |
| 03-Dec-2001 |
Mark Murray <markm@FreeBSD.org> |
Turn on WARNS=2. Use __FBSDID().
|
#
c5250ed1 |
| 05-Nov-2001 |
David Malone <dwmalone@FreeBSD.org> |
Make filenames const to avoid a few warnings. Add FreeBSD tags.
Reviewed by: cmp
|
#
60b49f05 |
| 04-Nov-2001 |
David Malone <dwmalone@FreeBSD.org> |
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
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs |
|
#
84ad3d8f |
| 20-Jun-2000 |
Brian Feldman <green@FreeBSD.org> |
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
|
#
78cb0ab4 |
| 15-May-2000 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Oops, byte offset was as off_t.
|
#
e03983a3 |
| 15-May-2000 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Let cmp(1) grow in -x option to print differences in contemporarry hex format rather than the mixed decimal/octal format of -l.
|
Revision tags: release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs |
|
#
ac022265 |
| 30-Jul-1999 |
Brian Feldman <green@FreeBSD.org> |
Fix improper mmap length paramater which can result in improper behavior or cmp crashing in specific cases.
|
Revision tags: release/3.2.0 |
|
#
96846ff6 |
| 26-Apr-1999 |
Warner Losh <imp@FreeBSD.org> |
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
R
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
show more ...
|
Revision tags: release/3.1.0, release/3.0.0, release/2.2.8 |
|
#
fa146c53 |
| 06-Dec-1998 |
Archie Cobbs <archie@FreeBSD.org> |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
|
Revision tags: release/2.2.7, release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1 |
|
#
8abdc2eb |
| 16-Jan-1997 |
Alexander Langer <alex@FreeBSD.org> |
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). - Fixe
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
show more ...
|
#
c28065c6 |
| 08-Jan-1997 |
Joerg Wunsch <joerg@FreeBSD.org> |
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 reporte
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.
show more ...
|
#
2ae09ad8 |
| 11-Dec-1996 |
John Dyson <dyson@FreeBSD.org> |
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.
|
Revision tags: release/2.1.5_cvs, release/2.1.0_cvs, release/2.0.5_cvs, release/2.0, release/1.1.5.1_cvs |
|
#
9b50d902 |
| 27-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite Usr.bin Sources
|
Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0 |
|
#
821df508 |
| 13-Dec-2009 |
Xin LI <delphij@FreeBSD.org> |
Revert most part of 200420 as requested, as more review and polish is needed.
|
#
6f2d3221 |
| 12-Dec-2009 |
Xin LI <delphij@FreeBSD.org> |
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
|
Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
dd999839 |
| 10-Jul-2008 |
Philippe Charnier <charnier@FreeBSD.org> |
add __unused to succeed at WARNS=6
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0 |
|
#
d4890512 |
| 26-Feb-2003 |
David Schultz <das@FreeBSD.org> |
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 at
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)
show more ...
|
Revision tags: release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2 |
|
#
f2e8e0da |
| 28-Jul-2002 |
David Malone <dwmalone@FreeBSD.org> |
ANSIify function definitions to avoid a warning.
|
Revision tags: release/4.6.1, release/4.6.0_cvs |
|
#
f1bb2cd2 |
| 22-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
9f5b04e9 |
| 10-Dec-2001 |
David Malone <dwmalone@FreeBSD.org> |
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 c
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.
show more ...
|
#
5748d9ba |
| 03-Dec-2001 |
David Malone <dwmalone@FreeBSD.org> |
Cast off_t to long long before printing. Use %ll instead of %q incase long long and quad_t are not the same.
|
#
6af414cb |
| 03-Dec-2001 |
Mark Murray <markm@FreeBSD.org> |
Turn on WARNS=2. Use __FBSDID().
|