[PATCH v1] seedrng.c: fix clock_gettime support for older kernels and glibc combinations

Thomas Devoogdt thomas at devoogdt.com
Sat Jan 20 12:55:09 UTC 2024


Op za 20 jan 2024 om 11:12 schreef Michael Tokarev <mjt at tls.msk.ru>:
>
> 19.01.2024 16:30, Thomas Devoogdt :
> > CLOCK_BOOTTIME has been added in Linux >= 2.6.39,
> > so fallback to CLOCK_MONOTONIC on older kernels.
> >
> > Also, ensure proper compilation with older glibc versions.
>
> Why do you care about such old kernels?
> To me, it would be better to clean up such old fallbacks, remove
> support for, say, kernels <3.x or <4.x (like, for example,
> modutils compatibility can be removed entirely), instead of
> adding new fallbacks..

Sometimes people do have this kind of old hardware and kernels, that
is mainly the reason why I came across this problem. That said, the
FAQ mentioned the supported versions
(https://www.busybox.net/FAQ.html#kernel) which are now Linux >= 2.4.x
and glibc >= 2.2, so for that reason, I thought that this patch would
have a chance to get accepted. Raising the minimally supported
versions would be somewhat contradictory to what this commit tries to
resolve, but it's also not on me to decide on where the line is drawn
of what is supported.

> /mjt
>

Kind Regards,

Thomas Devoogdt


More information about the busybox mailing list