[Patch][BZ 14583] Fix prototype of sigsetjmp in pthread.h
Roland McGrath
roland@hack.frob.com
Fri Sep 14 17:37:00 GMT 2012
The declaration is necessary there because the pthread_cleanup_push macro
uses the function. <pthread.h> is not allowed to include <setjmp.h>, hence
the duplication. You should make the prototype match exactly, i.e. [1] vs *.
It might be nice to avoid the duplication by having a common bits/ header
that holds that declaration. But it seems like overkill for the single
declaration (which is really all pthread.h needs).
Thanks,
Roland
More information about the Libc-alpha
mailing list