History log of /freebsd-10.2-release/usr.bin/col/col.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 282949 15-May-2015 bapt

MFC: r282305, r282309, r282342, r282669, r282722

r282305:
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

r282309:
Use defines to improve clarity

r282342:
Capsicumize col(1)

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

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

r282722:
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


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 227157 06-Nov-2011 ed

Add missing static keywords to col(1)


# 216370 11-Dec-2010 joel

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


# 210088 15-Jul-2010 emaste

Remove more extraneous ;s.


# 160464 18-Jul-2006 stefanf

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


# 152394 13-Nov-2005 dwmalone

Avoid shadowing a local scratch variable,


# 132825 29-Jul-2004 tjr

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


# 132824 29-Jul-2004 tjr

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


# 102944 04-Sep-2002 dwmalone

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


# 102084 19-Aug-2002 jmallett

Remove local prototypes for main().


# 92920 22-Mar-2002 imp

remove __P


# 87628 10-Dec-2001 dwmalone

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.


# 87242 02-Dec-2001 markm

Use __FBSDID().


# 80293 24-Jul-2001 obrien

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


# 78384 17-Jun-2001 mikeh

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


# 78383 17-Jun-2001 mikeh

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

MFC after: 2 weeks


# 77248 26-May-2001 kris

Fix a trivial warning and clamp down with WARNS=2

MFC after: 1 week


# 76495 11-May-2001 dd

Document the -h option.


# 58602 26-Mar-2000 charnier

Use errx(). .Nm fixes


# 41568 06-Dec-1998 archie

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


# 24360 29-Mar-1997 imp

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


# 23693 11-Mar-1997 peter

Merge from Lite2


# 11765 24-Oct-1995 ache

Add setlocale LC_CTYPE


# 5676 17-Jan-1995 bde

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

Fix entabbing.


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources