130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef __ASM_GENERIC_SIGNAL_DEFS_H 230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define __ASM_GENERIC_SIGNAL_DEFS_H 330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng 430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#include <linux/compiler.h> 530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng 630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef SIG_BLOCK 730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SIG_BLOCK 0 /* for blocking signals */ 830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif 930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef SIG_UNBLOCK 1030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SIG_UNBLOCK 1 /* for unblocking signals */ 1130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif 1230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef SIG_SETMASK 1330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SIG_SETMASK 2 /* for setting the signal mask */ 1430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif 1530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng 1630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef __ASSEMBLY__ 1730692c65c4174412c90e79489e98ab85c1a7412fBen Chengtypedef void __signalfn_t(int); 1830692c65c4174412c90e79489e98ab85c1a7412fBen Chengtypedef __signalfn_t __user *__sighandler_t; 1930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng 2030692c65c4174412c90e79489e98ab85c1a7412fBen Chengtypedef void __restorefn_t(void); 2130692c65c4174412c90e79489e98ab85c1a7412fBen Chengtypedef __restorefn_t __user *__sigrestore_t; 2230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng 2330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */ 2430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */ 2530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */ 2630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif 2730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng 2830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif /* __ASM_GENERIC_SIGNAL_DEFS_H */ 29