summaryrefslogtreecommitdiff
path: root/librt/mq_timedsend.c
diff options
context:
space:
mode:
Diffstat (limited to 'librt/mq_timedsend.c')
-rw-r--r--librt/mq_timedsend.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/librt/mq_timedsend.c b/librt/mq_timedsend.c
index 6afaf5157..b081ac0ce 100644
--- a/librt/mq_timedsend.c
+++ b/librt/mq_timedsend.c
@@ -9,12 +9,17 @@
#include <cancel.h>
#if defined(__UCLIBC_USE_TIME64__) && defined(__NR_mq_timedsend_time64)
-#define __NR___mq_timedsend_nocancel __NR_mq_timedsend_time64
+#include "internal/time64_helpers.h"
+
+int _NC(mq_timedsend)(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msq_prio, const struct timespec *abs_timeout)
+{
+ return INLINE_SYSCALL(mq_timedsend_time64, 5, mqdes, msg_ptr, msg_len, msq_prio, TO_TS64_P(abs_timeout));
+}
#else
#define __NR___mq_timedsend_nocancel __NR_mq_timedsend
+_syscall5(int, __NC(mq_timedsend), mqd_t, mqdes, const char *, msg_ptr, size_t, msg_len, unsigned int, msq_prio, const struct timespec *, abs_timeout)
#endif
-_syscall5(int, __NC(mq_timedsend), mqd_t, mqdes, const char *, msg_ptr, size_t, msg_len, unsigned int, msq_prio, const struct timespec *, abs_timeout)
CANCELLABLE_SYSCALL(int, mq_timedsend, (mqd_t mqdes, const char *msg_ptr, size_t msq_len, unsigned int msq_prio, const struct timespec *abs_timeout),
(mqdes, msg_ptr, msq_len, msq_prio, abs_timeout))
lt_libc_hidden(mq_timedsend)