/[base]/head/usr.bin/col/col.c
ViewVC logotype

Log of /head/usr.bin/col/col.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 366577 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 9 15:27:37 2020 UTC (2 years, 7 months ago) by markj
File length: 14673 byte(s)
Diff to previous 335395
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


Revision 335395 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 19 23:43:14 2018 UTC (4 years, 11 months ago) by oshogbo
File length: 14228 byte(s)
Diff to previous 326025
Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.

No functional change intended.


Revision 326025 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 20 19:49:47 2017 UTC (5 years, 6 months ago) by pfg
File length: 14246 byte(s)
Diff to previous 314436
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.


Revision 314436 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 28 23:42:47 2017 UTC (6 years, 3 months ago) by imp
File length: 14202 byte(s)
Diff to previous 306813
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


Revision 306813 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 7 17:56:57 2016 UTC (6 years, 7 months ago) by oshogbo
File length: 14202 byte(s)
Diff to previous 282722
Remove the duplicated code using Capsicum helpers.

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


Revision 282722 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 10 11:41:38 2015 UTC (8 years ago) by bapt
File length: 14663 byte(s)
Diff to previous 282669
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


Revision 282669 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 8 22:11:54 2015 UTC (8 years ago) by bapt
File length: 14401 byte(s)
Diff to previous 282342
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


Revision 282342 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 2 12:22:24 2015 UTC (8 years, 1 month ago) by bapt
File length: 13773 byte(s)
Diff to previous 282309
Capsicumize col(1)


Revision 282309 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 1 17:33:32 2015 UTC (8 years, 1 month ago) by bapt
File length: 13061 byte(s)
Diff to previous 282305
Use defines to improve clarity

MFC after:	2 weeks


Revision 282305 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 1 17:18:07 2015 UTC (8 years, 1 month ago) by bapt
File length: 13075 byte(s)
Diff to previous 280911
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


Revision 280911 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 31 15:03:58 2015 UTC (8 years, 2 months ago) by kevlo
File length: 13092 byte(s)
Diff to previous 273242
Remove bogus cast.


Revision 273242 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 17 21:09:03 2014 UTC (8 years, 7 months ago) by jmg
File length: 13124 byte(s)
Diff to previous 227157
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


Revision 227157 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 6 08:14:22 2011 UTC (11 years, 7 months ago) by ed
File length: 13121 byte(s)
Diff to previous 216370
Add missing static keywords to col(1)


Revision 216370 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 11 08:32:16 2010 UTC (12 years, 5 months ago) by joel
File length: 12966 byte(s)
Diff to previous 210088
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


Revision 210088 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 15 00:04:14 2010 UTC (12 years, 10 months ago) by emaste
File length: 13203 byte(s)
Diff to previous 160464
Remove more extraneous ;s.


Revision 160464 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 18 07:16:25 2006 UTC (16 years, 10 months ago) by stefanf
File length: 13204 byte(s)
Diff to previous 152394
The variables i and tot don't need to be static.


Revision 152394 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 13 20:30:13 2005 UTC (17 years, 6 months ago) by dwmalone
File length: 13204 byte(s)
Diff to previous 132825
Avoid shadowing a local scratch variable,


Revision 132825 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 29 07:28:26 2004 UTC (18 years, 10 months ago) by tjr
File length: 13204 byte(s)
Diff to previous 132824
Sort #include directives and remove one duplicate that crept in to the
previous commit.


Revision 132824 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 29 07:23:37 2004 UTC (18 years, 10 months ago) by tjr
File length: 13224 byte(s)
Diff to previous 102944
Add support for multibyte characters, loosely based on Bruno Haible's
work in the util-linux package.


Revision 102944 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 4 23:29:10 2002 UTC (20 years, 9 months ago) by dwmalone
File length: 12759 byte(s)
Diff to previous 102084
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


Revision 102084 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 19 03:07:56 2002 UTC (20 years, 9 months ago) by jmallett
File length: 12785 byte(s)
Diff to previous 92920
Remove local prototypes for main().


Revision 92920 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 22 01:22:50 2002 UTC (21 years, 2 months ago) by imp
File length: 12809 byte(s)
Diff to previous 87628
remove __P


Revision 87628 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 10 21:13:08 2001 UTC (21 years, 5 months ago) by dwmalone
File length: 12857 byte(s)
Diff to previous 87242
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.


Revision 87242 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 2 23:34:16 2001 UTC (21 years, 6 months ago) by markm
File length: 12851 byte(s)
Diff to previous 80293
Use __FBSDID().


Revision 80293 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 24 14:14:11 2001 UTC (21 years, 10 months ago) by obrien
File length: 12883 byte(s)
Diff to previous 78384
Remove the misnamed `xmalloc' and replace its uses with the realloc (along
with error checking) that it actually was.


Revision 78384 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 17 04:24:16 2001 UTC (21 years, 11 months ago) by mikeh
File length: 12884 byte(s)
Diff to previous 78383
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


Revision 78383 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 17 03:56:00 2001 UTC (21 years, 11 months ago) by mikeh
File length: 12708 byte(s)
Diff to previous 77248
Use err(3) and style(9) cleanup.

MFC after:	2 weeks


Revision 77248 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 26 22:45:14 2001 UTC (22 years ago) by kris
File length: 12841 byte(s)
Diff to previous 76495
Fix a trivial warning and clamp down with WARNS=2

MFC after:	1 week


Revision 76495 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 11 23:53:46 2001 UTC (22 years ago) by dd
File length: 12811 byte(s)
Diff to previous 58602
Document the -h option.


Revision 58602 - (view) (download) (annotate) - [select for diffs]
Modified Sun Mar 26 14:23:23 2000 UTC (23 years, 2 months ago) by charnier
File length: 12810 byte(s)
Diff to previous 41568
Use errx(). .Nm fixes


Revision 41568 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 6 22:58:23 1998 UTC (24 years, 6 months ago) by archie
File length: 12842 byte(s)
Diff to previous 24360
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


Revision 24360 - (view) (download) (annotate) - [select for diffs]
Modified Sat Mar 29 04:34:07 1997 UTC (26 years, 2 months ago) by imp
File length: 12830 byte(s)
Diff to previous 23693
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


Revision 23693 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 11 13:43:33 1997 UTC (26 years, 3 months ago) by peter
File length: 12831 byte(s)
Diff to previous 11765
Merge from Lite2


Revision 11765 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 24 06:15:05 1995 UTC (27 years, 7 months ago) by ache
File length: 12750 byte(s)
Diff to previous 5676
Add setlocale LC_CTYPE


Revision 5676 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 17 07:02:31 1995 UTC (28 years, 4 months ago) by bde
File length: 12696 byte(s)
Diff to previous 1591
Obtained from: looked at the fix in 1.1.5 and rewrote it

Fix entabbing.


Revision 1591 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 27 12:33:43 1994 UTC (29 years ago) by rgrimes
File length: 12507 byte(s)
Copied from: vendor/CSRG/dist/usr.bin/col/col.c revision 1590
Diff to previous 1590
This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


Revision 1590 - (view) (download) (annotate) - [select for diffs]
Added Fri May 27 12:33:43 1994 UTC (29 years ago) by rgrimes
Original Path: vendor/CSRG/dist/usr.bin/col/col.c
File length: 12507 byte(s)
BSD 4.4 Lite Usr.bin Sources


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.27