[Y2038] Question about porting y2038-tests to glibc
Lukasz Majewski
lukma@denx.de
Wed Oct 28 11:29:22 GMT 2020
Hi Florian,
> * Lukasz Majewski:
>
> > Or maybe somebody has better idea how to solve this issue?
>
> Have time namespaces landed in the upstream kernel?
Yes, they are supported since 5.6 [1].
However, according to [2] only CLOCK_MONOTONIC and CLOCK_BOOTIME are
supported.
For CLOCK_REALTIME ("NOTES" section):
"Note that time namespaces do not virtualize the CLOCK_REALTIME clock.
Virtualization of this clock was avoided for reasons of complexity and
overhead within the kernel."
As far as I can see - glibc uses syscalls referring to
CLOCK_REALTIME not adjusted by time namespaces. This would cause errors.
Links:
[1] -
https://www.phoronix.com/scan.php?page=news_item&px=Linux-Time-Namespace-Coming
[2] - https://man7.org/linux/man-pages/man7/time_namespaces.7.html
>
> Thanks,
> Florian
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20201028/8532f447/attachment.sig>
More information about the Libc-alpha
mailing list