signal.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #ifndef _UAPI_ASM_PARISC_SIGNAL_H
  2. #define _UAPI_ASM_PARISC_SIGNAL_H
  3. #define SIGHUP 1
  4. #define SIGINT 2
  5. #define SIGQUIT 3
  6. #define SIGILL 4
  7. #define SIGTRAP 5
  8. #define SIGABRT 6
  9. #define SIGIOT 6
  10. #define SIGSTKFLT 7
  11. #define SIGFPE 8
  12. #define SIGKILL 9
  13. #define SIGBUS 10
  14. #define SIGSEGV 11
  15. #define SIGXCPU 12
  16. #define SIGPIPE 13
  17. #define SIGALRM 14
  18. #define SIGTERM 15
  19. #define SIGUSR1 16
  20. #define SIGUSR2 17
  21. #define SIGCHLD 18
  22. #define SIGPWR 19
  23. #define SIGVTALRM 20
  24. #define SIGPROF 21
  25. #define SIGIO 22
  26. #define SIGPOLL SIGIO
  27. #define SIGWINCH 23
  28. #define SIGSTOP 24
  29. #define SIGTSTP 25
  30. #define SIGCONT 26
  31. #define SIGTTIN 27
  32. #define SIGTTOU 28
  33. #define SIGURG 29
  34. #define SIGXFSZ 30
  35. #define SIGUNUSED 31
  36. #define SIGSYS 31 /* Linux doesn't use this */
  37. /* These should not be considered constants from userland. */
  38. #define SIGRTMIN 32
  39. #define SIGRTMAX _NSIG /* it's 44 under HP/UX */
  40. /*
  41. * SA_FLAGS values:
  42. *
  43. * SA_ONSTACK indicates that a registered stack_t will be used.
  44. * SA_RESTART flag to get restarting signals (which were the default long ago)
  45. * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
  46. * SA_RESETHAND clears the handler when the signal is delivered.
  47. * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
  48. * SA_NODEFER prevents the current signal from being masked in the handler.
  49. *
  50. * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
  51. * Unix names RESETHAND and NODEFER respectively.
  52. */
  53. #define SA_ONSTACK 0x00000001
  54. #define SA_RESETHAND 0x00000004
  55. #define SA_NOCLDSTOP 0x00000008
  56. #define SA_SIGINFO 0x00000010
  57. #define SA_NODEFER 0x00000020
  58. #define SA_RESTART 0x00000040
  59. #define SA_NOCLDWAIT 0x00000080
  60. #define _SA_SIGGFAULT 0x00000100 /* HPUX */
  61. #define SA_NOMASK SA_NODEFER
  62. #define SA_ONESHOT SA_RESETHAND
  63. #define MINSIGSTKSZ 2048
  64. #define SIGSTKSZ 8192
  65. #define SIG_BLOCK 0 /* for blocking signals */
  66. #define SIG_UNBLOCK 1 /* for unblocking signals */
  67. #define SIG_SETMASK 2 /* for setting the signal mask */
  68. #define SIG_DFL ((__sighandler_t)0) /* default signal handling */
  69. #define SIG_IGN ((__sighandler_t)1) /* ignore signal */
  70. #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */
  71. # ifndef __ASSEMBLY__
  72. # include <linux/types.h>
  73. /* Avoid too many header ordering problems. */
  74. struct siginfo;
  75. /* Type of a signal handler. */
  76. #if defined(__LP64__)
  77. /* function pointers on 64-bit parisc are pointers to little structs and the
  78. * compiler doesn't support code which changes or tests the address of
  79. * the function in the little struct. This is really ugly -PB
  80. */
  81. typedef char __user *__sighandler_t;
  82. #else
  83. typedef void __signalfn_t(int);
  84. typedef __signalfn_t __user *__sighandler_t;
  85. #endif
  86. typedef struct sigaltstack {
  87. void __user *ss_sp;
  88. int ss_flags;
  89. size_t ss_size;
  90. } stack_t;
  91. #endif /* !__ASSEMBLY */
  92. #endif /* _UAPI_ASM_PARISC_SIGNAL_H */