Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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_GENERIC_SIGNAL_H |
| 20 | #define _UAPI__ASM_GENERIC_SIGNAL_H |
| 21 | #include <linux/types.h> |
Elliott Hughes | 199346a | 2014-02-11 20:01:11 -0800 | [diff] [blame] | 22 | #define _KERNEL__NSIG 64 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define _NSIG_BPW __BITS_PER_LONG |
Elliott Hughes | 199346a | 2014-02-11 20:01:11 -0800 | [diff] [blame] | 24 | #define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #define SIGHUP 1 |
| 26 | #define SIGINT 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define SIGQUIT 3 |
| 28 | #define SIGILL 4 |
| 29 | #define SIGTRAP 5 |
| 30 | #define SIGABRT 6 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define SIGIOT 6 |
| 32 | #define SIGBUS 7 |
| 33 | #define SIGFPE 8 |
| 34 | #define SIGKILL 9 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define SIGUSR1 10 |
| 36 | #define SIGSEGV 11 |
| 37 | #define SIGUSR2 12 |
| 38 | #define SIGPIPE 13 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define SIGALRM 14 |
| 40 | #define SIGTERM 15 |
| 41 | #define SIGSTKFLT 16 |
| 42 | #define SIGCHLD 17 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define SIGCONT 18 |
| 44 | #define SIGSTOP 19 |
| 45 | #define SIGTSTP 20 |
| 46 | #define SIGTTIN 21 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define SIGTTOU 22 |
| 48 | #define SIGURG 23 |
| 49 | #define SIGXCPU 24 |
| 50 | #define SIGXFSZ 25 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define SIGVTALRM 26 |
| 52 | #define SIGPROF 27 |
| 53 | #define SIGWINCH 28 |
| 54 | #define SIGIO 29 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | #define SIGPOLL SIGIO |
| 56 | #define SIGPWR 30 |
| 57 | #define SIGSYS 31 |
| 58 | #define SIGUNUSED 31 |
Elliott Hughes | 0990d4f | 2014-04-30 09:45:40 -0700 | [diff] [blame] | 59 | #define __SIGRTMIN 32 |
Elliott Hughes | fddbafd | 2014-05-01 10:17:27 -0700 | [diff] [blame] | 60 | #ifndef __SIGRTMAX |
Elliott Hughes | 0990d4f | 2014-04-30 09:45:40 -0700 | [diff] [blame] | 61 | #define __SIGRTMAX _KERNEL__NSIG |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 62 | #endif |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 63 | #if !defined(MINSIGSTKSZ) || !defined(SIGSTKSZ) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | #define MINSIGSTKSZ 2048 |
| 65 | #define SIGSTKSZ 8192 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 66 | #endif |
| 67 | #ifndef __ASSEMBLY__ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | typedef struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 69 | unsigned long sig[_NSIG_WORDS]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 70 | } sigset_t; |
| 71 | typedef unsigned long old_sigset_t; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #include <asm-generic/signal-defs.h> |
| 73 | #ifdef SA_RESTORER |
| 74 | #define __ARCH_HAS_SA_RESTORER |
| 75 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | struct sigaction { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 77 | __sighandler_t sa_handler; |
| 78 | unsigned long sa_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 79 | #ifdef SA_RESTORER |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 80 | __sigrestore_t sa_restorer; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 81 | #endif |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 82 | sigset_t sa_mask; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 84 | typedef struct sigaltstack { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 85 | void __user * ss_sp; |
| 86 | int ss_flags; |
Christopher Ferris | 5d36796 | 2022-05-25 13:36:15 -0700 | [diff] [blame^] | 87 | __kernel_size_t ss_size; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 88 | } stack_t; |
| 89 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 90 | #endif |