diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-01-22 16:04:28 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-01-22 16:04:28 +0000 |
commit | 91772298b0377ab805e19085f60a7808fe62d157 (patch) | |
tree | 520a9015fd8ce7aebbd503814b5758dfe9b07cba /libc/sysdeps/linux/common | |
parent | 2f22f00640b79531879bf21afc9727483934ac65 (diff) | |
download | uClibc-alpine-91772298b0377ab805e19085f60a7808fe62d157.tar.bz2 uClibc-alpine-91772298b0377ab805e19085f60a7808fe62d157.tar.xz |
Synch with trunk: miscellaneous changes, mostly cleanup,
code styling, comments. No object-code changes.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/_exit.c | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/sigcontext.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c index 518a6d2e8..a0b891d25 100644 --- a/libc/sysdeps/linux/common/_exit.c +++ b/libc/sysdeps/linux/common/_exit.c @@ -12,6 +12,9 @@ #include <unistd.h> #include <sys/types.h> #include <sys/syscall.h> +#ifdef __UCLIBC_HAS_THREADS__ +#include <sysdep.h> +#endif /* libc_hidden_proto(_exit) */ @@ -25,6 +28,13 @@ 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) diff --git a/libc/sysdeps/linux/common/bits/sigcontext.h b/libc/sysdeps/linux/common/bits/sigcontext.h index 67dcf9498..35bf5bc89 100644 --- a/libc/sysdeps/linux/common/bits/sigcontext.h +++ b/libc/sysdeps/linux/common/bits/sigcontext.h @@ -25,5 +25,8 @@ we need sigcontext. */ # define sigcontext_struct sigcontext +# ifndef __user +# define __user +# endif # include <asm/sigcontext.h> #endif |