shithub: scc

ref: 7d06d1d348ce9fb9dc585d81f146e12193be85e4
dir: /src/libc/arch/netbsd/_sigaction.c/

View raw version
#include <stddef.h>

#include <arch/sigaction.h>
#include <sys.h>

typedef struct ucontext_t ucontext_t;

extern int _sigaction2(int,
                       struct sigaction *, struct sigaction *,
                       const void *,
                       int);

extern int _setcontext(ucontext_t *);

int
_sigaction(int sig, struct sigaction *new, struct sigaction *old)
{
	return _sigaction2(sig, new, old, _setcontext, 2);
}