Browse Source

*: if !HAS_THREADS strong alias sigaction

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 13 years ago
parent
commit
31f48281ed

+ 5 - 0
libc/signal/sigaction.c

@@ -82,6 +82,11 @@ __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
 
 
 
 
 #ifndef LIBC_SIGACTION
 #ifndef LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif

+ 5 - 0
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 LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif

+ 6 - 1
libc/sysdeps/linux/avr32/sigaction.c

@@ -38,6 +38,11 @@ int __libc_sigaction(int sig, const struct sigaction *act,
 }
 }
 
 
 #ifndef LIBC_SIGACTION
 #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)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif

+ 6 - 0
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 LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif
 
 
+
 /* NOTE: Please think twice before making any changes to the bits of
 /* NOTE: Please think twice before making any changes to the bits of
    code below.  GDB needs some intimate knowledge about it to
    code below.  GDB needs some intimate knowledge about it to
    recognize them as signal trampolines, and make backtraces through
    recognize them as signal trampolines, and make backtraces through

+ 5 - 0
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 LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif
 
 
 
 

+ 5 - 0
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 LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif
 
 
 
 

+ 7 - 0
libc/sysdeps/linux/sparc/sigaction.c

@@ -65,11 +65,18 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac
 	return ret;
 	return ret;
 }
 }
 
 
+
 #ifndef LIBC_SIGACTION
 #ifndef LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif
 
 
+
 static void
 static void
 __rt_sigreturn_stub(void)
 __rt_sigreturn_stub(void)
 {
 {

+ 5 - 0
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 LIBC_SIGACTION
+# ifndef __UCLIBC_HAS_THREADS__
+strong_alias(__libc_sigaction,sigaction)
+libc_hidden_def(sigaction)
+# else
 weak_alias(__libc_sigaction,sigaction)
 weak_alias(__libc_sigaction,sigaction)
 libc_hidden_weak(sigaction)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif
 
 
 
 

+ 6 - 1
libc/sysdeps/linux/xtensa/sigaction.c

@@ -34,6 +34,11 @@ int __libc_sigaction(int sig, const struct sigaction *act,
 }
 }
 
 
 #ifndef LIBC_SIGACTION
 #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)
 libc_hidden_weak(sigaction)
+# endif
 #endif
 #endif