blob: 90cb8d6a977619f75765186103be7987fea05c1a [file] [log] [blame]
Ben Chenga6b53f02013-11-06 15:51:05 -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_ASMARM_SIGNAL_H
20#define _UAPI_ASMARM_SIGNAL_H
21#include <linux/types.h>
22struct siginfo;
Elliott Hughes199346a2014-02-11 20:01:11 -080023#define _KERNEL_NSIG 32
Ben Chenga6b53f02013-11-06 15:51:05 -080024typedef unsigned long sigset_t;
25#define SIGHUP 1
26#define SIGINT 2
Ben Chenga6b53f02013-11-06 15:51:05 -080027#define SIGQUIT 3
28#define SIGILL 4
29#define SIGTRAP 5
30#define SIGABRT 6
Ben Chenga6b53f02013-11-06 15:51:05 -080031#define SIGIOT 6
32#define SIGBUS 7
33#define SIGFPE 8
34#define SIGKILL 9
Ben Chenga6b53f02013-11-06 15:51:05 -080035#define SIGUSR1 10
36#define SIGSEGV 11
37#define SIGUSR2 12
38#define SIGPIPE 13
Ben Chenga6b53f02013-11-06 15:51:05 -080039#define SIGALRM 14
40#define SIGTERM 15
41#define SIGSTKFLT 16
42#define SIGCHLD 17
Ben Chenga6b53f02013-11-06 15:51:05 -080043#define SIGCONT 18
44#define SIGSTOP 19
45#define SIGTSTP 20
46#define SIGTTIN 21
Ben Chenga6b53f02013-11-06 15:51:05 -080047#define SIGTTOU 22
48#define SIGURG 23
49#define SIGXCPU 24
50#define SIGXFSZ 25
Ben Chenga6b53f02013-11-06 15:51:05 -080051#define SIGVTALRM 26
52#define SIGPROF 27
53#define SIGWINCH 28
54#define SIGIO 29
Ben Chenga6b53f02013-11-06 15:51:05 -080055#define SIGPOLL SIGIO
56#define SIGPWR 30
57#define SIGSYS 31
58#define SIGUNUSED 31
Elliott Hughes0990d4f2014-04-30 09:45:40 -070059#define __SIGRTMIN 32
60#define __SIGRTMAX _KERNEL__NSIG
Ben Chenga6b53f02013-11-06 15:51:05 -080061#define SIGSWI 32
Ben Chenga6b53f02013-11-06 15:51:05 -080062#define SA_THIRTYTWO 0x02000000
63#define SA_RESTORER 0x04000000
Ben Chenga6b53f02013-11-06 15:51:05 -080064#define MINSIGSTKSZ 2048
65#define SIGSTKSZ 8192
Ben Chenga6b53f02013-11-06 15:51:05 -080066#include <asm-generic/signal-defs.h>
67struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080068 union {
69 __sighandler_t _sa_handler;
Tao Baod7db5942015-01-28 10:07:51 -080070 void(* _sa_sigaction) (int, struct siginfo *, void *);
71 } _u;
72 sigset_t sa_mask;
73 unsigned long sa_flags;
Tao Baod7db5942015-01-28 10:07:51 -080074 void(* sa_restorer) (void);
Ben Chenga6b53f02013-11-06 15:51:05 -080075};
76#define sa_handler _u._sa_handler
77#define sa_sigaction _u._sa_sigaction
Ben Chenga6b53f02013-11-06 15:51:05 -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;
Ben Chenga6b53f02013-11-06 15:51:05 -080082} stack_t;
83#endif