[PATCH 2/2] wget: add support for retries in http requests

2018-12-12 Thread Martin Lewis
Replace die handlers with error returning so download_one_url can retry from the beginning. When retries is 1 (default) the behaviour should be the same as before. Signed-off-by: Martin Lewis --- networking/wget.c | 120 ++ 1 file changed, 95

[PATCH 1/2] wget: replace set_alarm with non blocking functions to support retries

2018-12-12 Thread Martin Lewis
Signed-off-by: Martin Lewis --- networking/wget.c | 162 +++--- 1 file changed, 153 insertions(+), 9 deletions(-) diff --git a/networking/wget.c b/networking/wget.c index 58a51d9..e9fdd9f 100644 --- a/networking/wget.c +++ b/networking/wget.c @@

Re: [PATCH 2/2] wget: add support for retries in http requests

2018-12-12 Thread Martin Lewis
Hello, These patches add the -t (--tries) option to wget. There was an issue that wget died on errors, so I had to change some functions to return error so we are able to retry. Also I had to replace the blocking functions (and the set_alarm) with time outing functions (in first patch). In order

[PATCH RFC] Build system changes for macOS

2018-12-12 Thread Darell Tan
Hi, I'm trying to get busybox to compile on macOS and I have encountered a few problems. I have attached a patch that is my take on a solution. Feedback and suggestions are welcome. I hope to get this patch merged to avoid maintaining it out-of-tree. One of the problems is that the archiver "ar"

[PATCH] i2c_tools.c: add i2ctransfer utility

2018-12-12 Thread Nikolaus Voss
i2ctransfer sends and receives user defined i2c messages --- miscutils/i2c_tools.c | 216 +- 1 file changed, 215 insertions(+), 1 deletion(-) diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index 6a2134063..76f128e6d 100644 ---