summaryrefslogtreecommitdiffstats
path: root/usr.bin/fmt
Commit message (Collapse)AuthorAgeFilesLines
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-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
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Prevent strange crashes in fmt with absurd goal lengths introduced by thejmallett2007-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.
* Remove unnecessary SRCS= where could be guessed directly by ourdelphij2005-01-271-1/+0
| | | | | | bsd.*.mk infrasture. Obtained from: ru
* Cross-reference fold(1).tjr2004-08-021-0/+1
|
* Add support for multibyte characters.tjr2004-08-022-57/+94
|
* Document incorrect handling of multibyte characters.tjr2004-07-171-1/+3
|
* Avoid passing negative values to isspace() on systems with signed chars.tjr2004-07-151-1/+1
|
* Use warn() instead of perror().tjr2004-07-151-3/+3
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Very minor whitespace nit.markm2002-04-281-1/+0
|
* Usage style sweep: spell "usage" with a small 'u'.des2002-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}/.
* Use `The .Nm utility'charnier2002-04-191-2/+6
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Don't format lines that look like troff requests, forru2002-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
* The old fmt(1) always did what the new ``-l 8'' option does.ru2001-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
* Don't call errx() with a variable format stringkris2001-08-111-1/+1
| | | | MFC after: 1 week
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Cast size_t -> int to satisfy printf %* constraints on the alpha.jlemon2001-06-161-1/+1
|
* fmt(1) rewrite by Gareth McCaughan.ru2001-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
* Mark up the optional -c option with the Op macro.sheldonh2000-03-091-1/+1
| | | | | PR: 17271 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-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
* Ooops, the Makefile was not supposed to be changed. Unspam this.joerg1997-09-301-1/+1
|
* Fix a number of fixed-size buffers etc.joerg1997-09-302-5/+32
| | | | | PR: bin/4520 Submitted by: gjm11@dpmms.cam.ac.uk (Gareth McCaughan)
* Pre-allocate buffer to avoid core dump in corner cases.jlemon1997-08-211-2/+6
| | | | | PR: 2968 Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk>
* Add rcsid, prototypes. Use err(3).charnier1997-07-032-15/+37
|
* Removed inconsistent declaration of malloc(). `make world' with DESTDIRbde1997-04-231-1/+0
| | | | set to something other than "/" now actually works.
* Sort cross references.wosch1997-01-151-2/+2
|
* Add -c flag to fmt to center lines.phk1996-09-102-0/+33
|
* Fix a segfault which occurs when it gets an empty input line.smpatel1996-04-221-1/+8
| | | | | | | Closes PR bin/1153 Reviewed by: smpatel Submitted by: Matthew C. Mead (mmead@Glock.COM)
* Dynamically allocate line buffers, instead of assuming that all thejoerg1995-11-151-6/+31
| | | | world would fit into BUFSIZ.
* Add setlocale LC_CTYPEache1995-10-241-0/+3
|
* Remove trailing whitespace.rgrimes1995-05-301-8/+8
|
* Make fmt ctype-awareache1995-05-111-6/+6
| | | | | Fix non-critical bug with getting EOF double times Not call strlen for zero length test
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-273-0/+563
OpenPOWER on IntegriCloud