|
|
1.1 root 1: /***
2: *signal.h - defines signal values and routines
3: *
1.1.1.3 ! root 4: * Copyright (c) 1985-1992, 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: #elif ( _MSC_VER == 600 )
! 32:
! 33: /*
! 34: * Definitions for old MS C6-386 compiler
! 35: */
! 36: #define _CRTAPI1 _cdecl
! 37: #define _CRTAPI2 _cdecl
! 38: #define _M_IX86 300
! 39:
! 40: #else
! 41:
! 42: /*
! 43: * Other compilers (e.g., MIPS)
! 44: */
! 45: #define _CRTAPI1
! 46: #define _CRTAPI2
! 47:
1.1.1.2 root 48: #endif
1.1 root 49:
1.1.1.3 ! root 50:
1.1 root 51: #ifndef _SIG_ATOMIC_T_DEFINED
52: typedef int sig_atomic_t;
53: #define _SIG_ATOMIC_T_DEFINED
54: #endif
55:
56: #define NSIG 23 /* maximum signal number + 1 */
57:
58: /* signal types */
59:
60: #define SIGINT 2 /* interrupt */
61: #define SIGILL 4 /* illegal instruction - invalid function image */
62: #define SIGFPE 8 /* floating point exception */
63: #define SIGSEGV 11 /* segment violation */
64: #define SIGTERM 15 /* Software termination signal from kill */
65: #define SIGBREAK 21 /* Ctrl-Break sequence */
66: #define SIGABRT 22 /* abnormal termination triggered by abort call */
67:
68:
69: /* signal action codes */
70:
1.1.1.3 ! root 71: #define SIG_DFL (void (_CRTAPI1 *)(int))0 /* default signal action */
! 72: #define SIG_IGN (void (_CRTAPI1 *)(int))1 /* ignore signal */
! 73: #define SIG_SGE (void (_CRTAPI1 *)(int))3 /* signal gets error */
! 74: #define SIG_ACK (void (_CRTAPI1 *)(int))4 /* acknowledge */
1.1 root 75:
76:
77: /* signal error value (returned by signal call on error) */
78:
1.1.1.3 ! root 79: #define SIG_ERR (void (_CRTAPI1 *)(int))-1 /* signal error value */
1.1 root 80:
81: /* pointer to exception information pointers structure */
82:
83: #ifdef _MT
1.1.1.3 ! root 84: extern void * * _CRTAPI1 __pxcptinfoptrs(void);
1.1 root 85: #define _pxcptinfoptrs (*__pxcptinfoptrs())
86: #else
87: extern void * _pxcptinfoptrs;
88: #endif
89:
90: /* function prototypes */
91:
1.1.1.3 ! root 92: void (_CRTAPI1 * _CRTAPI1 signal(int, void (_CRTAPI1 *)(int)))(int);
! 93: int _CRTAPI1 raise(int);
1.1 root 94:
95: #ifdef __cplusplus
96: }
97: #endif
98:
99: #define _INC_SIGNAL
100: #endif /* _INC_SIGNAL */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.