summaryrefslogtreecommitdiff
path: root/usr.bin/head/head.c
AgeCommit message (Collapse)Author
2001-07-04cleanup; santana@openbsd.org.mxTheo de Raadt
2000-11-07Add __P(). ok deraadt@Kevin Lo
1999-07-23- Make error msgs more consistent with other usr.bin/ utils.Aaron Campbell
- Use warn() instead of an fprintf().
1999-07-23- Use strtol() instead of atoi() so head(1) will complain when given badAaron Campbell
number specifications like: head -123foobar456. Also, check for ERANGE and abort if strtol() returned LONG_MAX or LONG_MIN. - Don't exit() when encountering a filename in argv[] that can't be open; instead just continue. - Don't keep decrementing `linecnt' if we've hit the end of the file. millert@ ok
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt