diff options
-rw-r--r-- | include/signal.h | 1 | ||||
-rw-r--r-- | libc/signal/sigwait.c | 5 | ||||
-rw-r--r-- | libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c | 8 |
3 files changed, 3 insertions, 11 deletions
diff --git a/include/signal.h b/include/signal.h index d10463068..f72707950 100644 --- a/include/signal.h +++ b/include/signal.h @@ -303,7 +303,6 @@ extern int sigpending (sigset_t *__set) __THROW __nonnull ((1)); __THROW. */ extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig) __nonnull ((1, 2)); -libc_hidden_proto(sigwait) # if defined __USE_POSIX199309 && defined __UCLIBC_HAS_REALTIME__ /* Select any of pending signals from SET and place information in INFO. diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c index a47c37ce2..2bb817000 100644 --- a/libc/signal/sigwait.c +++ b/libc/signal/sigwait.c @@ -72,8 +72,7 @@ else return ret; } -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) { if(SINGLE_THREAD_P) return do_sigwait(set, sig); @@ -166,5 +165,3 @@ int sigwait (const sigset_t *set, int *sig) } # endif /* __UCLIBC_HAS_REALTIME__ */ #endif /* __UCLIBC_HAS_THREADS_NATIVE__ */ -weak_alias(__sigwait,sigwait) -libc_hidden_def(sigwait) diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c index 9bacb1360..859cad5ef 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sigwait.c @@ -68,9 +68,7 @@ weak_extern (__pthread_sigwait) #endif int -__sigwait (set, sig) - const sigset_t *set; - int *sig; +sigwait (const sigset_t *set, int *sig) { #ifndef NOT_IN_libc return __libc_maybe_call2 (pthread_sigwait, (set, sig), @@ -79,9 +77,7 @@ __sigwait (set, sig) return do_sigwait (set, sig); #endif } -libc_hidden_def (__sigwait) -weak_alias (__sigwait, sigwait) -strong_alias (__sigwait, __libc_sigwait) +strong_alias(sigwait, __libc_sigwait) /* Cancellation is handled in __pthread_sigwait. */ LIBC_CANCEL_HANDLED (); |