logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

signal.h (2046B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_X86_SIGNAL_H
  3. #define _ASM_X86_SIGNAL_H
  4. #ifndef __ASSEMBLY__
  5. #include <linux/types.h>
  6. /* Avoid too many header ordering problems. */
  7. struct siginfo;
  8. /* Here we must cater to libcs that poke about in kernel headers. */
  9. #define NSIG 32
  10. typedef unsigned long sigset_t;
  11. #endif /* __ASSEMBLY__ */
  12. #define SIGHUP 1
  13. #define SIGINT 2
  14. #define SIGQUIT 3
  15. #define SIGILL 4
  16. #define SIGTRAP 5
  17. #define SIGABRT 6
  18. #define SIGIOT 6
  19. #define SIGBUS 7
  20. #define SIGFPE 8
  21. #define SIGKILL 9
  22. #define SIGUSR1 10
  23. #define SIGSEGV 11
  24. #define SIGUSR2 12
  25. #define SIGPIPE 13
  26. #define SIGALRM 14
  27. #define SIGTERM 15
  28. #define SIGSTKFLT 16
  29. #define SIGCHLD 17
  30. #define SIGCONT 18
  31. #define SIGSTOP 19
  32. #define SIGTSTP 20
  33. #define SIGTTIN 21
  34. #define SIGTTOU 22
  35. #define SIGURG 23
  36. #define SIGXCPU 24
  37. #define SIGXFSZ 25
  38. #define SIGVTALRM 26
  39. #define SIGPROF 27
  40. #define SIGWINCH 28
  41. #define SIGIO 29
  42. #define SIGPOLL SIGIO
  43. /*
  44. #define SIGLOST 29
  45. */
  46. #define SIGPWR 30
  47. #define SIGSYS 31
  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. #define MINSIGSTKSZ 2048
  54. #define SIGSTKSZ 8192
  55. #include <asm-generic/signal-defs.h>
  56. #ifndef __ASSEMBLY__
  57. /* Here we must cater to libcs that poke about in kernel headers. */
  58. #ifdef __i386__
  59. struct sigaction {
  60. union {
  61. __sighandler_t _sa_handler;
  62. void (*_sa_sigaction)(int, struct siginfo *, void *);
  63. } _u;
  64. sigset_t sa_mask;
  65. unsigned long sa_flags;
  66. void (*sa_restorer)(void);
  67. };
  68. #define sa_handler _u._sa_handler
  69. #define sa_sigaction _u._sa_sigaction
  70. #else /* __i386__ */
  71. struct sigaction {
  72. __sighandler_t sa_handler;
  73. unsigned long sa_flags;
  74. __sigrestore_t sa_restorer;
  75. sigset_t sa_mask; /* mask last for extensibility */
  76. };
  77. #endif /* !__i386__ */
  78. typedef struct sigaltstack {
  79. void *ss_sp;
  80. int ss_flags;
  81. __kernel_size_t ss_size;
  82. } stack_t;
  83. #endif /* __ASSEMBLY__ */
  84. #endif /* _ASM_X86_SIGNAL_H */