History log of /freebsd-current/usr.bin/col/col.c
Revision Date Author Comments
# 0b8224d1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

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


# 6b43126f 09-Oct-2020 Mark Johnston <markj@FreeBSD.org>

col(1): Fix a couple of bugs

- When flushing extra lines after all input has been processed, make
sure that local state is reinitialized correctly.
- When -f is specified, make sure to end output with a full newline.
- Fix some style issues and update comments.
- Add some regression tests.

PR: 249308
Submitted by: Yang Zhong <yzhong@freebsdfoundation.org>
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26536


# 7672a014 19-Jun-2018 Mariusz Zaborski <oshogbo@FreeBSD.org>

Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.

No functional change intended.


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

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


# a4e3fc54 07-Oct-2016 Mariusz Zaborski <oshogbo@FreeBSD.org>

Remove the duplicated code using Capsicum helpers.

Reviewed by: cem, ed, bapt, emaste
Differential Revision https://reviews.freebsd.org/D8140


# 7bc60a16 10-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

For half and reverse line feeds, recognize both SUSv2-style escape-digit
and BSD-style escape-control-char sequences in the input stream.

Submitted by: schwarze at OpenBSD
Discussed with: schwarze at OpenBSD
Obtained from: OpenBSD


# f23ed79b 08-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Fix about ten integer overflows and underflows and a handful of logic
errors in line number handling.

Submitted by: ingo at OpenBSD
Discussed with: ingo at OpenBSD
Obtained from: OpenBSD


# e5ea68e7 01-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Capsicumize col(1)


# a9da03ef 01-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Use defines to improve clarity

MFC after: 2 weeks


# f6240da9 01-May-2015 Baptiste Daroussin <bapt@FreeBSD.org>

col: fixing 25 year old bug

Makes col(1) respect POSIX again for escape sequences as decribed in its manpage
The bug was introduced in CSRG in 1990
This also reverts r280911

Differential Revision: https://reviews.freebsd.org/D2424
Reviewed by: jhb
MFC after: 2 weeks


# 18463c77 31-Mar-2015 Kevin Lo <kevlo@FreeBSD.org>

Remove bogus cast.


# 7e2c0c79 17-Oct-2014 John-Mark Gurney <jmg@FreeBSD.org>

Fix to col when printing half-line feeds w/ -f option...

Message-Id on openbsd-tech: 20141017195810.GJ132@iris.usta.de
Submitted by: Ingo Schwarze
Obtained from: OpenBSD
MFC after: 3 days


# ab8d971c 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Add missing static keywords to col(1)


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
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


# 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.


# 5eb2aa45 14-Jul-2010 Ed Maste <emaste@FreeBSD.org>

Remove more extraneous ;s.


# 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.


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

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


# ae66acac 18-Jul-2006 Stefan Farfeleder <stefanf@FreeBSD.org>

The variables i and tot don't need to be static.


# 70708375 13-Nov-2005 David Malone <dwmalone@FreeBSD.org>

Avoid shadowing a local scratch variable,


# 919480b7 29-Jul-2004 Tim J. Robbins <tjr@FreeBSD.org>

Sort #include directives and remove one duplicate that crept in to the
previous commit.


# c3fae744 29-Jul-2004 Tim J. Robbins <tjr@FreeBSD.org>

Add support for multibyte characters, loosely based on Bruno Haible's
work in the util-linux package.


# f4ac32de 04-Sep-2002 David Malone <dwmalone@FreeBSD.org>

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


# 3a7fc8ce 18-Aug-2002 Juli Mallett <jmallett@FreeBSD.org>

Remove local prototypes for main().


# f1bb2cd2 21-Mar-2002 Warner Losh <imp@FreeBSD.org>

remove __P


# 9f5b04e9 10-Dec-2001 David Malone <dwmalone@FreeBSD.org>

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


# 84c0ff22 02-Dec-2001 Mark Murray <markm@FreeBSD.org>

Use __FBSDID().


# 44974a7f 24-Jul-2001 David E. O'Brien <obrien@FreeBSD.org>

Remove the misnamed `xmalloc' and replace its uses with the realloc (along
with error checking) that it actually was.


# 844518ff 16-Jun-2001 Mike Heffner <mikeh@FreeBSD.org>

Add the -p flag to force unknown control sequences to be passed
through unchanged.

Reviewed by: silence on -audit
Obtained from: NetBSD
MFC after: 3 weeks


# f34d0e74 16-Jun-2001 Mike Heffner <mikeh@FreeBSD.org>

Use err(3) and style(9) cleanup.

MFC after: 2 weeks


# 50d6b258 26-May-2001 Kris Kennaway <kris@FreeBSD.org>

Fix a trivial warning and clamp down with WARNS=2

MFC after: 1 week


# 43d665c0 11-May-2001 Dima Dorfman <dd@FreeBSD.org>

Document the -h option.


# a292105a 26-Mar-2000 Philippe Charnier <charnier@FreeBSD.org>

Use errx(). .Nm fixes


# fa146c53 06-Dec-1998 Archie Cobbs <archie@FreeBSD.org>

Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


# 1c8af878 28-Mar-1997 Warner Losh <imp@FreeBSD.org>

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# df3f5d9d 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Merge from Lite2


# 0da30e9a 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.


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

Add setlocale LC_CTYPE


# f746e67c 17-Jan-1995 Bruce Evans <bde@FreeBSD.org>

Obtained from: looked at the fix in 1.1.5 and rewrote it

Fix entabbing.


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

BSD 4.4 Lite Usr.bin Sources