]>
Commit | Line | Data |
---|---|---|
a3a238a9 UD |
1 | /* Test that the thread-local locale works right in the main thread |
2 | when statically linked. */ | |
3 | ||
4 | #include "../locale/tst-C-locale.c" | |
5 | ||
6 | #include <pthread.h> | |
f077a4a9 | 7 | #include <signal.h> |
a3a238a9 UD |
8 | |
9 | /* This is never called, just here to get pthreads linked in. */ | |
f077a4a9 | 10 | int |
a3a238a9 UD |
11 | useless (void) |
12 | { | |
c3c3afc9 UD |
13 | pthread_t th; |
14 | pthread_create (&th, 0, (void *(*) (void *)) useless, 0); | |
1ac074e6 RM |
15 | int result = 0; |
16 | #ifdef SIGRTMIN | |
f077a4a9 UD |
17 | /* This is to check __libc_current_sigrt* can be used in statically |
18 | linked apps. */ | |
1ac074e6 RM |
19 | result = SIGRTMIN; |
20 | #endif | |
21 | return result; | |
a3a238a9 | 22 | } |