Commit Graph

18 Commits

Author SHA1 Message Date
mrg
53e1c6f576 add support for:
-q quiet; never show filename headers
	-v verbose; always show headers
	-c <bytecount>; count <bytecount> bytes, not lines

as seen in GNU head(1).
2004-05-04 10:57:42 +00:00
jmmv
b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem
ef83aa34d9 clear errno before strto(u)l() if we're going to test it for ERANGE afterwards 2003-04-18 03:21:00 +00:00
cgd
a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
christos
23bb393e6b fix nested extern 2001-02-05 02:09:37 +00:00
drochner
85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
christos
9794a7e065 char -> unsigned char 1998-12-19 16:37:28 +00:00
christos
26d6865f8e Remove __GNUC__ ifdef, and make usage string consistent with other programs. 1998-01-31 20:42:07 +00:00
kleink
226c774dba * When opening a file fails, just issue a warning; convert to appropriate
use of the err(3) function; from NAKAJIMA Yoshihiro in PR bin/4870.
* Initialize native locale environment on startup.
* Since strtol() is used to convert the number of lines to be printed,
  make linecnt and assorted variables `long's, and perform range checks
  on it.
1998-01-27 17:00:19 +00:00
lukem
78a738b31b use err.h for err() prototype, deprecate register, fix .Nm usage 1997-10-19 02:23:41 +00:00
mrg
3ac0787450 merge lite-2; also WARNSify the 2 warnings left. 1997-10-18 13:15:18 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc
2ddbb97f0f #include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.
1993-10-13 18:33:45 +00:00
jtc
f7c6bf575a Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
1993-08-27 22:30:10 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
jtc
aab7593a78 Make POSIX 1003.2 (Draft 11.2) compliant. 1993-07-15 17:05:00 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00