2 *signal.h - defines signal values and routines
4 * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
7 * This file defines the signal values and declares the signal functions.
10 *******************************************************************************/
13 #ifndef NO_EXT_KEYS /* extensions enabled */
15 #else /* extensions not enabled */
17 #endif /* NO_EXT_KEYS */
19 #ifndef _SIG_ATOMIC_T_DEFINED
20 typedef int sig_atomic_t;
21 #define _SIG_ATOMIC_T_DEFINED
25 #define NSIG 23 /* maximum signal number + 1 */
28 /* SIGINT, SIGFPE, SIGILL, SIGSEGV, and SIGABRT are recognized on DOS 3.x */
30 #define SIGINT 2 /* interrupt - corresponds to DOS 3.x int 23H */
31 #define SIGILL 4 /* illegal instruction - invalid function image */
32 #define SIGFPE 8 /* floating point exception */
33 #define SIGSEGV 11 /* segment violation */
34 #define SIGTERM 15 /* Software termination signal from kill */
35 #define SIGUSR1 16 /* User defined signal 1 */
36 #define SIGUSR2 17 /* User defined signal 2 */
37 #define SIGUSR3 20 /* User defined signal 3 */
38 #define SIGBREAK 21 /* Ctrl-Break sequence */
39 #define SIGABRT 22 /* abnormal termination triggered by abort call */
42 /* signal action codes */
43 /* SIG_DFL and SIG_IGN are recognized on DOS 3.x */
45 #define SIG_DFL (void (*)())0 /* default signal action */
46 #define SIG_IGN (void (*)())1 /* ignore */
47 #define SIG_SGE (void (*)())3 /* signal gets error */
48 #define SIG_ACK (void (*)())4 /* error if handler not setup */
51 /* signal error value (returned by signal call on error) */
53 #define SIG_ERR (void (*)())-1 /* signal error value */
56 /* function prototypes */
58 void (_CDECL * _CDECL signal(int, void (_CDECL *)()))();
59 int _CDECL raise(int);