fix regression from a745c4bfc8a9b5db4e48387170da0dc1d39e3abe
[uclibc-ng.git] / librt / mq_timedsend.c
blob7c2e97ee384822841fac83f6be2acb65bb54571f
1 /*
2 * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org>
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 */
6 #include <sys/syscall.h>
7 #include <mqueue.h>
8 #include <unistd.h>
9 #include <cancel.h>
11 #define __NR___mq_timedsend_nocancel __NR_mq_timedsend
12 _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)
14 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),
15 (mqdes, msg_ptr, msq_len, msq_prio, abs_timeout))
16 lt_libc_hidden(mq_timedsend)