tinycc/win32/include/signal.h

64 lines
1.5 KiB
C
Raw Normal View History

2009-07-19 00:06:37 +04:00
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
2005-04-17 17:10:37 +04:00
*/
2009-07-19 00:06:37 +04:00
#ifndef _INC_SIGNAL
#define _INC_SIGNAL
2005-04-17 17:10:37 +04:00
#include <_mingw.h>
2009-07-19 00:06:37 +04:00
#ifdef __cplusplus
extern "C" {
#endif
2005-04-17 17:10:37 +04:00
#ifndef _SIG_ATOMIC_T_DEFINED
#define _SIG_ATOMIC_T_DEFINED
2009-07-19 00:06:37 +04:00
typedef int sig_atomic_t;
2005-04-17 17:10:37 +04:00
#endif
2009-07-19 00:06:37 +04:00
#define NSIG 23
#define SIGHUP 1 /* hangup */
#define SIGINT 2
#define SIGQUIT 3 /* quit */
#define SIGILL 4
#define SIGTRAP 5 /* trace trap (not reset when caught) */
#define SIGIOT 6 /* IOT instruction */
#define SIGABRT 6 /* used by abort, replace SIGIOT in the future */
#define SIGEMT 7 /* EMT instruction */
#define SIGFPE 8
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
#define SIGBUS 10 /* bus error */
#define SIGSEGV 11
#define SIGSYS 12 /* bad argument to system call */
#define SIGPIPE 13 /* write on a pipe with no one to read it */
#ifdef __USE_MINGW_ALARM
#define SIGALRM 14 /* alarm clock */
#endif
#define SIGTERM 15
#define SIGBREAK 21
#define SIGABRT2 22
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#define SIGABRT_COMPAT 6
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
typedef void (*__p_sig_fn_t)(int);
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#define SIG_DFL (__p_sig_fn_t)0
#define SIG_IGN (__p_sig_fn_t)1
#define SIG_GET (__p_sig_fn_t)2
#define SIG_SGE (__p_sig_fn_t)3
#define SIG_ACK (__p_sig_fn_t)4
#define SIG_ERR (__p_sig_fn_t)-1
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
extern void **__cdecl __pxcptinfoptrs(void);
#define _pxcptinfoptrs (*__pxcptinfoptrs())
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
__p_sig_fn_t __cdecl signal(int _SigNum,__p_sig_fn_t _Func);
int __cdecl raise(int _SigNum);
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#ifdef __cplusplus
2005-04-17 17:10:37 +04:00
}
#endif
2009-07-19 00:06:37 +04:00
#endif