repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
sigpending.c
blob
01b8fffbf6a7d9e2bf57ad19ce9845680434a2d4
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <string.h>
6
#include <signal.h>
7
8
int
sigpending
(
set
)
9
sigset_t
*
set
;
10
{
11
message m
;
12
13
memset
(&
m
,
0
,
sizeof
(
m
));
14
if
(
_syscall
(
PM_PROC_NR
,
PM_SIGPENDING
, &
m
) <
0
)
return
(-
1
);
15
*
set
=
m
.
m_pm_lc_sigset
.
set
;
16
return
(
m
.
m_type
);
17
}
18
19
#if defined(__minix) && defined(__weak_alias)
20
__weak_alias
(
sigpending
,
__sigpending14
)
21
#endif