Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.5 KiB

  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. #ifndef _INC_SIGNAL
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if (_MSC_VER <= 600)
  16. #define __cdecl _cdecl
  17. #define __far _far
  18. #endif
  19. #ifndef _SIG_ATOMIC_T_DEFINED
  20. typedef int sig_atomic_t;
  21. #define _SIG_ATOMIC_T_DEFINED
  22. #endif
  23. #define NSIG 23 /* maximum signal number + 1 */
  24. /* signal types */
  25. #ifndef _WINDOWS
  26. #define SIGINT 2 /* Ctrl-C sequence */
  27. #define SIGILL 4 /* illegal instruction - invalid function image */
  28. #endif
  29. #define SIGFPE 8 /* floating point exception */
  30. #ifndef _WINDOWS
  31. #define SIGSEGV 11 /* segment violation */
  32. #define SIGTERM 15 /* Software termination signal from kill */
  33. #define SIGABRT 22 /* abnormal termination triggered by abort call */
  34. #endif
  35. /* signal action codes */
  36. /* default signal action */
  37. #define SIG_DFL (void (__cdecl *)(int))0
  38. /* ignore */
  39. #define SIG_IGN (void (__cdecl *)(int))1
  40. /* signal error value (returned by signal call on error) */
  41. #define SIG_ERR (void (__cdecl *)(int))-1
  42. /* function prototypes */
  43. void (__cdecl * __cdecl signal(int,
  44. void (__cdecl *)(int)))(int);
  45. #ifndef _MT
  46. int __cdecl raise(int);
  47. #endif
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #define _INC_SIGNAL
  52. #endif