y2038: lib/cobalt/signal: dispatch sigtimedwait
PATCH 2/3 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 Song Chen <[email protected]>
--- lib/cobalt/signal.c | 4 ++++ 1 file changed, 4 insertions(+)
lib/cobalt/signal.c +4 -0
@@ -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 ;
Signature · 1 line
2.7.4