| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
If a SIGINFO comes in after the file is read then the 'siginfo' flag is set to
1 and the next call to show_cnt() (at exit) would print the data to stderr
rather than the expected stdout.
This was found with spamming Poudriere with SIGINFO which caused a 'wc -l'
execution to return no data rather than an expected number.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
totals, otherwise we end up emitting invalid JSON -- provided
libxo does not prevent us from doing that.
PR: 197499
Submitted by: allanjude@
|
|
|
|
| |
case the file variable is NULL.
|
|
|
|
|
| |
Obtained from: Phil Shafer <phil@juniper.net>
Sponsored by: Juniper Networks, Inc.
|
| |
|
|
|
|
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
|
|
|
|
| |
Pointed out by: jh
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
wc utility. The -L option can be used to report the length of
the longest line wc has seen in one or more files. It is
disabled by default, and wc uses the standard `-lwc'.
Submitted by: Sheldon Givens, sheldon at sigsegv.ca
Reviewed by: kib
MFC after: 1 week
|
|
|
|
|
|
| |
Add FreeBSD Id to Makefile.
Approved by: ssouhlal
|
|
|
|
|
| |
simplify the read buffering now that we can feed partial multibyte
characters to mbrtowc().
|
| |
|
|
|
|
|
|
| |
a space or not.
Noticed by: bde
|
|
|
|
| |
was opened, not the link itself. Remove dead code.
|
|
|
|
|
|
|
| |
counts bytes). In locales that don't have multibyte characters, -m
is effectively an alias for -c.
This brings wc(1) up to P1003.1-2001 conformance.
|
| |
|
|
|
|
|
|
| |
is to put a copyright in the object file.
Submitted by: bde
|
|
|
|
|
|
| |
Make use of `static' storage-class for local functions.
Replace uses of `u_quad_t' with `uintmax_t'.
|
|
|
|
| |
Not added to Makefgile as WARNS=2 will be made default.
|
| |
|
|
|
|
| |
Requested by: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
u_quad_int instead of u_long for counters. (NetBSD's rev 1.15 - 1.18)
Deprecate register. (NetBSD's rev 1.13)
The diffs from NetBSD were not applied verbatim, because we don't care
about NO_QUAD right now.
PR: 12959
Reported by: Nicholas Barnes <nb@ravenbrook.com>
Obtained from: NetBSD
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
|
|
|
| |
if there was a per-file error. My test case of `wc /proc/curproc/*'
works reasonably now (much like `size /proc/curproc/*'.
Reviewed by: wosch
|
|
|
|
| |
until someone rewrite wc(1).
|
| |
|
|
|