summaryrefslogtreecommitdiff
path: root/usr.bin/tail
AgeCommit message (Collapse)Author
2006-10-02- simplify a list itemJason McIntyre
- use .Ex
2006-10-02reword a clunky sentence;Jason McIntyre
2006-03-24ANSIfy. Ok ray@Kjell Wooding
2006-03-22Clean up some lint and -Wall.Kjell Wooding
Changed many signed types ->size_t for consistency. Also, fix some realloc usage. Original from <jasonrcrawford at gmail.com> (ok ray@) Additions and additional cleanup to fix some off_t -> size_t issue by me. "looks good" otto@
2004-03-12If kqueue is not available, revert back to old behavior. Unbreaks tail -fOtto Moerbeek
on NFS and other filesystems not supporting kqueues. ok tedu@ millert@
2004-03-01Unbreak file truncation handling. Resolves PR 3689.Otto Moerbeek
ok tdeval@ millert@
2004-02-16make -b and -c work with large offsets; tweak from millert@Otto Moerbeek
ok henning@ itojun@ millert@
2003-07-14typo in comment. ok henning@Otto Moerbeek
2003-07-01rewrite to not use mmap(2). solves a bunch of issues:Henning Brauer
- 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
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.
2003-04-08strlcpy conversion, increase buffer size by one char. ok millert@Daniel Hartmeier
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-11-19kill more registersMike Pechkin
millert@ ok
2001-09-19occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok p.s. Next commit will fix a typo in the sys/
2001-08-18Use kqueue for -f.Artur Grabowski
2001-07-17-Wall cleanup; ok deraadtPeter Valchev
2001-01-17avoid C sequence point issues; found by cgd@netbsd.org using a developmentPaul Janzen
version of gcc.
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-10-07- Add EXAMPLES section.Aaron Campbell
- Document that -number is a synonym for -n number. - Some minor formatting changes.
2000-06-23Get rid of repeating error messages; From netbsd millert@ okEric Jackson
2000-03-11Various cleanups and standardizations.Aaron Campbell
2000-01-22ie. -> i.e.,Aaron Campbell
1999-08-04supply particular mapping type to the mmap(2) instead of bogus 0Michael Shalayeff
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-04-29don't step on the tail if there is no one, or core dumps; millert - yesMichael 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()
1998-12-16more .Nm fixesAaron Campbell
1998-10-30usr.bin/ man page fixes, t-zAaron Campbell
1998-09-06More man page fixes. Spelling, grammar, some typos. Lots of double-wordAaron Campbell
occurrences squashed as well.
1997-09-21$OpenBSD$Theo de Raadt
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-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
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