etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libsys / proceventmask.c
blob984a3d73e78c3e068c6debd663adb76ed9297d90
1 #include "syslib.h"
3 #include <string.h>
5 /*
6 * Subscribe to a certain set of process events from PM. Subsequent calls will
7 * replace the set, and the empty set (a zero mask) will unsubscribe the caller
8 * altogether. Usage restrictions apply; see PM's event.c for details. Return
9 * OK or a negative error code.
11 int
12 proceventmask(unsigned int mask)
14 message m;
16 memset(&m, 0, sizeof(m));
17 m.m_lsys_pm_proceventmask.mask = mask;
19 return _taskcall(PM_PROC_NR, PM_PROCEVENTMASK, &m);