1*70c1674fSDavid Howells #ifndef _UAPI_ASM_PARISC_SIGNAL_H 2*70c1674fSDavid Howells #define _UAPI_ASM_PARISC_SIGNAL_H 3*70c1674fSDavid Howells 4*70c1674fSDavid Howells #define SIGHUP 1 5*70c1674fSDavid Howells #define SIGINT 2 6*70c1674fSDavid Howells #define SIGQUIT 3 7*70c1674fSDavid Howells #define SIGILL 4 8*70c1674fSDavid Howells #define SIGTRAP 5 9*70c1674fSDavid Howells #define SIGABRT 6 10*70c1674fSDavid Howells #define SIGIOT 6 11*70c1674fSDavid Howells #define SIGEMT 7 12*70c1674fSDavid Howells #define SIGFPE 8 13*70c1674fSDavid Howells #define SIGKILL 9 14*70c1674fSDavid Howells #define SIGBUS 10 15*70c1674fSDavid Howells #define SIGSEGV 11 16*70c1674fSDavid Howells #define SIGSYS 12 /* Linux doesn't use this */ 17*70c1674fSDavid Howells #define SIGPIPE 13 18*70c1674fSDavid Howells #define SIGALRM 14 19*70c1674fSDavid Howells #define SIGTERM 15 20*70c1674fSDavid Howells #define SIGUSR1 16 21*70c1674fSDavid Howells #define SIGUSR2 17 22*70c1674fSDavid Howells #define SIGCHLD 18 23*70c1674fSDavid Howells #define SIGPWR 19 24*70c1674fSDavid Howells #define SIGVTALRM 20 25*70c1674fSDavid Howells #define SIGPROF 21 26*70c1674fSDavid Howells #define SIGIO 22 27*70c1674fSDavid Howells #define SIGPOLL SIGIO 28*70c1674fSDavid Howells #define SIGWINCH 23 29*70c1674fSDavid Howells #define SIGSTOP 24 30*70c1674fSDavid Howells #define SIGTSTP 25 31*70c1674fSDavid Howells #define SIGCONT 26 32*70c1674fSDavid Howells #define SIGTTIN 27 33*70c1674fSDavid Howells #define SIGTTOU 28 34*70c1674fSDavid Howells #define SIGURG 29 35*70c1674fSDavid Howells #define SIGLOST 30 /* Linux doesn't use this either */ 36*70c1674fSDavid Howells #define SIGUNUSED 31 37*70c1674fSDavid Howells #define SIGRESERVE SIGUNUSED 38*70c1674fSDavid Howells 39*70c1674fSDavid Howells #define SIGXCPU 33 40*70c1674fSDavid Howells #define SIGXFSZ 34 41*70c1674fSDavid Howells #define SIGSTKFLT 36 42*70c1674fSDavid Howells 43*70c1674fSDavid Howells /* These should not be considered constants from userland. */ 44*70c1674fSDavid Howells #define SIGRTMIN 37 45*70c1674fSDavid Howells #define SIGRTMAX _NSIG /* it's 44 under HP/UX */ 46*70c1674fSDavid Howells 47*70c1674fSDavid Howells /* 48*70c1674fSDavid Howells * SA_FLAGS values: 49*70c1674fSDavid Howells * 50*70c1674fSDavid Howells * SA_ONSTACK indicates that a registered stack_t will be used. 51*70c1674fSDavid Howells * SA_RESTART flag to get restarting signals (which were the default long ago) 52*70c1674fSDavid Howells * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. 53*70c1674fSDavid Howells * SA_RESETHAND clears the handler when the signal is delivered. 54*70c1674fSDavid Howells * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. 55*70c1674fSDavid Howells * SA_NODEFER prevents the current signal from being masked in the handler. 56*70c1674fSDavid Howells * 57*70c1674fSDavid Howells * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single 58*70c1674fSDavid Howells * Unix names RESETHAND and NODEFER respectively. 59*70c1674fSDavid Howells */ 60*70c1674fSDavid Howells #define SA_ONSTACK 0x00000001 61*70c1674fSDavid Howells #define SA_RESETHAND 0x00000004 62*70c1674fSDavid Howells #define SA_NOCLDSTOP 0x00000008 63*70c1674fSDavid Howells #define SA_SIGINFO 0x00000010 64*70c1674fSDavid Howells #define SA_NODEFER 0x00000020 65*70c1674fSDavid Howells #define SA_RESTART 0x00000040 66*70c1674fSDavid Howells #define SA_NOCLDWAIT 0x00000080 67*70c1674fSDavid Howells #define _SA_SIGGFAULT 0x00000100 /* HPUX */ 68*70c1674fSDavid Howells 69*70c1674fSDavid Howells #define SA_NOMASK SA_NODEFER 70*70c1674fSDavid Howells #define SA_ONESHOT SA_RESETHAND 71*70c1674fSDavid Howells 72*70c1674fSDavid Howells #define SA_RESTORER 0x04000000 /* obsolete -- ignored */ 73*70c1674fSDavid Howells 74*70c1674fSDavid Howells /* 75*70c1674fSDavid Howells * sigaltstack controls 76*70c1674fSDavid Howells */ 77*70c1674fSDavid Howells #define SS_ONSTACK 1 78*70c1674fSDavid Howells #define SS_DISABLE 2 79*70c1674fSDavid Howells 80*70c1674fSDavid Howells #define MINSIGSTKSZ 2048 81*70c1674fSDavid Howells #define SIGSTKSZ 8192 82*70c1674fSDavid Howells 83*70c1674fSDavid Howells 84*70c1674fSDavid Howells #define SIG_BLOCK 0 /* for blocking signals */ 85*70c1674fSDavid Howells #define SIG_UNBLOCK 1 /* for unblocking signals */ 86*70c1674fSDavid Howells #define SIG_SETMASK 2 /* for setting the signal mask */ 87*70c1674fSDavid Howells 88*70c1674fSDavid Howells #define SIG_DFL ((__sighandler_t)0) /* default signal handling */ 89*70c1674fSDavid Howells #define SIG_IGN ((__sighandler_t)1) /* ignore signal */ 90*70c1674fSDavid Howells #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ 91*70c1674fSDavid Howells 92*70c1674fSDavid Howells # ifndef __ASSEMBLY__ 93*70c1674fSDavid Howells 94*70c1674fSDavid Howells # include <linux/types.h> 95*70c1674fSDavid Howells 96*70c1674fSDavid Howells /* Avoid too many header ordering problems. */ 97*70c1674fSDavid Howells struct siginfo; 98*70c1674fSDavid Howells 99*70c1674fSDavid Howells /* Type of a signal handler. */ 100*70c1674fSDavid Howells #ifdef CONFIG_64BIT 101*70c1674fSDavid Howells /* function pointers on 64-bit parisc are pointers to little structs and the 102*70c1674fSDavid Howells * compiler doesn't support code which changes or tests the address of 103*70c1674fSDavid Howells * the function in the little struct. This is really ugly -PB 104*70c1674fSDavid Howells */ 105*70c1674fSDavid Howells typedef char __user *__sighandler_t; 106*70c1674fSDavid Howells #else 107*70c1674fSDavid Howells typedef void __signalfn_t(int); 108*70c1674fSDavid Howells typedef __signalfn_t __user *__sighandler_t; 109*70c1674fSDavid Howells #endif 110*70c1674fSDavid Howells 111*70c1674fSDavid Howells typedef struct sigaltstack { 112*70c1674fSDavid Howells void __user *ss_sp; 113*70c1674fSDavid Howells int ss_flags; 114*70c1674fSDavid Howells size_t ss_size; 115*70c1674fSDavid Howells } stack_t; 116*70c1674fSDavid Howells 117*70c1674fSDavid Howells #endif /* !__ASSEMBLY */ 118*70c1674fSDavid Howells #endif /* _UAPI_ASM_PARISC_SIGNAL_H */ 119