home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-18  |  1.9 KB  |  79 lines

  1. /*  signal.h
  2.  
  3.     Definitions for ANSI defined signaling capability
  4.  
  5. */
  6.  
  7. /* $Copyright: 1988$ */
  8. /* $Revision:   8.1  $ */
  9.  
  10. #ifndef __SIGNAL_H
  11. #define __SIGNAL_H
  12.  
  13. #if !defined(___DEFS_H)
  14. #include <_defs.h>
  15. #endif
  16.  
  17.  
  18. #if !defined(RC_INVOKED)
  19.  
  20. #if defined(__STDC__)
  21. #pragma warn -nak
  22. #endif
  23.  
  24. #endif  /* !RC_INVOKED */
  25.  
  26.  
  27. typedef int sig_atomic_t;   /* Atomic entity type (ANSI) */
  28.  
  29. #ifdef __cplusplus
  30. typedef void _USERENTRY (_EXPFUNC * _CatcherPTR)(int);
  31. #else
  32. typedef void _USERENTRY (_EXPFUNC * _CatcherPTR)();
  33. #endif
  34.  
  35. #define SIG_DFL ((_CatcherPTR)0)   /* Default action   */
  36. #define SIG_IGN ((_CatcherPTR)1)   /* Ignore action    */
  37. #define SIG_ERR ((_CatcherPTR)-1)  /* Error return     */
  38.  
  39. #define SIGABRT         22
  40. #define SIGFPE           8              /* Floating point trap  */
  41. #define SIGILL           4              /* Illegal instruction  */
  42. #define SIGINT           2
  43. #define SIGSEGV         11              /* Memory access violation */
  44. #define SIGTERM         15
  45. #ifdef __FLAT__
  46. #define SIGUSR1         16              /* User-defined signal 1 */
  47. #define SIGUSR2         17              /* User-defined signal 2 */
  48. #define SIGUSR3         20              /* User-defined signal 3 */
  49. #define SIGBREAK        21              /* Control-Break interrupt */
  50. #endif  /* __FLAT__ */
  51.  
  52.  
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56. int _RTLENTRY _EXPFUNC raise(int __sig);
  57. #ifdef __cplusplus
  58. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)(int))) (int);
  59. }
  60. #else
  61. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)())) (int);
  62. #endif
  63.  
  64. #if !defined(__STDC__)
  65. #define NSIG   23      /* highest defined signal no. + 1 */
  66. #endif
  67.  
  68.  
  69. #if !defined(RC_INVOKED)
  70.  
  71. #if defined(__STDC__)
  72. #pragma warn .nak
  73. #endif
  74.  
  75. #endif  /* !RC_INVOKED */
  76.  
  77.  
  78. #endif  /* __SIGNAL_H */
  79.