History log of /freebsd-10.1-release/usr.bin/tail/tail.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 251565 09-Jun-2013 jh

Print file names without stdio buffering to avoid mixing buffered and
unbuffered ouput.

PR: bin/176886
Reviewed by: mjg


# 227184 06-Nov-2011 ed

Add missing static keywords to tail(1)


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 193488 05-Jun-2009 brian

Change the behaviour of -F slightly; it now persists (forever) in
trying to open files rather than giving up when it encounters an
error. ENOENT errors are not reported.

As a result, files that are moved away then recreated are not at
risk of being 'lost' to tail. Files that are recreated and
temporarily have unreadable permissions will be shown when they
are fixed.

This behaviour is consistent with the GNU version of tail but
without the verbiage that goes with the GNU version.

This change also fixes error messages accompanying -f and -F.
They no longer report problems with (null)!

MFC after: 3 weeks


# 173285 02-Nov-2007 charnier

initialize variables, WARNS=6 compliant


# 160049 30-Jun-2006 ru

- Simplify the formatting in the SYNOPSIS.
- Add the forgotten new option in usage().


# 160045 29-Jun-2006 flz

Add a -q option to suppress header lines when multiple files are specified.

Approved by: cperciva (mentor)
MFC after: 1 week


# 146882 01-Jun-2005 eivind

Back out revision 1.19 and 1.20 until I find mental clarity to deal with
issues bde pointed out.


# 146659 26-May-2005 eivind

Remove an errno reset that became unnecessary.

Noticed by: juli


# 146656 26-May-2005 eivind

We are past 4.4BSD - use our new-found stat flags for pipes and fifos.


# 137225 04-Nov-2004 paul

Add support for following more than one file i.e.
tail -f file1 file2


# 137162 03-Nov-2004 paul

Revert a WIP change that shouldn't have been in last commit.


# 137157 03-Nov-2004 paul

Convert to ANSI style function definitions.


# 99983 14-Jul-2002 alfred

WARNS=4, add


# 92922 21-Mar-2002 imp

remove __P


# 87712 11-Dec-2001 markm

WARNS=2 fixes, use __FBSDID().


# 84350 02-Oct-2001 fenner

Allow "obsolete" (but commonly-used) command line style to be used
with -F, e.g. tail -1 -F /var/log/messages.

Submitted by: Maxim Konovalov <maxim@macomnet.ru>


# 82762 01-Sep-2001 ache

File positions are off_t nowdays, not long, so:
long -> off_t
strtol -> strtoll
fseek -> fseeko

NOTE: that fseek not works for >long offsets files per POSIX:

[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.


# 71514 24-Jan-2001 ru

Mention the -F in the usage().

PR: 24586
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>


# 69552 03-Dec-2000 asmodai

Remove register keyword usage with prejudice.
Modern compilers are smarter when it comes to allocating register
usage.


# 69530 02-Dec-2000 asmodai

Use a size_t instead of an int.


# 69528 02-Dec-2000 asmodai

Properly constify some static arrays.

Also #if out some sccsid's and add rcsid's.


# 48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


# 35081 06-Apr-1998 peter

Add a new -F flag which is a superset of -f. It will cause tail to
stat() the file being followed and do a close/reopen if the file has been
renamed and/or rotated. This is damn useful for leaving running on files
in /var/log when newsyslog(8) rotates them.


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 17826 25-Aug-1996 peter

Dont forget to #include <err.h>


# 17825 25-Aug-1996 peter

Argh! caught! *blush*.. This program was supplying it's own 'err' routine
which was slightly different to the libc one. To save any more cunfusion,
use the libc one.


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources