summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix improper mmap length paramater which can result in improper behaviorgreen1999-07-291-7/+9
| | | | or cmp crashing in specific cases.
* More egcs warning fixes:imp1999-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
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).archie1998-12-065-5/+6
|
* "EOF of file..." is written to stderr and not stdout.steve1998-05-261-2/+2
| | | | PR: 6756
* Permit hex/octal parameters to cmp, to match what the manual page says.jlemon1997-08-191-2/+2
| | | | PR: 3850, 3855
* Correct usage string. Program name converted to bold in man page.charnier1997-06-262-5/+7
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sweep through the tree fixing mmap() usage:alex1997-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
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Our mmap(2) has a limitation where the `offset' parameter must bejoerg1997-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.
* When mmap is used, do an madvise(MADV_SEQUENTIAL) to make thingsdyson1996-12-111-0/+3
| | | | | go much more quickly when file input is really done. Of course, the fully cached case will make no difference.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-0/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* I don't like what they did to cmp(1) in 4.4 Lite; now it whines alljkh1994-08-201-8/+24
| | | | | | the time, even with -s. Make cmp SHUT UP about non-existant files when run with -s. Submitted by: jkh
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-277-0/+565
OpenPOWER on IntegriCloud