blob: 2e514456066dbf3310aefaf1d2b80f25469e3d06 [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/time.h>
12#include <linux/compiler.h>
13struct siginfo;
Elliott Hughes199346a2014-02-11 20:01:11 -080014#define _KERNEL_NSIG 32
Elliott Hughesabd62612013-11-08 11:45:48 -080015typedef unsigned long sigset_t;
16#endif
17#define SIGHUP 1
18#define SIGINT 2
Elliott Hughesabd62612013-11-08 11:45:48 -080019#define SIGQUIT 3
20#define SIGILL 4
21#define SIGTRAP 5
22#define SIGABRT 6
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define SIGIOT 6
24#define SIGBUS 7
25#define SIGFPE 8
26#define SIGKILL 9
Elliott Hughesabd62612013-11-08 11:45:48 -080027#define SIGUSR1 10
28#define SIGSEGV 11
29#define SIGUSR2 12
30#define SIGPIPE 13
Elliott Hughesabd62612013-11-08 11:45:48 -080031#define SIGALRM 14
32#define SIGTERM 15
33#define SIGSTKFLT 16
34#define SIGCHLD 17
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define SIGCONT 18
36#define SIGSTOP 19
37#define SIGTSTP 20
38#define SIGTTIN 21
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define SIGTTOU 22
40#define SIGURG 23
41#define SIGXCPU 24
42#define SIGXFSZ 25
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define SIGVTALRM 26
44#define SIGPROF 27
45#define SIGWINCH 28
46#define SIGIO 29
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define SIGPOLL SIGIO
48#define SIGPWR 30
49#define SIGSYS 31
50#define SIGUNUSED 31
Elliott Hughes0990d4f2014-04-30 09:45:40 -070051#define __SIGRTMIN 32
52#define __SIGRTMAX _KERNEL__NSIG
Elliott Hughesabd62612013-11-08 11:45:48 -080053#define SA_RESTORER 0x04000000
Elliott Hughesabd62612013-11-08 11:45:48 -080054#define MINSIGSTKSZ 2048
55#define SIGSTKSZ 8192
56#include <asm-generic/signal-defs.h>
57#ifndef __ASSEMBLY__
Elliott Hughesabd62612013-11-08 11:45:48 -080058#ifdef __i386__
59struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080060 union {
61 __sighandler_t _sa_handler;
Tao Baod7db5942015-01-28 10:07:51 -080062 void(* _sa_sigaction) (int, struct siginfo *, void *);
63 } _u;
64 sigset_t sa_mask;
65 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080066 void(* sa_restorer) (void);
Elliott Hughesabd62612013-11-08 11:45:48 -080067};
68#define sa_handler _u._sa_handler
69#define sa_sigaction _u._sa_sigaction
Elliott Hughesabd62612013-11-08 11:45:48 -080070#else
71struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080072 __sighandler_t sa_handler;
73 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080074 __sigrestore_t sa_restorer;
75 sigset_t sa_mask;
Elliott Hughesabd62612013-11-08 11:45:48 -080076};
77#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080078typedef struct sigaltstack {
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070079 void * ss_sp;
Tao Baod7db5942015-01-28 10:07:51 -080080 int ss_flags;
Christopher Ferris10a76e62022-06-08 13:31:52 -070081 __kernel_size_t ss_size;
Elliott Hughesabd62612013-11-08 11:45:48 -080082} stack_t;
83#endif
84#endif