From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Bezdeka Subject: [PATCH v2 4/5] y2038: lib/cobalt/mutex: dispatch mutex_timedlock Date: Fri, 30 Jul 2021 13:39:44 +0200 Message-Id: <20210730113944.251435-1-florian.bezdeka@siemens.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org From: Song Chen In case the libc in use reports a 64 bit time_t dispacht mutex_timedlock to the kernel entry point that accepts it. Signed-off-by: Song Chen Signed-off-by: Florian Bezdeka --- lib/cobalt/mutex.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cobalt/mutex.c b/lib/cobalt/mutex.c index 29236c75a..73e45a1c4 100644 --- a/lib/cobalt/mutex.c +++ b/lib/cobalt/mutex.c @@ -479,7 +479,11 @@ slow_path: } do { +#ifdef __USE_TIME_BITS64 + ret = XENOMAI_SYSCALL2(sc_cobalt_mutex_timedlock64, _mutex, to); +#else ret = XENOMAI_SYSCALL2(sc_cobalt_mutex_timedlock, _mutex, to); +#endif } while (ret == -EINTR); if (ret == 0) -- 2.30.2