summaryrefslogtreecommitdiff
path: root/usr.bin/comm/comm.c
AgeCommit message (Collapse)Author
2012-09-05Use getc instead of fgetc.simonb
This is approximately five times faster for "comm -23 a b" where a and b are identical 100MB files.
2011-08-30static + __deadjoerg
2009-11-28Don't include newlines when comparing to prevent errors when lines havedarcy
characters that sort lower such as tabs. This is a temporary fix to allow pullups to existing, supported versions of NetBSD. I will follow up with a version for current using the new getline function.
2009-04-11fix -Wcast-qual issues for WARNS=4lukem
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2005-02-17Kill __P(), use ANSI function declarations.xtraeme
2004-07-09Add -f to usage. From Kouichirou Hiratsuka in PR 26196.wiz
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
1999-02-11Add -f option to allow case folding, as in sort(1).hubertf
Patch submitted by Andrew Brown <twofsonet@graffiti.com>
1997-10-18WARNSify, fix .Nm usage, getopt returns -1 not EOFlukem
1995-09-05Fixed bug I introduced when changing printf comparison vs. EOF. Noted byjtc
andreas@planix.com.
1995-09-02Sync with 4.4lite2jtc
1995-03-27points lostglass
1995-03-26The return value of printf is less than 0, not necessarily EOF, on failure.jtc
1995-03-26merged with 4.4Liteglass
1994-11-08Check writes to stdout; if a write fails, comm writes a diagnostic messagejtc
to standard error and aborts with a non zero exit value.
1993-10-13#include <unistd.h>, so getopt(), optarg, opterr, optind, and optoptjtc
declarations can be removed from <stdlib.h>.
1993-09-21Remove cruft from getopt processing (`-' need not be special cased).jtc
Include appropriate header files to bring prototypes into scope. Use setlocale() to set locale, and strcoll() for comparisions even though this won't work until full localization support is completed. Document the fact that comm now conforms to POSIX.2.
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd