home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.3 KB  |  99 lines

  1. /*  signal.h
  2.  
  3.     Definitions for ANSI defined signaling capability
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 9.5
  9.  *
  10.  *      Copyright (c) 1988, 1999 by Inprise Corporation
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. /* $Revision:   9.3  $ */
  16.  
  17. #ifndef __SIGNAL_H
  18. #define __SIGNAL_H
  19.  
  20. #ifndef ___STDDEF_H
  21. #include <_stddef.h>
  22. #endif
  23.  
  24. #ifdef __cplusplus
  25.   namespace std {
  26. #endif /* __cplusplus */
  27.  
  28.  
  29. #if !defined(RC_INVOKED)
  30.  
  31. #if defined(__STDC__)
  32. #pragma warn -nak
  33. #endif
  34.  
  35. #endif  /* !RC_INVOKED */
  36.  
  37.  
  38. typedef int sig_atomic_t;   /* Atomic entity type (ANSI) */
  39.  
  40. #ifdef __cplusplus
  41. typedef void _USERENTRY (_EXPFUNC * _CatcherPTR)(int);
  42. #else
  43. typedef void _USERENTRY (_EXPFUNC * _CatcherPTR)();
  44. #endif
  45.  
  46. #define SIG_DFL ((_CatcherPTR)0)   /* Default action   */
  47. #define SIG_IGN ((_CatcherPTR)1)   /* Ignore action    */
  48. #define SIG_ERR ((_CatcherPTR)-1)  /* Error return     */
  49.  
  50. #define SIGABRT         22
  51. #define SIGFPE           8              /* Floating point trap  */
  52. #define SIGILL           4              /* Illegal instruction  */
  53. #define SIGINT           2
  54. #define SIGSEGV         11              /* Memory access violation */
  55. #define SIGTERM         15
  56. #define SIGUSR1         16              /* User-defined signal 1 */
  57. #define SIGUSR2         17              /* User-defined signal 2 */
  58. #define SIGUSR3         20              /* User-defined signal 3 */
  59. #define SIGBREAK        21              /* Control-Break interrupt */
  60.  
  61. #ifdef __cplusplus
  62. extern "C" {
  63. #endif
  64. int _RTLENTRY _EXPFUNC raise(int __sig);
  65. #ifdef __cplusplus
  66. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)(int))) (int);
  67. }
  68. #else
  69. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)())) (int);
  70. #endif
  71.  
  72. #if !defined(__STDC__)
  73. #define NSIG   23      /* highest defined signal no. + 1 */
  74. #endif
  75.  
  76.  
  77. #if !defined(RC_INVOKED)
  78.  
  79. #if defined(__STDC__)
  80. #pragma warn .nak
  81. #endif
  82.  
  83. #endif  /* !RC_INVOKED */
  84.  
  85. #ifdef __cplusplus
  86. } // std
  87. #endif /* __cplusplus */
  88.  
  89.  
  90. #endif  /* __SIGNAL_H */
  91.  
  92. #if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(__SIGNAL_H_USING_LIST)
  93. #define __SIGNAL_H_USING_LIST
  94.      using std::_CatcherPTR;
  95.      using std::sig_atomic_t;
  96.      using std::raise;
  97.      using std::signal;
  98. #endif /* __USING_CNAME__ */
  99.