2 * mq_notify.c - notify process that a message is available.
7 #include <sys/syscall.h>
13 #define __NR___syscall_mq_notify __NR_mq_notify
14 static __inline__
_syscall2(int, __syscall_mq_notify
, int, mqdes
,
15 const void *, notification
);
17 /* Register notification upon message arrival to an empty message queue */
18 int mq_notify(mqd_t mqdes
, const struct sigevent
*notification
)
20 /* We don't support SIGEV_THREAD notification yet */
21 if (notification
!= NULL
&& notification
->sigev_notify
== SIGEV_THREAD
) {
25 return __syscall_mq_notify(mqdes
, notification
);