summaryrefslogtreecommitdiffstats
path: root/usr.bin/col/col.c
Commit message (Collapse)AuthorAgeFilesLines
* For half and reverse line feeds, recognize both SUSv2-style escape-digitbapt2015-05-101-0/+11
| | | | | | | | and BSD-style escape-control-char sequences in the input stream. Submitted by: schwarze at OpenBSD Discussed with: schwarze at OpenBSD Obtained from: OpenBSD
* Fix about ten integer overflows and underflows and a handful of logicbapt2015-05-081-48/+69
| | | | | | | | errors in line number handling. Submitted by: ingo at OpenBSD Discussed with: ingo at OpenBSD Obtained from: OpenBSD
* Capsicumize col(1)bapt2015-05-021-0/+19
|
* Use defines to improve claritybapt2015-05-011-5/+5
| | | | MFC after: 2 weeks
* col: fixing 25 year old bugbapt2015-05-011-4/+4
| | | | | | | | | | 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
* Remove bogus cast.kevlo2015-03-311-4/+4
|
* Fix to col when printing half-line feeds w/ -f option...jmg2014-10-171-1/+1
| | | | | | | Message-Id on openbsd-tech: 20141017195810.GJ132@iris.usta.de Submitted by: Ingo Schwarze Obtained from: OpenBSD MFC after: 3 days
* Add missing static keywords to col(1)ed2011-11-061-23/+23
|
* 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
* Remove more extraneous ;s.emaste2010-07-151-1/+1
|
* The variables i and tot don't need to be static.stefanf2006-07-181-2/+2
|
* Avoid shadowing a local scratch variable,dwmalone2005-11-131-2/+2
|
* Sort #include directives and remove one duplicate that crept in to thetjr2004-07-291-2/+1
| | | | previous commit.
* Add support for multibyte characters, loosely based on Bruno Haible'stjr2004-07-291-13/+31
| | | | work in the util-linux package.
* ANSIify function definitions.dwmalone2002-09-041-14/+8
| | | | | | | | | 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
* Remove local prototypes for main().jmallett2002-08-191-1/+0
|
* remove __Pimp2002-03-221-8/+8
|
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-5/+6
| | | | | | | | 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.
* Use __FBSDID().markm2001-12-021-6/+6
|
* Remove the misnamed `xmalloc' and replace its uses with the realloc (alongobrien2001-07-241-19/+11
| | | | with error checking) that it actually was.
* Add the -p flag to force unknown control sequences to be passedmikeh2001-06-171-3/+8
| | | | | | | | through unchanged. Reviewed by: silence on -audit Obtained from: NetBSD MFC after: 3 weeks
* Use err(3) and style(9) cleanup.mikeh2001-06-171-21/+13
| | | | MFC after: 2 weeks
* Fix a trivial warning and clamp down with WARNS=2kris2001-05-261-0/+1
| | | | MFC after: 1 week
* Document the -h option.dd2001-05-111-1/+1
|
* Use errx(). .Nm fixescharnier2000-03-261-8/+8
|
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).archie1998-12-061-2/+2
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2peter1997-03-111-1/+5
|
* Add setlocale LC_CTYPEache1995-10-241-0/+3
|
* Obtained from: looked at the fix in 1.1.5 and rewrote itbde1995-01-171-8/+18
| | | | Fix entabbing.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+534
OpenPOWER on IntegriCloud