blob: 21c7100d770b0dded0d9a507f6e75768dcdf9217 [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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI__ASM_GENERIC_SIGNAL_H
8#define _UAPI__ASM_GENERIC_SIGNAL_H
9#include <linux/types.h>
Elliott Hughes199346a2014-02-11 20:01:11 -080010#define _KERNEL__NSIG 64
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define _NSIG_BPW __BITS_PER_LONG
Elliott Hughes199346a2014-02-11 20:01:11 -080012#define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW)
Ben Cheng655a7c02013-10-16 16:09:24 -070013#define SIGHUP 1
14#define SIGINT 2
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define SIGQUIT 3
16#define SIGILL 4
17#define SIGTRAP 5
18#define SIGABRT 6
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define SIGIOT 6
20#define SIGBUS 7
21#define SIGFPE 8
22#define SIGKILL 9
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define SIGUSR1 10
24#define SIGSEGV 11
25#define SIGUSR2 12
26#define SIGPIPE 13
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define SIGALRM 14
28#define SIGTERM 15
29#define SIGSTKFLT 16
30#define SIGCHLD 17
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define SIGCONT 18
32#define SIGSTOP 19
33#define SIGTSTP 20
34#define SIGTTIN 21
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define SIGTTOU 22
36#define SIGURG 23
37#define SIGXCPU 24
38#define SIGXFSZ 25
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define SIGVTALRM 26
40#define SIGPROF 27
41#define SIGWINCH 28
42#define SIGIO 29
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define SIGPOLL SIGIO
44#define SIGPWR 30
45#define SIGSYS 31
46#define SIGUNUSED 31
Elliott Hughes0990d4f2014-04-30 09:45:40 -070047#define __SIGRTMIN 32
Elliott Hughesfddbafd2014-05-01 10:17:27 -070048#ifndef __SIGRTMAX
Elliott Hughes0990d4f2014-04-30 09:45:40 -070049#define __SIGRTMAX _KERNEL__NSIG
Ben Cheng655a7c02013-10-16 16:09:24 -070050#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -080051#if !defined(MINSIGSTKSZ) || !defined(SIGSTKSZ)
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define MINSIGSTKSZ 2048
53#define SIGSTKSZ 8192
Christopher Ferris05d08e92016-02-04 13:16:38 -080054#endif
55#ifndef __ASSEMBLY__
Ben Cheng655a7c02013-10-16 16:09:24 -070056typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -080057 unsigned long sig[_NSIG_WORDS];
Ben Cheng655a7c02013-10-16 16:09:24 -070058} sigset_t;
59typedef unsigned long old_sigset_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070060#include <asm-generic/signal-defs.h>
61#ifdef SA_RESTORER
62#define __ARCH_HAS_SA_RESTORER
63#endif
Elliott Hughesdf53b162023-11-28 14:20:43 -080064struct __kernel_sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080065 __sighandler_t sa_handler;
66 unsigned long sa_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070067#ifdef SA_RESTORER
Tao Baod7db5942015-01-28 10:07:51 -080068 __sigrestore_t sa_restorer;
Ben Cheng655a7c02013-10-16 16:09:24 -070069#endif
Tao Baod7db5942015-01-28 10:07:51 -080070 sigset_t sa_mask;
Ben Cheng655a7c02013-10-16 16:09:24 -070071};
Ben Cheng655a7c02013-10-16 16:09:24 -070072typedef struct sigaltstack {
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070073 void * ss_sp;
Tao Baod7db5942015-01-28 10:07:51 -080074 int ss_flags;
Christopher Ferris10a76e62022-06-08 13:31:52 -070075 __kernel_size_t ss_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070076} stack_t;
77#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070078#endif