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

  1. /*  signal.h
  2.  
  3.     Definitions for ANSI defined signaling capability
  4.  
  5.     Copyright (c) 1988, 1992 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 (_FARFUNC * _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 _FARFUNC raise(int __sig);
  34. #ifdef __cplusplus
  35. void _Cdecl (* _Cdecl _FARFUNC signal(int __sig, void _Cdecl (* _FARFUNC __func)(int))) (int);
  36. }
  37. #else
  38. void _Cdecl _FARFUNC (* _Cdecl _FARFUNC signal(int __sig, void _Cdecl _FARFUNC (* func)())) (int);
  39. #endif
  40.  
  41. #endif
  42.