summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-19 01:41:14 (GMT)
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-19 01:41:14 (GMT)
commitd4b4c5a0633be8be45583b2fd2238514a52e4202 (patch)
tree34cc429cd222dd7ca2f16a9602328abe24c11801 /libc/signal
parent2528a3f6c2fa13d55eb1d65be9978e59cc39df8b (diff)
sigwait: remove __sigwait and __GI_sigwait symbols - they are unused
sigwait is not called from any uclibc function, so "hidden symbol" trick is not needed on it. __sigwait also is never used, and it's not clear why it even existed. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/sigwait.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c
index 2cdc3ac..6bca1b1 100644
--- a/libc/signal/sigwait.c
+++ b/libc/signal/sigwait.c
@@ -24,8 +24,7 @@
#if defined __UCLIBC_HAS_REALTIME__
-int __sigwait (const sigset_t *set, int *sig) attribute_hidden;
-int __sigwait (const sigset_t *set, int *sig)
+int sigwait(const sigset_t *set, int *sig)
{
int ret = sigwaitinfo(set, NULL);
if (ret != -1) {
@@ -34,16 +33,18 @@ int __sigwait (const sigset_t *set, int *sig)
}
return 1;
}
+
#else /* __UCLIBC_HAS_REALTIME__ */
/* variant without REALTIME extensions */
static smallint was_sig; /* obviously not thread-safe */
+
static void ignore_signal(int sig)
{
was_sig = sig;
}
-int __sigwait (const sigset_t *set, int *sig) attribute_hidden;
-int __sigwait (const sigset_t *set, int *sig)
+
+int sigwait (const sigset_t *set, int *sig)
{
sigset_t tmp_mask;
struct sigaction saved[NSIG];
@@ -94,5 +95,3 @@ int __sigwait (const sigset_t *set, int *sig)
return was_sig == -1 ? -1 : 0;
}
#endif /* __UCLIBC_HAS_REALTIME__ */
-weak_alias(__sigwait,sigwait)
-libc_hidden_def(sigwait)