From 4a689f0b907d4a98582a9c4b7f6be811924db8ee Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Sat, 17 Oct 2009 12:59:14 -0700 Subject: some tweaks under libc/ needed for nptl * updated kernel-features.h * system is provided by pt-system with nptl * _exit should do exit_group with nptl * tsd tls ptr in libc * rt_sigwaitinfo impl added Signed-off-by: Austin Foxley --- libc/sysdeps/linux/common/_exit.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libc/sysdeps/linux/common/_exit.c') diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c index fbeed0d8a..a36927d0c 100644 --- a/libc/sysdeps/linux/common/_exit.c +++ b/libc/sysdeps/linux/common/_exit.c @@ -12,12 +12,22 @@ #include #include #include +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ +#include +#endif void attribute_noreturn _exit(int status) { /* The loop is added only to keep gcc happy. */ while(1) + { +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ +# ifdef __NR_exit_group + INLINE_SYSCALL(exit_group, 1, status); +# endif +#endif INLINE_SYSCALL(exit, 1, status); + } } libc_hidden_def(_exit) -- cgit v1.2.3