summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/reverse.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
* unneeded includes and whitespace police; from Igor Zinovikotto2007-09-291-7/+2
|
* ANSIfy. Ok ray@kjell2006-03-241-9/+4
|
* Clean up some lint and -Wall.kjell2006-03-221-4/+5
| | | | | | | | | | 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@
* make -b and -c work with large offsets; tweak from millert@otto2004-02-161-5/+5
| | | | ok henning@ itojun@ millert@
* rewrite to not use mmap(2). solves a bunch of issues:henning2003-07-011-37/+52
| | | | | | | | | | | - 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-4/+4
|
* kill more registersmpech2001-11-191-9/+9
| | | | millert@ ok
* -Wall cleanup; ok deraadtpvalchev2001-07-171-3/+3
|
* avoid C sequence point issues; found by cgd@netbsd.org using a developmentpjanzen2001-01-171-4/+6
| | | | version of gcc.
* MAP_FAILED, not -1art2000-10-121-3/+3
|
* Get rid of repeating error messages; From netbsd millert@ okericj2000-06-231-4/+4
|
* supply particular mapping type to the mmap(2) instead of bogus 0mickey1999-08-041-4/+4
|
* don't step on the tail if there is no one, or core dumps; millert - yesmickey1999-04-291-2/+5
|
* Fix broken conversion of private err() function and make ierr() and oerr()millert1999-02-031-18/+14
| | | | | | | | | | 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()
* Fix core dump and use libc err(3) instead of private one (which hadmillert1997-01-121-10/+12
| | | | slightly different semantics). Also clean up some gcc -Wall'isms.
* rcsidderaadt1996-06-261-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+264