_sigaction.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
_sigaction.c (429B)
---
1 #include <stddef.h>
2
3 #include <arch/sigaction.h>
4 #include <sys.h>
5
6 typedef struct ucontext_t ucontext_t;
7
8 extern int _sigaction2(int,
9 struct sigaction *, struct sigaction *,
10 const void *,
11 int);
12
13 extern int _setcontext(ucontext_t *);
14
15 int
16 _sigaction(int sig, struct sigaction *new, struct sigaction *old)
17 {
18 return _sigaction2(sig, new, old, _setcontext, 2);
19 }