1*49cdfc7eSAndroid Build Coastguard Worker /* 2*49cdfc7eSAndroid Build Coastguard Worker * Copyright (c) 2009 Cisco Systems, Inc. All Rights Reserved. 3*49cdfc7eSAndroid Build Coastguard Worker * Copyright (c) 2009 FUJITSU LIMITED. All Rights Reserved. 4*49cdfc7eSAndroid Build Coastguard Worker * 5*49cdfc7eSAndroid Build Coastguard Worker * This program is free software; you can redistribute it and/or modify it 6*49cdfc7eSAndroid Build Coastguard Worker * under the terms of version 2 of the GNU General Public License as 7*49cdfc7eSAndroid Build Coastguard Worker * published by the Free Software Foundation. 8*49cdfc7eSAndroid Build Coastguard Worker * 9*49cdfc7eSAndroid Build Coastguard Worker * This program is distributed in the hope that it would be useful, but 10*49cdfc7eSAndroid Build Coastguard Worker * WITHOUT ANY WARRANTY; without even the implied warranty of 11*49cdfc7eSAndroid Build Coastguard Worker * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12*49cdfc7eSAndroid Build Coastguard Worker * 13*49cdfc7eSAndroid Build Coastguard Worker * Further, this software is distributed without any warranty that it is 14*49cdfc7eSAndroid Build Coastguard Worker * free of the rightful claim of any third person regarding infringement 15*49cdfc7eSAndroid Build Coastguard Worker * or the like. Any license provided herein, whether implied or 16*49cdfc7eSAndroid Build Coastguard Worker * otherwise, applies only to this software file. Patent licenses, if 17*49cdfc7eSAndroid Build Coastguard Worker * any, provided herein do not apply to combinations of this program with 18*49cdfc7eSAndroid Build Coastguard Worker * other software, or any other product whatsoever. 19*49cdfc7eSAndroid Build Coastguard Worker * 20*49cdfc7eSAndroid Build Coastguard Worker * You should have received a copy of the GNU General Public License along 21*49cdfc7eSAndroid Build Coastguard Worker * with this program; if not, write the Free Software Foundation, Inc., 22*49cdfc7eSAndroid Build Coastguard Worker * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 23*49cdfc7eSAndroid Build Coastguard Worker * 24*49cdfc7eSAndroid Build Coastguard Worker * Author: Liu Bo <[email protected]> 25*49cdfc7eSAndroid Build Coastguard Worker * Author: Ngie Cooper <[email protected]> 26*49cdfc7eSAndroid Build Coastguard Worker * 27*49cdfc7eSAndroid Build Coastguard Worker */ 28*49cdfc7eSAndroid Build Coastguard Worker 29*49cdfc7eSAndroid Build Coastguard Worker #ifndef __LTP_SIGNAL_H 30*49cdfc7eSAndroid Build Coastguard Worker #define __LTP_SIGNAL_H 31*49cdfc7eSAndroid Build Coastguard Worker 32*49cdfc7eSAndroid Build Coastguard Worker #include <errno.h> 33*49cdfc7eSAndroid Build Coastguard Worker #include <signal.h> 34*49cdfc7eSAndroid Build Coastguard Worker #include <stdio.h> 35*49cdfc7eSAndroid Build Coastguard Worker #include "config.h" 36*49cdfc7eSAndroid Build Coastguard Worker 37*49cdfc7eSAndroid Build Coastguard Worker /* 38*49cdfc7eSAndroid Build Coastguard Worker * For all but __mips__: 39*49cdfc7eSAndroid Build Coastguard Worker * 40*49cdfc7eSAndroid Build Coastguard Worker * _COMPAT_NSIG / _COMPAT_NSIG_BPW == 2. 41*49cdfc7eSAndroid Build Coastguard Worker * 42*49cdfc7eSAndroid Build Coastguard Worker * For __mips__: 43*49cdfc7eSAndroid Build Coastguard Worker * 44*49cdfc7eSAndroid Build Coastguard Worker * _COMPAT_NSIG / _COMPAT_NSIG_BPW == 4. 45*49cdfc7eSAndroid Build Coastguard Worker * 46*49cdfc7eSAndroid Build Coastguard Worker * See asm/compat.h under the kernel source for more details. 47*49cdfc7eSAndroid Build Coastguard Worker * 48*49cdfc7eSAndroid Build Coastguard Worker * Multiply that by a fudge factor of 4 and you have your SIGSETSIZE. 49*49cdfc7eSAndroid Build Coastguard Worker */ 50*49cdfc7eSAndroid Build Coastguard Worker #if defined __mips__ 51*49cdfc7eSAndroid Build Coastguard Worker #define SIGSETSIZE 16 52*49cdfc7eSAndroid Build Coastguard Worker #else 53*49cdfc7eSAndroid Build Coastguard Worker #define SIGSETSIZE (_NSIG / 8) 54*49cdfc7eSAndroid Build Coastguard Worker #endif 55*49cdfc7eSAndroid Build Coastguard Worker 56*49cdfc7eSAndroid Build Coastguard Worker #endif 57