summaryrefslogtreecommitdiff
path: root/usr.bin/tail
AgeCommit message (Collapse)Author
2003-10-16safer use of reallocitojun
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-07-14minor KNFitojun
2003-03-10Use sleep(1) instead of usleep(1000000) to sleep for a second, sincelukem
usleep() doesn't support an argument >= 1000000. Problem noted & fix provided in [bin/20644] from Dave Huang.
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2002-10-30use kqueue to watch the file if possiblejdolecek
from FreeBSD via Luke Mewburn this specifically does NOT include FreeBSD rev. 1.28 change; it's my understanding -F is specifically meant to only detect removal of the tailed file, not to watch for intermediate path changes
2002-09-18Update error message after recent changes.skrll
2002-09-18Remove an old comment.mycroft
2002-09-18select() -> nanosleep()mycroft
2002-06-14Remove #if __STDC__. De-__P() and ANSIfy.wiz
2002-04-29Add -F to usage, per bin/16558 by Ryan Younce.wiz
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
2001-12-08Sort sections.wiz
2001-12-01Whitespace cleanup.wiz
2001-11-24fix tail; don't try to map more of the file than really existsexplorer
2001-11-21make tail -f and tail -10000 work on files > those which can be mmap()ed ↵explorer
whole. tail -r will still not function on large files.
2001-01-16avoid C sequence point issues warned about by development version of gcc.cgd
2001-01-04use %ll_ instead of the less standard %q_lukem
2000-10-11More format string cleanup by sommerfeld.is
1999-07-21avoid repeated error messages by making bytes(), lines() and rlines() returncgd
meaningful values, which can then be checked to avoid another error message.
1999-03-22More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled
so we shouldn't override it with versions in the manpages. Many more to come.
1998-12-19KNFchristos
1998-11-03explicitly zero the lines structure! How did this ever work before?christos
1998-11-03Pacify gcc-2.8.1 (extra braces).christos
1998-09-18Add bugs section noting that, with -F, tail can fail to detect a filecjs
truncation. Also note that -F option is an extension.
1998-09-18Remove tracking of file size by how many characters were output.cjs
This succumbs to a race condition where data are written to the file while the sleep is occurring. If a stat is done immediately after, lastsize is updated but the file pointer wasn't pointing at the end of the file, so the number of bytes between the current pointer and the end of the file is added to the lastsize when lastsize already points to the end of the file.
1998-08-25Add { and } to shut up egcs. Reformat the more questionable code.ross
1998-02-20Use MAP_SHARED, not MAP_PRIVATE.mycroft
1998-02-17Add MAP_FILE as well.augustss
1998-02-17Make sure mmap() uses MAP_PRIVATE instead of 0.augustss
1998-02-09Add -F option to follow files though rotations and truncations.cjs
1997-10-19WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOFlukem
1996-02-13Don't rely on select() not to modify the timeval argument. Also,ghudson
simplify the code by passing in NULL rather than an empty fd_set to indicate no file descriptors.
1994-11-23Merged with 4.4lite.jtc
Changed to conform to NetBSD's new RCS Id convention.
1994-11-23munmap() mmap()ed regions.jtc
1994-04-24various off_t fixesderaadt
1994-03-28off_t foo, and MAP_FILEcgd
1993-11-30Use ".St -p1003.2-92" macro instead of spelling it out.jtc
1993-08-01Add RCS identifiers.mycroft
1993-08-01Add RCS indentifiers.mycroft
1993-07-30Add RCS identifiers.mycroft
1993-04-30tail from ftp.uu.net:bsd-sources integratedglass