| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
being treated like regular files because of missing braces.
PR: 20143
|
|
|
|
|
|
|
| |
Correct the cmp.1 usage message
Correct the -l/-s incompatibility message
Submitted by: Mark Knight <markk@knigma.org>
|
|
|
|
|
|
|
|
| |
is now exit(DIFF_EXIT).
PR: 18597
Submitted by: Anatoly Vorobey <mellon@pobox.com>
Committed at: Usenix terminal room
|
| |
|
|
|
|
| |
format rather than the mixed decimal/octal format of -l.
|
| |
|
|
|
|
| |
or cmp crashing in specific cases.
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
PR: 6756
|
|
|
|
| |
PR: 3850, 3855
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
go much more quickly when file input is really done. Of course, the
fully cached case will make no difference.
|
|
|
|
| |
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
|
|
|
|
|
|
| |
the time, even with -s. Make cmp SHUT UP about non-existant files
when run with -s.
Submitted by: jkh
|
|
|