From: Florian Bezdeka <florian.bezdeka@siemens.com>
To: xenomai@xenomai.org
Subject: [PATCH v2 2/5] y2038: lib/cobalt/mqueue: dispatch mq_timedsend
Date: Sat, 31 Jul 2021 09:19:39 +0200 [thread overview]
Message-ID: <20210731071942.69806-3-florian.bezdeka@siemens.com> (raw)
In-Reply-To: <20210731071942.69806-1-florian.bezdeka@siemens.com>
From: Song Chen <chensong_2000@189.cn>
Dispatch mq_timesend to the 64bit aware syscall if libc reports
time64_t support.
Signed-off-by: Song Chen <chensong_2000@189.cn>
[Florian: Rephrase commit message]
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
lib/cobalt/mq.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/cobalt/mq.c b/lib/cobalt/mq.c
index 471d9b39e..59e46f2e2 100644
--- a/lib/cobalt/mq.c
+++ b/lib/cobalt/mq.c
@@ -332,8 +332,13 @@ COBALT_IMPL(int, mq_send, (mqd_t q, const char *buffer, size_t len, unsigned pri
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
+#ifdef __USE_TIME_BITS64
+ err = XENOMAI_SYSCALL5(sc_cobalt_mq_timedsend64,
+ q, buffer, len, prio, NULL);
+#else
err = XENOMAI_SYSCALL5(sc_cobalt_mq_timedsend,
q, buffer, len, prio, NULL);
+#endif
pthread_setcanceltype(oldtype, NULL);
--
2.30.2
next prev parent reply other threads:[~2021-07-31 7:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-31 7:19 [PATCH v2 0/5] y2038: Adding support for mq_timed{send,recv}64 Florian Bezdeka
2021-07-31 7:19 ` [PATCH v2 1/5] y2038: cobalt/posix/mqueue: Adding mq_timedsend64 Florian Bezdeka
2021-07-31 7:19 ` Florian Bezdeka [this message]
2021-07-31 7:19 ` [PATCH v2 3/5] y2038: cobalt/posix/muqueue: Adding mq_timedreceive64 Florian Bezdeka
2021-07-31 7:19 ` [PATCH v2 4/5] y2038: lib/cobalt/mqueue: dispatch mq_timedreceive Florian Bezdeka
2021-07-31 7:19 ` [PATCH v2 5/5] y2038: testsuite/smokey/y2038: Adding tests for mq_timed{send, recv}64 Florian Bezdeka
2021-08-02 9:10 ` [PATCH v2 0/5] y2038: Adding support for mq_timed{send,recv}64 Jan Kiszka
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=20210731071942.69806-3-florian.bezdeka@siemens.com \
--to=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.