diff options
author | Bradley M. Kuhn <bkuhn@ebb.org> | 2010-08-08 02:51:20 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-08 02:51:20 +0200 |
commit | c97131c2af832f03e769a12b2a95e4de86c5858f (patch) | |
tree | 6bb49cd582b75953c822431162a94809a9539918 /include/usage.src.h | |
parent | 33bbb27e45c7c6a0fecb40b3a5aa36aef69825f9 (diff) | |
download | busybox-w32-c97131c2af832f03e769a12b2a95e4de86c5858f.tar.gz busybox-w32-c97131c2af832f03e769a12b2a95e4de86c5858f.tar.bz2 busybox-w32-c97131c2af832f03e769a12b2a95e4de86c5858f.zip |
wget: implement -T SEC; rework progress meter to not use signals (it was unsafe)
function old new delta
retrieve_file_data 364 450 +86
bb_progress_update 615 682 +67
packed_usage 27406 27422 +16
wget_main 2440 2453 +13
static.wget_longopts 145 155 +10
progress_meter 199 159 -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/1 up/down: 192/-40) Total: 152 bytes
Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/usage.src.h')
-rw-r--r-- | include/usage.src.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 57c25a0f8..ebd8c2e6a 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
@@ -4779,10 +4779,12 @@ INSERT | |||
4779 | IF_FEATURE_WGET_LONG_OPTIONS( \ | 4779 | IF_FEATURE_WGET_LONG_OPTIONS( \ |
4780 | "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n" \ | 4780 | "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n" \ |
4781 | " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \ | 4781 | " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \ |
4782 | " [--no-check-certificate] [-U|--user-agent AGENT] URL" \ | 4782 | " [--no-check-certificate] [-U|--user-agent AGENT]" \ |
4783 | IF_FEATURE_WGET_TIMEOUT("[-T SEC] ") " URL" \ | ||
4783 | ) \ | 4784 | ) \ |
4784 | IF_NOT_FEATURE_WGET_LONG_OPTIONS( \ | 4785 | IF_NOT_FEATURE_WGET_LONG_OPTIONS( \ |
4785 | "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL" \ | 4786 | "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT]" \ |
4787 | IF_FEATURE_WGET_TIMEOUT("[-T SEC] ") " URL" \ | ||
4786 | ) | 4788 | ) |
4787 | #define wget_full_usage "\n\n" \ | 4789 | #define wget_full_usage "\n\n" \ |
4788 | "Retrieve files via HTTP or FTP\n" \ | 4790 | "Retrieve files via HTTP or FTP\n" \ |
@@ -4790,7 +4792,10 @@ INSERT | |||
4790 | "\n -s Spider mode - only check file existence" \ | 4792 | "\n -s Spider mode - only check file existence" \ |
4791 | "\n -c Continue retrieval of aborted transfer" \ | 4793 | "\n -c Continue retrieval of aborted transfer" \ |
4792 | "\n -q Quiet" \ | 4794 | "\n -q Quiet" \ |
4793 | "\n -P Set directory prefix to DIR" \ | 4795 | "\n -P DIR Save to DIR (default .)" \ |
4796 | IF_FEATURE_WGET_TIMEOUT( \ | ||
4797 | "\n -T SEC Network read timeout is SEC seconds" \ | ||
4798 | ) \ | ||
4794 | "\n -O FILE Save to FILE ('-' for stdout)" \ | 4799 | "\n -O FILE Save to FILE ('-' for stdout)" \ |
4795 | "\n -U STR Use STR for User-Agent header" \ | 4800 | "\n -U STR Use STR for User-Agent header" \ |
4796 | "\n -Y Use proxy ('on' or 'off')" \ | 4801 | "\n -Y Use proxy ('on' or 'off')" \ |