Hi Thomas,
Thomas Petazzoni wrote,
Hello,
In Buildroot, a number of packages fail to build because
pthread_contattr_setclock() is not implemented in linuxthreads (only in
NPTL). So far, we've worked around this problem by adding a dependency
on NPTL in packages that use pthread_condattr_setclock(), but it would
be nice if uClibc-ng could support this function in linuxthreads as
well.
Is there anything that prevents this from being supported in
linuxthreads ?
Not sure. It seems pthread_condattr_setclock()/pthread_condattr_getclock()
functions where added in glibc in 2003 in commit
86a9ee5e87cc084ccce131cd51166c98ea87f28f as part of an NPTL update.
But it seems it could be included in Linuxthreads, as it is
documented in an old standard:
http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_condattr_g…
Would you like to cook up a patch porting the two functions from
NPTL?
I do not see any technical reason why these two functions couldn't
be provided by the older Linuxthreads implementation.
best regards
Waldemar