summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/special.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* phk added the -x option in May 2000, but only for regular files; formurray2003-06-191-1/+5
| | | | | | | | special files it was treated like -l. This commit adds the -x option in for special files as well. PR: bin/46249 Submitted by: Colin Percival <cperciva@sfu.ca>
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-4/+2
|
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-5/+6
| | | | | | | | 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.
* Cast off_t to long long before printing. Use %ll instead of %q incasedwmalone2001-12-031-1/+2
| | | | long long and quad_t are not the same.
* Turn on WARNS=2.markm2001-12-021-4/+5
| | | | Use __FBSDID().
* Make filenames const to avoid a few warnings.dwmalone2001-11-051-1/+4
| | | | | | Add FreeBSD tags. Reviewed by: cmp
* More egcs warning fixes:imp1999-04-251-2/+4
| | | | | | | | | | 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-061-1/+1
|
* Our mmap(2) has a limitation where the `offset' parameter must bejoerg1997-01-081-1/+1
| | | | | | | 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.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+99
OpenPOWER on IntegriCloud