提交 2196d9aa 编写于 作者: O openharmony_ci 提交者: Gitee

!47 fix mq_notify API

Merge pull request !47 from guweijie/master
#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.
先完成此消息的编辑!
想要评论请 注册