2019-10-22 18:43:30 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
pthread_condattr_t attr;
|
|
|
|
pthread_cond_t condition;
|
|
|
|
|
2020-12-19 20:02:44 +00:00
|
|
|
/* This test fails if symbol versioning does not work */
|
2019-10-22 18:43:30 +00:00
|
|
|
pthread_condattr_init (&attr);
|
|
|
|
pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED);
|
|
|
|
printf ("%s\n", pthread_cond_init (&condition, &attr) ? "fail":"ok");
|
|
|
|
pthread_condattr_destroy (&attr);
|
|
|
|
return 0;
|
|
|
|
}
|