1
0

signal.h 2.9 KB

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