home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / INCLUDE.ZIP / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  1.1 KB  |  49 lines

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