source: trunk/minix/lib/posix/_sigaction.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 471 bytes
Line 
1#include <lib.h>
2#define sigaction _sigaction
3#include <sys/sigcontext.h>
4#include <signal.h>
5
6_PROTOTYPE(int __sigreturn, (void));
7
8PUBLIC int sigaction(sig, act, oact)
9int sig;
10_CONST struct sigaction *act;
11struct sigaction *oact;
12{
13 message m;
14
15 m.m1_i2 = sig;
16
17 /* XXX - yet more type puns because message struct is short of types. */
18 m.m1_p1 = (char *) act;
19 m.m1_p2 = (char *) oact;
20 m.m1_p3 = (char *) __sigreturn;
21
22 return(_syscall(MM, SIGACTION, &m));
23}
Note: See TracBrowser for help on using the repository browser.