repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. service tells you which device it couldn't stat
[minix3.git]
/
lib
/
other
/
_getsigset.c
blob
74db36a6f0f4cdd657657e4157804c84159c9fb1
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