[PATCH] Provide pthread_atfork in libc_nonshared.a and libc.a.

Mike Frysinger vapier@gentoo.org
Mon Dec 23 11:46:00 GMT 2013


On Wednesday 02 October 2013 17:31:13 Carlos O'Donell wrote:
> The standard design pattern for making it optional to link against
> libpthread is to mark the function weak, test if the function
> address is non-zero and call the function, otherwise use a fallback.

how does this gel with all the forwarding funcs we have in libc.so today 
(nptl/forward.c) ?  are those the wrong/old pattern then ?

or is the NULL test meant for static code and the dummy funcs meant for shared 
library code ?

seems weird that nptl/forward.c misses a large number of functions from the 
current pthreads API.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20131223/e85ab3dd/attachment.sig>


More information about the Libc-alpha mailing list