2002-12-03 06:01:38 +00:00
|
|
|
/* Test that the thread-local locale works right in the main thread
|
|
|
|
when statically linked. */
|
|
|
|
|
|
|
|
#include "../locale/tst-C-locale.c"
|
|
|
|
|
|
|
|
#include <pthread.h>
|
2002-12-18 00:53:21 +00:00
|
|
|
#include <signal.h>
|
2002-12-03 06:01:38 +00:00
|
|
|
|
|
|
|
/* This is never called, just here to get pthreads linked in. */
|
2002-12-18 00:53:21 +00:00
|
|
|
int
|
2002-12-03 06:01:38 +00:00
|
|
|
useless (void)
|
|
|
|
{
|
2007-04-06 22:19:46 +00:00
|
|
|
pthread_t th;
|
|
|
|
pthread_create (&th, 0, (void *(*) (void *)) useless, 0);
|
2015-02-06 20:30:58 +00:00
|
|
|
int result = 0;
|
|
|
|
#ifdef SIGRTMIN
|
2002-12-18 00:53:21 +00:00
|
|
|
/* This is to check __libc_current_sigrt* can be used in statically
|
|
|
|
linked apps. */
|
2015-02-06 20:30:58 +00:00
|
|
|
result = SIGRTMIN;
|
|
|
|
#endif
|
|
|
|
return result;
|
2002-12-03 06:01:38 +00:00
|
|
|
}
|