some coverity fixes.
[minix.git] / lib / libc / sys-minix / sigaction.c
blob8999f5911b75a230543988edf9ef14d63c30fd37
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <signal.h>
7 int __sigreturn(void);
9 int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
11 message m;
13 m.m1_i2 = sig;
15 m.m1_p1 = (char *) __UNCONST(act);
16 m.m1_p2 = (char *) oact;
17 m.m1_p3 = (char *) __sigreturn;
19 return(_syscall(PM_PROC_NR, SIGACTION, &m));