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 <chensong_2000@189.cn>
Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent c071af28
......@@ -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)
......
Markdown is supported
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