summaryrefslogtreecommitdiff
path: root/lib/libc/mqueue/mq_notify.c
blob: a7617375208a346041564ecf743c0a9b6329fb9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <mqueue.h>
#include <signal.h>
#include <syscall.h>

int mq_notify(mqd_t mqdes, const struct sigevent *notification)
{
	if (notification == NULL ||
	    notification->sigev_notify != SIGEV_THREAD) {
		return syscall(mq_notify, mqdes, notification);
	}

	// TODO: implement SIGEV_THREAD notification
	errno = ENOSYS;
	return -1;
}