signal.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * include/asm-xtensa/signal.h
  4. *
  5. * Swiped from SH.
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file "COPYING" in the main directory of this archive
  9. * for more details.
  10. *
  11. * Copyright (C) 2001 - 2005 Tensilica Inc.
  12. */
  13. #ifndef _UAPI_XTENSA_SIGNAL_H
  14. #define _UAPI_XTENSA_SIGNAL_H
  15. #define _NSIG 64
  16. #define _NSIG_BPW 32
  17. #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
  18. #ifndef __ASSEMBLY__
  19. #include <linux/types.h>
  20. /* Avoid too many header ordering problems. */
  21. struct siginfo;
  22. typedef unsigned long old_sigset_t; /* at least 32 bits */
  23. typedef struct {
  24. unsigned long sig[_NSIG_WORDS];
  25. } sigset_t;
  26. #endif
  27. #define SIGHUP 1
  28. #define SIGINT 2
  29. #define SIGQUIT 3
  30. #define SIGILL 4
  31. #define SIGTRAP 5
  32. #define SIGABRT 6
  33. #define SIGIOT 6
  34. #define SIGBUS 7
  35. #define SIGFPE 8
  36. #define SIGKILL 9
  37. #define SIGUSR1 10
  38. #define SIGSEGV 11
  39. #define SIGUSR2 12
  40. #define SIGPIPE 13
  41. #define SIGALRM 14
  42. #define SIGTERM 15
  43. #define SIGSTKFLT 16
  44. #define SIGCHLD 17
  45. #define SIGCONT 18
  46. #define SIGSTOP 19
  47. #define SIGTSTP 20
  48. #define SIGTTIN 21
  49. #define SIGTTOU 22
  50. #define SIGURG 23
  51. #define SIGXCPU 24
  52. #define SIGXFSZ 25
  53. #define SIGVTALRM 26
  54. #define SIGPROF 27
  55. #define SIGWINCH 28
  56. #define SIGIO 29
  57. #define SIGPOLL SIGIO
  58. /* #define SIGLOST 29 */
  59. #define SIGPWR 30
  60. #define SIGSYS 31
  61. #define SIGUNUSED 31
  62. /* These should not be considered constants from userland. */
  63. #define SIGRTMIN 32
  64. #define SIGRTMAX (_NSIG-1)
  65. #define SA_RESTORER 0x04000000
  66. #define MINSIGSTKSZ 2048
  67. #define SIGSTKSZ 8192
  68. #ifndef __ASSEMBLY__
  69. #include <asm-generic/signal-defs.h>
  70. #ifndef __KERNEL__
  71. /* Here we must cater to libcs that poke about in kernel headers. */
  72. struct sigaction {
  73. union {
  74. __sighandler_t _sa_handler;
  75. void (*_sa_sigaction)(int, struct siginfo *, void *);
  76. } _u;
  77. sigset_t sa_mask;
  78. unsigned long sa_flags;
  79. void (*sa_restorer)(void);
  80. };
  81. #define sa_handler _u._sa_handler
  82. #define sa_sigaction _u._sa_sigaction
  83. #endif /* __KERNEL__ */
  84. typedef struct sigaltstack {
  85. void *ss_sp;
  86. int ss_flags;
  87. __kernel_size_t ss_size;
  88. } stack_t;
  89. #endif /* __ASSEMBLY__ */
  90. #endif /* _UAPI_XTENSA_SIGNAL_H */