home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / SIGNAL.H < prev    next >
Text File  |  1993-09-17  |  3KB  |  71 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __signal_h
  8.    #define __signal_h
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <signal.h> header file                                          */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C/C++ Tools Version 2.01                                    */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1993  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #ifndef __sig_atomic_t
  30.       typedef int sig_atomic_t;
  31.       #define __sig_atomic_t
  32.    #endif
  33.  
  34.    /* signal types */
  35.    #define SIGILL       1       /* illegal instruction - invalid function image    */
  36.    #define SIGSEGV      2       /* invalid access to memory                        */
  37.    #define SIGFPE       3       /* floating point exception                        */
  38.    #define SIGTERM      4       /* OS/2 SIGTERM (killprocess) signal               */
  39.    #define SIGABRT      5       /* abort() signal                                  */
  40.    #define SIGINT       6       /* OS/2 SIGINTR signal                             */
  41.    #define SIGUSR1      7       /* user exception in range 0xa0000000 - 0xbfffffff */
  42.    #define SIGUSR2      8       /* user exception in range 0xc0000000 - 0xdfffffff */
  43.    #define SIGUSR3      9       /* user exception in range 0xe0000000 - 0xffffffff */
  44.    #define SIGBREAK    10       /* OS/2 Ctrl-Break sequence                        */
  45.  
  46.    typedef void (*_SigFunc)(int);
  47.  
  48.    /* signal action codes */
  49.    #define SIG_DFL ((_SigFunc)0)   /* default signal action */
  50.    #define SIG_IGN ((_SigFunc)1)   /* ignore */
  51.  
  52.    /* signal error value (returned by signal call on error) */
  53.    #define SIG_ERR ((_SigFunc)-1)  /* signal error value */
  54.  
  55.    /* function prototypes */
  56.  
  57.    _SigFunc _Optlink signal( int, _SigFunc );
  58.    int _Optlink raise( int );
  59.  
  60.    #ifdef __cplusplus
  61.       }
  62.    #endif
  63.  
  64. #endif
  65.  
  66. #pragma info( none )
  67. #ifndef __CHKHDR__
  68.    #pragma info( restore )
  69. #endif
  70. #pragma info( restore )
  71.