Commit Graph

32 Commits

Author SHA1 Message Date
wiz 0deefd986b Add -F to usage, per bin/16558 by Ryan Younce. 2002-04-29 20:12:31 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 9e7ca30945 Sort sections. 2001-12-08 19:17:23 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
explorer 78762d72a5 fix tail; don't try to map more of the file than really exists 2001-11-24 02:30:17 +00:00
explorer a3c923dc72 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. 2001-11-21 06:47:07 +00:00
cgd 9cfe468c74 avoid C sequence point issues warned about by development version of gcc. 2001-01-16 02:41:17 +00:00
lukem c2b84904ae use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
cgd b02d81404c avoid repeated error messages by making bytes(), lines() and rlines() return
meaningful values, which can then be checked to avoid another error message.
1999-07-21 06:38:49 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos eb4463abfe KNF 1998-12-19 22:27:54 +00:00
christos 7872ac63c8 explicitly zero the lines structure! How did this ever work before? 1998-11-03 14:27:09 +00:00
christos 8d721633cd Pacify gcc-2.8.1 (extra braces). 1998-11-03 14:26:45 +00:00
cjs 0ad4a32dfb Add bugs section noting that, with -F, tail can fail to detect a file
truncation. Also note that -F option is an extension.
1998-09-18 01:54:13 +00:00
cjs 59a47ce7be 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.
1998-09-18 01:42:54 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mycroft 8f2250049f Use MAP_SHARED, not MAP_PRIVATE. 1998-02-20 07:34:59 +00:00
augustss 170f7ea829 Add MAP_FILE as well. 1998-02-17 17:44:55 +00:00
augustss f9cd93c874 Make sure mmap() uses MAP_PRIVATE instead of 0. 1998-02-17 17:40:59 +00:00
cjs 4d03919ab5 Add -F option to follow files though rotations and truncations. 1998-02-09 22:39:41 +00:00
lukem 079884da30 WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF 1997-10-19 23:45:08 +00:00
ghudson bd8bd7340f 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.
1996-02-13 16:49:10 +00:00
jtc ae646d0e62 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-11-23 07:41:55 +00:00
jtc 48851c7a0b munmap() mmap()ed regions. 1994-11-23 07:11:00 +00:00
deraadt 907eea9f85 various off_t fixes 1994-04-24 20:19:17 +00:00
cgd ceacf6a332 off_t foo, and MAP_FILE 1994-03-28 02:22:29 +00:00
jtc 5187624c00 Use ".St -p1003.2-92" macro instead of spelling it out. 1993-11-30 00:36:01 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
glass aa97860f48 tail from ftp.uu.net:bsd-sources integrated 1993-04-30 08:04:52 +00:00