[klibc] mips64el stat/time/…? problem
Thorsten Glaser
tg at mirbsd.de
Mon Jan 23 20:07:10 PST 2023
Hi Ben,
>Thorsten: I've attached a patch which I tested briefly in QEMU. Let me
>know if this works for you.
sorry for the delay. I was able to test this on eller today.
To reproduce the issue, this was needed, because the value
read was a nanosecond field and so the test didn’t always fail:
(sid_mips64el-dchroot)tg at eller:~$ while sleep 0.1; do :>b; ./mksh -c 'test a -nt b; echo $?'; done
Unpatched, this produced runs of (4 to 7) zeros and (3 to 4) ones;
patched, it produced all ones.
I cannot add this variant to the upstream testsuite as a subsecond
sleep is not guaranteed, but I can add it to the Debian tests.
Thanks for fixing this; I’ll upload mksh again once this is in sid.
Which probably should be soon considering the freeze…
bye,
//mirabilos
--
“It is inappropriate to require that a time represented as
seconds since the Epoch precisely represent the number of
seconds between the referenced time and the Epoch.”
-- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2
More information about the klibc
mailing list