Commit fc032c39 authored by Florian Bezdeka's avatar Florian Bezdeka Committed by Jan Kiszka

y2038: lib/cobalt: Add support of sc_cobalt_sem_timedwait64

In case libcobalt is build with -D_TIME_BITS=64
sc_cobalt_sem_timedwait64 will be used instead of
sc_cobalt_sem_timedwait.
Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 4b397e2c
......@@ -373,7 +373,12 @@ COBALT_IMPL(int, sem_timedwait, (sem_t *sem, const struct timespec *abs_timeout)
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
#ifdef __USE_TIME_BITS64
ret = XENOMAI_SYSCALL2(sc_cobalt_sem_timedwait64, _sem,
abs_timeout);
#else
ret = XENOMAI_SYSCALL2(sc_cobalt_sem_timedwait, _sem, abs_timeout);
#endif
pthread_setcanceltype(oldtype, NULL);
......
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