aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fmt
Commit message (Collapse)AuthorAgeFilesLines
* fmt(1): Add EXAMPLES sectionFernando ApesteguĂ­a2020-10-291-7/+16
| | | | | | | | | | | | Very small EXAMPLES section. While here, remove reference to nroff(1). Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26947 Notes: svn path=/head/; revision=367142
* fmt(1): Fix usage of Nm macroEitan Adler2017-12-011-2/+2
| | | | Notes: svn path=/head/; revision=326434
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* fmt(1): for pointers use NULL instead of 0Pedro F. Giffuni2016-04-131-4/+3
| | | | | | | While here clean excessive not lint comment indentation. Notes: svn path=/head/; revision=297905
* fmt(1): reformat with indent(1).Pedro F. Giffuni2016-04-131-380/+497
| | | | | | | | | | Failed attempt to get nearer to style(9) and the format from the original OpenBSD code. At least it should be readable now. No functional change. Notes: svn path=/head/; revision=297901
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * 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
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+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
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Prevent strange crashes in fmt with absurd goal lengths introduced by theJuli Mallett2007-10-171-0/+2
| | | | | | | | | | | | | | | | | support for wide characters. If the sizeof (wchar_t) times max_length would yield a value beyond representation in a size_t, exit with a usage error up front, rather than strange errors down the line from trying to malloc (well, realloc) with a size of 0. This is perhaps not the optimal behaviour - a clamp may be more appropriate as we clamp the value of max_length now anyway, but this is at least better than segfaulting or worse. On systems which are friendly to malloc with a value of 0 the results could end up being strange corruption of the output. Notes: svn path=/head/; revision=172721
* Remove unnecessary SRCS= where could be guessed directly by ourXin LI2005-01-271-1/+0
| | | | | | | | | bsd.*.mk infrasture. Obtained from: ru Notes: svn path=/head/; revision=140909
* Cross-reference fold(1).Tim J. Robbins2004-08-021-0/+1
| | | | Notes: svn path=/head/; revision=133009
* Add support for multibyte characters.Tim J. Robbins2004-08-022-57/+94
| | | | Notes: svn path=/head/; revision=133008
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-171-1/+3
| | | | Notes: svn path=/head/; revision=132277
* Avoid passing negative values to isspace() on systems with signed chars.Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132200
* Use warn() instead of perror().Tim J. Robbins2004-07-151-3/+3
| | | | Notes: svn path=/head/; revision=132178
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Very minor whitespace nit.Mark Murray2002-04-281-1/+0
| | | | Notes: svn path=/head/; revision=95656
* Usage style sweep: spell "usage" with a small 'u'.Dag-Erling Smørgrav2002-04-221-1/+1
| | | | | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/. Notes: svn path=/head/; revision=95258
* Use `The .Nm utility'Philippe Charnier2002-04-191-2/+6
| | | | Notes: svn path=/head/; revision=95083
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Don't format lines that look like troff requests, forRuslan Ermilov2002-01-112-5/+28
| | | | | | | | | | | compatibility with old fmt(1). New option -n permits formatting of lines beginning with a dot character. PR: bin/31392 MFC after: 3 days Notes: svn path=/head/; revision=89268
* The old fmt(1) always did what the new ``-l 8'' option does.Ruslan Ermilov2001-08-152-2/+16
| | | | | | | | | | | POLA: Changed the default to ``-l 8'' while still providing a way to disable this feature with ``-l 0''. PR: bin/29247 Reviewed by: iedowse Notes: svn path=/head/; revision=81701
* Don't call errx() with a variable format stringKris Kennaway2001-08-111-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=81510
* WARNS= -> WARNS?=Dima Dorfman2001-06-221-1/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78624
* Cast size_t -> int to satisfy printf %* constraints on the alpha.Jonathan Lemon2001-06-161-1/+1
| | | | Notes: svn path=/head/; revision=78334
* fmt(1) rewrite by Gareth McCaughan.Ruslan Ermilov2001-06-063-552/+660
| | | | | | | | | | PR: bin/5901, bin/12242, bin/19071 Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk> Obtained from: OpenBSD + ctype(3), WARNS=2, and manpage cleanup MFC after: 2 weeks Notes: svn path=/head/; revision=77807
* Mark up the optional -c option with the Op macro.Sheldon Hearn2000-03-091-1/+1
| | | | | | | | PR: 17271 Submitted by: David Malone <dwmalone@maths.tcd.ie> Notes: svn path=/head/; revision=57847
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Ooops, the Makefile was not supposed to be changed. Unspam this.Joerg Wunsch1997-09-301-1/+1
| | | | Notes: svn path=/head/; revision=30010
* Fix a number of fixed-size buffers etc.Joerg Wunsch1997-09-302-5/+32
| | | | | | | | PR: bin/4520 Submitted by: gjm11@dpmms.cam.ac.uk (Gareth McCaughan) Notes: svn path=/head/; revision=30009
* Pre-allocate buffer to avoid core dump in corner cases.Jonathan Lemon1997-08-211-2/+6
| | | | | | | | PR: 2968 Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk> Notes: svn path=/head/; revision=28478
* Add rcsid, prototypes. Use err(3).Philippe Charnier1997-07-032-15/+37
| | | | Notes: svn path=/head/; revision=27185
* Removed inconsistent declaration of malloc(). `make world' with DESTDIRBruce Evans1997-04-231-1/+0
| | | | | | | set to something other than "/" now actually works. Notes: svn path=/head/; revision=25103
* Sort cross references.Wolfram Schneider1997-01-151-2/+2
| | | | Notes: svn path=/head/; revision=21748
* Add -c flag to fmt to center lines.Poul-Henning Kamp1996-09-102-0/+33
| | | | Notes: svn path=/head/; revision=18227
* Fix a segfault which occurs when it gets an empty input line.Sujal Patel1996-04-221-1/+8
| | | | | | | | | | Closes PR bin/1153 Reviewed by: smpatel Submitted by: Matthew C. Mead (mmead@Glock.COM) Notes: svn path=/head/; revision=15344
* Dynamically allocate line buffers, instead of assuming that all theJoerg Wunsch1995-11-151-6/+31
| | | | | | | world would fit into BUFSIZ. Notes: svn path=/head/; revision=12317
* Add setlocale LC_CTYPEAndrey A. Chernov1995-10-241-0/+3
| | | | Notes: svn path=/head/; revision=11765
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-8/+8
| | | | Notes: svn path=/head/; revision=8874
* Make fmt ctype-awareAndrey A. Chernov1995-05-111-6/+6
| | | | | | | | Fix non-critical bug with getting EOF double times Not call strlen for zero length test Notes: svn path=/head/; revision=8461
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+563
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590