home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / h.z / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1996-11-06  |  1KB  |  52 lines

  1. /*
  2.  *  signal.h    Signal definitions
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5.  */
  6. #ifndef _SIGNAL_H_INCLUDED
  7. #define _SIGNAL_H_INCLUDED
  8. #if !defined(_ENABLE_AUTODEPEND)
  9.   #pragma read_only_file;
  10. #endif
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14.  
  15. #ifndef _COMDEF_H_INCLUDED
  16.  #include <_comdef.h>
  17. #endif
  18. typedef int    sig_atomic_t;
  19.  
  20. typedef void (*__sig_func)( int );
  21.  
  22. #define SIG_IGN     ((__sig_func) 1)
  23. #define SIG_DFL     ((__sig_func) 2)
  24. #define SIG_ERR     ((__sig_func) 3)
  25.  
  26. #define SIGABRT 1
  27. #define SIGFPE    2
  28. #define SIGILL    3
  29. #define SIGINT    4
  30. #define SIGSEGV 5
  31. #define SIGTERM 6
  32. #define SIGBREAK 7
  33. /* following are OS/2 1.x process flag A,B and C */
  34. #define SIGUSR1 8
  35. #define SIGUSR2 9
  36. #define SIGUSR3 10
  37. /* following are for OS/2 2.x only */
  38. #define SIGIDIVZ 11
  39. #define SIGIOVFL 12
  40.  
  41. #define _SIGMAX     12
  42. #define _SIGMIN     1
  43.  
  44.  
  45. _WCRTLINK extern int  raise( int __sig );
  46. _WCRTLINK extern void (*signal( int __sig, void (*__func)(int) ) )(int);
  47.  
  48. #ifdef __cplusplus
  49. };
  50. #endif
  51. #endif
  52.