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