blob: 24d4502ec05fc359b7a140ab843fda5af1498a39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef _BSD_SIGNAL_H
#define _BSD_SIGNAL_H
/* make sure we get BSD style signals (that don't need to be reset) */
#define __USE_BSD_SIGNAL
#include_next <signal.h>
/* use rough approximation of sigaction to sigvec, not completely safe! */
#define sigvec sigaction
#define sv_mask sa_mask
#define sv_flags sa_flags
#define sv_handler sa_handler
#define sv_onstack sa_mask /* ouch, this one really hurts */
/* BSD uses some non-POSIX signals without ifdefs */
#define SIGSYS SIGUNUSED
/* BSD wants this typedef for signal handlers */
#define sig_t __sighandler_t
#endif /* _BSD_SIGNAL_H */
|