signal-list.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * List of signal names known to SSH, indicating whether PuTTY's UI
  3. * for special session commands likes to put them in the main specials
  4. * menu or in a submenu (and if the former, what title they have).
  5. *
  6. * This is a separate header file rather than my usual style of a
  7. * parametric list macro, because in this case I need to be able to
  8. * #ifdef out each mode in case it's not defined on a particular
  9. * target system.
  10. *
  11. * If you want only the locally defined signals, #define
  12. * SIGNALS_LOCAL_ONLY before including this header.
  13. */
  14. #if !defined SIGNALS_LOCAL_ONLY || defined SIGINT
  15. SIGNAL_MAIN(INT, "Interrupt")
  16. #endif
  17. #if !defined SIGNALS_LOCAL_ONLY || defined SIGTERM
  18. SIGNAL_MAIN(TERM, "Terminate")
  19. #endif
  20. #if !defined SIGNALS_LOCAL_ONLY || defined SIGKILL
  21. SIGNAL_MAIN(KILL, "Kill")
  22. #endif
  23. #if !defined SIGNALS_LOCAL_ONLY || defined SIGQUIT
  24. SIGNAL_MAIN(QUIT, "Quit")
  25. #endif
  26. #if !defined SIGNALS_LOCAL_ONLY || defined SIGHUP
  27. SIGNAL_MAIN(HUP, "Hangup")
  28. #endif
  29. #if !defined SIGNALS_LOCAL_ONLY || defined SIGABRT
  30. SIGNAL_SUB(ABRT)
  31. #endif
  32. #if !defined SIGNALS_LOCAL_ONLY || defined SIGALRM
  33. SIGNAL_SUB(ALRM)
  34. #endif
  35. #if !defined SIGNALS_LOCAL_ONLY || defined SIGFPE
  36. SIGNAL_SUB(FPE)
  37. #endif
  38. #if !defined SIGNALS_LOCAL_ONLY || defined SIGILL
  39. SIGNAL_SUB(ILL)
  40. #endif
  41. #if !defined SIGNALS_LOCAL_ONLY || defined SIGPIPE
  42. SIGNAL_SUB(PIPE)
  43. #endif
  44. #if !defined SIGNALS_LOCAL_ONLY || defined SIGSEGV
  45. SIGNAL_SUB(SEGV)
  46. #endif
  47. #if !defined SIGNALS_LOCAL_ONLY || defined SIGUSR1
  48. SIGNAL_SUB(USR1)
  49. #endif
  50. #if !defined SIGNALS_LOCAL_ONLY || defined SIGUSR2
  51. SIGNAL_SUB(USR2)
  52. #endif