2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
int __sigreturn(void);
|
|
|
|
|
2011-11-28 11:07:55 +01:00
|
|
|
int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
|
2011-02-17 18:11:09 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i2 = sig;
|
|
|
|
|
2011-11-28 11:07:55 +01:00
|
|
|
m.m1_p1 = (char *) __UNCONST(act);
|
2011-02-17 18:11:09 +01:00
|
|
|
m.m1_p2 = (char *) oact;
|
|
|
|
m.m1_p3 = (char *) __sigreturn;
|
|
|
|
|
|
|
|
return(_syscall(PM_PROC_NR, SIGACTION, &m));
|
|
|
|
}
|
2013-01-07 20:10:08 +01:00
|
|
|
|
|
|
|
#ifdef __minix
|
|
|
|
__weak_alias(sigaction, __sigaction14)
|
|
|
|
#endif
|