The intent of this is to avoid name space pollution of the C threads implementation. This has two sides to it. First we have to provide symbols that wouldn't pollute the name space for the C threads implementation. Second we have to clean up some internal uses of POSIX functions such that they don't implicitly drag in such symbols.
16 lines
208 B
C
16 lines
208 B
C
#include "pthread_impl.h"
|
|
#include "libc.h"
|
|
|
|
static void dummy()
|
|
{
|
|
}
|
|
|
|
weak_alias(dummy, __testcancel);
|
|
|
|
void __pthread_testcancel()
|
|
{
|
|
__testcancel();
|
|
}
|
|
|
|
weak_alias(__pthread_testcancel, pthread_testcancel);
|