blob: c7caa9727cdc5985afec52c60ed0cccb5ef8effc [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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_X86_SIGNAL_H
20#define _UAPI_ASM_X86_SIGNAL_H
21#ifndef __ASSEMBLY__
22#include <linux/types.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080023#include <linux/time.h>
24#include <linux/compiler.h>
25struct siginfo;
Elliott Hughes199346a2014-02-11 20:01:11 -080026#define _KERNEL_NSIG 32
Elliott Hughesabd62612013-11-08 11:45:48 -080027typedef unsigned long sigset_t;
28#endif
29#define SIGHUP 1
30#define SIGINT 2
Elliott Hughesabd62612013-11-08 11:45:48 -080031#define SIGQUIT 3
32#define SIGILL 4
33#define SIGTRAP 5
34#define SIGABRT 6
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define SIGIOT 6
36#define SIGBUS 7
37#define SIGFPE 8
38#define SIGKILL 9
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define SIGUSR1 10
40#define SIGSEGV 11
41#define SIGUSR2 12
42#define SIGPIPE 13
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define SIGALRM 14
44#define SIGTERM 15
45#define SIGSTKFLT 16
46#define SIGCHLD 17
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define SIGCONT 18
48#define SIGSTOP 19
49#define SIGTSTP 20
50#define SIGTTIN 21
Elliott Hughesabd62612013-11-08 11:45:48 -080051#define SIGTTOU 22
52#define SIGURG 23
53#define SIGXCPU 24
54#define SIGXFSZ 25
Elliott Hughesabd62612013-11-08 11:45:48 -080055#define SIGVTALRM 26
56#define SIGPROF 27
57#define SIGWINCH 28
58#define SIGIO 29
Elliott Hughesabd62612013-11-08 11:45:48 -080059#define SIGPOLL SIGIO
60#define SIGPWR 30
61#define SIGSYS 31
62#define SIGUNUSED 31
Elliott Hughes0990d4f2014-04-30 09:45:40 -070063#define __SIGRTMIN 32
64#define __SIGRTMAX _KERNEL__NSIG
Elliott Hughesabd62612013-11-08 11:45:48 -080065#define SA_NOCLDSTOP 0x00000001u
66#define SA_NOCLDWAIT 0x00000002u
Elliott Hughesabd62612013-11-08 11:45:48 -080067#define SA_SIGINFO 0x00000004u
68#define SA_ONSTACK 0x08000000u
69#define SA_RESTART 0x10000000u
70#define SA_NODEFER 0x40000000u
Elliott Hughesabd62612013-11-08 11:45:48 -080071#define SA_RESETHAND 0x80000000u
72#define SA_NOMASK SA_NODEFER
73#define SA_ONESHOT SA_RESETHAND
74#define SA_RESTORER 0x04000000
Elliott Hughesabd62612013-11-08 11:45:48 -080075#define MINSIGSTKSZ 2048
76#define SIGSTKSZ 8192
77#include <asm-generic/signal-defs.h>
78#ifndef __ASSEMBLY__
Elliott Hughesabd62612013-11-08 11:45:48 -080079#ifdef __i386__
80struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080081 union {
82 __sighandler_t _sa_handler;
Tao Baod7db5942015-01-28 10:07:51 -080083 void(* _sa_sigaction) (int, struct siginfo *, void *);
84 } _u;
85 sigset_t sa_mask;
86 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080087 void(* sa_restorer) (void);
Elliott Hughesabd62612013-11-08 11:45:48 -080088};
89#define sa_handler _u._sa_handler
90#define sa_sigaction _u._sa_sigaction
Elliott Hughesabd62612013-11-08 11:45:48 -080091#else
92struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080093 __sighandler_t sa_handler;
94 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080095 __sigrestore_t sa_restorer;
96 sigset_t sa_mask;
Elliott Hughesabd62612013-11-08 11:45:48 -080097};
98#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080099typedef struct sigaltstack {
Tao Baod7db5942015-01-28 10:07:51 -0800100 void __user * ss_sp;
101 int ss_flags;
102 size_t ss_size;
Elliott Hughesabd62612013-11-08 11:45:48 -0800103} stack_t;
104#endif
105#endif