signal.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Modified 1998-2001, 2003
  4. * David Mosberger-Tang <[email protected]>, Hewlett-Packard Co
  5. *
  6. * Unfortunately, this file is being included by bits/signal.h in
  7. * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness.
  8. */
  9. #ifndef _UAPI_ASM_IA64_SIGNAL_H
  10. #define _UAPI_ASM_IA64_SIGNAL_H
  11. #define SIGHUP 1
  12. #define SIGINT 2
  13. #define SIGQUIT 3
  14. #define SIGILL 4
  15. #define SIGTRAP 5
  16. #define SIGABRT 6
  17. #define SIGIOT 6
  18. #define SIGBUS 7
  19. #define SIGFPE 8
  20. #define SIGKILL 9
  21. #define SIGUSR1 10
  22. #define SIGSEGV 11
  23. #define SIGUSR2 12
  24. #define SIGPIPE 13
  25. #define SIGALRM 14
  26. #define SIGTERM 15
  27. #define SIGSTKFLT 16
  28. #define SIGCHLD 17
  29. #define SIGCONT 18
  30. #define SIGSTOP 19
  31. #define SIGTSTP 20
  32. #define SIGTTIN 21
  33. #define SIGTTOU 22
  34. #define SIGURG 23
  35. #define SIGXCPU 24
  36. #define SIGXFSZ 25
  37. #define SIGVTALRM 26
  38. #define SIGPROF 27
  39. #define SIGWINCH 28
  40. #define SIGIO 29
  41. #define SIGPOLL SIGIO
  42. /*
  43. #define SIGLOST 29
  44. */
  45. #define SIGPWR 30
  46. #define SIGSYS 31
  47. /* signal 31 is no longer "unused", but the SIGUNUSED macro remains for backwards compatibility */
  48. #define SIGUNUSED 31
  49. /* These should not be considered constants from userland. */
  50. #define SIGRTMIN 32
  51. #define SIGRTMAX _NSIG
  52. #define SA_RESTORER 0x04000000
  53. /*
  54. * The minimum stack size needs to be fairly large because we want to
  55. * be sure that an app compiled for today's CPUs will continue to run
  56. * on all future CPU models. The CPU model matters because the signal
  57. * frame needs to have space for the complete machine state, including
  58. * all physical stacked registers. The number of physical stacked
  59. * registers is CPU model dependent, but given that the width of
  60. * ar.rsc.loadrs is 14 bits, we can assume that they'll never take up
  61. * more than 16KB of space.
  62. */
  63. #if 1
  64. /*
  65. * This is a stupid typo: the value was _meant_ to be 131072 (0x20000), but I typed it
  66. * in wrong. ;-( To preserve backwards compatibility, we leave the kernel at the
  67. * incorrect value and fix libc only.
  68. */
  69. # define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */
  70. #else
  71. # define MINSIGSTKSZ 131072 /* min. stack size for sigaltstack() */
  72. #endif
  73. #define SIGSTKSZ 262144 /* default stack size for sigaltstack() */
  74. #include <asm-generic/signal-defs.h>
  75. # ifndef __ASSEMBLY__
  76. # include <linux/types.h>
  77. /* Avoid too many header ordering problems. */
  78. struct siginfo;
  79. typedef struct sigaltstack {
  80. void __user *ss_sp;
  81. int ss_flags;
  82. __kernel_size_t ss_size;
  83. } stack_t;
  84. # endif /* !__ASSEMBLY__ */
  85. #endif /* _UAPI_ASM_IA64_SIGNAL_H */