home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / INCLUDE / SIGNAL.H_ / SIGNAL.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.5 KB  |  71 lines

  1. /***
  2. *signal.h - defines signal values and routines
  3. *
  4. *   Copyright (c) 1985-1992, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *   This file defines the signal values and declares the signal functions.
  8. *   [ANSI/System V]
  9. *
  10. ****/
  11.  
  12. #ifndef _INC_SIGNAL
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif 
  17.  
  18. #if (_MSC_VER <= 600)
  19. #define __cdecl     _cdecl
  20. #define __far       _far
  21. #endif 
  22.  
  23. #ifndef _SIG_ATOMIC_T_DEFINED
  24. typedef int sig_atomic_t;
  25. #define _SIG_ATOMIC_T_DEFINED
  26. #endif 
  27.  
  28. #define NSIG 23     /* maximum signal number + 1 */
  29.  
  30.  
  31. /* signal types */
  32.  
  33. #ifndef _WINDOWS
  34. #define SIGINT      2   /* Ctrl-C sequence */
  35. #define SIGILL      4   /* illegal instruction - invalid function image */
  36. #endif 
  37. #define SIGFPE      8   /* floating point exception */
  38. #ifndef _WINDOWS
  39. #define SIGSEGV     11  /* segment violation */
  40. #define SIGTERM     15  /* Software termination signal from kill */
  41. #define SIGABRT     22  /* abnormal termination triggered by abort call */
  42. #endif 
  43.  
  44.  
  45. /* signal action codes */
  46.  
  47. /* default signal action */
  48. #define SIG_DFL (void (__cdecl *)(int))0
  49.  
  50. /* ignore */
  51. #define SIG_IGN (void (__cdecl *)(int))1
  52.  
  53. /* signal error value (returned by signal call on error) */
  54. #define SIG_ERR (void (__cdecl *)(int))-1
  55.  
  56.  
  57. /* function prototypes */
  58.  
  59. void (__cdecl * __cdecl signal(int,
  60.     void (__cdecl *)(int)))(int);
  61. #ifndef _MT
  62. int __cdecl raise(int);
  63. #endif 
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif 
  68.  
  69. #define _INC_SIGNAL
  70. #endif 
  71.