aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/head/head.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicate __FBSDID() - spotted by trying to build with a non-GNUJuli Mallett2002-07-231-3/+0
| | | | | | | compiler. Notes: svn path=/head/; revision=100575
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-0/+2
| | | | Notes: svn path=/head/; revision=99112
* Fix VCS tags; ANSIfy functionsMark Murray2002-04-281-14/+8
| | | | Notes: svn path=/head/; revision=95652
* 1) Staticise.David Malone2002-03-301-13/+13
| | | | | | | | 2) Remove registers. 3) Change some ints to size_t which are used with fread/fwrite. Notes: svn path=/head/; revision=93441
* remove __PWarner Losh2002-03-221-4/+4
| | | | Notes: svn path=/head/; revision=92920
* Make usage message and man page synopsis reflect the fact that -nDavid Malone2002-01-241-1/+1
| | | | | | | | | | | and -c are mutually exclusive. PR: 34233 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 3 days Notes: svn path=/head/; revision=89767
* In order to perform faster when doing "head -n", use a pair ofAlfred Perlstein2001-11-021-7/+8
| | | | | | | | fgetln/fwrite instead of getc/putchar, this seems about five times faster. Notes: svn path=/head/; revision=85861
* change a global into a local, misc style fixesAlfred Perlstein2001-11-021-7/+5
| | | | Notes: svn path=/head/; revision=85859
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* fread() returns 0 on eof or error, not EOF. This fixes the followingDag-Erling Smørgrav1998-10-091-2/+2
| | | | | | | | | | | | | bug: "head -c <n>" never exit and loops forever (until it is killed), if the input stream has fewer bytes than specified (n). PR: bin/8225 Submitted-by: FUJIMOTO Kensaku <fujimoto@oscar.elec.waseda.ac.jp> Notes: svn path=/head/; revision=40114
* Setting eval to 1 after calling warn was the original behaviour.Philippe Charnier1997-07-111-1/+2
| | | | Notes: svn path=/head/; revision=27328
* Use err(3) instead of local redefinition.Philippe Charnier1997-07-101-42/+14
| | | | Notes: svn path=/head/; revision=27314
* Support for -c, byte count.Alexander Langer1997-04-061-7/+45
| | | | Notes: svn path=/head/; revision=24665
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Merge from Lite2Peter Wemm1997-03-111-3/+5
| | | | Notes: svn path=/head/; revision=23693
* first check the count and then getWolfram Schneider1996-02-261-1/+1
| | | | | | | | | | the next line of characters and not cause it to first get the characters even if the count (cnt) has become 0. Submitted by: R Bezuidenhout <rbezuide@mikom.csir.co.za> Notes: svn path=/head/; revision=14269
* head(1) ignored EOFs (in certain cases).Joerg Wunsch1995-08-151-3/+2
| | | | | | | | | Closes PR # bin/678: head(1) ignore EOF Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider) Notes: svn path=/head/; revision=10064
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+180
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590