• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <mqueue.h>
2 #include <pthread.h>
3 #include <errno.h>
4 #include <sys/socket.h>
5 #include <signal.h>
6 #include <unistd.h>
7 #include "syscall.h"
8 
mq_notify(mqd_t mqd,const struct sigevent * sev)9 int mq_notify(mqd_t mqd, const struct sigevent *sev)
10 {
11 	if (!sev || sev->sigev_notify != SIGEV_THREAD)
12 		return syscall(SYS_mq_notify, mqd, sev);
13 
14 	errno = ENOTSUP;
15 	return -1;
16 }
17