secondary cache feature in vm.
[minix.git] / lib / libc / posix / _sigaction.c
blobbbd19b182fe2ad6ba98ee4e5baedb584b9453322
1 #include <lib.h>
2 #define sigaction _sigaction
3 #include <signal.h>
5 _PROTOTYPE(int __sigreturn, (void));
7 PUBLIC int sigaction(sig, act, oact)
8 int sig;
9 _CONST struct sigaction *act;
10 struct sigaction *oact;
12 message m;
14 m.m1_i2 = sig;
16 /* XXX - yet more type puns because message struct is short of types. */
17 m.m1_p1 = (char *) act;
18 m.m1_p2 = (char *) oact;
19 m.m1_p3 = (char *) __sigreturn;
21 return(_syscall(MM, SIGACTION, &m));