| History log of /src/usr.bin/tail/forward.c |
| Revision | | Date | Author | Comments |
| 1.34 |
| 14-Jan-2024 |
christos | PR/57850: Ricardo Branco: tail does not work in some pseudo-filesystems From FreeBSD: https://github.com/NetBSD/src/pull/20
|
| 1.33 |
| 09-Oct-2015 |
christos | PR/50322: Timo Buhrmester: tail -F <file> misbehaves with stdin closed Compare fp with stdin not fileno(fp) with STDIN_FILENO, because if tail is called with 0 closed, then we are not going to be setting event filters for the file because we'll erroneously think it is stdin.
|
| 1.32 |
| 18-Oct-2013 |
christos | fix unused variable warnings
|
| 1.31 |
| 03-Sep-2011 |
christos | branches: 1.31.2; 1.31.8; minor knf, no functional change.
|
| 1.30 |
| 03-Sep-2011 |
christos | Instead of declaring our own err() which is different than the standard one, and using it incorrectly in a few places because of confusion (does it print errno or not?), declare two versions following the standard ones xerrx and, xerr, and use those as appropriate, implementing them using them vwarn and vwarnx.
|
| 1.29 |
| 13-Apr-2009 |
lukem | Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare)
XXX: need a "cleaner" way to do the check in reverse.c, as a general rule
|
| 1.28 |
| 24-May-2006 |
christos | branches: 1.28.28; Coverity CID 3204: The USE_SLEEP case can close the fp, and break does not break from the loop, only from the switch. Make it break from the loop to avoid a NULL pointer dereference.
|
| 1.27 |
| 02-Jun-2005 |
lukem | branches: 1.27.2; appease gcc -Wuninitialized
|
| 1.26 |
| 16-Feb-2004 |
itojun | do not use long for file offset, use off_t. otto@openbsd
|
| 1.25 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
| 1.24 |
| 10-Mar-2003 |
lukem | Use sleep(1) instead of usleep(1000000) to sleep for a second, since usleep() doesn't support an argument >= 1000000. Problem noted & fix provided in [bin/20644] from Dave Huang.
|
| 1.23 |
| 30-Oct-2002 |
jdolecek | use kqueue to watch the file if possible 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
|
| 1.22 |
| 18-Sep-2002 |
skrll | Update error message after recent changes.
|
| 1.21 |
| 18-Sep-2002 |
mycroft | Remove an old comment.
|
| 1.20 |
| 18-Sep-2002 |
mycroft | select() -> nanosleep()
|
| 1.19 |
| 14-Jun-2002 |
wiz | Remove #if __STDC__. De-__P() and ANSIfy.
|
| 1.18 |
| 24-Nov-2001 |
explorer | fix tail; don't try to map more of the file than really exists
|
| 1.17 |
| 21-Nov-2001 |
explorer | make tail -f and tail -10000 work on files > those which can be mmap()ed whole. tail -r will still not function on large files.
|
| 1.16 |
| 21-Jul-1999 |
cgd | avoid repeated error messages by making bytes(), lines() and rlines() return meaningful values, which can then be checked to avoid another error message.
|
| 1.15 |
| 19-Dec-1998 |
christos | branches: 1.15.2; KNF
|
| 1.14 |
| 03-Nov-1998 |
christos | Pacify gcc-2.8.1 (extra braces).
|
| 1.13 |
| 18-Sep-1998 |
cjs | Remove tracking of file size by how many characters were output. 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.
|
| 1.12 |
| 20-Feb-1998 |
mycroft | Use MAP_SHARED, not MAP_PRIVATE.
|
| 1.11 |
| 17-Feb-1998 |
augustss | Add MAP_FILE as well.
|
| 1.10 |
| 17-Feb-1998 |
augustss | Make sure mmap() uses MAP_PRIVATE instead of 0.
|
| 1.9 |
| 09-Feb-1998 |
cjs | Add -F option to follow files though rotations and truncations.
|
| 1.8 |
| 19-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF
|
| 1.7 |
| 13-Feb-1996 |
ghudson | 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.
|
| 1.6 |
| 23-Nov-1994 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
| 1.5 |
| 23-Nov-1994 |
jtc | munmap() mmap()ed regions.
|
| 1.4 |
| 24-Apr-1994 |
deraadt | various off_t fixes
|
| 1.3 |
| 28-Mar-1994 |
cgd | off_t foo, and MAP_FILE
|
| 1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
| 1.1 |
| 30-Apr-1993 |
glass | branches: 1.1.1; tail from ftp.uu.net:bsd-sources integrated
|
| 1.1.1.1 |
| 23-Nov-1994 |
jtc | imported from 4.4lite
|
| 1.15.2.1 |
| 20-Aug-1999 |
cgd | pull up rev 1.16 from trunk. (cgd)
|
| 1.27.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
| 1.28.28.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.31.8.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.31.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|