1 #ifndef _UAPI_ASM_PARISC_SIGNAL_H
2 #define _UAPI_ASM_PARISC_SIGNAL_H
16 #define SIGSYS 12 /* Linux doesn't use this */
35 #define SIGLOST 30 /* Linux doesn't use this either */
37 #define SIGRESERVE SIGUNUSED
43 /* These should not be considered constants from userland. */
45 #define SIGRTMAX _NSIG /* it's 44 under HP/UX */
50 * SA_ONSTACK indicates that a registered stack_t will be used.
51 * SA_RESTART flag to get restarting signals (which were the default long ago)
52 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
53 * SA_RESETHAND clears the handler when the signal is delivered.
54 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
55 * SA_NODEFER prevents the current signal from being masked in the handler.
57 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
58 * Unix names RESETHAND and NODEFER respectively.
60 #define SA_ONSTACK 0x00000001
61 #define SA_RESETHAND 0x00000004
62 #define SA_NOCLDSTOP 0x00000008
63 #define SA_SIGINFO 0x00000010
64 #define SA_NODEFER 0x00000020
65 #define SA_RESTART 0x00000040
66 #define SA_NOCLDWAIT 0x00000080
67 #define _SA_SIGGFAULT 0x00000100 /* HPUX */
69 #define SA_NOMASK SA_NODEFER
70 #define SA_ONESHOT SA_RESETHAND
72 #define SA_RESTORER 0x04000000 /* obsolete -- ignored */
74 #define MINSIGSTKSZ 2048
78 #define SIG_BLOCK 0 /* for blocking signals */
79 #define SIG_UNBLOCK 1 /* for unblocking signals */
80 #define SIG_SETMASK 2 /* for setting the signal mask */
82 #define SIG_DFL ((__sighandler_t)0) /* default signal handling */
83 #define SIG_IGN ((__sighandler_t)1) /* ignore signal */
84 #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */
88 # include <linux/types.h>
90 /* Avoid too many header ordering problems. */
93 /* Type of a signal handler. */
95 /* function pointers on 64-bit parisc are pointers to little structs and the
96 * compiler doesn't support code which changes or tests the address of
97 * the function in the little struct. This is really ugly -PB
99 typedef char __user
*__sighandler_t
;
101 typedef void __signalfn_t(int);
102 typedef __signalfn_t __user
*__sighandler_t
;
105 typedef struct sigaltstack
{
111 #endif /* !__ASSEMBLY */
112 #endif /* _UAPI_ASM_PARISC_SIGNAL_H */