. service tells you which device it couldn't stat
[minix3.git] / lib / other / _getsigset.c
blob74db36a6f0f4cdd657657e4157804c84159c9fb1
1 #include <lib.h>
2 #define getsigset _getsigset
3 #include <unistd.h>
6 PUBLIC int getsigset(sp)
7 sigset_t *sp; /* where to put it */
9 message m;
10 m.m2_i1 = SELF; /* request own signal set */
11 if (_syscall(PM_PROC_NR, PROCSTAT, &m) < 0) return(-1);
12 *sp = m.m2_l1;
13 return(0);