History log of /freebsd/usr.bin/fmt/fmt.c (Results 1 – 25 of 55)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

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


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0
# 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


Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0
# 9c831bbd 13-Apr-2016 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: The FreeBSD Foundation


# 074e77e6 13-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 13-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.


Revision tags: release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0
# 821df508 13-Dec-2009 Xin LI <delphij@FreeBSD.org>

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


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

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

Tested with: make universe


Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# 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,

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.

show more ...


Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0
# 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 15-Jul-2004 Tim J. Robbins <tjr@FreeBSD.org>

Use warn() instead of perror().


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# e026a48c 30-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}/.


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# 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: iedo

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

show more ...


# 57c6bd97 11-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 aft

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

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs
# c3aac50f 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6, release/2.2.5_cvs
# 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 21-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).


Revision tags: release/2.2.2_cvs
# 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.


Revision tags: release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1, release/2.1.5_cvs
# 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)


123