1 /**************************************************************************** 2 Derived from gdk/platforms/android-14/arch-arm/usr/include/asm/signal.h 3 **************************************************************************** 4 *** 5 *** This header was ORIGINALLY automatically generated from a Linux kernel 6 *** header of the same name, to make information necessary for userspace to 7 *** call into the kernel available to libc. It contains only constants, 8 *** structures, and macros generated from the original header, and thus, 9 *** contains no copyrightable information. 10 *** 11 **************************************************************************** 12 ****************************************************************************/ 13 #ifndef _ASMARM_SIGNAL_PORTABLE_H 14 #define _ASMARM_SIGNAL_PORTABLE_H 15 16 struct siginfo; /* TODO: Change to siginfo_portable */ 17 18 #define NSIG_PORTABLE 64 19 typedef unsigned long sigset_portable_t; 20 21 #define SIGHUP_PORTABLE 1 22 #define SIGINT_PORTABLE 2 23 #define SIGQUIT_PORTABLE 3 24 #define SIGILL_PORTABLE 4 25 #define SIGTRAP_PORTABLE 5 26 #define SIGABRT_PORTABLE 6 27 #define SIGIOT_PORTABLE 6 28 #define SIGBUS_PORTABLE 7 29 #define SIGFPE_PORTABLE 8 30 #define SIGKILL_PORTABLE 9 31 #define SIGUSR1_PORTABLE 10 32 #define SIGSEGV_PORTABLE 11 33 #define SIGUSR2_PORTABLE 12 34 #define SIGPIPE_PORTABLE 13 35 #define SIGALRM_PORTABLE 14 36 #define SIGTERM_PORTABLE 15 37 #define SIGSTKFLT_PORTABLE 16 38 #define SIGCHLD_PORTABLE 17 39 #define SIGCONT_PORTABLE 18 40 #define SIGSTOP_PORTABLE 19 41 #define SIGTSTP_PORTABLE 20 42 #define SIGTTIN_PORTABLE 21 43 #define SIGTTOU_PORTABLE 22 44 #define SIGURG_PORTABLE 23 45 #define SIGXCPU_PORTABLE 24 46 #define SIGXFSZ_PORTABLE 25 47 #define SIGVTALRM_PORTABLE 26 48 #define SIGPROF_PORTABLE 27 49 #define SIGWINCH_PORTABLE 28 50 #define SIGIO_PORTABLE 29 51 #define SIGPOLL_PORTABLE SIGIO 52 53 #define SIGPWR_PORTABLE 30 54 #define SIGSYS_PORTABLE 31 55 #define SIGUNUSED_PORTABLE 31 56 57 #define SIGSWI_PORTABLE 32 58 #define SIGRTMIN_PORTABLE 32 59 60 #define SIGRT_1_PORTABLE (SIGRTMIN_PORTABLE + 1) 61 #define SIGRT_2_PORTABLE (SIGRTMIN_PORTABLE + 2) 62 #define SIGRT_3_PORTABLE (SIGRTMIN_PORTABLE + 3) 63 #define SIGRT_4_PORTABLE (SIGRTMIN_PORTABLE + 4) 64 #define SIGRT_5_PORTABLE (SIGRTMIN_PORTABLE + 5) 65 #define SIGRT_5_PORTABLE (SIGRTMIN_PORTABLE + 5) 66 #define SIGRT_6_PORTABLE (SIGRTMIN_PORTABLE + 6) 67 #define SIGRT_7_PORTABLE (SIGRTMIN_PORTABLE + 7) 68 #define SIGRT_8_PORTABLE (SIGRTMIN_PORTABLE + 8) 69 #define SIGRT_9_PORTABLE (SIGRTMIN_PORTABLE + 9) 70 #define SIGRT_10_PORTABLE (SIGRTMIN_PORTABLE + 10) 71 #define SIGRT_11_PORTABLE (SIGRTMIN_PORTABLE + 11) 72 #define SIGRT_12_PORTABLE (SIGRTMIN_PORTABLE + 12) 73 #define SIGRT_13_PORTABLE (SIGRTMIN_PORTABLE + 13) 74 #define SIGRT_14_PORTABLE (SIGRTMIN_PORTABLE + 14) 75 #define SIGRT_15_PORTABLE (SIGRTMIN_PORTABLE + 15) 76 #define SIGRT_15_PORTABLE (SIGRTMIN_PORTABLE + 15) 77 #define SIGRT_16_PORTABLE (SIGRTMIN_PORTABLE + 16) 78 #define SIGRT_17_PORTABLE (SIGRTMIN_PORTABLE + 17) 79 #define SIGRT_18_PORTABLE (SIGRTMIN_PORTABLE + 18) 80 #define SIGRT_19_PORTABLE (SIGRTMIN_PORTABLE + 19) 81 #define SIGRT_20_PORTABLE (SIGRTMIN_PORTABLE + 20) 82 #define SIGRT_20_PORTABLE (SIGRTMIN_PORTABLE + 20) 83 #define SIGRT_21_PORTABLE (SIGRTMIN_PORTABLE + 21) 84 #define SIGRT_22_PORTABLE (SIGRTMIN_PORTABLE + 22) 85 #define SIGRT_23_PORTABLE (SIGRTMIN_PORTABLE + 23) 86 #define SIGRT_24_PORTABLE (SIGRTMIN_PORTABLE + 24) 87 #define SIGRT_25_PORTABLE (SIGRTMIN_PORTABLE + 25) 88 #define SIGRT_25_PORTABLE (SIGRTMIN_PORTABLE + 25) 89 #define SIGRT_26_PORTABLE (SIGRTMIN_PORTABLE + 26) 90 #define SIGRT_27_PORTABLE (SIGRTMIN_PORTABLE + 27) 91 #define SIGRT_28_PORTABLE (SIGRTMIN_PORTABLE + 28) 92 #define SIGRT_29_PORTABLE (SIGRTMIN_PORTABLE + 29) 93 #define SIGRT_30_PORTABLE (SIGRTMIN_PORTABLE + 30) 94 #define SIGRT_31_PORTABLE (SIGRTMIN_PORTABLE + 31) 95 #define SIGRT_32_PORTABLE (SIGRTMIN_PORTABLE + 32) 96 97 #define SIGRTMAX_PORTABLE NSIG_PORTABLE 98 99 /* 100 * Define MIPS/Native Real Time Signal Names for debugging. 101 * NOTE: 102 * Currently only defining the 32 RT signals that the 103 * lib-portable application can interact with. MIPS has 104 * an additional 63 signals. 105 */ 106 #define SIGRT_1 (SIGRTMIN + 1) 107 #define SIGRT_2 (SIGRTMIN + 2) 108 #define SIGRT_3 (SIGRTMIN + 3) 109 #define SIGRT_4 (SIGRTMIN + 4) 110 #define SIGRT_5 (SIGRTMIN + 5) 111 #define SIGRT_5 (SIGRTMIN + 5) 112 #define SIGRT_6 (SIGRTMIN + 6) 113 #define SIGRT_7 (SIGRTMIN + 7) 114 #define SIGRT_8 (SIGRTMIN + 8) 115 #define SIGRT_9 (SIGRTMIN + 9) 116 #define SIGRT_10 (SIGRTMIN + 10) 117 #define SIGRT_11 (SIGRTMIN + 11) 118 #define SIGRT_12 (SIGRTMIN + 12) 119 #define SIGRT_13 (SIGRTMIN + 13) 120 #define SIGRT_14 (SIGRTMIN + 14) 121 #define SIGRT_15 (SIGRTMIN + 15) 122 #define SIGRT_15 (SIGRTMIN + 15) 123 #define SIGRT_16 (SIGRTMIN + 16) 124 #define SIGRT_17 (SIGRTMIN + 17) 125 #define SIGRT_18 (SIGRTMIN + 18) 126 #define SIGRT_19 (SIGRTMIN + 19) 127 #define SIGRT_20 (SIGRTMIN + 20) 128 #define SIGRT_20 (SIGRTMIN + 20) 129 #define SIGRT_21 (SIGRTMIN + 21) 130 #define SIGRT_22 (SIGRTMIN + 22) 131 #define SIGRT_23 (SIGRTMIN + 23) 132 #define SIGRT_24 (SIGRTMIN + 24) 133 #define SIGRT_25 (SIGRTMIN + 25) 134 #define SIGRT_25 (SIGRTMIN + 25) 135 #define SIGRT_26 (SIGRTMIN + 26) 136 #define SIGRT_27 (SIGRTMIN + 27) 137 #define SIGRT_28 (SIGRTMIN + 28) 138 #define SIGRT_29 (SIGRTMIN + 29) 139 #define SIGRT_30 (SIGRTMIN + 30) 140 #define SIGRT_31 (SIGRTMIN + 31) 141 #define SIGRT_32 (SIGRTMIN + 32) 142 /* 143 * NOTE: Native signals SIGRT_33 ... SIGRTMAX 144 * can't be used by a lib-portable application. 145 */ 146 147 #define SA_NOCLDSTOP_PORTABLE 0x00000001 148 #define SA_NOCLDWAIT_PORTABLE 0x00000002 149 #define SA_SIGINFO_PORTABLE 0x00000004 150 #define SA_THIRTYTWO_PORTABLE 0x02000000 151 #define SA_RESTORER_PORTABLE 0x04000000 152 #define SA_ONSTACK_PORTABLE 0x08000000 153 #define SA_RESTART_PORTABLE 0x10000000 154 #define SA_NODEFER_PORTABLE 0x40000000 155 #define SA_RESETHAND_PORTABLE 0x80000000 156 157 #define SA_NOMASK_PORTSBLE SA_NODEFER_PORTABLE 158 #define SA_ONESHOT_PORTABLE SA_RESETHAND_PORABLE 159 160 161 #include <asm-generic/signal_portable.h> 162 163 typedef __signalfn_t __user *__sighandler_portable_t; 164 typedef void (*__sigaction_handler_portable_t)(int, struct siginfo *, void *); 165 166 struct sigaction_portable { 167 union { 168 __sighandler_portable_t _sa_handler; 169 __sigaction_handler_portable_t _sa_sigaction; 170 } _u; 171 sigset_portable_t sa_mask; 172 unsigned long sa_flags; 173 void (*sa_restorer)(void); 174 }; 175 176 #define sa_handler_portable _u._sa_handler 177 #define sa_sigaction_portable _u._sa_sigaction 178 179 typedef struct sigaltstack_portable { 180 void __user *ss_sp; 181 int ss_flags; 182 size_t ss_size; 183 } portable_stack_t; 184 185 #endif 186