summaryrefslogtreecommitdiff
path: root/usr.bin/tail/forward.c
AgeCommit message (Collapse)Author
2000-11-21When doing tail -f from stdin don't reopen a local file named stdin.Artur Grabowski
2000-10-12MAP_FAILED, not -1Artur Grabowski
2000-06-23Get rid of repeating error messages; From netbsd millert@ okEric Jackson
1999-08-04supply particular mapping type to the mmap(2) instead of bogus 0Michael Shalayeff
1999-02-03Fix broken conversion of private err() function and make ierr() and oerr()Todd C. Miller
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()
1997-05-30In -f mode notice when the file has been replace or truncated andTodd C. Miller
deal. Useful for tail'ing log files that get rotated.
1997-05-29why select(2) when you can sleep(3) cheap?kstailey
1997-01-12Fix core dump and use libc err(3) instead of private one (which hadTodd C. Miller
slightly different semantics). Also clean up some gcc -Wall'isms.
1996-06-26rcsidTheo de Raadt
1996-02-23From NetBSD:Niklas Hallqvist
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.
1995-10-18initial import of NetBSD treeTheo de Raadt