• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
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>
22 #define _KERNEL__NSIG 128
23 #define _NSIG_BPW (sizeof(unsigned long) * 8)
24 #define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW)
25 typedef struct {
26   unsigned long sig[_NSIG_WORDS];
27 } sigset_t;
28 typedef unsigned long old_sigset_t;
29 #define SIGHUP 1
30 #define SIGINT 2
31 #define SIGQUIT 3
32 #define SIGILL 4
33 #define SIGTRAP 5
34 #define SIGIOT 6
35 #define SIGABRT SIGIOT
36 #define SIGEMT 7
37 #define SIGFPE 8
38 #define SIGKILL 9
39 #define SIGBUS 10
40 #define SIGSEGV 11
41 #define SIGSYS 12
42 #define SIGPIPE 13
43 #define SIGALRM 14
44 #define SIGTERM 15
45 #define SIGUSR1 16
46 #define SIGUSR2 17
47 #define SIGCHLD 18
48 #define SIGCLD SIGCHLD
49 #define SIGPWR 19
50 #define SIGWINCH 20
51 #define SIGURG 21
52 #define SIGIO 22
53 #define SIGPOLL SIGIO
54 #define SIGSTOP 23
55 #define SIGTSTP 24
56 #define SIGCONT 25
57 #define SIGTTIN 26
58 #define SIGTTOU 27
59 #define SIGVTALRM 28
60 #define SIGPROF 29
61 #define SIGXCPU 30
62 #define SIGXFSZ 31
63 #define __SIGRTMIN 32
64 #define __SIGRTMAX _KERNEL__NSIG
65 #define SA_ONSTACK 0x08000000
66 #define SA_RESETHAND 0x80000000
67 #define SA_RESTART 0x10000000
68 #define SA_SIGINFO 0x00000008
69 #define SA_NODEFER 0x40000000
70 #define SA_NOCLDWAIT 0x00010000
71 #define SA_NOCLDSTOP 0x00000001
72 #define SA_NOMASK SA_NODEFER
73 #define SA_ONESHOT SA_RESETHAND
74 #define MINSIGSTKSZ 2048
75 #define SIGSTKSZ 8192
76 #define SIG_BLOCK 1
77 #define SIG_UNBLOCK 2
78 #define SIG_SETMASK 3
79 #include <asm-generic/signal-defs.h>
80 struct sigaction {
81   unsigned int sa_flags;
82   __sighandler_t sa_handler;
83   sigset_t sa_mask;
84 };
85 typedef struct sigaltstack {
86   void __user * ss_sp;
87   size_t ss_size;
88   int ss_flags;
89 } stack_t;
90 #endif
91