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
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
sigaction.c
blob
8999f5911b75a230543988edf9ef14d63c30fd37
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <signal.h>
6
7
int
__sigreturn
(
void
);
8
9
int
sigaction
(
int
sig
,
const struct
sigaction
*
act
,
struct
sigaction
*
oact
)
10
{
11
message m
;
12
13
m
.
m1_i2
=
sig
;
14
15
m
.
m1_p1
= (
char
*)
__UNCONST
(
act
);
16
m
.
m1_p2
= (
char
*)
oact
;
17
m
.
m1_p3
= (
char
*)
__sigreturn
;
18
19
return
(
_syscall
(
PM_PROC_NR
,
SIGACTION
, &
m
));
20
}