[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

detect presence/version of nptl



I've been asked to provide a mechanism to dynamically detect whether
nptl is used and which version.

With the current CVS sources you can use confstr() with the key
_CS_GNU_LIBPTHREAD_VERSION to get just that information.  It'll return a
string like "NPTL 0.22" or "linuxthreads-0.10".  This should provide all
the info you need.  There is also _CS_GNU_LIBC_VERSION for those who
need that.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]