Annotation of mstools/h/signal.h, revision 1.1.1.2

1.1       root        1: /***
                      2: *signal.h - defines signal values and routines
                      3: *
                      4: *      Copyright (c) 1985-1991, 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: #ifndef _INC_SIGNAL
                     13: 
                     14: #ifdef __cplusplus
                     15: extern "C" {
                     16: #endif
                     17: 
                     18: 
1.1.1.2 ! root       19: #ifndef MIPS
1.1       root       20: #if (_MSC_VER <= 600)
                     21: #define __cdecl _cdecl
                     22: #endif
1.1.1.2 ! root       23: #endif
1.1       root       24: 
                     25: #ifndef _SIG_ATOMIC_T_DEFINED
                     26: typedef int sig_atomic_t;
                     27: #define _SIG_ATOMIC_T_DEFINED
                     28: #endif
                     29: 
                     30: #define NSIG 23     /* maximum signal number + 1 */
                     31: 
                     32: /* signal types */
                     33: 
                     34: #define SIGINT         2       /* interrupt */
                     35: #define SIGILL         4       /* illegal instruction - invalid function image */
                     36: #define SIGFPE         8       /* floating point exception */
                     37: #define SIGSEGV        11      /* segment violation */
                     38: #define SIGTERM        15      /* Software termination signal from kill */
                     39: #define SIGUSR1        16      /* User defined signal 1 */
                     40: #define SIGUSR2        17      /* User defined signal 2 */
                     41: #define SIGUSR3        20      /* User defined signal 3 */
                     42: #define SIGBREAK       21      /* Ctrl-Break sequence */
                     43: #define SIGABRT        22      /* abnormal termination triggered by abort call */
                     44: 
                     45: 
                     46: /* signal action codes */
                     47: 
                     48: #define SIG_DFL (void (*)(int))0          /* default signal action */
                     49: #define SIG_IGN (void (*)(int))1          /* ignore signal */
                     50: #define SIG_SGE (void (*)(int))3          /* signal gets error */
                     51: #define SIG_ACK (void (*)(int))4          /* acknowledge */
                     52: 
                     53: 
                     54: /* signal error value (returned by signal call on error) */
                     55: 
                     56: #define SIG_ERR (void (*)(int))-1           /* signal error value */
                     57: 
                     58: /* pointer to exception information pointers structure */
                     59: 
                     60: #ifdef _MT
                     61: extern void * * __pxcptinfoptrs(void);
                     62: #define _pxcptinfoptrs (*__pxcptinfoptrs())
                     63: #else
                     64: extern void * _pxcptinfoptrs;
                     65: #endif
                     66: 
                     67: /* function prototypes */
                     68: 
                     69: void (* signal(int, void (*)(int)))(int);
                     70: int raise(int);
                     71: 
                     72: #ifdef __cplusplus
                     73: }
                     74: #endif
                     75: 
                     76: #define _INC_SIGNAL
                     77: #endif /* _INC_SIGNAL */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.