aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r1.10 : add the -x option for special files.Murray Stokely2003-07-101-1/+5
| | | | Notes: svn path=/stable/4/; revision=117378
* MFC: Various whitespace, gammar, and spelling fixes.Tom Rhodes2003-02-241-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/stable/4/; revision=111444
* Sync with -current:David Malone2001-11-216-24/+68
| | | | | | | | | | Make cmp work by mmapping chunks of a file. Don't use gcc -Wall flag. Make filenames const to avoid a few warnings. Add FreeBSD tags. Notes: svn path=/stable/4/; revision=86719
* MFC: remove whitespace at EOL.Dima Dorfman2001-07-221-2/+2
| | | | Notes: svn path=/stable/4/; revision=80147
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2000-12-081-7/+7
| | | | Notes: svn path=/stable/4/; revision=69768
* MFC rev 1.9: add missing bracesSheldon Hearn2000-07-251-1/+2
| | | | Notes: svn path=/stable/4/; revision=63844
* MFC: add -z, correct usage and a diagnosticBrian Somers2000-07-172-5/+19
| | | | | | | Requested by: obrien Notes: svn path=/stable/4/; revision=63356
* MFC:Paul Saab2000-07-021-4/+4
| | | | | | | | [rev 1.9] Fix warning I should have caught in the previous commit. [rev 1.10] Make cmp -s work properly if skip values are given. Notes: svn path=/stable/4/; revision=62392
* MFC: Let cmp(1) grow in -x option to print differences in contemporarryPaul Saab2000-07-024-4/+25
| | | | | | | hex format rather than the mixed decimal/octal format of -l. Notes: svn path=/stable/4/; revision=62379
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fix improper mmap length paramater which can result in improper behaviorBrian Feldman1999-07-291-7/+9
| | | | | | | or cmp crashing in specific cases. Notes: svn path=/head/; revision=49235
* More egcs warning fixes:Warner Losh1999-04-252-3/+6
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=46081
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-065-5/+6
| | | | Notes: svn path=/head/; revision=41568
* "EOF of file..." is written to stderr and not stdout.Steve Price1998-05-261-2/+2
| | | | | | | PR: 6756 Notes: svn path=/head/; revision=36385
* Permit hex/octal parameters to cmp, to match what the manual page says.Jonathan Lemon1997-08-191-2/+2
| | | | | | | PR: 3850, 3855 Notes: svn path=/head/; revision=28421
* Correct usage string. Program name converted to bold in man page.Philippe Charnier1997-06-262-5/+7
| | | | Notes: svn path=/head/; revision=26957
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23012
* Sweep through the tree fixing mmap() usage:Alexander Langer1997-01-161-2/+2
| | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=21786
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Our mmap(2) has a limitation where the `offset' parameter must beJoerg Wunsch1997-01-082-3/+13
| | | | | | | | | | 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. Notes: svn path=/head/; revision=21429
* When mmap is used, do an madvise(MADV_SEQUENTIAL) to make thingsJohn Dyson1996-12-111-0/+3
| | | | | | | | go much more quickly when file input is really done. Of course, the fully cached case will make no difference. Notes: svn path=/head/; revision=20312
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-0/+6
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891
* I don't like what they did to cmp(1) in 4.4 Lite; now it whines allJordan K. Hubbard1994-08-201-8/+24
| | | | | | | | | the time, even with -s. Make cmp SHUT UP about non-existant files when run with -s. Submitted by: jkh Notes: svn path=/head/; revision=2149
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-277-0/+565
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590