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

y2038: lib/cobalt/mqueue: dispatch mq_timedreceive

If libc reports time64_t support mq_timedreceive is dispatched to the
time64_t based syscall.
Signed-off-by: default avatarSong Chen <>
[Florian: Reformat commit message]
Signed-off-by: default avatarFlorian Bezdeka <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 0741c626
......@@ -521,8 +521,13 @@ COBALT_IMPL(ssize_t, mq_timedreceive, (mqd_t q,
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
#ifdef __USE_TIME_BITS64
err = XENOMAI_SYSCALL5(sc_cobalt_mq_timedreceive64,
q, buffer, &rlen, prio, timeout);
err = XENOMAI_SYSCALL5(sc_cobalt_mq_timedreceive,
q, buffer, &rlen, prio, timeout);
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