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