summaryrefslogtreecommitdiff
path: root/usr.bin/head/head.c
AgeCommit message (Collapse)Author
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-03-14kill more registers.Mike Pechkin
millert@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
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