source: trunk/minix/lib/other/_getsigset.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 287 bytes
Line 
1#include <lib.h>
2#define getsigset _getsigset
3#include <unistd.h>
4
5
6PUBLIC int getsigset(sp)
7sigset_t *sp; /* where to put it */
8{
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);
14}
15
Note: See TracBrowser for help on using the repository browser.