From: Song Chen <chensong_2000@189.cn>
To: florian.bezdeka@siemens.com, xenomai@xenomai.org
Subject: [PATCH 2/3] y2038: lib/cobalt/signal: dispatch sigtimedwait
Date: Fri, 9 Jul 2021 15:10:10 +0800 [thread overview]
Message-ID: <1625814610-22665-1-git-send-email-chensong_2000@189.cn> (raw)
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
reply other threads:[~2021-07-09 7:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1625814610-22665-1-git-send-email-chensong_2000@189.cn \
--to=chensong_2000@189.cn \
--cc=florian.bezdeka@siemens.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.