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