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 0000000000000000000000000000000000000000..c2bfddf5af134911b4c738488615ac9f5d28d675 --- /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; +}