home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / inc.pak / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  2KB  |  84 lines

  1. /*  signal.h
  2.  
  3.     Definitions for ANSI defined signaling capability
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.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. #ifdef __FLAT__
  51. #define SIGUSR1         16              /* User-defined signal 1 */
  52. #define SIGUSR2         17              /* User-defined signal 2 */
  53. #define SIGUSR3         20              /* User-defined signal 3 */
  54. #define SIGBREAK        21              /* Control-Break interrupt */
  55. #endif  /* __FLAT__ */
  56.  
  57.  
  58. #ifdef __cplusplus
  59. extern "C" {
  60. #endif
  61. int _RTLENTRY _EXPFUNC raise(int __sig);
  62. #ifdef __cplusplus
  63. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)(int))) (int);
  64. }
  65. #else
  66. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)())) (int);
  67. #endif
  68.  
  69. #if !__STDC__
  70. #define NSIG   23      /* highest defined signal no. + 1 */
  71. #endif
  72.  
  73.  
  74. #if !defined(RC_INVOKED)
  75.  
  76. #if defined(__STDC__)
  77. #pragma warn .nak
  78. #endif
  79.  
  80. #endif  /* !RC_INVOKED */
  81.  
  82.  
  83. #endif  /* __SIGNAL_H */
  84.