From ae7377cea8df3d2f2c122826f3df379786d719f3 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 14 Nov 2005 23:18:20 +0000 Subject: Hide internally used symbols, use weak_alias for raise/sigwait, as they could be in libpthread too --- libc/signal/raise.c | 5 ++++- libc/signal/sigwait.c | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'libc/signal') diff --git a/libc/signal/raise.c b/libc/signal/raise.c index d4137aeb8..69b61385c 100644 --- a/libc/signal/raise.c +++ b/libc/signal/raise.c @@ -7,8 +7,11 @@ #include #include -int raise(int signo) +#undef raise +int attribute_hidden __raise(int signo) { return kill(getpid(), signo); } +/* psm: keep this weak, because the one in libpthread.so could overwrite it */ +weak_alias(__raise, raise) diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c index 9cd2b6d12..a3d43df19 100644 --- a/libc/signal/sigwait.c +++ b/libc/signal/sigwait.c @@ -22,7 +22,8 @@ #include #include -int sigwait (const sigset_t *set, int *sig) +#undef sigwait +int attribute_hidden __sigwait (const sigset_t *set, int *sig) { int ret = 1; if ((ret = sigwaitinfo(set, NULL)) != -1) { @@ -31,3 +32,6 @@ int sigwait (const sigset_t *set, int *sig) } return 1; } + +/* psm: keep this weak, because the one in libpthread.so could overwrite it */ +weak_alias(__sigwait, sigwait) -- cgit v1.2.3