blob: 5362d4a9a5e584aa5bdcb911798483cd1a8040d3 [file] [log] [blame]
Raghu Gandham82fa43f2012-03-27 11:37:17 -07001/****************************************************************************
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 _ASM_SIGNAL_H
20#define _ASM_SIGNAL_H
21#include <linux/types.h>
22#define _NSIG 128
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define NSIG 128
25#define _NSIG_BPW (sizeof(unsigned long) * 8)
26#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
27typedef struct {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 unsigned long sig[_NSIG_WORDS];
30} sigset_t;
31typedef unsigned long old_sigset_t;
Elliott Hughesc95eb572013-01-29 18:15:55 -080032#define SIGHUP 1
Raghu Gandham82fa43f2012-03-27 11:37:17 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080034#define SIGINT 2
35#define SIGQUIT 3
36#define SIGILL 4
37#define SIGTRAP 5
Raghu Gandham82fa43f2012-03-27 11:37:17 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080039#define SIGIOT 6
40#define SIGABRT SIGIOT
Raghu Gandham82fa43f2012-03-27 11:37:17 -070041#define SIGEMT 7
Elliott Hughesc95eb572013-01-29 18:15:55 -080042#define SIGFPE 8
Raghu Gandham82fa43f2012-03-27 11:37:17 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080044#define SIGKILL 9
45#define SIGBUS 10
46#define SIGSEGV 11
Raghu Gandham82fa43f2012-03-27 11:37:17 -070047#define SIGSYS 12
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080049#define SIGPIPE 13
50#define SIGALRM 14
51#define SIGTERM 15
52#define SIGUSR1 16
Raghu Gandham82fa43f2012-03-27 11:37:17 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080054#define SIGUSR2 17
55#define SIGCHLD 18
56#define SIGCLD SIGCHLD
57#define SIGPWR 19
Raghu Gandham82fa43f2012-03-27 11:37:17 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080059#define SIGWINCH 20
60#define SIGURG 21
61#define SIGIO 22
62#define SIGPOLL SIGIO
Raghu Gandham82fa43f2012-03-27 11:37:17 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080064#define SIGSTOP 23
65#define SIGTSTP 24
66#define SIGCONT 25
67#define SIGTTIN 26
Raghu Gandham82fa43f2012-03-27 11:37:17 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080069#define SIGTTOU 27
70#define SIGVTALRM 28
71#define SIGPROF 29
72#define SIGXCPU 30
Raghu Gandham82fa43f2012-03-27 11:37:17 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080074#define SIGXFSZ 31
Raghu Gandham82fa43f2012-03-27 11:37:17 -070075#define SIGRTMIN 32
76#define SIGRTMAX _NSIG
77#define SA_ONSTACK 0x08000000
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define SA_RESETHAND 0x80000000
80#define SA_RESTART 0x10000000
81#define SA_SIGINFO 0x00000008
82#define SA_NODEFER 0x40000000
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SA_NOCLDWAIT 0x00010000
85#define SA_NOCLDSTOP 0x00000001
86#define SA_NOMASK SA_NODEFER
87#define SA_ONESHOT SA_RESETHAND
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080089#define SA_RESTORER 0x04000000
Raghu Gandham82fa43f2012-03-27 11:37:17 -070090#define SS_ONSTACK 1
91#define SS_DISABLE 2
92#define MINSIGSTKSZ 2048
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define SIGSTKSZ 8192
Raghu Gandhame328ce62012-04-23 18:59:41 -070095struct siginfo;
Elliott Hughesc95eb572013-01-29 18:15:55 -080096#define SIG_BLOCK 1
97#define SIG_UNBLOCK 2
Raghu Gandham82fa43f2012-03-27 11:37:17 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080099#define SIG_SETMASK 3
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700100#include <asm-generic/signal.h>
101struct sigaction {
102 unsigned int sa_flags;
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandhame328ce62012-04-23 18:59:41 -0700104 union {
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700105 __sighandler_t sa_handler;
106 void (*sa_sigaction) (int, struct siginfo *, void *);
107 } __sigaction_handler;
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandhame328ce62012-04-23 18:59:41 -0700109#define sa_handler __sigaction_handler.sa_handler
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700110#define sa_sigaction __sigaction_handler.sa_sigaction
111 sigset_t sa_mask;
112};
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandhame328ce62012-04-23 18:59:41 -0700114struct k_sigaction {
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700115 struct sigaction sa;
116};
117typedef struct sigaltstack {
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandhame328ce62012-04-23 18:59:41 -0700119 void *ss_sp;
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700120 size_t ss_size;
121 int ss_flags;
122} stack_t;
Raghu Gandham82fa43f2012-03-27 11:37:17 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandhame328ce62012-04-23 18:59:41 -0700124#endif