source:
trunk/minix/lib/other/_getsigset.c@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 287 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define getsigset _getsigset |
3 | #include <unistd.h> |
4 | |
5 | |
6 | PUBLIC int getsigset(sp) |
7 | sigset_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.