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

y2038: lib/cobalt/mqueue: dispatch mq_timedsend

Dispatch mq_timesend to the 64bit aware syscall if libc reports
time64_t support.
Signed-off-by: default avatarSong Chen <>
[Florian: Rephrase commit message]
Signed-off-by: default avatarFlorian Bezdeka <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 7155a5cd
......@@ -332,8 +332,13 @@ COBALT_IMPL(int, mq_send, (mqd_t q, const char *buffer, size_t len, unsigned pri
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
#ifdef __USE_TIME_BITS64
err = XENOMAI_SYSCALL5(sc_cobalt_mq_timedsend64,
q, buffer, len, prio, NULL);
err = XENOMAI_SYSCALL5(sc_cobalt_mq_timedsend,
q, buffer, len, prio, NULL);
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