diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-13 00:55:15 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:22 +0200 |
commit | 5fce95b146d86e31977fcc62380b9fd32813561f (patch) | |
tree | 57d7336d23c8c99a5834e04a7a86e53cbf39acb3 | |
parent | 12bfecef4c3340935ca2c107bdef06fc7da8bd95 (diff) |
no need for hidden sigtimedwait
remove unneeded attribute_hidden too, as the prototype provides it
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-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) { |