---
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
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
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.
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
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
>
> 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
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
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
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