1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef _GL_SIG_HANDLER_H
- #define _GL_SIG_HANDLER_H
- #include <signal.h>
- typedef void (*sa_handler_t) (int);
- static inline sa_handler_t
- get_handler (struct sigaction const *a)
- {
- #ifdef SA_SIGINFO
-
- if (a->sa_flags & SA_SIGINFO)
- return (sa_handler_t) a->sa_sigaction;
- #endif
- return a->sa_handler;
- }
- #endif
|