|
|
1.1 ! root 1: /*** ! 2: *signal.h - defines signal values and routines ! 3: * ! 4: * Copyright (c) 1985-1987, 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 NO_EXT_KEYS /* extensions enabled */ ! 14: #define _CDECL cdecl ! 15: #else /* extensions not enabled */ ! 16: #define _CDECL ! 17: #endif /* NO_EXT_KEYS */ ! 18: ! 19: ! 20: #ifndef _SIG_ATOMIC_T_DEFINED ! 21: typedef int sig_atomic_t; ! 22: #define _SIG_ATOMIC_T_DEFINED ! 23: #endif ! 24: ! 25: ! 26: #define NSIG 23 /* maximum signal number + 1 */ ! 27: ! 28: /* signal types */ ! 29: /* SIGINT, SIGFPE, SIGILL, SIGSEGV, and SIGABRT are recognized on DOS 3.x */ ! 30: ! 31: #define SIGINT 2 /* interrupt - corresponds to DOS 3.x int 23H */ ! 32: #define SIGILL 4 /* illegal instruction - invalid function image */ ! 33: #define SIGFPE 8 /* floating point exception */ ! 34: #define SIGSEGV 11 /* segment violation */ ! 35: #define SIGTERM 15 /* Software termination signal from kill */ ! 36: #define SIGUSR1 16 /* User defined signal 1 */ ! 37: #define SIGUSR2 17 /* User defined signal 2 */ ! 38: #define SIGUSR3 20 /* User defined signal 3 */ ! 39: #define SIGBREAK 21 /* Ctrl-Break sequence */ ! 40: #define SIGABRT 22 /* abnormal termination triggered by abort call */ ! 41: ! 42: ! 43: /* signal action codes */ ! 44: /* SIG_DFL and SIG_IGN are recognized on DOS 3.x */ ! 45: ! 46: #define SIG_DFL (void (*)())0 /* default signal action */ ! 47: #define SIG_IGN (void (*)())1 /* ignore */ ! 48: #define SIG_SGE (void (*)())3 /* signal gets error */ ! 49: #define SIG_ACK (void (*)())4 /* error if handler not setup */ ! 50: ! 51: ! 52: /* signal error value (returned by signal call on error) */ ! 53: ! 54: #define SIG_ERR (void (*)())-1 /* signal error value */ ! 55: ! 56: ! 57: /* function prototypes */ ! 58: ! 59: void (_CDECL * _CDECL signal(int, void (_CDECL *)()))(); ! 60: int _CDECL raise(int);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.