blob: 6cffef3c471ecadb0dea8fdb492f6c406a1272ef [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Elliott Hughesabd62612013-11-08 11:45:48 -08007#ifndef _UAPI_ASM_X86_SIGNAL_H
8#define _UAPI_ASM_X86_SIGNAL_H
9#ifndef __ASSEMBLY__
10#include <linux/types.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080011#include <linux/compiler.h>
12struct siginfo;
Elliott Hughes199346a2014-02-11 20:01:11 -080013#define _KERNEL_NSIG 32
Elliott Hughesabd62612013-11-08 11:45:48 -080014typedef unsigned long sigset_t;
15#endif
16#define SIGHUP 1
17#define SIGINT 2
Elliott Hughesabd62612013-11-08 11:45:48 -080018#define SIGQUIT 3
19#define SIGILL 4
20#define SIGTRAP 5
21#define SIGABRT 6
Elliott Hughesabd62612013-11-08 11:45:48 -080022#define SIGIOT 6
23#define SIGBUS 7
24#define SIGFPE 8
25#define SIGKILL 9
Elliott Hughesabd62612013-11-08 11:45:48 -080026#define SIGUSR1 10
27#define SIGSEGV 11
28#define SIGUSR2 12
29#define SIGPIPE 13
Elliott Hughesabd62612013-11-08 11:45:48 -080030#define SIGALRM 14
31#define SIGTERM 15
32#define SIGSTKFLT 16
33#define SIGCHLD 17
Elliott Hughesabd62612013-11-08 11:45:48 -080034#define SIGCONT 18
35#define SIGSTOP 19
36#define SIGTSTP 20
37#define SIGTTIN 21
Elliott Hughesabd62612013-11-08 11:45:48 -080038#define SIGTTOU 22
39#define SIGURG 23
40#define SIGXCPU 24
41#define SIGXFSZ 25
Elliott Hughesabd62612013-11-08 11:45:48 -080042#define SIGVTALRM 26
43#define SIGPROF 27
44#define SIGWINCH 28
45#define SIGIO 29
Elliott Hughesabd62612013-11-08 11:45:48 -080046#define SIGPOLL SIGIO
47#define SIGPWR 30
48#define SIGSYS 31
49#define SIGUNUSED 31
Elliott Hughes0990d4f2014-04-30 09:45:40 -070050#define __SIGRTMIN 32
51#define __SIGRTMAX _KERNEL__NSIG
Elliott Hughesabd62612013-11-08 11:45:48 -080052#define SA_RESTORER 0x04000000
Elliott Hughesabd62612013-11-08 11:45:48 -080053#define MINSIGSTKSZ 2048
54#define SIGSTKSZ 8192
55#include <asm-generic/signal-defs.h>
56#ifndef __ASSEMBLY__
Elliott Hughesabd62612013-11-08 11:45:48 -080057#ifdef __i386__
Elliott Hughesdf53b162023-11-28 14:20:43 -080058struct __kernel_sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080059 union {
60 __sighandler_t _sa_handler;
Tao Baod7db5942015-01-28 10:07:51 -080061 void(* _sa_sigaction) (int, struct siginfo *, void *);
62 } _u;
63 sigset_t sa_mask;
64 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080065 void(* sa_restorer) (void);
Elliott Hughesabd62612013-11-08 11:45:48 -080066};
67#define sa_handler _u._sa_handler
68#define sa_sigaction _u._sa_sigaction
Elliott Hughesabd62612013-11-08 11:45:48 -080069#else
Elliott Hughesdf53b162023-11-28 14:20:43 -080070struct __kernel_sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080071 __sighandler_t sa_handler;
72 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080073 __sigrestore_t sa_restorer;
74 sigset_t sa_mask;
Elliott Hughesabd62612013-11-08 11:45:48 -080075};
76#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080077typedef struct sigaltstack {
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070078 void * ss_sp;
Tao Baod7db5942015-01-28 10:07:51 -080079 int ss_flags;
Christopher Ferris10a76e62022-06-08 13:31:52 -070080 __kernel_size_t ss_size;
Elliott Hughesabd62612013-11-08 11:45:48 -080081} stack_t;
82#endif
83#endif