History log of /netbsd-src/usr.bin/wc/wc.c (Results 1 – 25 of 37)
Revision Date Author Comments
# 04bf1397 14-Jan-2024 christos <christos@NetBSD.org>

Better check against st_size == 0 instead of st_dev == -1


# f4066449 14-Jan-2024 christos <christos@NetBSD.org>

PR/57854: Richardo Branco: wc -c does not work on procfs/kernfs


# 6818646a 16-Sep-2011 joerg <joerg@NetBSD.org>

Use __dead


# a1573270 19-Feb-2010 tron <tron@NetBSD.org>

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.


# 10109091 18-Feb-2010 tron <tron@NetBSD.org>

Add support for "-L" option (longest line) as present in the GNU and
FreeBSD version of "wc".

No objections on "tech-userlevel" mailing list.


# 147c0c7b 14-Apr-2009 lukem <lukem@NetBSD.org>

Fix WARNS=4 issues (-Wshadow -Wcast-qual)


# 98e5374c 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# c9e98eab 04-Jan-2006 perry <perry@NetBSD.org>

de-__P, ANSIfy prototypes


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


# d2c65fcc 02-May-2002 wiz <wiz@NetBSD.org>

Mention -m in usage. bin/16594 by Ryan Younce.


# 3a7e0fa1 23-Mar-2002 enami <enami@NetBSD.org>

Don't pass NULL to warn() etc. Instead, use "<stdin>" to warn about stdin.


# 3d5c5b31 23-Mar-2002 enami <enami@NetBSD.org>

Actually skip the first byte of invalid byte sequence.


# b56ea8bd 23-Mar-2002 enami <enami@NetBSD.org>

One more; Don't put space before function call op.


# 8e6517a8 23-Mar-2002 enami <enami@NetBSD.org>

- Remove unnecessary cast.
- Other misc. KNF changes.


# 47df7c18 23-Mar-2002 enami <enami@NetBSD.org>

Fix whitespace usage.


# d84a397c 23-Mar-2002 enami <enami@NetBSD.org>

Don't include same file twice. Sort includes alphabetically.
Don't place sys/*.h and *.h mixed.


# f0b2b776 19-Oct-2001 yamt <yamt@NetBSD.org>

- implement -m.(count characters instead of bytes)
- use iswspace instead of isspace for -w.


# c04da315 05-Mar-1999 kleink <kleink@NetBSD.org>

Normalize usage string.


# 7b58b020 05-Mar-1999 mycroft <mycroft@NetBSD.org>

Don't print a trailing space when counting from stdin.


# 56e7b032 05-Mar-1999 mycroft <mycroft@NetBSD.org>

Make the output format match what it used to be.


# 40035ad5 14-Feb-1999 christos <christos@NetBSD.org>

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.


# f16e8786 14-Feb-1999 mjacob <mjacob@NetBSD.org>

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 com

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.

show more ...


# 4feda55d 13-Feb-1999 explorer <explorer@NetBSD.org>

use u_int64_t for line, word, and character counts. It bothers me to see wc -c
return -2146435072 characters for files > 2G.


# f873d812 13-Oct-1998 wsanchez <wsanchez@NetBSD.org>

Use unsigned long instead of ulong


# 9ad099ee 20-Oct-1997 mrg <mrg@NetBSD.org>

WARNSify; deprecate register; clean up .Nm


12