home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1996-07-24  |  992b  |  49 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. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15. typedef int    sig_atomic_t;
  16.  
  17. typedef void (*__sig_func)( int );
  18.  
  19. #define SIG_IGN     ((__sig_func) 1)
  20. #define SIG_DFL     ((__sig_func) 2)
  21. #define SIG_ERR     ((__sig_func) 3)
  22.  
  23. #define SIGABRT 1
  24. #define SIGFPE    2
  25. #define SIGILL    3
  26. #define SIGINT    4
  27. #define SIGSEGV 5
  28. #define SIGTERM 6
  29. #define SIGBREAK 7
  30. /* following are OS/2 1.x process flag A,B and C */
  31. #define SIGUSR1 8
  32. #define SIGUSR2 9
  33. #define SIGUSR3 10
  34. /* following are for OS/2 2.x only */
  35. #define SIGIDIVZ 11
  36. #define SIGIOVFL 12
  37.  
  38. #define _SIGMAX     12
  39. #define _SIGMIN     1
  40.  
  41.  
  42. _WCRTLINK extern int  raise( int __sig );
  43. _WCRTLINK extern void (*signal( int __sig, void (*__func)(int) ) )(int);
  44.  
  45. #ifdef __cplusplus
  46. };
  47. #endif
  48. #endif
  49.