2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
15 #ifndef _SIG_ATOMIC_T_DEFINED
16 #define _SIG_ATOMIC_T_DEFINED
17 typedef int sig_atomic_t;
22 #define SIGHUP 1 /* hangup */
24 #define SIGQUIT 3 /* quit */
26 #define SIGTRAP 5 /* trace trap (not reset when caught) */
27 #define SIGIOT 6 /* IOT instruction */
28 #define SIGABRT 6 /* used by abort, replace SIGIOT in the future */
29 #define SIGEMT 7 /* EMT instruction */
31 #define SIGKILL 9 /* kill (cannot be caught or ignored) */
32 #define SIGBUS 10 /* bus error */
34 #define SIGSYS 12 /* bad argument to system call */
35 #define SIGPIPE 13 /* write on a pipe with no one to read it */
36 #ifdef __USE_MINGW_ALARM
37 #define SIGALRM 14 /* alarm clock */
43 #define SIGABRT_COMPAT 6
45 typedef void (*__p_sig_fn_t
)(int);
47 #define SIG_DFL (__p_sig_fn_t)0
48 #define SIG_IGN (__p_sig_fn_t)1
49 #define SIG_GET (__p_sig_fn_t)2
50 #define SIG_SGE (__p_sig_fn_t)3
51 #define SIG_ACK (__p_sig_fn_t)4
52 #define SIG_ERR (__p_sig_fn_t)-1
54 extern void **__cdecl
__pxcptinfoptrs(void);
55 #define _pxcptinfoptrs (*__pxcptinfoptrs())
57 __p_sig_fn_t __cdecl
signal(int _SigNum
,__p_sig_fn_t _Func
);
58 int __cdecl
raise(int _SigNum
);