home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  3.0 KB  |  89 lines

  1. #if (defined(__IBMC__) || defined(__IBMCPP__))
  2. #pragma info( none )
  3. #ifndef __CHKHDR__
  4.    #pragma info( none )
  5. #endif
  6. #pragma info( restore )
  7. #endif
  8.  
  9. #ifndef __signal_h
  10.    #define __signal_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    #ifndef  _LNK_CONV
  17.       #ifdef _M_I386
  18.          #define _LNK_CONV   _Optlink
  19.       #else
  20.          #define _LNK_CONV
  21.       #endif
  22.    #endif
  23.  
  24.    #ifndef _IMPORT
  25.       #ifdef __IMPORTLIB__
  26.          #define _IMPORT _Import
  27.       #else
  28.          #define _IMPORT
  29.       #endif
  30.    #endif
  31.  
  32.    /********************************************************************/
  33.    /*  <signal.h> header file                                          */
  34.    /*                                                                  */
  35.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  36.    /*    Licensed Material - Property of IBM                           */
  37.    /*                                                                  */
  38.    /*  5801-ARR and Other Materials                                    */
  39.    /*                                                                  */
  40.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  41.    /*                                                                  */
  42.    /********************************************************************/
  43.  
  44.    #ifndef __sig_atomic_t
  45.       typedef int sig_atomic_t;
  46.       #define __sig_atomic_t
  47.    #endif
  48.  
  49.    /* signal types */
  50.    #define SIGILL       1       /* illegal instruction - invalid function image    */
  51.    #define SIGSEGV      2       /* invalid access to memory                        */
  52.    #define SIGFPE       3       /* floating point exception                        */
  53.    #define SIGTERM      4       /* OS/2 SIGTERM (killprocess) signal               */
  54.    #define SIGABRT      5       /* abort() signal                                  */
  55.    #define SIGINT       6       /* OS/2 SIGINTR signal                             */
  56.    #define SIGUSR1      7       /* user exception in range 0xa0000000 - 0xbfffffff */
  57.    #define SIGUSR2      8       /* user exception in range 0xc0000000 - 0xdfffffff */
  58.    #define SIGUSR3      9       /* user exception in range 0xe0000000 - 0xffffffff */
  59.    #define SIGBREAK    10       /* OS/2 Ctrl-Break sequence                        */
  60.  
  61.    typedef void (*_SigFunc)(int);
  62.  
  63.    /* signal action codes */
  64.    #define SIG_DFL ((_SigFunc)0)   /* default signal action */
  65.    #define SIG_IGN ((_SigFunc)1)   /* ignore */
  66.  
  67.    /* signal error value (returned by signal call on error) */
  68.    #define SIG_ERR ((_SigFunc)-1)  /* signal error value */
  69.  
  70.    /* function prototypes */
  71.  
  72.      extern _SigFunc _IMPORT _LNK_CONV signal( int, _SigFunc );
  73.      extern int _IMPORT _LNK_CONV raise( int );
  74.  
  75.    #ifdef __cplusplus
  76.       }
  77.    #endif
  78.  
  79. #endif
  80.  
  81. #if (defined(__IBMC__) || defined(__IBMCPP__))
  82. #pragma info( none )
  83. #ifndef __CHKHDR__
  84.    #pragma info( restore )
  85. #endif
  86. #pragma info( restore )
  87. #endif
  88.  
  89.