All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] y2038: lib/cobalt/signal: dispatch sigtimedwait
@ 2021-07-09  7:10 Song Chen
  0 siblings, 0 replies; only message in thread
From: Song Chen @ 2021-07-09  7:10 UTC (permalink / raw)
  To: florian.bezdeka, xenomai

If sizeof time_t bigger than 4, which means glibc supports
64bit timespec, go to sigtimedwait64.

otherwise, go to original sigtimedwait.

Signed-off-by: Song Chen <chensong_2000@189.cn>
---
 lib/cobalt/signal.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/cobalt/signal.c b/lib/cobalt/signal.c
index 7e03301..40d315e 100644
--- a/lib/cobalt/signal.c
+++ b/lib/cobalt/signal.c
@@ -62,7 +62,11 @@ COBALT_IMPL(int, sigtimedwait, (const sigset_t *set, siginfo_t *si,
 
 	pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
 
+#ifdef __USE_TIME_BITS64
+	ret = XENOMAI_SYSCALL3(sc_cobalt_sigtimedwait64, set, si, timeout);
+#else
 	ret = XENOMAI_SYSCALL3(sc_cobalt_sigtimedwait, set, si, timeout);
+#endif
 	if (ret < 0) {
 		errno = -ret;
 		ret = -1;
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-09  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09  7:10 [PATCH 2/3] y2038: lib/cobalt/signal: dispatch sigtimedwait Song Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.