Rev | Line | |
---|
[9] | 1 | #include <lib.h>
|
---|
| 2 | #define sigaction _sigaction
|
---|
| 3 | #include <sys/sigcontext.h>
|
---|
| 4 | #include <signal.h>
|
---|
| 5 |
|
---|
| 6 | _PROTOTYPE(int __sigreturn, (void));
|
---|
| 7 |
|
---|
| 8 | PUBLIC int sigaction(sig, act, oact)
|
---|
| 9 | int sig;
|
---|
| 10 | _CONST struct sigaction *act;
|
---|
| 11 | struct 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.