home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c063 / 1.ddi / INCLUDE.ZIP / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  1.0 KB  |  42 lines

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