|
|
1.1 root 1: /***
2: *signal.h - defines signal values and routines
3: *
4: * Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved.
5: *
6: *Purpose:
7: * This file defines the signal values and declares the signal functions.
8: * [ANSI/System V]
9: *
10: ****/
11:
12:
13: #ifndef _SIG_ATOMIC_T_DEFINED
14: typedef int sig_atomic_t;
15: #define _SIG_ATOMIC_T_DEFINED
16: #endif
17:
18:
19: #define NSIG 23 /* maximum signal number + 1 */
20:
21: /* signal types */
22: /* SIGINT, SIGFPE, SIGILL, SIGSEGV, and SIGABRT are recognized on DOS 3.x */
23:
24: #define SIGINT 2 /* interrupt - corresponds to DOS 3.x int 23H */
25: #define SIGILL 4 /* illegal instruction - invalid function image */
26: #define SIGFPE 8 /* floating point exception */
27: #define SIGSEGV 11 /* segment violation */
28: #define SIGTERM 15 /* Software termination signal from kill */
29: #define SIGUSR1 16 /* User defined signal 1 */
30: #define SIGUSR2 17 /* User defined signal 2 */
31: #define SIGUSR3 20 /* User defined signal 3 */
32: #define SIGBREAK 21 /* Ctrl-Break sequence */
33: #define SIGABRT 22 /* abnormal termination triggered by abort call */
34:
35:
36: /* signal action codes */
37: /* SIG_DFL and SIG_IGN are recognized on DOS 3.x */
38:
39: #define SIG_DFL (void (_cdecl *)())0 /* default signal action */
40: #define SIG_IGN (void (_cdecl *)())1 /* ignore */
41: #define SIG_SGE (void (_cdecl *)())3 /* signal gets error */
42: #define SIG_ACK (void (_cdecl *)())4 /* error if handler not setup */
43:
44:
45: /* signal error value (returned by signal call on error) */
46:
47: #define SIG_ERR (void (_cdecl *)())-1 /* signal error value */
48:
49:
50: /* function prototypes */
51:
52: void (_cdecl * _cdecl signal(int, void (_cdecl *)()))();
53: int _cdecl raise(int);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.