From 31f48281ed551634b3c2cfcfcde81ca6e208e5f9 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 28 Jan 2012 21:57:49 +0100 Subject: *: if !HAS_THREADS strong alias sigaction Signed-off-by: Bernhard Reutner-Fischer --- libc/signal/sigaction.c | 5 +++++ libc/sysdeps/linux/arm/sigaction.c | 5 +++++ libc/sysdeps/linux/avr32/sigaction.c | 7 ++++++- libc/sysdeps/linux/c6x/sigaction.c | 6 ++++++ libc/sysdeps/linux/i386/sigaction.c | 5 +++++ libc/sysdeps/linux/mips/sigaction.c | 5 +++++ libc/sysdeps/linux/sparc/sigaction.c | 7 +++++++ libc/sysdeps/linux/x86_64/sigaction.c | 5 +++++ libc/sysdeps/linux/xtensa/sigaction.c | 7 ++++++- 9 files changed, 50 insertions(+), 2 deletions(-) (limited to 'libc') diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index ae2e4b916..c725c6125 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -82,6 +82,11 @@ __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact) #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif diff --git a/libc/sysdeps/linux/arm/sigaction.c b/libc/sysdeps/linux/arm/sigaction.c index 01140aafb..4fd23c5f7 100644 --- a/libc/sysdeps/linux/arm/sigaction.c +++ b/libc/sysdeps/linux/arm/sigaction.c @@ -96,6 +96,11 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif diff --git a/libc/sysdeps/linux/avr32/sigaction.c b/libc/sysdeps/linux/avr32/sigaction.c index 61530912e..f5e586c9a 100644 --- a/libc/sysdeps/linux/avr32/sigaction.c +++ b/libc/sysdeps/linux/avr32/sigaction.c @@ -38,6 +38,11 @@ int __libc_sigaction(int sig, const struct sigaction *act, } #ifndef LIBC_SIGACTION -weak_alias(__libc_sigaction, sigaction) +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else +weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif diff --git a/libc/sysdeps/linux/c6x/sigaction.c b/libc/sysdeps/linux/c6x/sigaction.c index 1865998ee..c65a85dc7 100644 --- a/libc/sysdeps/linux/c6x/sigaction.c +++ b/libc/sysdeps/linux/c6x/sigaction.c @@ -75,10 +75,16 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa } #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif + /* NOTE: Please think twice before making any changes to the bits of code below. GDB needs some intimate knowledge about it to recognize them as signal trampolines, and make backtraces through diff --git a/libc/sysdeps/linux/i386/sigaction.c b/libc/sysdeps/linux/i386/sigaction.c index 138b67718..a6a22de0a 100644 --- a/libc/sysdeps/linux/i386/sigaction.c +++ b/libc/sysdeps/linux/i386/sigaction.c @@ -95,8 +95,13 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif diff --git a/libc/sysdeps/linux/mips/sigaction.c b/libc/sysdeps/linux/mips/sigaction.c index f2d2747b5..bb07eee41 100644 --- a/libc/sysdeps/linux/mips/sigaction.c +++ b/libc/sysdeps/linux/mips/sigaction.c @@ -100,8 +100,13 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif diff --git a/libc/sysdeps/linux/sparc/sigaction.c b/libc/sysdeps/linux/sparc/sigaction.c index 3e6f7e408..a4adb1d14 100644 --- a/libc/sysdeps/linux/sparc/sigaction.c +++ b/libc/sysdeps/linux/sparc/sigaction.c @@ -65,11 +65,18 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac return ret; } + #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif + static void __rt_sigreturn_stub(void) { diff --git a/libc/sysdeps/linux/x86_64/sigaction.c b/libc/sysdeps/linux/x86_64/sigaction.c index 91df04e9f..74e81a877 100644 --- a/libc/sysdeps/linux/x86_64/sigaction.c +++ b/libc/sysdeps/linux/x86_64/sigaction.c @@ -99,8 +99,13 @@ __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact) #ifndef LIBC_SIGACTION +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif diff --git a/libc/sysdeps/linux/xtensa/sigaction.c b/libc/sysdeps/linux/xtensa/sigaction.c index 302d13305..2a20c6859 100644 --- a/libc/sysdeps/linux/xtensa/sigaction.c +++ b/libc/sysdeps/linux/xtensa/sigaction.c @@ -34,6 +34,11 @@ int __libc_sigaction(int sig, const struct sigaction *act, } #ifndef LIBC_SIGACTION -weak_alias(__libc_sigaction, sigaction) +# ifndef __UCLIBC_HAS_THREADS__ +strong_alias(__libc_sigaction,sigaction) +libc_hidden_def(sigaction) +# else +weak_alias(__libc_sigaction,sigaction) libc_hidden_weak(sigaction) +# endif #endif -- cgit v1.2.3