summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-23 21:25:45 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-23 21:25:45 +0000
commit9b92b36b830fcab65e8cb700ef26620d47d3879c (patch)
tree3df3512b860f8cee9f7c9f5303816aed037df3d9 /libc
parentac3b5716a728cc44038ab79be94f36f818c4d94d (diff)
make sigaction/raise/sigwait/siglongjmp/longjmp weak_alias, these are in libpthread as well
Diffstat (limited to 'libc')
-rw-r--r--libc/signal/raise.c5
-rw-r--r--libc/signal/sigaction.c2
-rw-r--r--libc/signal/sigwait.c5
-rw-r--r--libc/sysdeps/linux/arm/sigaction.c2
-rw-r--r--libc/sysdeps/linux/i386/sigaction.c2
-rw-r--r--libc/sysdeps/linux/mips/sigaction.c2
-rw-r--r--libc/sysdeps/linux/x86_64/sigaction.c2
7 files changed, 11 insertions, 9 deletions
diff --git a/libc/signal/raise.c b/libc/signal/raise.c
index 09beba0d6..c092cb12b 100644
--- a/libc/signal/raise.c
+++ b/libc/signal/raise.c
@@ -8,13 +8,14 @@
#include <signal.h>
#include <sys/types.h>
-libc_hidden_proto(raise)
libc_hidden_proto(getpid)
libc_hidden_proto(kill)
-int raise(int signo)
+int attribute_hidden __raise(int signo)
{
return kill(getpid(), signo);
}
+libc_hidden_proto(raise)
+weak_alias(__raise,raise)
libc_hidden_def(raise)
diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c
index 0d941be33..14c5418d4 100644
--- a/libc/signal/sigaction.c
+++ b/libc/signal/sigaction.c
@@ -105,6 +105,6 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
#ifndef LIBC_SIGACTION
libc_hidden_proto(sigaction)
-strong_alias(__libc_sigaction,sigaction)
+weak_alias(__libc_sigaction,sigaction)
libc_hidden_def(sigaction)
#endif
diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c
index 76321b148..e309c3e8f 100644
--- a/libc/signal/sigwait.c
+++ b/libc/signal/sigwait.c
@@ -24,8 +24,7 @@
libc_hidden_proto(sigwaitinfo)
-libc_hidden_proto(sigwait)
-int sigwait (const sigset_t *set, int *sig)
+int attribute_hidden __sigwait (const sigset_t *set, int *sig)
{
int ret = 1;
if ((ret = sigwaitinfo(set, NULL)) != -1) {
@@ -34,4 +33,6 @@ int sigwait (const sigset_t *set, int *sig)
}
return 1;
}
+libc_hidden_proto(sigwait)
+weak_alias(__sigwait,sigwait)
libc_hidden_def(sigwait)
diff --git a/libc/sysdeps/linux/arm/sigaction.c b/libc/sysdeps/linux/arm/sigaction.c
index ff96444a4..90797ba29 100644
--- a/libc/sysdeps/linux/arm/sigaction.c
+++ b/libc/sysdeps/linux/arm/sigaction.c
@@ -127,6 +127,6 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
#ifndef LIBC_SIGACTION
libc_hidden_proto(sigaction)
-strong_alias(__libc_sigaction,sigaction)
+weak_alias(__libc_sigaction,sigaction)
libc_hidden_def(sigaction)
#endif
diff --git a/libc/sysdeps/linux/i386/sigaction.c b/libc/sysdeps/linux/i386/sigaction.c
index cc1d75c6b..c38a30741 100644
--- a/libc/sysdeps/linux/i386/sigaction.c
+++ b/libc/sysdeps/linux/i386/sigaction.c
@@ -124,7 +124,7 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
#ifndef LIBC_SIGACTION
libc_hidden_proto(sigaction)
-strong_alias(__libc_sigaction,sigaction)
+weak_alias(__libc_sigaction,sigaction)
libc_hidden_def(sigaction)
#endif
diff --git a/libc/sysdeps/linux/mips/sigaction.c b/libc/sysdeps/linux/mips/sigaction.c
index 15307d9ae..f881fac5d 100644
--- a/libc/sysdeps/linux/mips/sigaction.c
+++ b/libc/sysdeps/linux/mips/sigaction.c
@@ -115,6 +115,6 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
#ifndef LIBC_SIGACTION
libc_hidden_proto(sigaction)
-strong_alias(__libc_sigaction,sigaction)
+weak_alias(__libc_sigaction,sigaction)
libc_hidden_def(sigaction)
#endif
diff --git a/libc/sysdeps/linux/x86_64/sigaction.c b/libc/sysdeps/linux/x86_64/sigaction.c
index 4e5236304..63d146136 100644
--- a/libc/sysdeps/linux/x86_64/sigaction.c
+++ b/libc/sysdeps/linux/x86_64/sigaction.c
@@ -119,7 +119,7 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
#ifndef LIBC_SIGACTION
libc_hidden_proto(sigaction)
-strong_alias(__libc_sigaction,sigaction)
+weak_alias(__libc_sigaction,sigaction)
libc_hidden_def(sigaction)
#endif