Jim Meyering
88cbad9817
Include long-options.h
...
[long_options]: Remove the "help" and "version" entries.
Remove declarations of show_help and show_version.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-04 05:36:10 +00:00
Jim Meyering
7568de8654
update copyright dates
1999-02-16 04:20:43 +00:00
Jim Meyering
9fec9172be
Don't prototype usage as static.
1999-01-14 18:25:16 +00:00
Jim Meyering
df9cb5d5c0
s/max_n_consecutive_size_changes/max_n_consecutive_size_changes_between_opens/
1999-01-09 14:21:32 +00:00
Jim Meyering
375b687738
(parse_obsolescent_option): Interpret `number' as decimal.
...
(parse_options): Likewise.
Reported by Kamal Paul Nigam.
New option: --max-unchanged-stats=N.
New option: --max-n-consecutive-size-changes=N.
1999-01-09 14:19:40 +00:00
Jim Meyering
7004c53ab4
(parse_options): Use XARGMATCH in place of argmatch.
1999-01-02 19:35:46 +00:00
Jim Meyering
e60b747ade
(tail_lines, tail_bytes) [O_BINARY]: Use binary I/O when appropriate.
1999-01-01 22:48:03 +00:00
Jim Meyering
3972420f3b
(parse_options): Use XARGCASEMATCH in place of argmatch.
1999-01-01 21:47:08 +00:00
Jim Meyering
621691b296
New options for tail: --follow=name, --follow=descriptor, --allow-missing
...
(Follow_mode): New enum.
(n_live_files): New function.
(tail_forever): Avoid starvation with --follow=name and a
continually-growing unlinked or renamed file.
1998-12-17 13:56:25 +00:00
Jim Meyering
6880f434c0
update bug-reporting address
1998-09-19 17:24:05 +00:00
Jim Meyering
9e9d7be706
Don't assume ASCII.
1998-08-30 03:08:21 +00:00
Jim Meyering
257c5c4737
revert back to using lower case _unlocked wrapper names
1998-06-29 15:57:45 +00:00
Jim Meyering
dd9470cb58
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:11:07 +00:00
Jim Meyering
3f017c26ca
[struct File_spec] (pretty_name): Remove member.
...
(pretty_name): New function.
1998-04-26 20:09:26 +00:00
Jim Meyering
7dd872d963
Remove usage-like comments near beginning of file.
1998-04-26 19:58:43 +00:00
Jim Meyering
b7d50ca523
(xwrite): New function -- converted from macro.
1998-04-26 19:53:54 +00:00
Jim Meyering
fe18d63a65
(close_fd): New function -- converted from macro.
...
[struct File_spec] (n_stat_calls): New member.
[struct File_spec] (n_unchanged_stats): New member.
(max_n_unchanged_stats): New global.
Initialize new members.
1998-04-26 19:50:21 +00:00
Jim Meyering
48990a9078
Include safe-read.h instead of merely declaring safe_read.
1998-04-12 19:56:25 +00:00
Jim Meyering
eeef5c523d
merge variables: forever_multiple and forever
...
(recheck): New function.
Begin to support --allow-missing option.
1998-03-22 20:55:34 +00:00
Jim Meyering
df4ba7d9ca
(tail_forever): plug gross fd leaks
...
Don't close stdin
Don't print header unnecessarily if the first file to grow
is the last one for which a header was printed.
1998-03-21 16:33:53 +00:00
Jim Meyering
fcbfefa513
*** empty log message ***
1998-03-17 23:31:18 +00:00
Jim Meyering
fcf6405f2d
(tail_file): Merge largely-duplicated blocks of code.
1998-03-15 23:04:56 +00:00
Jim Meyering
e27d21668c
(parse_obsolescent_option): -l is an obsolescent option.
1998-01-25 14:07:46 +00:00
Jim Meyering
85923cb2bc
add missing `)'
1998-01-24 23:34:46 +00:00
Jim Meyering
ea2969da49
(parse_obsolescent_option): Do not interpret `-f -n 1 ...'
...
as obsolescent options.
Accept new option: --sleep-interval=SECONDS (-s).
(parse_options): Recognize it.
(usage): Describe it.
(tail_forever): Use it.
(dump_remainder): Use it.
1998-01-24 23:33:02 +00:00
Jim Meyering
dba300a0d0
CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
...
Remove definitions of those symbols.
* src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h
since it now includes limit.h which defines RE_DUP_MAX.
* src/nl.c: Likewise.
* src/tac.c: Likewise.
1998-01-10 22:12:03 +00:00
Jim Meyering
e211bb2aff
Remove old-style xmalloc and xrealloc decls.
1997-10-25 04:45:43 +00:00
Jim Meyering
3f3f566627
update bug-reporting address
1997-10-07 23:55:52 +00:00
Jim Meyering
afc73d862b
(parse_obsolescent_option): #ifdef-out portability warning.
1997-07-22 01:26:35 +00:00
Jim Meyering
08f38fd930
(parse_obsolescent_option): If POSIXLY_CORRECT is set, give
...
a diagnostic and fail when there are two or more non-option arguments.
1997-07-05 22:50:32 +00:00
Jim Meyering
dd77d0602a
Add missing paren.
1997-02-16 23:49:11 +00:00
Jim Meyering
feb2f918b3
(parse_obsolescent_option): Reverse order of args in diagnostic.
...
Remove `' quotes in diagnostic.
(parse_options): Remove `' quotes in diagnostic.
1997-02-16 14:31:39 +00:00
Jim Meyering
2be25646bd
change wording in message
1997-02-09 16:07:38 +00:00
Jim Meyering
dbc538f92b
update copyrights for 1997
1997-02-09 04:46:02 +00:00
Jim Meyering
562488ee9c
(parse_obsolescent_option): Give warning diagnostic for
...
(but now accept) obsolescent usage with more than one file argument.
1997-02-09 04:44:47 +00:00
Jim Meyering
e077b7593b
bracket bug address with <> and append a period
1997-02-01 04:24:58 +00:00
Jim Meyering
c2d2dec516
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 02:00:04 +00:00
Jim Meyering
5f011471a3
really make the messages identical
1997-01-27 02:28:39 +00:00
Jim Meyering
072c1efe39
(parse_options): Add quotes to make messages identical.
1997-01-26 18:50:33 +00:00
Jim Meyering
73ed11f2b7
(parse_options): Remove unnecessary goto and label.
1997-01-26 04:48:29 +00:00
Jim Meyering
3e0c759c3a
(parse_obsolescent_option): Comment.
1997-01-26 04:43:42 +00:00
Jim Meyering
338b31ba60
.
1997-01-25 05:58:58 +00:00
Jim Meyering
50c04a9d3e
(parse_obsolescent_option): Recognize and fail for
...
more malformed obsolescent options. Makes for better diagnostics.
1997-01-24 02:11:52 +00:00
Jim Meyering
2611844743
(parse_options): New function.
...
(parse_obsolescent_option): New function.
(main): Use the new functions instead of open-coding them.
This better fixes the bug in handling obsolescent `+Nc' options.
General cleanup.
1997-01-23 03:38:23 +00:00
Jim Meyering
f3f1cae097
(main): Properly handle what the POSIX spec calls
...
the `obsolescent' usage (e.g., tail +2c). It didn't work.
Reported by Karl Heuer.
1997-01-22 04:53:52 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
630b771f1b
(main): update --version output again
1996-10-04 04:25:46 +00:00
Jim Meyering
3361bd2bca
(main): update --version output to conform to coding standard
1996-10-04 04:15:08 +00:00
Jim Meyering
c609ba2d13
(usage): Tell where to report bugs.
1996-09-02 15:34:25 +00:00