home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  1KB  |  48 lines

  1. /* sys/signal.h (emx+gcc) */
  2.  
  3. #if !defined (_SYS_SIGNAL_H)
  4. #define _SYS_SIGNAL_H
  5.  
  6. #if defined (__cplusplus)
  7. extern "C" {
  8. #endif
  9.  
  10. typedef int sig_atomic_t;
  11.  
  12. #define SIGTY void
  13.  
  14. #define SIGHUP    1 /* Hangup */
  15. #define SIGINT    2 /* Interrupt (Ctrl-C) */
  16. #define SIGQUIT   3 /* Quit */
  17. #define SIGILL    4 /* Illegal instruction */
  18. #define SIGTRAP   5 /* Single step (debugging) */
  19. #define SIGABRT   6 /* abort () */
  20. #define SIGEMT    7 /* ??? */
  21. #define SIGFPE    8 /* Floating point */
  22. #define SIGKILL   9 /* Kill process */
  23. #define SIGBUS   10 /* ??? */
  24. #define SIGSEGV  11 /* Segmentation fault */
  25. #define SIGSYS   12 /* Invalid argument to system call */
  26. #define SIGPIPE  13 /* Broken pipe */
  27. #define SIGALRM  14 /* Alarm */
  28. #define SIGTERM  15 /* Termination, process killed */
  29. #define SIGCLD   18 /* Death of a child process */
  30. #define SIGBREAK 21 /* Break (Ctrl-Break) */
  31.  
  32. #define NSIG 22
  33.  
  34. #define SIG_DFL ((void (*)(int))0)
  35. #define SIG_IGN ((void (*)(int))1)
  36. #define SIG_ACK ((void (*)(int))4)
  37. #define SIG_ERR ((void (*)(int))-1)
  38.  
  39. void (*signal (int sig, void (*handler)()))(int sig);
  40. int raise (int sig);
  41. int kill (int pid, int sig);
  42.  
  43. #if defined (__cplusplus)
  44. }
  45. #endif
  46.  
  47. #endif /* !defined (_SYS_SIGNAL_H) */
  48.