Commit 31773eb7 authored by Song Chen's avatar Song Chen Committed by Jan Kiszka
Browse files

y2038: lib/cobalt/mutex: dispatch mutex_timedlock

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: default avatarSong Chen <>
Signed-off-by: default avatarFlorian Bezdeka <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent c071af28
......@@ -479,7 +479,11 @@ slow_path:
do {
#ifdef __USE_TIME_BITS64
ret = XENOMAI_SYSCALL2(sc_cobalt_mutex_timedlock64, _mutex, to);
ret = XENOMAI_SYSCALL2(sc_cobalt_mutex_timedlock, _mutex, to);
} while (ret == -EINTR);
if (ret == 0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment