blob: 969bf86d34b2fc855787b65a07963414aeda3662 [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_SIGNAL_H
20#define _UAPI_ASM_SIGNAL_H
21#include <linux/types.h>
Elliott Hughes199346a2014-02-11 20:01:11 -080022#define _KERNEL__NSIG 128
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define _NSIG_BPW (sizeof(unsigned long) * 8)
Elliott Hughes199346a2014-02-11 20:01:11 -080024#define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW)
Elliott Hughesabd62612013-11-08 11:45:48 -080025typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -080026 unsigned long sig[_NSIG_WORDS];
Elliott Hughesabd62612013-11-08 11:45:48 -080027} sigset_t;
28typedef unsigned long old_sigset_t;
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 SIGIOT 6
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define SIGABRT SIGIOT
36#define SIGEMT 7
37#define SIGFPE 8
38#define SIGKILL 9
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define SIGBUS 10
40#define SIGSEGV 11
41#define SIGSYS 12
42#define SIGPIPE 13
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define SIGALRM 14
44#define SIGTERM 15
45#define SIGUSR1 16
46#define SIGUSR2 17
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define SIGCHLD 18
48#define SIGCLD SIGCHLD
49#define SIGPWR 19
50#define SIGWINCH 20
Elliott Hughesabd62612013-11-08 11:45:48 -080051#define SIGURG 21
52#define SIGIO 22
53#define SIGPOLL SIGIO
54#define SIGSTOP 23
Elliott Hughesabd62612013-11-08 11:45:48 -080055#define SIGTSTP 24
56#define SIGCONT 25
57#define SIGTTIN 26
58#define SIGTTOU 27
Elliott Hughesabd62612013-11-08 11:45:48 -080059#define SIGVTALRM 28
60#define SIGPROF 29
61#define SIGXCPU 30
62#define SIGXFSZ 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_ONSTACK 0x08000000
66#define SA_RESETHAND 0x80000000
Elliott Hughesabd62612013-11-08 11:45:48 -080067#define SA_RESTART 0x10000000
68#define SA_SIGINFO 0x00000008
69#define SA_NODEFER 0x40000000
70#define SA_NOCLDWAIT 0x00010000
Elliott Hughesabd62612013-11-08 11:45:48 -080071#define SA_NOCLDSTOP 0x00000001
72#define SA_NOMASK SA_NODEFER
73#define SA_ONESHOT SA_RESETHAND
74#define MINSIGSTKSZ 2048
Elliott Hughesabd62612013-11-08 11:45:48 -080075#define SIGSTKSZ 8192
76#define SIG_BLOCK 1
77#define SIG_UNBLOCK 2
78#define SIG_SETMASK 3
Elliott Hughesabd62612013-11-08 11:45:48 -080079#include <asm-generic/signal-defs.h>
80struct sigaction {
Tao Baod7db5942015-01-28 10:07:51 -080081 unsigned int sa_flags;
82 __sighandler_t sa_handler;
Tao Baod7db5942015-01-28 10:07:51 -080083 sigset_t sa_mask;
Elliott Hughesabd62612013-11-08 11:45:48 -080084};
85typedef struct sigaltstack {
Tao Baod7db5942015-01-28 10:07:51 -080086 void __user * ss_sp;
Tao Baod7db5942015-01-28 10:07:51 -080087 size_t ss_size;
88 int ss_flags;
Elliott Hughesabd62612013-11-08 11:45:48 -080089} stack_t;
90#endif