summaryrefslogtreecommitdiff
path: root/include/signal.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-22 00:33:48 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:41 +0200
commitb72b0b14d0da0b506fbddf755cc8c7d0cd813287 (patch)
tree844a9b81562265974b81f3a21af413c07cd7f349 /include/signal.h
parent24edbbd53a382f35a4365ae065f61d56579f52f1 (diff)
rework cancellation for sigwait, sigtimedwait and sigwaitinfo
sigtimedwait: - provide __sigtimedwait_nocancel - use __SYSCALL_SIGSET_T_SIZE instead of _NSIG / 8 - do not provide __sigtimedwait - guard a section to avoid failure on archs if SI_TKILL/SI_USER are not defined sigwaitinfo: - simply use sigtimedwait since that handles cancellation already sigwait: - use non-cancellable functions (sigtimedwait, sigsuspend) - get rid of code already done in __sigtimedwait_nocancel Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h
index 09f06f95b..052467758 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -372,7 +372,8 @@ extern int sigtimedwait (__const sigset_t *__restrict __set,
__const struct timespec *__restrict __timeout)
__nonnull ((1));
#ifdef _LIBC
-extern __typeof(sigtimedwait) __sigtimedwait attribute_hidden;
+extern __typeof(sigtimedwait) __sigtimedwait_nocancel attribute_hidden;
+libc_hidden_proto(sigtimedwait)
#endif
/* Send signal SIG to the process PID. Associate data in VAL with the