[Toybox] [RESEND PATCH] mdev: browse /sys/block only if directory exists

2017-11-16 Thread Gaƫl PORTAY
When the kernel block layer is disabled, mdev terminates in error because it cannot browse /sys/block. It reports the following message. mdev: /sys/block: No such file or directory --- toys/pending/mdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[Toybox] [PATCH] Add uptime -p.

2017-11-16 Thread enh
We (Android) give up trying to teach folks what "up 142 days, 1:45" means... Bug: http://b/65205261 --- toys/other/uptime.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) From bdea6d9d0a3acbb89ba0d3c3227f8daab088e6dc Mon Sep 17 00:00:00 2001 From: Elliott

[Toybox] [PATCH] Don't capitalize in the middle of a sentence.

2017-11-16 Thread enh
Before: toy: Unknown option p (See "toy --help") After: toy: Unknown option p (see "toy --help") --- lib/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) From 9638b2ec3869293f8e6c278628736e3f517d42b9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 16 Nov

Re: [Toybox] [PATCH] Make find -exec + obey ARG_MAX just like xargs.

2017-11-16 Thread enh
correspondingly, i've made bionic's _SC_ARG_MAX return a constant 128KiB again. we might want to actually just hard-code 128KiB for both find and xargs, but making find and xargs the same first seemed like a good idea regardless. let me know if you want me to send a "make find/xargs use a

[Toybox] [PATCH] Make find -exec + obey ARG_MAX just like xargs.

2017-11-16 Thread enh
This isn't ideal, but it matches xargs and none of us is likely to have time to do the best possible thing any time soon. Bug: http://b/65818597 Test: ./toybox find /usr/local/google/ndkports/ -exec echo {} + --- toys/posix/find.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) From