home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 14.ddi / GENINC.PAK / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.6 KB  |  64 lines

  1. /*  signal.h
  2.  
  3.     Definitions for ANSI defined signaling capability
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.0
  9.  *
  10.  *      Copyright (c) 1988, 1993 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. typedef int sig_atomic_t;   /* Atomic entity type (ANSI) */
  23.  
  24. #ifdef __cplusplus
  25. typedef void _RTLENTRY (_EXPFUNC * _CatcherPTR)(int);
  26. #else
  27. typedef void _RTLENTRY (_EXPFUNC * _CatcherPTR)();
  28. #endif
  29.  
  30. #define SIG_DFL ((_CatcherPTR)0)   /* Default action   */
  31. #define SIG_IGN ((_CatcherPTR)1)   /* Ignore action    */
  32. #define SIG_ERR ((_CatcherPTR)-1)  /* Error return     */
  33.  
  34. #define SIGABRT 22
  35. #define SIGFPE  8       /* Floating point trap  */
  36. #define SIGILL  4       /* Illegal instruction  */
  37. #define SIGINT  2
  38. #define SIGSEGV 11      /* Memory access violation */
  39. #define SIGTERM 15
  40. #ifdef __FLAT__
  41. #define SIGUSR1  16     /* User-defined signal 1 */
  42. #define SIGUSR2  17     /* User-defined signal 2 */
  43. #define SIGUSR3  20     /* User-defined signal 3 */
  44. #define SIGBREAK 21     /* Control-Break interrupt */
  45. #endif  /* __FLAT__ */
  46.  
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. int _RTLENTRY _EXPFUNC raise(int __sig);
  52. #ifdef __cplusplus
  53. void _RTLENTRY (* _RTLENTRY _EXPFUNC32 signal(int __sig, void _USERENTRY (* _EXPFUNC __func)(int))) (int);
  54. }
  55. #else
  56. void _RTLENTRY _EXPFUNC (* _RTLENTRY _EXPFUNC32 signal(int __sig, void _RTLENTRY _EXPFUNC (* func)())) (int);
  57. #endif
  58.  
  59. #if !__STDC__
  60. #define NSIG   23      /* highest defined signal no. + 1 */
  61. #endif
  62.  
  63. #endif  /* __SIGNAL_H */
  64.