Questions about __thread for NSS modules

Thorsten Kukuk kukuk@suse.de
Wed Sep 8 16:38:00 GMT 2004


On Thu, Aug 26, Roland McGrath wrote:

> > My question is: is this possible at all in NSS modules like libnss_nis.so?
> 
> Sure.  

Ok, I managed now to build a libnss_nis.so.2 module, which uses
thread local storage instead of static variables and locking.

Now my next problem: SuSE and RH have the libc/libpthread with TLS
and NPTL support in /lib/tls and a version without in /lib. But the
path to the libnss_* modules is hardcoded to /lib/libnss_*. So I cannot
copy the libnss_nis module with TLS support into /lib/tls/.

Any ideas how to solve this?

 Thanks,
    Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Maxfeldstr. 5                 D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B



More information about the Libc-hacker mailing list