Re: [Toybox] toybox in Android status

2015-01-16 Thread enh
more progress... Right now toybox provides the following new commands that we didn’t have with toolbox: acpi basename blockdev bzcat cal chgrp chroot cksum comm cut dirname dos2unix echo egrep env expand fallocate fgrep find free groups head hostname hwclock ki

[Toybox] avoiding #ifdef

2015-01-16 Thread enh
thanks for changeset 1661:d4bc084916fd "id.c #ifdefectomy. (ifdefs belong in headers, not in C code.)". at the time i wrote the change that applied to i thought "i know the style is to avoid #if, but i'm not sure what that's supposed to look like here", and now i have an example. (in particular, it

[Toybox] licensing

2015-01-16 Thread stephen Turner
I found a permissive licese same as your 0-clause but listed on the internet under http://unlicense.org ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

[Toybox] [PATCH] fix typo in printf

2015-01-16 Thread enh
diff --git a/toys/posix/printf.c b/toys/posix/printf.c index 5fec4f9..1c2c547 100644 --- a/toys/posix/printf.c +++ b/toys/posix/printf.c @@ -22,7 +22,7 @@ config PRINTF #define FOR_printf #include "toys.h" -// Detect matching character (return true/valse) and advance pointer if match. +// Detect

[Toybox] [PATCH] fix non-glibc basename(3) usage

2015-01-16 Thread enh
I considered a #else on the big #ifdef __GLIBC__ above, but that seemed harder to follow. diff --git a/lib/portability.h b/lib/portability.h index 8bbbdb2..f262a93 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -141,6 +141,11 @@ int utimensat(int fd, const char *path, const struct times

[Toybox] [PATCH] fix hwclock's rtc selection

2015-01-16 Thread enh
For systems using /dev/rtcN, /dev/rtc0 isn't necessarily the RTC that's used to provide the system time at boot time. We need to search for the RTC whose /sys/class/rtc/rtcN/hctosys contains "1". Let me know if you'd rather just have the counted loop. I went this way because I see nothing preventi

Re: [Toybox] Building AOSP...

2015-01-16 Thread enh
On Wed, Jan 14, 2015 at 12:33 AM, Rob Landley wrote: > > > On 01/13/2015 12:02 PM, enh wrote: >> On Mon, Jan 12, 2015 at 11:35 PM, Rob Landley wrote: >>> >>> >>> On 01/10/2015 05:04 PM, enh wrote: On Thu, Jan 8, 2015 at 10:55 AM, Rob Landley wrote: > Since Toybox made it into Android, I