home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / incla / signal.h__ / SIGNAL.H
Encoding:
C/C++ Source or Header  |  1992-10-20  |  2.9 KB  |  80 lines

  1. #ifndef __signal_h
  2.    #define __signal_h
  3.  
  4.    #pragma info( none )
  5.    #ifndef __CHKHDR__
  6.       #pragma info( none )
  7.    #endif
  8.    #pragma info( restore )
  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 Set/2 Beta Version                                        */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1992  */
  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.  
  47.    #ifdef __cplusplus
  48.       extern "C" {
  49.    #endif
  50.  
  51.       typedef void (* _Optlink _SigFunc)(int);
  52.  
  53.    #ifdef __cplusplus
  54.       }
  55.    #endif
  56.  
  57.    /* signal action codes */
  58.    #define SIG_DFL ((_SigFunc)0)   /* default signal action */
  59.    #define SIG_IGN ((_SigFunc)1)   /* ignore */
  60.  
  61.    /* signal error value (returned by signal call on error) */
  62.    #define SIG_ERR ((_SigFunc)-1)  /* signal error value */
  63.  
  64.    /* function prototypes */
  65.  
  66.    void ( * _Optlink signal( int, _SigFunc ) )(int);
  67.    int _Optlink raise( int );
  68.  
  69.    #ifdef __cplusplus
  70.       }
  71.    #endif
  72.  
  73.    #pragma info( none )
  74.    #ifndef __CHKHDR__
  75.       #pragma info( restore )
  76.    #endif
  77.    #pragma info( restore )
  78.  
  79. #endif
  80.