• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI__ASM_GENERIC_SIGNAL_H
8 #define _UAPI__ASM_GENERIC_SIGNAL_H
9 #include <linux/types.h>
10 #define _KERNEL__NSIG 64
11 #define _NSIG_BPW __BITS_PER_LONG
12 #define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW)
13 #define SIGHUP 1
14 #define SIGINT 2
15 #define SIGQUIT 3
16 #define SIGILL 4
17 #define SIGTRAP 5
18 #define SIGABRT 6
19 #define SIGIOT 6
20 #define SIGBUS 7
21 #define SIGFPE 8
22 #define SIGKILL 9
23 #define SIGUSR1 10
24 #define SIGSEGV 11
25 #define SIGUSR2 12
26 #define SIGPIPE 13
27 #define SIGALRM 14
28 #define SIGTERM 15
29 #define SIGSTKFLT 16
30 #define SIGCHLD 17
31 #define SIGCONT 18
32 #define SIGSTOP 19
33 #define SIGTSTP 20
34 #define SIGTTIN 21
35 #define SIGTTOU 22
36 #define SIGURG 23
37 #define SIGXCPU 24
38 #define SIGXFSZ 25
39 #define SIGVTALRM 26
40 #define SIGPROF 27
41 #define SIGWINCH 28
42 #define SIGIO 29
43 #define SIGPOLL SIGIO
44 #define SIGPWR 30
45 #define SIGSYS 31
46 #define SIGUNUSED 31
47 #define __SIGRTMIN 32
48 #ifndef __SIGRTMAX
49 #define __SIGRTMAX _KERNEL__NSIG
50 #endif
51 #if !defined(MINSIGSTKSZ) || !defined(SIGSTKSZ)
52 #define MINSIGSTKSZ 2048
53 #define SIGSTKSZ 8192
54 #endif
55 #ifndef __ASSEMBLY__
56 typedef struct {
57   unsigned long sig[_NSIG_WORDS];
58 } sigset_t;
59 typedef unsigned long old_sigset_t;
60 #include <asm-generic/signal-defs.h>
61 #ifdef SA_RESTORER
62 #define __ARCH_HAS_SA_RESTORER
63 #endif
64 struct __kernel_sigaction {
65   __sighandler_t sa_handler;
66   unsigned long sa_flags;
67 #ifdef SA_RESTORER
68   __sigrestore_t sa_restorer;
69 #endif
70   sigset_t sa_mask;
71 };
72 typedef struct sigaltstack {
73   void  * ss_sp;
74   int ss_flags;
75   __kernel_size_t ss_size;
76 } stack_t;
77 #endif
78 #endif
79