122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef _UAPI__ASM_GENERIC_SIGNAL_H 2022851890Sopenharmony_ci#define _UAPI__ASM_GENERIC_SIGNAL_H 2122851890Sopenharmony_ci#include <linux/types.h> 2222851890Sopenharmony_ci#define _KERNEL__NSIG 64 2322851890Sopenharmony_ci#define _NSIG_BPW __BITS_PER_LONG 2422851890Sopenharmony_ci#define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW) 2522851890Sopenharmony_ci#define SIGHUP 1 2622851890Sopenharmony_ci#define SIGINT 2 2722851890Sopenharmony_ci#define SIGQUIT 3 2822851890Sopenharmony_ci#define SIGILL 4 2922851890Sopenharmony_ci#define SIGTRAP 5 3022851890Sopenharmony_ci#define SIGABRT 6 3122851890Sopenharmony_ci#define SIGIOT 6 3222851890Sopenharmony_ci#define SIGBUS 7 3322851890Sopenharmony_ci#define SIGFPE 8 3422851890Sopenharmony_ci#define SIGKILL 9 3522851890Sopenharmony_ci#define SIGUSR1 10 3622851890Sopenharmony_ci#define SIGSEGV 11 3722851890Sopenharmony_ci#define SIGUSR2 12 3822851890Sopenharmony_ci#define SIGPIPE 13 3922851890Sopenharmony_ci#define SIGALRM 14 4022851890Sopenharmony_ci#define SIGTERM 15 4122851890Sopenharmony_ci#define SIGSTKFLT 16 4222851890Sopenharmony_ci#define SIGCHLD 17 4322851890Sopenharmony_ci#define SIGCONT 18 4422851890Sopenharmony_ci#define SIGSTOP 19 4522851890Sopenharmony_ci#define SIGTSTP 20 4622851890Sopenharmony_ci#define SIGTTIN 21 4722851890Sopenharmony_ci#define SIGTTOU 22 4822851890Sopenharmony_ci#define SIGURG 23 4922851890Sopenharmony_ci#define SIGXCPU 24 5022851890Sopenharmony_ci#define SIGXFSZ 25 5122851890Sopenharmony_ci#define SIGVTALRM 26 5222851890Sopenharmony_ci#define SIGPROF 27 5322851890Sopenharmony_ci#define SIGWINCH 28 5422851890Sopenharmony_ci#define SIGIO 29 5522851890Sopenharmony_ci#define SIGPOLL SIGIO 5622851890Sopenharmony_ci#define SIGPWR 30 5722851890Sopenharmony_ci#define SIGSYS 31 5822851890Sopenharmony_ci#define SIGUNUSED 31 5922851890Sopenharmony_ci#define __SIGRTMIN 32 6022851890Sopenharmony_ci#ifndef __SIGRTMAX 6122851890Sopenharmony_ci#define __SIGRTMAX _KERNEL__NSIG 6222851890Sopenharmony_ci#endif 6322851890Sopenharmony_ci#define SA_NOCLDSTOP 0x00000001 6422851890Sopenharmony_ci#define SA_NOCLDWAIT 0x00000002 6522851890Sopenharmony_ci#define SA_SIGINFO 0x00000004 6622851890Sopenharmony_ci#define SA_ONSTACK 0x08000000 6722851890Sopenharmony_ci#define SA_RESTART 0x10000000 6822851890Sopenharmony_ci#define SA_NODEFER 0x40000000 6922851890Sopenharmony_ci#define SA_RESETHAND 0x80000000 7022851890Sopenharmony_ci#define SA_NOMASK SA_NODEFER 7122851890Sopenharmony_ci#define SA_ONESHOT SA_RESETHAND 7222851890Sopenharmony_ci#if !defined(MINSIGSTKSZ) || !defined(SIGSTKSZ) 7322851890Sopenharmony_ci#define MINSIGSTKSZ 2048 7422851890Sopenharmony_ci#define SIGSTKSZ 8192 7522851890Sopenharmony_ci#endif 7622851890Sopenharmony_ci#ifndef __ASSEMBLY__ 7722851890Sopenharmony_citypedef struct { 7822851890Sopenharmony_ci unsigned long sig[_NSIG_WORDS]; 7922851890Sopenharmony_ci} sigset_t; 8022851890Sopenharmony_citypedef unsigned long old_sigset_t; 8122851890Sopenharmony_ci#include <asm-generic/signal-defs.h> 8222851890Sopenharmony_ci#ifdef SA_RESTORER 8322851890Sopenharmony_ci#define __ARCH_HAS_SA_RESTORER 8422851890Sopenharmony_ci#endif 8522851890Sopenharmony_cistruct sigaction { 8622851890Sopenharmony_ci __sighandler_t sa_handler; 8722851890Sopenharmony_ci unsigned long sa_flags; 8822851890Sopenharmony_ci#ifdef SA_RESTORER 8922851890Sopenharmony_ci __sigrestore_t sa_restorer; 9022851890Sopenharmony_ci#endif 9122851890Sopenharmony_ci sigset_t sa_mask; 9222851890Sopenharmony_ci}; 9322851890Sopenharmony_citypedef struct sigaltstack { 9422851890Sopenharmony_ci void __user * ss_sp; 9522851890Sopenharmony_ci int ss_flags; 9622851890Sopenharmony_ci size_t ss_size; 9722851890Sopenharmony_ci} stack_t; 9822851890Sopenharmony_ci#endif 9922851890Sopenharmony_ci#endif 100