| History log of /src/usr.bin/uniq |
| Revision | Date | Author | Comments |
| 1.5 | 14-Apr-2009 |
lukem | Enable WARNS=4 by default for usr.bin, except for: awk bdes checknr compile_et error gss hxtool kgetcred kinit klist ldd less lex locale login m4 man menuc mk_cmds mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh string2key telnet tn3270 verify_krb5_conf xlint
|
| 1.4 | 05-Jan-2007 |
christos | branches: 1.4.20; Ansi, KNF, no functional change.
|
| 1.3 | 06-Dec-1994 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
| 1.2 | 30-Jul-1993 |
mycroft | Add RCS identifiers.
|
| 1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
| 1.1.1.2 | 06-Dec-1994 |
jtc | imported from 4.4lite
|
| 1.1.1.1 | 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
| 1.4.20.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.13 | 26-Aug-2012 |
wiz | - improve punctuation; - improve wording (explicitly mention the name of the optional additional arguments within the text, using macros as well); - create separate section, and use `.Ex' macro, for exit status information; - bump date.
Patch from Bug Hunting.
|
| 1.12 | 06-Oct-2010 |
dholland | branches: 1.12.6; Allow -c with -d/-u. While uniq -cu isn't that useful, uniq -cd often is. No objection on tech-userlevel, and the arbitrary restriction has been irritating me for ages.
|
| 1.11 | 06-Jan-2007 |
christos | Don't limit lines to 8K.
|
| 1.10 | 06-Jan-2007 |
wiz | Bump date for previous.
|
| 1.9 | 05-Jan-2007 |
jschauma | Note that uniq uses a max line length of 8192 bytes.
|
| 1.8 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
| 1.7 | 08-Feb-2002 |
ross | Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
|
| 1.6 | 20-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register, getopt returns -1, use <err.h>
|
| 1.5 | 06-Dec-1994 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
| 1.4 | 27-Aug-1993 |
jtc | Minor tweaks: including header files to bring prototypes into scope, explicitly declaring function return values, etc. to make gcc -Wall shut up.
|
| 1.3 | 01-Aug-1993 |
mycroft | Add RCS indentifiers.
|
| 1.2 | 30-Jul-1993 |
mycroft | Latest version from uunet.
|
| 1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
| 1.1.1.2 | 06-Dec-1994 |
jtc | imported from 4.4lite
|
| 1.1.1.1 | 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
| 1.12.6.1 | 30-Oct-2012 |
yamt | sync with head
|
| 1.22 | 23-Apr-2019 |
christos | remove unused label
|
| 1.21 | 23-Apr-2019 |
uwe | Don't pass '-' to getopt(3). My guess is that *very* old getopt didn't handle "--" terminator, so this code was working around it and not quite correctly at that.
Fixes weird output from
$ uniq --long-option uniq: uniq: No such file or directory
(for more fun, run that command from /usr/bin as root).
Pointed out by Andreas Krey.
|
| 1.20 | 16-Oct-2016 |
abhinav | branches: 1.20.14; Fix the bug introduced in the previous commit.
The lengths of the lines being compared were not correct. Essentially, we were comparing the length of the buffers instead of the length of the strings.
This patch also avoids calling skip() twice for the same line.
Thanks to Rin Okuyama for the patch.
|
| 1.19 | 14-Oct-2016 |
abhinav | A small optimization: since we already know the length of the lines, check if the lenghts are equal before calling strcmp(3). Most of the times, the call to strcmp(3) can be saved if the lines are not of the same length.
Thanks to Christos for the reviews
|
| 1.18 | 26-Aug-2012 |
wiz | branches: 1.18.14; - synchronize `usage' message with man page.
Patch from Bug Hunting.
|
| 1.17 | 06-Oct-2010 |
wiz | branches: 1.17.6; Sync usage with man page.
|
| 1.16 | 06-Oct-2010 |
dholland | Allow -c with -d/-u. While uniq -cu isn't that useful, uniq -cd often is. No objection on tech-userlevel, and the arbitrary restriction has been irritating me for ages.
|
| 1.15 | 21-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
| 1.14 | 15-Dec-2007 |
perry | branches: 1.14.6; convert __attribute__s to applicable cdefs.h macros
|
| 1.13 | 06-Jan-2007 |
christos | branches: 1.13.4; Don't limit lines to 8K.
|
| 1.12 | 05-Jan-2007 |
christos | Ansi, KNF, no functional change.
|
| 1.11 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
| 1.10 | 14-Jul-2003 |
itojun | asprintf is easier and safer
|
| 1.9 | 19-Dec-1998 |
christos | char -> unsigned char
|
| 1.8 | 20-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register, getopt returns -1, use <err.h>
|
| 1.7 | 31-Aug-1995 |
jtc | Sync with 44lite2
|
| 1.6 | 06-Dec-1994 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
| 1.5 | 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
| 1.4 | 30-Jul-1993 |
mycroft | Latest version from uunet.
|
| 1.3 | 05-Jul-1993 |
deraadt | uniq -c < /dev/null used to fail. fgets return value was ignored. patch from <sjg@zen.void.oz.au>
|
| 1.2 | 26-Apr-1993 |
mycroft | Fix NULL pointer reference.
|
| 1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
| 1.1.1.3 | 31-Aug-1995 |
jtc | imported from 44lite2
|
| 1.1.1.2 | 06-Dec-1994 |
jtc | imported from 4.4lite
|
| 1.1.1.1 | 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
| 1.13.4.1 | 09-Jan-2008 |
matt | sync with HEAD
|
| 1.14.6.1 | 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.17.6.1 | 30-Oct-2012 |
yamt | sync with head
|
| 1.18.14.1 | 04-Nov-2016 |
pgoyette | Sync with HEAD
|
| 1.20.14.1 | 10-Jun-2019 |
christos | Sync with HEAD
|