1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/usr.bin
Marcel Moolenaar d5d2cea180 Better handle the -F case:
o  When stat(2) fails (i.e. the file has been moved) there's no new
   file with the same name yet, so keep showing the file that's open.
   This yields the same behaviour as -f, for which we don't stat(2).
o  When a new file with the same name has been created (i.e stat(2)
   succeeds but the inode or device numbers differ from the opened
   file), show any new lines in the opened file (i.e. the old or
   rotated file) before reopening the new file.

These changes fix the observed behaviour that tail(1) doesn't show
the very last lines of the rotated (log) files.

PR: bin/101979
Tested by: Jos Backus <jos@catnook.com>
MFC after: 2 months
2006-10-21 18:05:06 +00:00
..
alias Use the "builtin" shell function to make sure that the requested 2005-10-24 22:32:19 +00:00
apply
asa Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
at While revision 1.26 fixed the code to really subtract 3600 due to 2005-08-18 08:18:02 +00:00
atm
awk Initial memory allocation for fields was off-by-one. 2006-09-15 13:33:32 +00:00
banner
basename Cross-reference basename(3) and dirname(3). 2006-03-16 17:21:52 +00:00
biff
bluetooth Teach rfcomm_sppd(8) to recognize "lan" (for LAN Access Using PPP) service 2005-12-07 19:41:58 +00:00
brandelf Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
bsdiff Fix up markup. 2005-11-18 12:08:31 +00:00
bzip2 Don't use a patch w/in /usr/src. Programmatically change files when needed. 2005-05-31 22:16:49 +00:00
bzip2recover
c89 Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
c99 Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
calendar Saint George replaced Saint Edward as the patron Saint of England 2006-10-12 11:08:29 +00:00
cap_mkdb
catman Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98. 2005-12-05 14:22:12 +00:00
chat
checknr
chkey Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
chpass Fix bug introduced in rev 1.23: 2006-09-25 15:06:24 +00:00
cksum
cmp -mdoc sweep. 2005-11-18 10:36:29 +00:00
col The variables i and tot don't need to be static. 2006-07-18 07:16:25 +00:00
colcrt
colldef Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
colrm
column Add missing parentheses to fix a segmentation fault that is easily 2006-09-19 22:11:43 +00:00
comm
compile_et Style: move .PATH to where it belongs. 2005-10-14 15:50:22 +00:00
compress -mdoc sweep. 2005-11-18 10:36:29 +00:00
csplit
csup Update make glue for csup-snap-20060313. 2006-03-14 03:53:50 +00:00
ctags Fix type mismatch between char * and unsigned char *. C guarantees that 2006-07-18 07:29:42 +00:00
cut
dig Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
dirname Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
du Markup fixes. 2006-09-29 15:20:48 +00:00
ee Correct insecure temporary file usage in texindex. [06:01] 2006-01-11 08:02:16 +00:00
elf2aout Because optarg and optind are defined in unistd.h, 2006-04-21 09:39:51 +00:00
elfdump s/DT_IA64_PLT_RESERVE/DT_IA_64_PLT_RESERVE/ 2006-01-28 17:58:22 +00:00
enigma Fix 32-bit integer math on 64-bit processor. Just use int32_t(!) instead 2006-07-25 22:20:05 +00:00
env Fix minor memory leak when expanding ${variable}s 2005-07-18 22:18:16 +00:00
expand Document that unexpand(1)'s -a and -t options are exclusive. 2006-10-13 16:22:25 +00:00
false
fetch Fix a typo. 2006-04-22 03:04:24 +00:00
file Markup fixes. 2006-09-29 15:20:48 +00:00
file2c Fix all the spelling mistakes I could find in the man pages for words 2005-07-31 03:30:48 +00:00
find Update the list of POSIX extensions. 2006-10-08 10:31:44 +00:00
finger Reduce number of spaces for full name by four, and reduce padding 2006-03-04 16:13:16 +00:00
fmt
fold
from Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
fstat Add marker vnodes to ensure that all vnodes associated with the mount point are 2006-01-09 20:42:19 +00:00
fsync
ftp Obey MK_INET6_SUPPORT. 2006-07-27 14:20:14 +00:00
gcore Make gcore(1) 64 bit safe. It was trying to parse the /proc/*/map file 2006-03-25 01:14:20 +00:00
gencat Our bsd.*.mk only supports 6 WARNS levels and we should not use higher values 2005-06-30 11:56:31 +00:00
getconf
getent Revise markup. 2006-09-30 17:27:50 +00:00
getopt
gprof Remove alpha-specific stuff. 2006-08-23 12:12:56 +00:00
head
hesinfo
hexdump o Simple strcpy/strcat replacement. 2006-08-09 19:12:10 +00:00
host Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
id Add a -a option as a no-op for Solaris compatibility, as briefly 2006-09-26 22:28:12 +00:00
indent initialize variable (WARNS=6) 2006-09-13 05:06:12 +00:00
ipcrm
ipcs o Fix typo in a comment. 2006-05-15 08:20:38 +00:00
join
jot Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD. 2006-10-20 04:31:01 +00:00
kdump o optname, the third {set,get}sockopt(2) argument, is an enum, not a bitmap. 2006-09-18 13:49:57 +00:00
keylogin
keylogout
killall
ktrace When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall 2006-03-14 19:32:03 +00:00
ktrdump Skip format flags, when parsing ktr_desc. 2006-01-12 22:32:07 +00:00
lam Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD. 2006-10-20 04:31:01 +00:00
last
lastcomm Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
ldd
leave
less In rev. 1.2 we have introduced a fallback handler for files with unknown 2006-08-30 08:20:34 +00:00
lessecho Hook lessecho(1) to build. 2006-08-20 15:52:17 +00:00
lesskey
lex Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
limits
locale Xref setlocale(3), bump document date. 2005-11-01 19:36:17 +00:00
locate Markup fixes. 2006-09-29 15:20:48 +00:00
lock
lockf Finish off style(9) fixes which I started two revisions ago. This basically 2005-10-09 04:45:41 +00:00
logger Markup fixes. 2006-09-29 15:20:48 +00:00
login Markup fixes. 2006-09-29 15:20:48 +00:00
logins
logname
look Remove break after return. 2006-07-18 10:19:46 +00:00
lorder Markup fixes. 2006-09-29 15:20:48 +00:00
lsvfs
m4
mail Document the TMPDIR environment variable. 2006-01-05 10:19:42 +00:00
make Don't go beyond the provided string when parsing the `\' character. 2006-10-09 19:37:26 +00:00
makewhatis Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98. 2005-12-05 14:22:12 +00:00
mesg Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
minigzip
ministat Improve input parsing: 2006-08-28 08:27:02 +00:00
mkdep
mkfifo
mklocale Make <runefile.h> internal to libc. 2005-05-16 09:32:41 +00:00
mkstr
mktemp Markup fixes. 2006-09-29 15:20:48 +00:00
mkuzip Markup fixes. 2006-09-29 15:20:48 +00:00
msgs
mt -mdoc sweep. 2005-11-18 10:36:29 +00:00
nc
ncal Document incorrect handling of multibyte characters. 2005-10-23 01:37:25 +00:00
ncplist
ncplogin
netstat Nits. 2006-09-29 16:16:41 +00:00
newgrp
newkey Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
nfsstat
nice Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
nl Remove unused variables. 2005-04-09 14:31:41 +00:00
nohup
nslookup Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
nsupdate Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
objformat
opieinfo
opiekey
opiepasswd
pagesize
passwd Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
paste WARNS=6 chocked on unitialized variable. 2006-09-12 05:08:36 +00:00
pathchk Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
pkill Tell in a comment that the symlinks from /usr/bin are 2006-08-20 04:25:20 +00:00
pr Fix misspelled 'argument' and try to make the sentence into English. 2005-10-26 17:37:54 +00:00
printenv
printf Prefer {u,}intmax_t over the deprecated {u_,}quad_t. 2005-08-05 08:18:00 +00:00
quota
renice Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
rev o Kill unneeded assignment. 2006-07-30 07:41:28 +00:00
rlogin len and len2 work better as size_t 2005-11-13 21:03:56 +00:00
rpcgen In change 1.15, an arbitrary setting of the max RPC record size to 2006-05-17 23:18:17 +00:00
rpcinfo rpcinfo(1) doesn't depend on INET6 explicitly. 2006-07-27 13:47:02 +00:00
rs Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD. 2006-10-20 04:31:01 +00:00
rsh - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
rup Catch up with 64bit time_t on sparc64. The rstat packet expects a 32bit 2005-12-04 18:25:26 +00:00
ruptime - Do not allocate memory to entries in /var/rwho which have been down for 2005-09-02 14:58:26 +00:00
rusers Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
rwall Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
rwho It's actually 11 minutes when the machine is assumed to be down and removed 2005-08-07 11:48:44 +00:00
script
sed Fix using "P" command on empty pattern space. If the "P" command is 2006-05-27 19:32:28 +00:00
shar
showmount Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
smbutil Make smbfs capable to use 16bit char set in filenames. 2005-05-04 15:05:46 +00:00
sockstat Don't free(sock) before it's even allocated. 2005-06-10 06:36:03 +00:00
split Markup fixes. 2006-09-29 15:20:48 +00:00
stat Markup and wording fixes. 2005-06-14 11:50:53 +00:00
su Markup fixes. 2006-09-29 15:20:48 +00:00
systat Memory utilization subscreen in "vmstat" display lists numbers in KB, 2006-10-12 10:54:34 +00:00
tabs
tail Better handle the -F case: 2006-10-21 18:05:06 +00:00
talk
tar Remove two unused variables. 2006-07-31 04:57:46 +00:00
tcopy
tee
telnet Stop enforcing dependencies between MK_* options at Makefile level. 2006-07-31 13:29:36 +00:00
tftp Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code. 2006-09-28 21:22:21 +00:00
time Markup fixes. 2006-09-29 15:20:48 +00:00
tip Fixed the -# option to work as documented in a manpage. 2006-09-07 19:48:52 +00:00
top Fix display of idle processes, which had been broken since rev. 1.56 of 2006-06-11 19:18:39 +00:00
touch Don't set time to current, if set to specific time fails 2006-01-31 02:21:18 +00:00
tput At least one argument is required. 2006-10-12 21:10:55 +00:00
tr - Document all character classes our tr(1) supports. [1] 2006-10-13 16:13:45 +00:00
true
truncate Markup fixes. 2006-09-29 15:20:48 +00:00
truss Markup fixes. 2006-09-29 15:20:48 +00:00
tset Reduce compiler warning: variable might be used uninitialized, by giving 2005-05-29 15:49:53 +00:00
tsort Move FreeBSD Id outside of copyright. Initialize variable. 2005-05-29 15:47:31 +00:00
tty
ul Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
uname
unexpand Document that unexpand(1)'s -a and -t options are exclusive. 2006-10-13 16:22:25 +00:00
unifdef Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
uniq
units
unvis
usbhidaction
usbhidctl
users
uudecode
uuencode - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
uuidgen Mention that uuidgen(1) generates DCE version 1 UUIDs only 2005-09-07 07:49:21 +00:00
vacation Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
vgrind Manual page tweaks. 2006-08-29 18:11:20 +00:00
vi
vis
vmstat The vm.zone sysctl has gone; zone stats are now supplied by libmemstat(3). 2006-10-21 10:40:12 +00:00
w Use sysctlbyname 2006-05-11 17:25:36 +00:00
wall In wall and who, check that the utmp entry isn't stalled, as it is done in w. 2006-02-21 13:01:00 +00:00
wc
what Markup and wording fixes. 2005-06-14 11:50:53 +00:00
whereis Remove unused variables. 2005-04-09 14:31:41 +00:00
which
who In wall and who, check that the utmp entry isn't stalled, as it is done in w. 2006-02-21 13:01:00 +00:00
whois Markup fixes. 2006-09-29 15:20:48 +00:00
window Fixes for gcc 4.x. 2005-08-25 14:09:35 +00:00
write Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
xargs Markup fixes. 2006-09-29 15:20:48 +00:00
xinstall Markup fixes. 2006-09-29 15:20:48 +00:00
xlint Pass "-Wtraditional -Wno-system-headers" to compiler as two separate 2006-09-21 02:05:38 +00:00
xstr Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 10:14:11 +00:00
yacc
yes
ypcat Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
ypmatch Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
ypwhich
Makefile Build libsmb and smbutil on ia64. 2006-08-22 03:22:17 +00:00
Makefile.inc