aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp/regular.c
Commit message (Collapse)AuthorAgeFilesLines
* Cast off_t to long long before printing. Use %ll instead of %q incaseDavid Malone2001-12-031-2/+4
| | | | | | | long long and quad_t are not the same. Notes: svn path=/head/; revision=87282
* Turn on WARNS=2.Mark Murray2001-12-021-4/+5
| | | | | | | Use __FBSDID(). Notes: svn path=/head/; revision=87241
* Make filenames const to avoid a few warnings.David Malone2001-11-051-1/+1
| | | | | | | | | Add FreeBSD tags. Reviewed by: cmp Notes: svn path=/head/; revision=86099
* Make cmp work by mmapping chunks of a file, rather than the wholeDavid Malone2001-11-041-14/+52
| | | | | | | | | | | file at one time. PR: 24732 Submitted by: Andrew L. Neporada <andr@dgap.mipt.ru> MFC after: 2 weeks Notes: svn path=/head/; revision=86044
* Make cmp -s work properly if skip values are given. Also, exit(1)Brian Feldman2000-06-201-3/+3
| | | | | | | | | | | is now exit(DIFF_EXIT). PR: 18597 Submitted by: Anatoly Vorobey <mellon@pobox.com> Committed at: Usenix terminal room Notes: svn path=/head/; revision=61883
* Oops, byte offset was as off_t.Poul-Henning Kamp2000-05-151-1/+1
| | | | Notes: svn path=/head/; revision=60586
* Let cmp(1) grow in -x option to print differences in contemporarry hexPoul-Henning Kamp2000-05-151-1/+7
| | | | | | | format rather than the mixed decimal/octal format of -l. Notes: svn path=/head/; revision=60583
* 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-251-1/+2
| | | | | | | | | | | | | 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-061-1/+1
| | | | Notes: svn path=/head/; revision=41568
* 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
* Our mmap(2) has a limitation where the `offset' parameter must beJoerg Wunsch1997-01-081-2/+12
| | | | | | | | | | 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
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+98
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590