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

y2038: lib/cobalt/signal: dispatch sigtimedwait



If sizeof time_t bigger than 4, which means glibc supports
64bit timespec, go to sigtimedwait64.

otherwise, go to original sigtimedwait.
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 90a0908c
......@@ -62,7 +62,11 @@ COBALT_IMPL(int, sigtimedwait, (const sigset_t *set, siginfo_t *si,
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
#ifdef __USE_TIME_BITS64
ret = XENOMAI_SYSCALL3(sc_cobalt_sigtimedwait64, set, si, timeout);
#else
ret = XENOMAI_SYSCALL3(sc_cobalt_sigtimedwait, set, si, timeout);
#endif
if (ret < 0) {
errno = -ret;
ret = -1;
......
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