diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2017-07-14 19:37:28 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-07-28 18:52:28 +0200 |
commit | ccc200d454c712f6e8bfadb4b7c3ee58086d8f2b (patch) | |
tree | 5a728b045bd4467642af6f49439265b454ade9f9 /librt/mq_timedreceive.c | |
parent | 952bb00f0b2eb576b0bf48c4f87018429a42e28d (diff) |
rt: convert mq_timedsend/mq_timedreceive to use cancel.h macros
Diffstat (limited to 'librt/mq_timedreceive.c')
-rw-r--r-- | librt/mq_timedreceive.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/librt/mq_timedreceive.c b/librt/mq_timedreceive.c new file mode 100644 index 000000000..9f5efc4fa --- /dev/null +++ b/librt/mq_timedreceive.c @@ -0,0 +1,16 @@ +/* + * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org> + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include <sys/syscall.h> +#include <mqueue.h> +#include <unistd.h> +#include <cancel.h> + +#define __NR___mq_timedreceive_nocancel __NR_mq_timedreceive +_syscall5(ssize_t, __NC(mq_timedreceive), mqd_t, mqdes, char *__restrict, msg_ptr, size_t, msg_len, unsigned int *__restrict, msq_prio, const struct timespec *__restrict, abs_timeout) + +CANCELLABLE_SYSCALL(ssize_t, mq_timedreceive, (mqd_t mqdes, char *__restrict msg_ptr, size_t msq_len, unsigned int *__restrict msq_prio, const struct timespec *__restrict abs_timeout), + (mqdes, msg_ptr, msq_len, msq_prio, abs_timeout)) +lt_libc_hidden(mq_timedreceive) |