From af7e9d036f7b25ee9b0c48caee3f4312aafe007d Mon Sep 17 00:00:00 2001 From: teamol <28105285@qq.com> Date: Tue, 29 Jun 2021 11:19:02 +0800 Subject: [PATCH] fix: fix 1 libC API mq_notify 1.modifications: modified: porting/liteos_a/user/src/mq/mq_notify.c 2.influence: none Signed-off-by: teamol <28105285@qq.com> --- porting/liteos_a/user/src/mq/mq_notify.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 porting/liteos_a/user/src/mq/mq_notify.c diff --git a/porting/liteos_a/user/src/mq/mq_notify.c b/porting/liteos_a/user/src/mq/mq_notify.c new file mode 100644 index 00000000..c2bfddf5 --- /dev/null +++ b/porting/liteos_a/user/src/mq/mq_notify.c @@ -0,0 +1,16 @@ +#include +#include +#include +#include +#include +#include +#include "syscall.h" + +int mq_notify(mqd_t mqd, const struct sigevent *sev) +{ + if (!sev || sev->sigev_notify != SIGEV_THREAD) + return syscall(SYS_mq_notify, mqd, sev); + + errno = ENOTSUP; + return -1; +} -- GitLab