summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/forward.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-8/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Backout previous commit, there are still some issues with it.landry2008-11-131-161/+58
| | | | ok sthen@
* Permit tail -f to follow multiple files, useful when you want to monitorlandry2008-10-171-58/+161
| | | | | | | | several logfiles in a single terminal. split forward() and move the corresponding -rewritten- code to follow(). Closes PR 5092. ok millert@ gilles@ sobrado@
* use EV_SET() instead of doing it by hand; Iruata Souzaderaadt2007-10-221-11/+10
|
* unneeded includes and whitespace police; from Igor Zinovikotto2007-09-291-7/+2
|
* ANSIfy. Ok ray@kjell2006-03-241-7/+3
|
* If kqueue is not available, revert back to old behavior. Unbreaks tail -fotto2004-03-121-4/+7
| | | | | on NFS and other filesystems not supporting kqueues. ok tedu@ millert@
* Unbreak file truncation handling. Resolves PR 3689.otto2004-03-011-6/+7
| | | | ok tdeval@ millert@
* make -b and -c work with large offsets; tweak from millert@otto2004-02-161-8/+8
| | | | ok henning@ itojun@ millert@
* typo in comment. ok henning@otto2003-07-141-3/+3
|
* rewrite to not use mmap(2). solves a bunch of issues:henning2003-07-011-28/+35
| | | | | | | | | | | - No more I/O related SEGVs (PR 2337?). - Performance linear to size of output, not input file size, even for very large files. Same for -r. - Reverse tail also works for very large files. - Very large values of n possible, even for very large files. Same for -r. work by Otto Moerbeek <otto@drijf.net> tested by and ok millert@ and myself
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* kill more registersmpech2001-11-191-4/+4
| | | | millert@ ok
* Use kqueue for -f.art2001-08-181-4/+51
|
* When doing tail -f from stdin don't reopen a local file named stdin.art2000-11-211-3/+3
|
* MAP_FAILED, not -1art2000-10-121-3/+3
|
* Get rid of repeating error messages; From netbsd millert@ okericj2000-06-231-6/+10
|
* supply particular mapping type to the mmap(2) instead of bogus 0mickey1999-08-041-4/+4
|
* Fix broken conversion of private err() function and make ierr() and oerr()millert1999-02-031-23/+23
| | | | | | | | | | back into functions, not macros. Also make functions that call mmap() return an int so we can fall back to non-mmap (slow) version on mmap failure. Noticable effects: o when you tail multiple files, if one of the files doesn't exist or is otherwise broken, keep on going to the next file. o it is now possible to tail files > 2gig, though it will be *very* slow since tail will be unable to use mmap()
* In -f mode notice when the file has been replace or truncated andmillert1997-05-301-3/+20
| | | | deal. Useful for tail'ing log files that get rotated.
* why select(2) when you can sleep(3) cheap?kstailey1997-05-291-13/+3
|
* Fix core dump and use libc err(3) instead of private one (which hadmillert1997-01-121-9/+11
| | | | slightly different semantics). Also clean up some gcc -Wall'isms.
* rcsidderaadt1996-06-261-1/+2
|
* From NetBSD:niklas1996-02-231-15/+10
| | | | | | Don't rely on select() not to modify the timeval argument. Also, simplify the code by passing in NULL rather than an empty fd_set to indicate no file descriptors.
* initial import of NetBSD treederaadt1995-10-181-0/+239