summaryrefslogtreecommitdiffstats
path: root/usr.bin/uniq/uniq.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* unsigned char casts for ctypederaadt2013-11-261-3/+3
| | | | ok okan
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-14/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Mention that -cd and -cu are possible, and that it's an extension to POSIX.kili2007-11-111-3/+3
| | | | | | discussed with jmc and otto ok jmc
* Allow -c in conjunction with -d (and -u).kili2007-11-091-24/+20
| | | | | | | | | | If field skipping is active, don't skip beyond the last non-blank of a field, and use isblank() instead of isspace() -- POSIX states that the longest string matching [[:blank:]]*[^[:blank:]]* makes up a field. Don't skip over trailing newlines. Help, testing and ok millert@
* Stylistic changes initially from Thordur I. Bjornsson, more cleanupray2006-04-071-22/+34
| | | | | | and delinting from me. OK otto@ and jaredy@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* strlcpy whack; miod okderaadt2003-04-051-5/+5
|
* Treat a file name of "-" as either stdin or stdout, depending on position.millert2002-12-081-2/+4
|
* No need to try and catch "--" by hand, getopt() does it for us.millert2002-12-081-7/+4
|
* ansideraadt2002-07-131-16/+9
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-7/+7
|
* kill more registersmpech2001-11-191-5/+5
| | | | millert@ ok
* first pass at a -Wall cleanupderaadt2001-07-121-3/+3
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-3/+3
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* use err(3)mickey1997-07-251-37/+8
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-5/+5
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* rcsidderaadt1996-06-261-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+281