diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 21:25:45 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 21:25:45 +0000 |
commit | 9b92b36b830fcab65e8cb700ef26620d47d3879c (patch) | |
tree | 3df3512b860f8cee9f7c9f5303816aed037df3d9 /libc/signal | |
parent | ac3b5716a728cc44038ab79be94f36f818c4d94d (diff) | |
download | uClibc-alpine-9b92b36b830fcab65e8cb700ef26620d47d3879c.tar.bz2 uClibc-alpine-9b92b36b830fcab65e8cb700ef26620d47d3879c.tar.xz |
make sigaction/raise/sigwait/siglongjmp/longjmp weak_alias, these are in libpthread as well
Diffstat (limited to 'libc/signal')
-rw-r--r-- | libc/signal/raise.c | 5 | ||||
-rw-r--r-- | libc/signal/sigaction.c | 2 | ||||
-rw-r--r-- | libc/signal/sigwait.c | 5 |
3 files changed, 7 insertions, 5 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) |