ed
5675f1d7a7
Mark global functions and/or variables in paste(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:53 +00:00
joel
29af67e52c
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
2010-12-11 08:32:16 +00:00
delphij
0842b7d53f
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
delphij
b963db4652
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
charnier
d189165b4f
WARNS=6 chocked on unitialized variable.
2006-09-12 05:08:36 +00:00
tjr
e5cdb48ecf
Add support for multibyte characters in input files and delimiter
...
strings (arguments to the -d option.) This involves backing out paste.c
rev. 1.13 until we have a version of fgetln() that operates on wide
character streams.
2004-06-25 01:48:43 +00:00
tjr
4b1ea82b13
Use fgetln(3) to handle lines of unlimited length instead of a
...
getc/putc loop.
Suggested by: dd
2002-05-24 08:56:49 +00:00
tjr
c2f2a6104f
P1003.2 forbids imposing any limit on line lengths; read character by
...
character instead of manually buffering each line.
2002-05-24 07:05:10 +00:00
tjr
e1f16de894
Exit with non-zero status if any files specified could not be opened
...
when -s option is given (SUSv3).
2002-05-24 06:17:29 +00:00
jmallett
0109c30545
Clean up malloc(3)'s argument. Remove casts which do nothing when we're
...
using sizeof() anyway. Use slightly more consistent (per-file) error
reporting for malloc(3) returning NULL. If "malloc failed" was being printed,
don't use err(3). If a NULL format is being used, use err(3). In one case
errx(3) was being used with strerror(3), so just use err(3).
2002-05-17 05:11:07 +00:00
markm
82e411fc67
More low hanging warnings fruit; ANSIfy, de-register, constify.
2002-04-28 11:51:03 +00:00
imp
1698cb216e
remove __P
2002-03-22 01:33:25 +00:00
mike
54e30b4190
When invoked with no file arguments, display usage.
...
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
PR: 36074
Use new ID scheme.
2002-03-20 08:59:20 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
jb
78fe14dd30
Add #include <stdlib.h> to get prototype for malloc(). Without this,
...
the compiler assumes an int return. On alpha this is enough to ruin
ya day.
1998-02-20 04:21:46 +00:00
asami
96aaabc320
Remove bogus malloc() decl.
1997-08-05 03:40:04 +00:00
charnier
491754a358
Use err(3). Add prototypes. Silent -Wall.
1997-07-31 06:59:26 +00:00
imp
141381e1cb
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
rgrimes
f9ab90d9d6
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00