2 * Test program that invokes pthread_create@GLIBC_2.0().
4 * Note: pthread_create@GLIBC_2.0() is only available in 32-bit glibc versions,
5 * not in 64-bit versions.
13 extern int pthread_create_glibc_2_0(pthread_t
*, const pthread_attr_t
*,
14 void *(*)(void*), void*);
16 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
19 static void* thread_func(void *arg
)
21 fprintf(stderr
, "The thread.\n");
25 int main(int argc
, char** argv
)
30 result
= (*pthread_create_glibc_2_0
)(&thr
, 0, thread_func
, 0);
33 fprintf(stderr
, "pthread_create() failed.\n");
37 fprintf(stderr
, "Finished.\n");