CVS log for src/bin/cat/cat.c
Up to [cvs.NetBSD.org] / src / bin / cat
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Dec 10 15:31:53 2023 UTC (11 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -6
lines
cat: repeat storage class 'static' for local functions
No binary change.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Dec 7 20:02:07 2023 UTC (11 months, 4 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -6
lines
cat: reduce visibility of local functions
No functional change.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri May 19 05:28:54 2023 UTC (18 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +13 -15
lines
cat: fix misleading indentation
Found by indent, but not by GCC 10.
No binary change.
Revision 1.57.16.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 19:37:30 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.57.16.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.16.1: +0 -0
lines
Ooops, restore accidently removed files from merge mishap
Revision 1.57.16.1
Tue Apr 21 18:41:02 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.57: +2 -2
lines
Sync with HEAD
Revision 1.47.20.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 17:41:48 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +9 -17
lines
Pull up following revision(s) (requested by sevan in ticket #1387):
bin/cat/cat.c: revision 1.57
When invoked with -se, print a '$' on blank lines
Obtained from OpenBSD r1.13 of src/bin/cat/cat.c
Closes PR bin/51250
Reviewed by Christos@
Revision 1.54.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 5 19:03:31 2016 UTC (8 years, 5 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +9 -17
lines
Pull up following revision(s) (requested by sevan in ticket #1182):
bin/cat/cat.c: revision 1.57
distrib/sets/lists/tests/mi: revision 1.675
tests/bin/cat/Makefile: revision 1.2
tests/bin/cat/d_se_output.in: revision 1.1
tests/bin/cat/d_se_output.out: revision 1.1
tests/bin/cat/t_cat.sh: revision 1.3
When invoked with -se, print a '$' on blank lines
Obtained from OpenBSD r1.13 of src/bin/cat/cat.c
Closes PR bin/51250
Reviewed by Christos@
--
Add a unit test for PR bin/51250 called se_output. se_output checks
the output of cat when invoked with '-se', to ensure that a '$' is
printed on blank lines.
--
Add input/output files for new test case - fix build
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Jun 16 00:52:37 2016 UTC (8 years, 5 months ago) by sevan
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -17
lines
When invoked with -se, print a '$' on blank lines
Obtained from OpenBSD r1.13 of src/bin/cat/cat.c
Closes PR bin/51250
Reviewed by Christos@
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Jun 16 00:45:37 2016 UTC (8 years, 5 months ago) by sevan
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -2
lines
Revert previous change made by me in r1.55
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Jul 25 16:17:01 2015 UTC (9 years, 4 months ago) by sevan
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -3
lines
Drop the case '?' which is defined after case 'default'.
case 'default' statement introduced in the last commit to cat.c in the CSRG archive.
Obtained from OpenBSD bin/cat/cat.c r1.3.
Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:45:10 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.48.2.2: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.2: +10 -4
lines
Rebase to HEAD as of a few days ago.
Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:26:22 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.2: +10 -4
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Dec 8 08:32:13 2013 UTC (10 years, 11 months ago) by spz
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-base,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Branch point for: netbsd-7
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -4
lines
more complete fix for Coverity issue 976653
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Dec 3 17:06:51 2013 UTC (11 years ago) by spz
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +10 -5
lines
Coverity complaint fixes:
bin/cat/cat.c 976654 Argument cannot be negative
(missing check for fileno result, stdout)
bin/cat/cat.c 976653 Improper use of negative value
(missing check for fileno result, stdin)
Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:23:50 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.1: +6 -4
lines
resync with head
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:25:52 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +22 -15
lines
sync with (a bit old) head
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 02:57:28 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +21 -16
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Nov 19 19:41:31 2012 UTC (12 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -5
lines
only allocate if it would not fit in our buffer.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Nov 19 19:34:03 2012 UTC (12 years ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -3
lines
fix bogus warning for zero-sized files.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Nov 10 18:42:22 2012 UTC (12 years ago) by wiz
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
Sync usage with man page.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Nov 10 16:18:41 2012 UTC (12 years ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +21 -16
lines
Add an option to read with a different buffer size, and document the
buffer size we use. This allows us to cat -B 10000000 /proc/<pid>/maps
for example which cannot handle seeking.
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:01:35 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4
lines
sync with head
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Mar 17 23:35:28 2012 UTC (12 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4
Branch point for: tls-maxphys
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4
lines
fix signed blksize_t lossage.
Revision 1.46.12.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:27:39 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +4 -4
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Jul 20 00:52:39 2008 UTC (16 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-premerge-20091211,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-premerge-20101231,
matt-mips64-base2,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
netbsd-6
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4
lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jan 13 11:51:59 2007 UTC (17 years, 10 months ago) by cbiere
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: wrstuden-revivesa
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +17 -17
lines
- Applied patch from PR bin/35408 by Andreas Wiese.
- Use EXIT_FAILURE instead of 1.
- Use return instead of exit() at the end of main().
- Use sizeof() instead of BUFSIZ.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Oct 8 21:52:56 2006 UTC (18 years, 2 months ago) by elad
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -3
lines
PR/32759: Ulrich Heilmann: Output of cat -s -n is wrong
Applied patch from David A. Holland, thanks!
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Feb 26 19:44:24 2006 UTC (18 years, 9 months ago) by christos
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -2
lines
PR/32931: Johan Veenhuizen: cat(1) does not clear the EOF indicator for
stdin in cooked mode.
Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Wed Jun 16 01:26:42 2004 UTC (20 years, 5 months ago) by jmc
Branches: netbsd-1-6
Diff to: previous 1.31.2.2: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.2: +6 -2
lines
Missing config.h bring-in. Add for PR#24481
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Jan 4 03:31:28 2004 UTC (20 years, 11 months ago) by jschauma
Branches: MAIN
CVS tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -6
lines
Remove unused code left over from temporary printescaped functionality.
Noted by Jeff Ito in PR bin/23966.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:41 2003 UTC (21 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -10
lines
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Sep 14 19:20:16 2003 UTC (21 years, 2 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -46
lines
Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Aug 27 18:36:19 2003 UTC (21 years, 3 months ago) by uwe
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -2
lines
Include "config.h" if building as a host program.
Need this to get SIZE_MAX defintion from compat_defs.h on FreeBSD.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Aug 25 16:38:55 2003 UTC (21 years, 3 months ago) by kleink
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
This is a host tool, so for the time being change SIZE_T_MAX to the
more portable SIZE_MAX; partially addresses PR toolchain/22504 from
Christian Limpach.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Aug 13 03:24:57 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
use bounded string op
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:05:01 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -7
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Aug 4 22:31:21 2003 UTC (21 years, 4 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +50 -8
lines
As discusses a little while back on tech-userlevel:
If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.
While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 3 14:22:30 2002 UTC (22 years, 1 month ago) by he
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001
Diff to: previous 1.31.2.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.2.1: +4 -3
lines
Pull up revision 1.35 (requested by thorpej in ticket #793):
Don't use MAX(); not all systems have it, and this is a host
tool.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Sep 13 18:07:52 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -3
lines
Don't use MAX(); not all systems have it, and this is a host tool.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jun 11 22:05:07 2002 UTC (22 years, 5 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -4
lines
Rather than (ab)using the standard error message for EFTYPE, print our own
message when "cat -f" is used on a non-regular file. This is necessary to
make cat(1) portable to systems that don't have EFTYPE (like Linux).
Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jun 11 22:01:30 2002 UTC (22 years, 5 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4
lines
Only use __RCSID() and __COPYRIGHT() if they're defined.
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 11 15:45:25 2002 UTC (22 years, 5 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +18 -5
lines
Pull up revision 1.32 (requested by mason in ticket #243):
Add -l option to cat(1), as discussed on tech-userlevel. This option
causes cat(1) to use fcntl(2) to set an exclusive advisory lock on stdout.
While being useful in its own right, this will shortly be used to
guarantee orderly writing to METALOG in the case of unprivileged builds
with NBUILDJOBS > 1.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jun 10 07:43:33 2002 UTC (22 years, 6 months ago) by mason
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +18 -5
lines
Add -l option to cat(1), as discussed on tech-userlevel. This option
causes cat(1) to use fcntl(2) to set an exclusive advisory lock on stdout.
While being useful in its own right, this will shortly be used to
guarantee orderly writing to METALOG in the case of unprivileged builds
with NBUILDJOBS > 1.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu May 9 02:19:42 2002 UTC (22 years, 7 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -8
lines
Simplify previous - sbuf.st_blksize is a uint32_t, so just use
bsize = MAX(sbuf.st_blksize, BUFSIZ);
and skip playing with SSIZE_MAX altogether.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu May 9 02:13:10 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -2
lines
Fix oversight in last.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu May 9 02:07:38 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -2
lines
Skip a check that is always true if _LP64 is defined.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Sep 16 12:12:13 2001 UTC (23 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +6 -4
lines
Some KNF, via patch by Petri Koistinen in private mail.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jul 29 22:40:57 2001 UTC (23 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -6
lines
Some style improvements. [Nearly] #13592 by Petri Koistinen.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jan 3 14:32:40 2001 UTC (23 years, 11 months ago) by mjl
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +12 -18
lines
Un-__P and ANSIfy
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Jan 3 14:29:24 2001 UTC (23 years, 11 months ago) by mjl
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4
lines
Sync usage w/ options, remove bogus cast.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Jul 31 02:49:28 2000 UTC (24 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -3
lines
don't use the "f" flag to fopen when -f is not specified (from Chuck Cranor)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Apr 14 05:52:56 2000 UTC (24 years, 7 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
minoura-xpg4dl-base,
minoura-xpg4dl
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -3
lines
Don't declare 'extern opt*' getopt variables.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Jan 15 01:13:15 2000 UTC (24 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +25 -5
lines
Add a -f fflag that makes sure that we only try to read from plain files
so that there is no chance to block.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jul 8 01:56:09 1999 UTC (25 years, 5 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
Make this compile with WARNS = 2
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 26 21:34:16 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +12 -14
lines
pullup 1.19->1.20 (Juergen Hannken-Illjes)
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Apr 26 09:15:59 1999 UTC (25 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +12 -14
lines
Fix buffer allocation in function `raw_cat'. It was possible to get a
buffer size of zero if stdout has a block size of 0.
The command `rsh <host> cat <files>' gives no output and no error.
- Allocate a minimum of BUFSIZ bytes for buffer.
- Use a static buffer if either `fstat' or `malloc' fails.
- Do the allocation once since stdout will not change block size.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Mar 11 12:04:18 1999 UTC (25 years, 9 months ago) by fair
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +20 -12
lines
Patch from PR#5156 to adjust buffer size to match filesystem block size
when "-u" option used, plus some additional documentation.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jul 28 05:31:22 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2
lines
Delint.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 8 21:45:36 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +18 -9
lines
Pull up 1.16 and 1.17 (kleink)
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jan 27 16:37:31 1998 UTC (26 years, 10 months ago) by kleink
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +14 -6
lines
Fix the EOL-indicators ('$') toggled by the `-e' option to be lined up
correctly when used in conjunction with the `-b' option; from Giles Lean
in PR bin/4841, modified by me to retain the line-counting semantics of `-b'.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Nov 5 21:17:14 1997 UTC (27 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -5
lines
lint
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jul 20 04:34:33 1997 UTC (27 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -4
lines
__COPYRIGHT()/__RCSID()/prototype police.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jun 26 23:07:19 1997 UTC (27 years, 5 months ago) by kleink
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3
lines
When allocating a buffer failed, don't fail silently.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Apr 27 18:34:33 1997 UTC (27 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -3
lines
Indicate file handling failures by exit codes >0; fixes PR/3538 from
David Eckhardt <davide@piper.nectar.cs.cmu.edu>.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jan 9 16:07:09 1997 UTC (27 years, 11 months ago) by tls
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +8 -8
lines
kill use of register
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Sep 7 06:12:54 1995 UTC (29 years, 3 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2,
netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3
lines
Sync with 4.4lite2
Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Sep 7 06:11:01 1995 UTC (29 years, 3 months ago) by jtc
Branches: WFJ-920714,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +4 -3
lines
imported from 44lite2
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Mar 21 09:02:02 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -2
lines
convert to new RCS id conventions.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Sep 20 01:24:11 1994 UTC (30 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +31 -61
lines
Merge with 4.4-Lite version.
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Sep 20 01:05:26 1994 UTC (30 years, 2 months ago) by mycroft
Branches: WFJ-920714,
CSRG
CVS tags: lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +29 -55
lines
Import original 4.4-Lite version.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Nov 19 20:00:51 1993 UTC (31 years ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -1
lines
POSIX.2 utilities must call setlocale(LC_ALL, "");
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Sep 10 18:36:17 1993 UTC (31 years, 3 months ago) by jtc
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -5
lines
Too few arguments for err() format specification.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Aug 1 19:01:07 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2
lines
Add RCS identifiers.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jul 11 07:47:40 1993 UTC (31 years, 5 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4
lines
fix the cat bug found by mycroft in a more asthetically pleasing
way... also turn "Header" into "Id" for RCS...
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jul 11 06:36:20 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
Work correctly if a write() comes up short.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Mar 23 00:23:29 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-alpha-1,
netbsd-0-8
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1
lines
changed "Id" to "Header" for rcsids
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 08:04:00 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0
lines
added rcs ids to all files
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>