blob: cbeeac463ff06a0a80bc606eb1fcecc7c19928fd [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_RESTORER 0x04000000
Elliott Hughesabd62612013-11-08 11:45:48 -080066#define MINSIGSTKSZ 2048
67#define SIGSTKSZ 8192
68#include <asm-generic/signal-defs.h>
69#ifndef __ASSEMBLY__
Elliott Hughesabd62612013-11-08 11:45:48 -080070#ifdef __i386__
71struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080072 union {
73 __sighandler_t _sa_handler;
Tao Baod7db5942015-01-28 10:07:51 -080074 void(* _sa_sigaction) (int, struct siginfo *, void *);
75 } _u;
76 sigset_t sa_mask;
77 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080078 void(* sa_restorer) (void);
Elliott Hughesabd62612013-11-08 11:45:48 -080079};
80#define sa_handler _u._sa_handler
81#define sa_sigaction _u._sa_sigaction
Elliott Hughesabd62612013-11-08 11:45:48 -080082#else
83struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080084 __sighandler_t sa_handler;
85 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080086 __sigrestore_t sa_restorer;
87 sigset_t sa_mask;
Elliott Hughesabd62612013-11-08 11:45:48 -080088};
89#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080090typedef struct sigaltstack {
Tao Baod7db5942015-01-28 10:07:51 -080091 void __user * ss_sp;
92 int ss_flags;
Christopher Ferris10a76e62022-06-08 13:31:52 -070093 __kernel_size_t ss_size;
Elliott Hughesabd62612013-11-08 11:45:48 -080094} stack_t;
95#endif
96#endif