diff options
-rw-r--r-- | include/signal.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/__rt_sigtimedwait.c | 13 | ||||
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/sigtimedwait.c | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/include/signal.h b/include/signal.h index 8674b1a3b..eb868bb6b 100644 --- a/include/signal.h +++ b/include/signal.h @@ -348,7 +348,6 @@ extern int sigtimedwait (__const sigset_t *__restrict __set, #ifdef _LIBC extern __typeof(sigtimedwait) __sigtimedwait attribute_hidden; #endif -libc_hidden_proto(sigtimedwait) /* Send signal SIG to the process PID. Associate data in VAL with the signal. */ diff --git a/libc/sysdeps/linux/common/__rt_sigtimedwait.c b/libc/sysdeps/linux/common/__rt_sigtimedwait.c index 26860d2d2..168e38071 100644 --- a/libc/sysdeps/linux/common/__rt_sigtimedwait.c +++ b/libc/sysdeps/linux/common/__rt_sigtimedwait.c @@ -56,8 +56,8 @@ static int do_sigtimedwait(const sigset_t *set, siginfo_t *info, } /* Return any pending signal or wait for one for the given time. */ -int attribute_hidden __sigtimedwait(const sigset_t *set, siginfo_t *info, - const struct timespec *timeout) +int __sigtimedwait(const sigset_t *set, siginfo_t *info, + const struct timespec *timeout) { if(SINGLE_THREAD_P) return do_sigtimedwait(set, info, timeout); @@ -77,15 +77,14 @@ int attribute_hidden __sigtimedwait(const sigset_t *set, siginfo_t *info, # include <stddef.h> # define __NR___rt_sigtimedwait __NR_rt_sigtimedwait static _syscall4(int, __rt_sigtimedwait, const sigset_t *, set, - siginfo_t *, info, const struct timespec *, timeout, - size_t, setsize); + siginfo_t *, info, const struct timespec *, timeout, + size_t, setsize); -int attribute_hidden __sigtimedwait(const sigset_t * set, siginfo_t * info, - const struct timespec *timeout) +int __sigtimedwait(const sigset_t * set, siginfo_t * info, + const struct timespec *timeout) { return __rt_sigtimedwait(set, info, timeout, _NSIG / 8); } # endif /* !__UCLIBC_HAS_THREADS_NATIVE__ */ weak_alias(__sigtimedwait,sigtimedwait) -libc_hidden_weak(sigtimedwait) #endif diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sigtimedwait.c b/libpthread/nptl/sysdeps/unix/sysv/linux/sigtimedwait.c index 5159bf9b8..fbd0b9fa3 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sigtimedwait.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sigtimedwait.c @@ -67,7 +67,7 @@ do_sigtimedwait (const sigset_t *set, siginfo_t *info, /* Return any pending signal or wait for one for the given time. */ -int attribute_hidden +int __sigtimedwait (const sigset_t *set, siginfo_t *info, const struct timespec *timeout) { |