Hi, Waldemar.

Should uClibc-ng support Linux kernels before 2.6.24?

On Thu, Apr 27, 2017 at 8:33 AM, Waldemar Brodkorb <wbx@uclibc-ng.org> wrote:
Hi Sergey,
Sergey Korolev wrote,

> Current uClibc-ng version incorrectly calculates clockid
> in pthread_getcpuclockid (at least for modern kernels). The simplest test
> program
>
> fails with
>
> clock_gettime: Invalid argument
>
> Tested on Linux 3.4 / MIPS built with GCC 5.4.0.

Thanks for the test case.

> Other implementations, for example musl, use a simple calculation
> https://git.musl-libc.org/cgit/musl/tree/src/thread/pthread_getcpuclockid.c
>
> Looks strange, but the official glibc repository
> https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=nptl/
> pthread_getcpuclockid.c;hb=HEAD
> has the same implementation as in uClibc-ng.

uClibc imported NPTL from GNU libc in 2005. There are still many
similaraties.

Will you propose a new patch? ( I have read your second mail)

best regards
 Waldemar