home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 2.ddi / INCLUDE.ZIP / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  1.2 KB  |  55 lines

  1. /*      signal.h
  2.   
  3.         Definitions for ANSI defined signaling capability
  4.  
  5.         Copyright (c) Borland International 1988,1990,1991
  6.         All Rights Reserved.
  7. */
  8.  
  9. #ifndef __SIGNAL_H
  10. #define __SIGNAL_H
  11.  
  12. #ifdef __DLL__
  13. #define _FAR far
  14. #else
  15. #define _FAR
  16. #endif
  17.  
  18. #if __STDC__
  19. #define _Cdecl
  20. #else
  21. #define _Cdecl  cdecl
  22. #endif
  23.  
  24. #ifndef __PAS__
  25. #define _CType _Cdecl
  26. #else
  27. #define _CType pascal
  28. #endif
  29.  
  30. typedef int sig_atomic_t;   /* Atomic entity type (ANSI) */
  31.  
  32. #define SIG_DFL ((void (* _Cdecl)(int))0)   /* Default action   */
  33. #define SIG_IGN ((void (* _Cdecl)(int))1)   /* Ignore action    */
  34. #define SIG_ERR ((void (* _Cdecl)(int))-1)  /* Error return     */
  35.  
  36. #define SIGABRT 22
  37. #define SIGFPE  8       /* Floating point trap  */
  38. #define SIGILL  4       /* Illegal instruction  */
  39. #define SIGINT  2
  40. #define SIGSEGV 11      /* Memory access violation */
  41. #define SIGTERM 15
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. int _Cdecl raise(int __sig);
  47. #ifdef __cplusplus
  48. void _Cdecl (* _Cdecl signal(int __sig, void _Cdecl (* func)(int))) (int);
  49. }
  50. #else
  51. void _Cdecl (* _Cdecl signal(int __sig, void _Cdecl (* func)())) (int);
  52. #endif
  53.  
  54. #endif
  55.