History log of /freebsd-current/usr.bin/fmt/fmt.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 5666643a 13-Mar-2021 Gordon Bergling <gbe@FreeBSD.org>

Fix some common typos in comments

- occured -> occurred
- normaly -> normally
- controling -> controlling
- fileds -> fields
- insterted -> inserted
- outputing -> outputting

MFC after: 1 week


# 074e77e6 12-Apr-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

fmt(1): for pointers use NULL instead of 0

While here clean excessive not lint comment indentation.


# 86aba0f2 12-Apr-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

fmt(1): reformat with indent(1).

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.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 821df508 12-Dec-2009 Xin LI <delphij@FreeBSD.org>

Revert most part of 200420 as requested, as more review and polish is
needed.


# 6f2d3221 11-Dec-2009 Xin LI <delphij@FreeBSD.org>

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# a2229407 17-Oct-2007 Juli Mallett <jmallett@FreeBSD.org>

Prevent strange crashes in fmt with absurd goal lengths introduced by the
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.


# 28d92b74 02-Aug-2004 Tim J. Robbins <tjr@FreeBSD.org>

Add support for multibyte characters.


# 80209ec5 15-Jul-2004 Tim J. Robbins <tjr@FreeBSD.org>

Avoid passing negative values to isspace() on systems with signed chars.


# 7bd73b06 14-Jul-2004 Tim J. Robbins <tjr@FreeBSD.org>

Use warn() instead of perror().


# e026a48c 29-Jun-2002 David E. O'Brien <obrien@FreeBSD.org>

Consistently use FBSDID


# d3974088 22-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


# deba2451 11-Jan-2002 Ruslan Ermilov <ru@FreeBSD.org>

Don't format lines that look like troff requests, for
compatibility with old fmt(1). New option -n permits
formatting of lines beginning with a dot character.

PR: bin/31392
MFC after: 3 days


# ccb8bea4 15-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

The old fmt(1) always did what the new ``-l 8'' option does.
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


# 57c6bd97 10-Aug-2001 Kris Kennaway <kris@FreeBSD.org>

Don't call errx() with a variable format string

MFC after: 1 week


# 84982751 16-Jun-2001 Jonathan Lemon <jlemon@FreeBSD.org>

Cast size_t -> int to satisfy printf %* constraints on the alpha.


# 1438aefc 06-Jun-2001 Ruslan Ermilov <ru@FreeBSD.org>

fmt(1) rewrite by Gareth McCaughan.

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


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 9c61e111 30-Sep-1997 Joerg Wunsch <joerg@FreeBSD.org>

Fix a number of fixed-size buffers etc.

PR: bin/4520
Submitted by: gjm11@dpmms.cam.ac.uk (Gareth McCaughan)


# dc3001cf 20-Aug-1997 Jonathan Lemon <jlemon@FreeBSD.org>

Pre-allocate buffer to avoid core dump in corner cases.
PR: 2968
Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk>


# 63ffb113 03-Jul-1997 Philippe Charnier <charnier@FreeBSD.org>

Add rcsid, prototypes. Use err(3).


# f4c1975c 23-Apr-1997 Bruce Evans <bde@FreeBSD.org>

Removed inconsistent declaration of malloc(). `make world' with DESTDIR
set to something other than "/" now actually works.


# 3f8da92b 10-Sep-1996 Poul-Henning Kamp <phk@FreeBSD.org>

Add -c flag to fmt to center lines.


# 003aaef8 22-Apr-1996 Sujal Patel <smpatel@FreeBSD.org>

Fix a segfault which occurs when it gets an empty input line.
Closes PR bin/1153

Reviewed by: smpatel
Submitted by: Matthew C. Mead (mmead@Glock.COM)


# e6c267f1 15-Nov-1995 Joerg Wunsch <joerg@FreeBSD.org>

Dynamically allocate line buffers, instead of assuming that all the
world would fit into BUFSIZ.


# 8bbd9072 24-Oct-1995 Andrey A. Chernov <ache@FreeBSD.org>

Add setlocale LC_CTYPE


# 7799f52a 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# d293af2d 11-May-1995 Andrey A. Chernov <ache@FreeBSD.org>

Make fmt ctype-aware
Fix non-critical bug with getting EOF double times
Not call strlen for zero length test


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources