From: "François Legal" <francois.legal@eventlab.fr>
To: xenomai@lists.linux.dev
Subject: [PATCH v2] Fix missing time64 wrappers
Date: Mon, 12 Oct 2026 18:49:53 +0200 [thread overview]
Message-ID: <1209-6acd0f80-73-5a2d1100@131663125> (raw)
There are missing wrappers for 64 bits time in xenomai 3.3 :
- __recvmsg64
- __sendmsg64
- __sendmmsg64
For __recvmsg64, the only options which shall write to msghdr.msg_control are :
-RTCAN_RTIOC_TAKE_TIMESTAMP which always writes RTCAN_TIMESTAMP_SIZE (64) bits
so it is correct to route the time64 service to ne native "time_t" syscall.
Signed-off-by: François LEGAL <devel@thom.fr.eu.org>
---
diff --git a/lib/cobalt/cobalt-glibc-time64.wrappers b/lib/cobalt/cobalt-glibc-time64.wrappers
index 0bf895ca9..483a8ce24 100644
--- a/lib/cobalt/cobalt-glibc-time64.wrappers
+++ b/lib/cobalt/cobalt-glibc-time64.wrappers
@@ -8,7 +8,10 @@
--wrap __mq_timedsend_time64
--wrap __mq_timedreceive_time64
--wrap __sigtimedwait64
+--wrap __recvmsg64
--wrap __recvmmsg64
+--wrap __sendmsg64
+--wrap __sendmmsg64
--wrap __pthread_cond_timedwait64
--wrap __timer_settime64
--wrap __timer_gettime64
diff --git a/lib/cobalt/rtdm.c b/lib/cobalt/rtdm.c
index 00c1aaf4b..264de8ace 100644
--- a/lib/cobalt/rtdm.c
+++ b/lib/cobalt/rtdm.c
@@ -254,7 +256,7 @@ static ssize_t do_recvmsg(int fd, struct msghdr *msg, int flags)
return ret;
}
-COBALT_IMPL(ssize_t, recvmsg, (int fd, struct msghdr *msg, int flags))
+COBALT_IMPL_TIME64(ssize_t, recvmsg, __recvmsg64,
+ (int fd,struct msghdr *msg, int flags))
{
int ret;
@@ -301,7 +301,7 @@ static ssize_t do_sendmsg(int fd, const struct msghdr *msg, int flags)
return ret;
}
-COBALT_IMPL(ssize_t, sendmsg, (int fd, const struct msghdr *msg, int flags))
+COBALT_IMPL_TIME64(ssize_t, sendmsg, __sendmsg64,
+ (int fd, const struct msghdr *msg, int flags))
{
int ret;
@@ -312,7 +312,7 @@ COBALT_IMPL(ssize_t, sendmsg, (int fd, const struct msghdr *msg, int flags))
return __STD(sendmsg(fd, msg, flags));
}
-COBALT_IMPL(int, sendmmsg, (int fd, struct mmsghdr *msgvec,
+COBALT_IMPL_TIME64(int, sendmmsg, sendmmsg64, (int fd, struct mmsghdr *msgvec,
unsigned int vlen, unsigned int flags))
{
int ret, oldtype;
next reply other threads:[~2026-10-12 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 16:49 François Legal [this message]
2026-10-12 19:54 ` [PATCH v2] Fix missing time64 wrappers Florian Bezdeka
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=1209-6acd0f80-73-5a2d1100@131663125 \
--to=francois.legal@eventlab.fr \
--cc=xenomai@lists.linux.dev \
/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.