Home | History | Annotate | Download | only in asm-generic
      1 #ifndef __ASM_GENERIC_SIGNAL_H
      2 #define __ASM_GENERIC_SIGNAL_H
      3 
      4 
      5 #ifndef SIG_BLOCK
      6 #define SIG_BLOCK          0	/* for blocking signals */
      7 #endif
      8 #ifndef SIG_UNBLOCK
      9 #define SIG_UNBLOCK        1	/* for unblocking signals */
     10 #endif
     11 #ifndef SIG_SETMASK
     12 #define SIG_SETMASK        2	/* for setting the signal mask */
     13 #endif
     14 
     15 #ifndef __ASSEMBLY__
     16 typedef void __signalfn_t(int);
     17 typedef __signalfn_t *__sighandler_t;
     18 
     19 typedef void __restorefn_t(void);
     20 typedef __restorefn_t *__sigrestore_t;
     21 
     22 #define SIG_DFL	( (__sighandler_t)0)	/* default signal handling */
     23 #define SIG_IGN	( (__sighandler_t)1)	/* ignore signal */
     24 #define SIG_ERR	( (__sighandler_t)-1)	/* error return from signal */
     25 #endif
     26 
     27 #endif /* __ASM_GENERIC_SIGNAL_H */
     28