Commit Graph

19 Commits

Author SHA1 Message Date
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
wollman
b8acd10c93 Cross-reference between lam(1) and paste(1). Add a STANDARDS section to
lam(1) indicating that paste(1) is a standard way to do some of the same
things.

MFC after:	1 week
2001-09-21 02:51:07 +00:00
ru
bde8ec1b70 mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
b5cd63f616 mdoc(7) police: use the default ``file ...'' feature of the .Ar macro. 2001-02-13 09:56:35 +00:00
charnier
1a3d0bcf01 Put flags under .Fl. Add DIAGNOSTICS section name 2000-03-26 14:47:43 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
nik
6578739ddb Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:24:20 +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