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
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
sigpending.c
blob
817505f6a43d023b25218f742809da730dd4dd4b
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <signal.h>
6
7
int
sigpending
(
set
)
8
sigset_t
*
set
;
9
{
10
message m
;
11
12
if
(
_syscall
(
PM_PROC_NR
,
SIGPENDING
, &
m
) <
0
)
return
(-
1
);
13
*
set
= (
sigset_t
)
m
.
m2_l1
;
14
return
(
m
.
m_type
);
15
}