Commit Graph

22 Commits

Author SHA1 Message Date
mjacob f16e878646 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.
1999-02-14 18:03:18 +00:00
explorer 4feda55de6 use u_int64_t for line, word, and character counts. It bothers me to see wc -c
return -2146435072 characters for files > 2G.
1999-02-13 15:53:17 +00:00
wsanchez f873d81217 Use unsigned long instead of ulong 1998-10-13 17:03:39 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
lukem 5f395129e4 fix .Nm usage 1997-10-20 03:14:32 +00:00
mrg 9ad099ee67 WARNSify; deprecate register; clean up .Nm 1997-10-20 02:40:25 +00:00
mycroft 004f255040 Use S_IS*(), not S_IF*. 1997-10-19 19:27:40 +00:00
mrg 8f798dca81 merge lite-2. 1997-10-18 16:48:29 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
andrew cfe33803b1 Fixed problems with wc -c when reading from stdin. 1994-01-03 03:11:06 +00:00
jtc 83efb17c8e Checkin minor tweaks before giving a copy to the FreeBSD folks. 1993-11-04 05:43:30 +00:00
jtc 029a63116f Streamline the char/word/line counting logic in anticipation of multibyte
character support.
1993-10-12 23:32:20 +00:00
jtc a3d7805594 Like cat, set the return-value variable "rval" instead of exiting when
we encounter run-time errors.
Update usage message.
1993-10-12 22:39:43 +00:00
jtc f7c6bf575a Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
1993-08-27 22:30:10 +00:00
jtc 0942acadf0 Document that utility now conforms to IEEE 1003.2-1992. 1993-08-19 17:16:39 +00:00
jtc e4e27724a6 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.
1993-08-17 00:37:10 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft d0f8d5d2bb Add RCS identifiers. 1993-07-30 22:28:22 +00:00
jtc 0264064592 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.
1993-07-15 21:05:12 +00:00
mrg b579fe679d 4.4BSD-Lite2 1993-06-07 05:23:59 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00