Back to index

glibc  2.9
tst-locale1.c
Go to the documentation of this file.
00001 /* Test that the thread-local locale works right in the main thread
00002    when statically linked.  */
00003 
00004 #include "../locale/tst-C-locale.c"
00005 
00006 #include <pthread.h>
00007 #include <signal.h>
00008 
00009 /* This is never called, just here to get pthreads linked in.  */
00010 int
00011 useless (void)
00012 {
00013   pthread_t th;
00014   pthread_create (&th, 0, (void *(*) (void *)) useless, 0);
00015   /* This is to check __libc_current_sigrt* can be used in statically
00016      linked apps.  */
00017   return SIGRTMIN;
00018 }