home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  2KB  |  82 lines

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