Jim Meyering [Sat, 31 Jul 1999 09:21:32 +0000 (09:21 +0000)]
(tail_forever): Don't call kill if pid is 0.
Detect when `writer_is_dead' also when the writer is some other user.
From Karl Heuer.
(parse_options): Warn if --pid=PID is used without -f.
Jim Meyering [Sat, 31 Jul 1999 09:03:43 +0000 (09:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 21:18:37 +0000 (21:18 +0000)]
.
Jim Meyering [Fri, 30 Jul 1999 21:15:01 +0000 (21:15 +0000)]
.
Jim Meyering [Fri, 30 Jul 1999 21:13:19 +0000 (21:13 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 21:13:05 +0000 (21:13 +0000)]
Include signal.h for kill prototype.
Jim Meyering [Fri, 30 Jul 1999 21:10:59 +0000 (21:10 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 21:04:18 +0000 (21:04 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 21:03:35 +0000 (21:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 21:02:54 +0000 (21:02 +0000)]
document tail's new option: --pid=PID
Jim Meyering [Fri, 30 Jul 1999 20:43:10 +0000 (20:43 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 20:42:39 +0000 (20:42 +0000)]
New option: --pid=PID.
(pid): New global.
(long_options): Add `pid'.
(usage): Describe it.
(tail_forever): Implement it.
(parse_options): Handle the new option and required arg.
Suggestion and pseudo-code from Karl Heuer.
Jim Meyering [Fri, 30 Jul 1999 19:33:57 +0000 (19:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 19:31:03 +0000 (19:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Jul 1999 19:29:53 +0000 (19:29 +0000)]
(PID_T_MAX): Define.
Jim Meyering [Fri, 30 Jul 1999 19:29:27 +0000 (19:29 +0000)]
Include <sys/types.h> now that linebuffer.h uses
size_t. This is required on at least SunOS4. From Kaveh Ghazi.
Jim Meyering [Fri, 30 Jul 1999 16:01:44 +0000 (16:01 +0000)]
(usage): Explain about default wrt --hide-control-chars and
--show-control-chars. Reported by Germano Leichsenring.
Jim Meyering [Fri, 30 Jul 1999 16:01:26 +0000 (16:01 +0000)]
*** empty log message ***
Jim Meyering [Wed, 28 Jul 1999 05:48:55 +0000 (05:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 27 Jul 1999 14:36:36 +0000 (14:36 +0000)]
(dd_copy): Free the right obuf.
Jim Meyering [Mon, 26 Jul 1999 09:17:56 +0000 (09:17 +0000)]
more comments
Jim Meyering [Mon, 26 Jul 1999 09:03:15 +0000 (09:03 +0000)]
add comment
Jim Meyering [Mon, 26 Jul 1999 09:01:27 +0000 (09:01 +0000)]
(struct File_spec) [n_stat_calls]: Remove unused member.
Jim Meyering [Mon, 26 Jul 1999 07:11:27 +0000 (07:11 +0000)]
(tee): Convert from open/fds to using fopen/streams for
output, in preparation for addition of new compression option.
Jim Meyering [Mon, 26 Jul 1999 06:52:28 +0000 (06:52 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jul 1999 09:30:35 +0000 (09:30 +0000)]
(usage): Remove `NEWS'-style paragraph (sorry to have let that in, translators).
Jim Meyering [Sun, 25 Jul 1999 08:47:36 +0000 (08:47 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jul 1999 08:27:24 +0000 (08:27 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jul 1999 08:10:14 +0000 (08:10 +0000)]
.
Jim Meyering [Sat, 24 Jul 1999 21:16:37 +0000 (21:16 +0000)]
.
Jim Meyering [Sat, 24 Jul 1999 09:40:23 +0000 (09:40 +0000)]
add to comment
Jim Meyering [Sat, 24 Jul 1999 09:36:29 +0000 (09:36 +0000)]
(PTR_ALIGN, ROUND_UP_OFFSET): New macros.
(dd_copy): Use those to page-align both the input and output buffers.
Jim Meyering [Wed, 21 Jul 1999 15:56:15 +0000 (15:56 +0000)]
(options): Avoid Solaris' broken /usr/ucb/tr by
removing offending use of tr altogether and removing hyphens with sed.
Reported by Kaveh Ghazi.
Jim Meyering [Wed, 21 Jul 1999 15:08:41 +0000 (15:08 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jul 1999 15:07:58 +0000 (15:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jul 1999 14:55:19 +0000 (14:55 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Jul 1999 18:52:05 +0000 (18:52 +0000)]
update comments
Jim Meyering [Tue, 20 Jul 1999 18:41:58 +0000 (18:41 +0000)]
(translate_040_to_space) [MOUNTED_GETMNTENT1]: New function.
(read_filesystem_list) [MOUNTED_GETMNTENT1]: Use it.
Jim Meyering [Tue, 20 Jul 1999 17:08:37 +0000 (17:08 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Jul 1999 17:06:53 +0000 (17:06 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Jul 1999 17:06:50 +0000 (17:06 +0000)]
(AC_REPLACE_FUNCS): Add memmove.
Jim Meyering [Tue, 20 Jul 1999 08:03:49 +0000 (08:03 +0000)]
wc vs. POSIXLY_CORRECT
Jim Meyering [Tue, 20 Jul 1999 07:56:59 +0000 (07:56 +0000)]
(posixly_correct): Declare global.
(write_counts): Use it to select printf formats.
(main): Set posixly_correct from the POSIXLY_CORRECT envvar.
From Peter Moulder.
Jim Meyering [Sun, 18 Jul 1999 13:58:57 +0000 (13:58 +0000)]
remove @key uses, rewrite --sep-string, small cleanups
Jim Meyering [Sun, 18 Jul 1999 13:33:04 +0000 (13:33 +0000)]
.
Jim Meyering [Sun, 18 Jul 1999 11:21:58 +0000 (11:21 +0000)]
.
Jim Meyering [Thu, 15 Jul 1999 16:16:24 +0000 (16:16 +0000)]
(noinst_HEADERS): Add getpagesize.h.
Jim Meyering [Thu, 15 Jul 1999 16:15:17 +0000 (16:15 +0000)]
.
Jim Meyering [Thu, 15 Jul 1999 16:14:56 +0000 (16:14 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 16:14:13 +0000 (16:14 +0000)]
Revert the 1999-02-15 change.
Jim Meyering [Thu, 15 Jul 1999 16:13:47 +0000 (16:13 +0000)]
Revert the 1999-02-15 change and
add --text for individual tests. Reported by Eli Zaretskii.
Jim Meyering [Thu, 15 Jul 1999 16:07:34 +0000 (16:07 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 16:07:15 +0000 (16:07 +0000)]
Document new tail options.
Jim Meyering [Thu, 15 Jul 1999 12:10:44 +0000 (12:10 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 12:06:18 +0000 (12:06 +0000)]
Include getpagesize.h.
(ROUND_UP_TO_MODULUS): Define.
(dd_copy): Page-align the input buffer.
Based on a patch from Scott Lurndal.
Jim Meyering [Thu, 15 Jul 1999 09:31:44 +0000 (09:31 +0000)]
.
Jim Meyering [Thu, 15 Jul 1999 09:31:34 +0000 (09:31 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 09:28:43 +0000 (09:28 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 09:11:24 +0000 (09:11 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 09:11:13 +0000 (09:11 +0000)]
(AC_CHECK_FUNCS): Check for getpagesize.
Jim Meyering [Thu, 15 Jul 1999 07:50:06 +0000 (07:50 +0000)]
(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:
Work around SunOS botch also when block size is different from 1k.
Jim Meyering [Thu, 15 Jul 1999 07:49:28 +0000 (07:49 +0000)]
*** empty log message ***
Jim Meyering [Mon, 12 Jul 1999 20:07:37 +0000 (20:07 +0000)]
*** empty log message ***
Jim Meyering [Mon, 12 Jul 1999 08:37:31 +0000 (08:37 +0000)]
(mempcpy): Define only if not already defined.
Reported by Collin Rogowski.
Jim Meyering [Mon, 12 Jul 1999 08:37:21 +0000 (08:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 11 Jul 1999 09:05:31 +0000 (09:05 +0000)]
(recheck): Use assert instead of unnecessary close_fd.
Remove a couple unnecessary FIXME comments.
Jim Meyering [Sat, 10 Jul 1999 16:40:33 +0000 (16:40 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 16:40:16 +0000 (16:40 +0000)]
cpp indent and split a long line
Jim Meyering [Sat, 10 Jul 1999 16:36:56 +0000 (16:36 +0000)]
use a space, not TAB after #define
Jim Meyering [Sat, 10 Jul 1999 16:36:11 +0000 (16:36 +0000)]
cpp indent
Jim Meyering [Sat, 10 Jul 1999 12:24:10 +0000 (12:24 +0000)]
(struct File_spec) [tailable]: Rename from `missing' and
document. Change all uses and locals like was_missing to was_tailable.
Invert expressions as appropriate.
(reopen_inaccessible_files): Rename from allow_missing.
(sleep_interval): Describe.
(--allow-missing): Deprecate.
(--retry): New option, equivalent to --allow-missing.
(usage): Document name vs. descriptor differences.
Refer to manual for descriptions of --max-unchanged-stats=N
and --max-consecutive-size-changes=N.
(valid_file_spec): New function.
(recheck): Assert valid_file_spec.
Remove dead else-if block (suggestion from Eli Zaretskii).
Adjust stmts that set f->tailable -- unlike for `missing', tailable
doesn't depend on errno == ENOENT.
(parse_options): Give a warning if --retry is used when not following
by name.
Jim Meyering [Sat, 10 Jul 1999 09:56:37 +0000 (09:56 +0000)]
(struct File_spec): New member, errnum.
(recheck): Record the new value of errno in f->errnum. Don't
output an error message unless the new value of errno differs from
the old one. Output a message if previously-inaccessible file
becomes accessible.
(tail_forever): Always recheck files whose fd is negative. If the
file cannot be fstat'ed, record the errno value in f[i].errnum.
(tail_file): If the file cannot be open, record the errno value in
f->errnum. If it can be opened, initialize f->errnum to zero. If
it's a non-regular non-fifo file, initialize f->errnum to -1.
Jim Meyering [Sat, 10 Jul 1999 08:44:58 +0000 (08:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 08:44:49 +0000 (08:44 +0000)]
Import version 1.012.
Jim Meyering [Sat, 10 Jul 1999 07:37:39 +0000 (07:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 07:34:52 +0000 (07:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 07:28:05 +0000 (07:28 +0000)]
Import version 1.011.
Jim Meyering [Sat, 10 Jul 1999 07:17:02 +0000 (07:17 +0000)]
.
Jim Meyering [Fri, 9 Jul 1999 12:51:18 +0000 (12:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:41:26 +0000 (10:41 +0000)]
reinclude memcoll.h (mistakenly removed by me)
Jim Meyering [Sun, 4 Jul 1999 10:40:15 +0000 (10:40 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:40:04 +0000 (10:40 +0000)]
[!defined strtoumax]: Declare strtoumax.
Jim Meyering [Sun, 4 Jul 1999 10:38:37 +0000 (10:38 +0000)]
.
Jim Meyering [Sun, 4 Jul 1999 10:33:50 +0000 (10:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:31:01 +0000 (10:31 +0000)]
(readline): Leave room for an extra byte
after the newline; comm needs this for memcoll.
Jim Meyering [Sun, 4 Jul 1999 10:28:08 +0000 (10:28 +0000)]
Add support for LC_COLLATE locale.
Include hard-locale.h, linebuffer.h, memcoll.h.
(struct line): New member `buf', replacing `beg' and `lim'.
All uses changed.
(hard_LC_COLLATE): New var.
(main): Initialize it.
(get_line): Use readline to read the line,
instead of doing it by hand.
That way, we get a buffer that we can pass to memcoll.
(keycmp): Use memcoll to compare lines if hard_LC_COLLATE is nonzero.
Jim Meyering [Sun, 4 Jul 1999 10:23:19 +0000 (10:23 +0000)]
Include hard-locale.h, memcoll.h.
(hard_LC_COLLATE, hard_LC_CTYPE, hard_LC_TIME): New variables,
replacing `need_locale'.
(memcoll): Move to lib/memcoll.c.
(keycompare): No need to alloc (0), since our caller now does it.
(compare): alloca (0) before returning.
(my_setlocale): Remove; hard_locale now dows this.
(main): Invoke setlocale, bindtextdomain, and textdomain before
invoking anything that might print an error.
Use hard_locale to determine which locales are hard.
Jim Meyering [Sun, 4 Jul 1999 10:22:25 +0000 (10:22 +0000)]
Include hard-locale.h, memcoll.h.
(hard_LC_COLLATE): New variable.
(compare_files): Use memcoll to compare if hard_LC_COLLATE.
(main): Initialize hard_LC_COLLATE from locale.
Jim Meyering [Sun, 4 Jul 1999 10:21:39 +0000 (10:21 +0000)]
Document locale-specific mode for comm.
Jim Meyering [Sun, 4 Jul 1999 10:16:28 +0000 (10:16 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:15:45 +0000 (10:15 +0000)]
(proc_text, check_section, main):
Use size_t, not int, for lengths.
Lines now contain trailing newline.
Adapt for readline changes.
Jim Meyering [Sun, 4 Jul 1999 10:14:03 +0000 (10:14 +0000)]
(find_field, different): Use size_t, not int, for lengths.
(writeline): Lines now contain trailing newline.
(check_file): Use size_t, not int, for lengths.
Jim Meyering [Sun, 4 Jul 1999 10:09:44 +0000 (10:09 +0000)]
(writeline): Lines now contain trailing newline.
Jim Meyering [Sun, 4 Jul 1999 10:08:56 +0000 (10:08 +0000)]
[struct linebuffer] (size): Declare to be of type size_t, not long.
[struct linebuffer] (length): Likewise.
Jim Meyering [Sun, 4 Jul 1999 10:06:42 +0000 (10:06 +0000)]
(readline): Append trailing newline to line.
Jim Meyering [Sun, 4 Jul 1999 10:03:05 +0000 (10:03 +0000)]
(memrchr): Ifdef out this unused function.
Jim Meyering [Sun, 4 Jul 1999 09:51:09 +0000 (09:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 09:46:14 +0000 (09:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 09:46:07 +0000 (09:46 +0000)]
New test case for Paul's 1999-06-03 fix.
Jim Meyering [Sun, 4 Jul 1999 09:40:46 +0000 (09:40 +0000)]
(xfields): Only <blank>s separate fields, not <space>s.