minix/lib/nbsd_libc/sys-minix/sigaction.c
Thomas Veerman 92b61c816d Fix many more comiler warnings
Most warnings were harmless, some real bugs. Test set should now compile
cleanly with ack, gcc, and clang.
2011-11-28 10:07:55 +00:00

21 lines
367 B
C

#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"
#include <signal.h>
int __sigreturn(void);
int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
{
message m;
m.m1_i2 = sig;
m.m1_p1 = (char *) __UNCONST(act);
m.m1_p2 = (char *) oact;
m.m1_p3 = (char *) __sigreturn;
return(_syscall(PM_PROC_NR, SIGACTION, &m));
}