aboutsummaryrefslogtreecommitdiff
path: root/toys/cmp.c
AgeCommit message (Collapse)Author
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley
2012-07-05Put cmp.c EOF notice on stderrElie De Brauwer
2012-03-22The -s flag includes staying quiet about missing files.Rob Landley
2012-03-02Only show one normal difference (sans -l) and EOF message should go to ↵Rob Landley
stdout, not stderr.
2012-02-07More cmp.c shrinkage.Rob Landley
Abuse loopfiles() to handle both arguments, caching the first pass in globals. That eliminates get_fd() since loopfiles already knows how to handle "-" arg. Chop toybuf in half and use half for each file, eliminating malloc/free. main() becomes just a call to loopfiles(), which does all open/close.
2012-02-07Iterative cleanups on cmp.c: silence warnings, only free if TOYBOX_FREE, use ↵Rob Landley
xopen(), style cleanup on curly brackets.
2012-02-06Implement cmpTimothy Elliott