scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <stddef.h>
 2
 3#include <arch/sigaction.h>
 4#include <sys.h>
 5
 6typedef struct ucontext_t ucontext_t;
 7
 8extern int _sigaction2(int,
 9                       struct sigaction *, struct sigaction *,
10                       const void *,
11                       int);
12
13extern int _setcontext(ucontext_t *);
14
15int
16_sigaction(int sig, struct sigaction *new, struct sigaction *old)
17{
18	return _sigaction2(sig, new, old, _setcontext, 2);
19}