aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/wc
Commit message (Collapse)AuthorAgeFilesLines
* Revert r330897:Eitan Adler2018-03-291-3/+1
| | | | | | | | | | | | | | | | | | | | This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code. Revert with prejudice. This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes. Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes. Requested by: gjb (re) Notes: svn path=/stable/11/; revision=331722
* Partial merge of the SPDX changesEitan Adler2018-03-141-1/+3
| | | | | | | | | | These changes are incomplete but are making it difficult to determine what other changes can/should be merged. No objections from: pfg Notes: svn path=/stable/11/; revision=330897
* Add more text to explain --libxo flag.Craig Rodrigues2015-12-011-1/+8
| | | | Notes: svn path=/head/; revision=291607
* Make libxo depend on libutil because it uses humanize_number after r287111Enji Cooper2015-10-181-1/+1
| | | | | | | | | | | Remove overlinking in lib/libxo/tests, sbin/savecore, and usr.bin/{iscsictl,wc,xo} PR: 203673 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289490
* Update META_MODE dependencies.Bryan Drewery2015-09-171-0/+1
| | | | Notes: svn path=/head/; revision=287905
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-241-1/+1
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Clean out some externally visible "more then" grammarPedro F. Giffuni2015-08-111-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=286615
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-3/+15
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated/new dependenciesSimon J. Gerraty2014-11-191-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=274694
| * Merge from head@274682Simon J. Gerraty2014-11-193-19/+45
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Fix SIGINFO race causing final results to be lost to stderr.Bryan Drewery2015-04-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=281617
* | | Close the file list before opening the container that holds theMarcel Moolenaar2015-02-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totals, otherwise we end up emitting invalid JSON -- provided libxo does not prevent us from doing that. PR: 197499 Submitted by: allanjude@ Notes: svn path=/head/; revision=278590
* | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |/ |/| | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | Fix a SIGSEGV when emitting XML or JSON when reading stdin. In thatMarcel Moolenaar2014-11-071-3/+1
| | | | | | | | | | | | | | case the file variable is NULL. Notes: svn path=/head/; revision=274210
* | Separate references by a comma.Marcel Moolenaar2014-11-061-2/+2
| | | | | | | | Notes: svn path=/head/; revision=274180
* | Document that wc(1) supports libxo(3).Marcel Moolenaar2014-11-051-1/+4
| | | | | | | | Notes: svn path=/head/; revision=274126
* | Convert to use libxo.Marcel Moolenaar2014-11-052-17/+42
|/ | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc. Notes: svn path=/head/; revision=274125
* Add missing static keywords to wc(1)Ed Schouten2011-11-061-2/+2
| | | | Notes: svn path=/head/; revision=227201
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-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 Notes: svn path=/head/; revision=216370
* Use better type for siginfo (volatile sig_atomic_t instead of int).Pawel Jakub Dawidek2010-05-171-1/+2
| | | | | | | Pointed out by: jh Notes: svn path=/head/; revision=208210
* On SIGINFO print current values on stderr.Pawel Jakub Dawidek2010-05-161-44/+68
| | | | Notes: svn path=/head/; revision=208170
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Add missing `void' keyword for function without arguments.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201181
* Add a -L option to wc(1), for finger compatibility with the GNUGiorgos Keramidas2008-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 Notes: svn path=/head/; revision=185714
* Prevent a line from being broken on a line boundary.Ruslan Ermilov2006-12-211-1/+1
| | | | Notes: svn path=/head/; revision=165455
* Improve markup.Ruslan Ermilov2006-12-211-4/+9
| | | | Notes: svn path=/head/; revision=165454
* Fix mismerge.Tom Rhodes2005-02-261-1/+1
| | | | | | | Noticed by: tjr Notes: svn path=/head/; revision=142544
* Add better mdoc(7) mark up, clean up wording, better describe the effectsTom Rhodes2005-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 Notes: svn path=/head/; revision=142332
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-4/+4
| | | | Notes: svn path=/head/; revision=140420
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-111-2/+3
| | | | Notes: svn path=/head/; revision=140055
* Remove warnings and make wc WARNS=6 clean.Josef El-Rayes2004-12-272-6/+4
| | | | | | | | | Add FreeBSD Id to Makefile. Approved by: ssouhlal Notes: svn path=/head/; revision=139364
* Deal with double whitespace.Ruslan Ermilov2004-07-031-1/+3
| | | | Notes: svn path=/head/; revision=131507
* Improve robustness of multibyte character handling (-m option), andTim J. Robbins2004-04-091-19/+23
| | | | | | | | simplify the read buffering now that we can feed partial multibyte characters to mbrtowc(). Notes: svn path=/head/; revision=128049
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-4/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107276
* Locale environment variables influence wc(1) regardless of whether theTim J. Robbins2002-08-111-4/+1
| | | | | | | -m option is specified; correct ENVIRONMENT section. Notes: svn path=/head/; revision=101671
* Use the iswspace(3) function now that it's been implemented.Tim J. Robbins2002-08-112-5/+5
| | | | Notes: svn path=/head/; revision=101670
* When counting words, check the correct character variable to see whether it'sTim J. Robbins2002-06-161-2/+2
| | | | | | | | | a space or not. Noticed by: bde Notes: svn path=/head/; revision=98291
* fstat() returns information about the target of any symbolic link thatTim J. Robbins2002-06-151-2/+2
| | | | | | | was opened, not the link itself. Remove dead code. Notes: svn path=/head/; revision=98245
* Correct the Standards section: wc is a utility, not a function.Tim J. Robbins2002-06-131-1/+1
| | | | Notes: svn path=/head/; revision=98167
* Bump document date for previous commit.Tim J. Robbins2002-06-131-1/+1
| | | | Notes: svn path=/head/; revision=98166
* Add the -m option, which counts characters (as opposed to -c, whichTim J. Robbins2002-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. Notes: svn path=/head/; revision=98165