diff options
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) |