|
|
1.1 root 1: /***
2: *signal.h - defines signal values and routines
3: *
1.1.1.4 ! root 4: * Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
1.1 root 5: *
6: *Purpose:
7: * This file defines the signal values and declares the signal functions.
8: * [ANSI/System V]
9: *
10: ****/
11:
12: #ifndef _INC_SIGNAL
13:
14: #ifdef __cplusplus
15: extern "C" {
16: #endif
17:
18:
1.1.1.3 root 19: /*
20: * Conditional macro definition for function calling type and variable type
21: * qualifiers.
22: */
23: #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
24:
25: /*
26: * Definitions for MS C8-32 (386/486) compiler
27: */
28: #define _CRTAPI1 __cdecl
29: #define _CRTAPI2 __cdecl
30:
31: #else
32:
33: /*
34: * Other compilers (e.g., MIPS)
35: */
36: #define _CRTAPI1
37: #define _CRTAPI2
38:
1.1.1.2 root 39: #endif
1.1 root 40:
1.1.1.3 root 41:
1.1 root 42: #ifndef _SIG_ATOMIC_T_DEFINED
43: typedef int sig_atomic_t;
44: #define _SIG_ATOMIC_T_DEFINED
45: #endif
46:
47: #define NSIG 23 /* maximum signal number + 1 */
48:
49: /* signal types */
50:
51: #define SIGINT 2 /* interrupt */
52: #define SIGILL 4 /* illegal instruction - invalid function image */
53: #define SIGFPE 8 /* floating point exception */
54: #define SIGSEGV 11 /* segment violation */
55: #define SIGTERM 15 /* Software termination signal from kill */
56: #define SIGBREAK 21 /* Ctrl-Break sequence */
57: #define SIGABRT 22 /* abnormal termination triggered by abort call */
58:
59:
60: /* signal action codes */
61:
1.1.1.3 root 62: #define SIG_DFL (void (_CRTAPI1 *)(int))0 /* default signal action */
63: #define SIG_IGN (void (_CRTAPI1 *)(int))1 /* ignore signal */
64: #define SIG_SGE (void (_CRTAPI1 *)(int))3 /* signal gets error */
65: #define SIG_ACK (void (_CRTAPI1 *)(int))4 /* acknowledge */
1.1 root 66:
67:
68: /* signal error value (returned by signal call on error) */
69:
1.1.1.3 root 70: #define SIG_ERR (void (_CRTAPI1 *)(int))-1 /* signal error value */
1.1 root 71:
72: /* pointer to exception information pointers structure */
73:
74: #ifdef _MT
1.1.1.3 root 75: extern void * * _CRTAPI1 __pxcptinfoptrs(void);
1.1 root 76: #define _pxcptinfoptrs (*__pxcptinfoptrs())
77: #else
78: extern void * _pxcptinfoptrs;
79: #endif
80:
81: /* function prototypes */
82:
1.1.1.3 root 83: void (_CRTAPI1 * _CRTAPI1 signal(int, void (_CRTAPI1 *)(int)))(int);
84: int _CRTAPI1 raise(int);
1.1 root 85:
86: #ifdef __cplusplus
87: }
88: #endif
89:
90: #define _INC_SIGNAL
91: #endif /* _INC_SIGNAL */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.