From d4b4c5a0633be8be45583b2fd2238514a52e4202 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 19 Sep 2009 03:41:14 +0200 Subject: 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 --- libc/signal/sigwait.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'libc/signal') diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c index 2cdc3acac..6bca1b1e5 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) -- cgit v1.2.3