History log of /src/usr.bin/wc/wc.c |
Revision | | Date | Author | Comments |
1.37 |
| 14-Jan-2024 |
christos | Better check against st_size == 0 instead of st_dev == -1
|
1.36 |
| 14-Jan-2024 |
christos | PR/57854: Richardo Branco: wc -c does not work on procfs/kernfs
|
1.35 |
| 16-Sep-2011 |
joerg | Use __dead
|
1.34 |
| 19-Feb-2010 |
tron | Report the number of characters, not the number of bytes in the longest line.
Problem pointed out by YAMAMOTO Takashi on "tech-userlevel" mailing list.
|
1.33 |
| 18-Feb-2010 |
tron | Add support for "-L" option (longest line) as present in the GNU and FreeBSD version of "wc".
No objections on "tech-userlevel" mailing list.
|
1.32 |
| 14-Apr-2009 |
lukem | Fix WARNS=4 issues (-Wshadow -Wcast-qual)
|
1.31 |
| 21-Jul-2008 |
lukem | branches: 1.31.4; 1.31.6; 1.31.10; Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.30 |
| 04-Jan-2006 |
perry | branches: 1.30.22; de-__P, ANSIfy prototypes
|
1.29 |
| 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.28 |
| 02-May-2002 |
wiz | Mention -m in usage. bin/16594 by Ryan Younce.
|
1.27 |
| 23-Mar-2002 |
enami | Don't pass NULL to warn() etc. Instead, use "<stdin>" to warn about stdin.
|
1.26 |
| 23-Mar-2002 |
enami | Actually skip the first byte of invalid byte sequence.
|
1.25 |
| 23-Mar-2002 |
enami | One more; Don't put space before function call op.
|
1.24 |
| 23-Mar-2002 |
enami | - Remove unnecessary cast. - Other misc. KNF changes.
|
1.23 |
| 23-Mar-2002 |
enami | Fix whitespace usage.
|
1.22 |
| 23-Mar-2002 |
enami | Don't include same file twice. Sort includes alphabetically. Don't place sys/*.h and *.h mixed.
|
1.21 |
| 19-Oct-2001 |
yamt | - implement -m.(count characters instead of bytes) - use iswspace instead of isspace for -w.
|
1.20 |
| 05-Mar-1999 |
kleink | Normalize usage string.
|
1.19 |
| 05-Mar-1999 |
mycroft | Don't print a trailing space when counting from stdin.
|
1.18 |
| 05-Mar-1999 |
mycroft | Make the output format match what it used to be.
|
1.17 |
| 14-Feb-1999 |
christos | Quad portability fixes: - Use %llu instead of %qu - Don't use quad types if NO_QUAD is defined - Always cast to the appropriate type in printf.
|
1.16 |
| 14-Feb-1999 |
mjacob | Hopefully somebody better at this than I can correct this somewhat iffy change. The problem with the last checkin is twofold- first %q should refer to quad_t, not u_int64_r. Second, for the alpha compiler, %q is taken to be 'long long'- which is definitely not the same as u_int64_t. Take home lesson- didn't build on alpha.
I thought about an #ifdef __alpha__- but that's wrong, so I put in a runtime determinant to set a constant format string. Like I said, I hope somebody better than I can fix it right.
|
1.15 |
| 13-Feb-1999 |
explorer | use u_int64_t for line, word, and character counts. It bothers me to see wc -c return -2146435072 characters for files > 2G.
|
1.14 |
| 13-Oct-1998 |
wsanchez | Use unsigned long instead of ulong
|
1.13 |
| 20-Oct-1997 |
mrg | WARNSify; deprecate register; clean up .Nm
|
1.12 |
| 19-Oct-1997 |
mycroft | Use S_IS*(), not S_IF*.
|
1.11 |
| 18-Oct-1997 |
mrg | merge lite-2.
|
1.10 |
| 09-Jan-1997 |
tls | RCS ID police
|
1.9 |
| 03-Jan-1994 |
andrew | Fixed problems with wc -c when reading from stdin.
|
1.8 |
| 04-Nov-1993 |
jtc | Checkin minor tweaks before giving a copy to the FreeBSD folks.
|
1.7 |
| 12-Oct-1993 |
jtc | Streamline the char/word/line counting logic in anticipation of multibyte character support.
|
1.6 |
| 12-Oct-1993 |
jtc | Like cat, set the return-value variable "rval" instead of exiting when we encounter run-time errors. Update usage message.
|
1.5 |
| 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.4 |
| 17-Aug-1993 |
jtc | Make wc 1003.2-1992 compliant by adding -m option (currently a noop, as we don't support multibyte chars). Remove blatant lie from manpage: the order of the output is, and always has been, fixed. The order of the command line arguments makes no difference.
|
1.3 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.2 |
| 15-Jul-1993 |
jtc | Update to POSIX 1003.2 (D11.2) compliance. Make error messages print leading "wc: ", so we know what program is complaining when we're writing shell scripts. Simplify argument parsing and total printing.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 02-May-1995 |
mrg | 4.4BSD-Lite2
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.30.22.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.31.10.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.31.6.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.31.4.1 |
| 06-Mar-2010 |
sborrill | Pull up the following revisions(s) (requested by tron in ticket #1313): usr.bin/wc/wc.c: revision 1.32-1.34 usr.bin/wc/wc.1: revision 1.14-1.15
Add support for "-L" option (longest line) as present in the GNU and FreeBSD versions of "wc".
|