diff options
author | Jim Meyering <jim@meyering.net> | 2000-04-17 06:49:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-04-17 06:49:07 +0000 |
commit | d37e7835f90f4a2847a2648f390b8b00aea44d89 (patch) | |
tree | 61be96950111607d5c22b1d09164ae7e59cddab3 | |
parent | d6df2d8561bd84d00940ff595e2cc52731d1c44a (diff) | |
download | coreutils-d37e7835f90f4a2847a2648f390b8b00aea44d89.tar.xz |
Don't remove support for --max-consecutive-size-changes just yet...
-rw-r--r-- | src/tail.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tail.c b/src/tail.c index d63b3576f..4bcfa92cb 100644 --- a/src/tail.c +++ b/src/tail.c @@ -201,7 +201,11 @@ enum { RETRY_OPTION = CHAR_MAX + 1, MAX_UNCHANGED_STATS_OPTION, + + /* FIXME: remove this in 2001, unless someone can show a good + reason to keep it. */ MAX_CONSECUTIVE_SIZE_CHANGES_OPTION, + PID_OPTION, LONG_FOLLOW_OPTION, }; @@ -215,6 +219,8 @@ static struct option const long_options[] = {"follow", optional_argument, NULL, LONG_FOLLOW_OPTION}, {"lines", required_argument, NULL, 'n'}, {"max-unchanged-stats", required_argument, NULL, MAX_UNCHANGED_STATS_OPTION}, + {"max-consecutive-size-changes", required_argument, NULL, + MAX_CONSECUTIVE_SIZE_CHANGES_OPTION}, {"pid", required_argument, NULL, PID_OPTION}, {"quiet", no_argument, NULL, 'q'}, {"retry", no_argument, NULL, RETRY_OPTION}, @@ -1417,6 +1423,18 @@ parse_options (int argc, char **argv, } break; + case MAX_CONSECUTIVE_SIZE_CHANGES_OPTION: + /* --max-consecutive-size-changes=N */ + if (xstrtoul (optarg, NULL, 10, + &max_n_consecutive_size_changes_between_opens, "") + != LONGINT_OK) + { + error (EXIT_FAILURE, 0, + _("%s: invalid maximum number of consecutive size changes"), + optarg); + } + break; + case PID_OPTION: { strtol_error s_err; |