summaryrefslogtreecommitdiffstats
path: root/usr.bin/wc
Commit message (Collapse)AuthorAgeFilesLines
* MFC r286615:pfg2015-08-141-2/+2
| | | | Clean up some externally visible "more then" occurences
* MFC r281617:bdrewery2015-04-301-0/+11
| | | | | | wc: Fix SIGINFO race causing final results to be lost to stderr. Relnotes: yes
* Add missing static keywords to wc(1)ed2011-11-061-2/+2
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | 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
* Use better type for siginfo (volatile sig_atomic_t instead of int).pjd2010-05-171-1/+2
| | | | Pointed out by: jh
* On SIGINFO print current values on stderr.pjd2010-05-161-44/+68
|
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Add missing `void' keyword for function without arguments.ed2009-12-291-1/+1
|
* Add a -L option to wc(1), for finger compatibility with the GNUkeramida2008-12-062-11/+60
| | | | | | | | | | 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
* Prevent a line from being broken on a line boundary.ru2006-12-211-1/+1
|
* Improve markup.ru2006-12-211-4/+9
|
* Fix mismerge.trhodes2005-02-261-1/+1
| | | | Noticed by: tjr
* Add better mdoc(7) mark up, clean up wording, better describe the effectstrhodes2005-02-231-6/+23
| | | | | | | | of some arguments. PR: 47705 Based on a patch submitted by: Gary W. Swearingen <swear@attbi.com> Glanced at by: simon
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-4/+4
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Scheduled mdoc(7) sweep.ru2005-01-111-2/+3
|
* Remove warnings and make wc WARNS=6 clean.josef2004-12-272-6/+4
| | | | | | Add FreeBSD Id to Makefile. Approved by: ssouhlal
* Deal with double whitespace.ru2004-07-031-1/+3
|
* Improve robustness of multibyte character handling (-m option), andtjr2004-04-091-19/+23
| | | | | simplify the read buffering now that we can feed partial multibyte characters to mbrtowc().
* mdoc(7) police: markup polishing.ru2002-11-261-4/+2
| | | | Approved by: re
* Locale environment variables influence wc(1) regardless of whether thetjr2002-08-111-4/+1
| | | | -m option is specified; correct ENVIRONMENT section.
* Use the iswspace(3) function now that it's been implemented.tjr2002-08-112-5/+5
|
* When counting words, check the correct character variable to see whether it'stjr2002-06-161-2/+2
| | | | | | a space or not. Noticed by: bde
* fstat() returns information about the target of any symbolic link thattjr2002-06-151-2/+2
| | | | was opened, not the link itself. Remove dead code.
* Correct the Standards section: wc is a utility, not a function.tjr2002-06-131-1/+1
|
* Bump document date for previous commit.tjr2002-06-131-1/+1
|
* Add the -m option, which counts characters (as opposed to -c, whichtjr2002-06-132-24/+83
| | | | | | | 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.
* remove __Pimp2002-03-221-2/+2
|
* Leave the `copyright' variable exposed, since the main purpose of itmike2002-03-071-2/+2
| | | | | | is to put a copyright in the object file. Submitted by: bde
* Fix vendor ID (mostly obtained from rev 1.1).mike2002-02-281-21/+23
| | | | | | Make use of `static' storage-class for local functions. Replace uses of `u_quad_t' with `uintmax_t'.
* WARNS=2 fix, use __FBSDID().markm2001-12-111-8/+7
| | | | Not added to Makefgile as WARNS=2 will be made default.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+4
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Add DIAGNOSTICS section namecharnier2000-03-261-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Correct style issues with the previous commit.sheldonh1999-08-131-19/+16
| | | | Requested by: bde
* Fix integer overflow for files containing more than 4GB by usingsheldonh1999-08-061-15/+16
| | | | | | | | | | | | | 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
* Sync usage string according to man page. Silent -Wall.charnier1997-08-252-11/+11
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | 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.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-0/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* Changed all per-file errors to warnings. Exit with a nonzero status ofbde1996-04-131-55/+48
| | | | | | | 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
* Do not exit if a file is not readable. This is a short hackwosch1996-04-101-2/+4
| | | | until someone rewrite wc(1).
* Localize it.ache1996-01-101-2/+5
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-273-0/+357
OpenPOWER on IntegriCloud