Re: [Toybox] Stat output for %N

2017-05-13 Thread darken
That was it. I accidentally called stat by "stat" instead of "/path/to/toybox stat" which meant on some devices it used a different stat applet (probably busybox). 2017-05-13 5:25 GMT+02:00 enh : > the one without the quotes is busybox. > > quotes is either GNU or toybox. > > On

[Toybox] Valid range for stat userID and groupID?

2017-05-13 Thread darken
I stumbled upon the following "stat -c "%a:%F:%d:%i:%u:%g:%s:%B:%b:%Z:%N" output from a GT-N5110@7.1.2 > 5665:FIFO (named pipe):45836:456097:1171143868:4160815103:0:512:0:18446744073709551615:`/data/user/0/de.andip71.boeffla_config_v2/app_webview/webview_data.lock' The a UID of "1171143868" and

[Toybox] [PATCH] Fix various seq bugs.

2017-05-13 Thread enh
Use the precision of the inputs to determine the default output. This was the reported bug. (Two existing tests were failing on the host because of this, so I've fixed those tests and added more tests for other special cases.) Reject invalid inputs. Match GNU/busybox behavior with 0 increment.

Re: [Toybox] [PATCH] Fix various seq bugs.

2017-05-13 Thread enh
i wasn't seriously considering implementing the arbitrary-precision arithmetic that GNU seems to use, but i did wonder about at least using long long instead of double for 53

[Toybox] [PATCH] factor shouldn't give incorrect answers for >64-bit integers.

2017-05-13 Thread enh
--- toys/other/factor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) From fab8f56370abe41374692587c4bf92bdbd8b711a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 13 May 2017 12:48:35 -0700 Subject: [PATCH] factor shouldn't give incorrect answers for >64-bit

Re: [Toybox] Valid range for stat userID and groupID?

2017-05-13 Thread enh
are you building with bionic? glibc won't know what android does with uid/gid for apps. (also, 4294967295 is -1.) i couldn't find any files on a Pixel XL where the built-in toybox reported unusual uids or gids. as usual, not using Android's libc on an Android device is likely to lead to

Re: [Toybox] Valid range for stat userID and groupID?

2017-05-13 Thread darken
> are you building with bionic? glibc won't know what android does with I'm building against musl libc. I couldn't get toybox with bionic (though the last time i tried was a few month ago). > glibc won't know what android does with uid/gid for apps. Doesn't bionic/3rd party only make a

Re: [Toybox] Valid range for stat userID and groupID?

2017-05-13 Thread Rob Landley
On 05/13/2017 08:29 AM, darken wrote: > I stumbled upon the following "stat -c > "%a:%F:%d:%i:%u:%g:%s:%B:%b:%Z:%N" output from a GT-N5110@7.1.2 > >> 5665:FIFO (named >

Re: [Toybox] Valid range for stat userID and groupID?

2017-05-13 Thread darken
Unfortunately the output is from devices I don't have access to, via automatic (anonymous) bug report. Am 13.05.2017 19:38 schrieb "Rob Landley" : > On 05/13/2017 08:29 AM, darken wrote: > > I stumbled upon the following "stat -c > > "%a:%F:%d:%i:%u:%g:%s:%B:%b:%Z:%N" output