Blame nptl/tst-locale1.c

Packit 6c4009
/* Test that the thread-local locale works right in the main thread
Packit 6c4009
   when statically linked.  */
Packit 6c4009
Packit 6c4009
#include "../locale/tst-C-locale.c"
Packit 6c4009
Packit 6c4009
#include <pthread.h>
Packit 6c4009
#include <signal.h>
Packit 6c4009
Packit 6c4009
/* This is never called, just here to get pthreads linked in.  */
Packit 6c4009
int
Packit 6c4009
useless (void)
Packit 6c4009
{
Packit 6c4009
  pthread_t th;
Packit 6c4009
  pthread_create (&th, 0, (void *(*) (void *)) useless, 0);
Packit 6c4009
  int result = 0;
Packit 6c4009
#ifdef SIGRTMIN
Packit 6c4009
  /* This is to check __libc_current_sigrt* can be used in statically
Packit 6c4009
     linked apps.  */
Packit 6c4009
  result = SIGRTMIN;
Packit 6c4009
#endif
Packit 6c4009
  return result;
Packit 6c4009
}