signal.h revision 199346a2abd8b6ba282e1fe291cc3766fa921f40
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__ASM_GENERIC_SIGNAL_H
20#define _UAPI__ASM_GENERIC_SIGNAL_H
21#include <linux/types.h>
22#define _KERNEL__NSIG 64
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define _NSIG_BPW __BITS_PER_LONG
25#define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW)
26#define SIGHUP 1
27#define SIGINT 2
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SIGQUIT 3
30#define SIGILL 4
31#define SIGTRAP 5
32#define SIGABRT 6
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SIGIOT 6
35#define SIGBUS 7
36#define SIGFPE 8
37#define SIGKILL 9
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SIGUSR1 10
40#define SIGSEGV 11
41#define SIGUSR2 12
42#define SIGPIPE 13
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SIGALRM 14
45#define SIGTERM 15
46#define SIGSTKFLT 16
47#define SIGCHLD 17
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SIGCONT 18
50#define SIGSTOP 19
51#define SIGTSTP 20
52#define SIGTTIN 21
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define SIGTTOU 22
55#define SIGURG 23
56#define SIGXCPU 24
57#define SIGXFSZ 25
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define SIGVTALRM 26
60#define SIGPROF 27
61#define SIGWINCH 28
62#define SIGIO 29
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define SIGPOLL SIGIO
65#define SIGPWR 30
66#define SIGSYS 31
67#define SIGUNUSED 31
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define SIGRTMIN 32
70#ifndef SIGRTMAX
71#define SIGRTMAX _KERNEL__NSIG
72#endif
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define SA_NOCLDSTOP 0x00000001
75#define SA_NOCLDWAIT 0x00000002
76#define SA_SIGINFO 0x00000004
77#define SA_ONSTACK 0x08000000
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define SA_RESTART 0x10000000
80#define SA_NODEFER 0x40000000
81#define SA_RESETHAND 0x80000000
82#define SA_NOMASK SA_NODEFER
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SA_ONESHOT SA_RESETHAND
85#define MINSIGSTKSZ 2048
86#define SIGSTKSZ 8192
87#ifndef __ASSEMBLY__
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89typedef struct {
90 unsigned long sig[_NSIG_WORDS];
91} sigset_t;
92typedef unsigned long old_sigset_t;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#include <asm-generic/signal-defs.h>
95#ifdef SA_RESTORER
96#define __ARCH_HAS_SA_RESTORER
97#endif
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99struct sigaction {
100 __sighandler_t sa_handler;
101 unsigned long sa_flags;
102#ifdef SA_RESTORER
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 __sigrestore_t sa_restorer;
105#endif
106 sigset_t sa_mask;
107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109typedef struct sigaltstack {
110 void __user *ss_sp;
111 int ss_flags;
112 size_t ss_size;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114} stack_t;
115#endif
116#endif
117