提交 af7e9d03 编写于 作者: T teamol

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: Nteamol <28105285@qq.com>
上级 08c1af37
#include <mqueue.h>
#include <pthread.h>
#include <errno.h>
#include <sys/socket.h>
#include <signal.h>
#include <unistd.h>
#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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册