2 * Modified 1998-2001, 2003
3 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
5 * Unfortunately, this file is being included by bits/signal.h in
6 * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness.
8 #ifndef _UAPI_ASM_IA64_SIGNAL_H
9 #define _UAPI_ASM_IA64_SIGNAL_H
48 /* signal 31 is no longer "unused", but the SIGUNUSED macro remains for backwards compatibility */
51 /* These should not be considered constants from userland. */
53 #define SIGRTMAX _NSIG
58 * SA_ONSTACK indicates that a registered stack_t will be used.
59 * SA_RESTART flag to get restarting signals (which were the default long ago)
60 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
61 * SA_RESETHAND clears the handler when the signal is delivered.
62 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
63 * SA_NODEFER prevents the current signal from being masked in the handler.
65 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
66 * Unix names RESETHAND and NODEFER respectively.
68 #define SA_NOCLDSTOP 0x00000001
69 #define SA_NOCLDWAIT 0x00000002
70 #define SA_SIGINFO 0x00000004
71 #define SA_ONSTACK 0x08000000
72 #define SA_RESTART 0x10000000
73 #define SA_NODEFER 0x40000000
74 #define SA_RESETHAND 0x80000000
76 #define SA_NOMASK SA_NODEFER
77 #define SA_ONESHOT SA_RESETHAND
79 #define SA_RESTORER 0x04000000
82 * The minimum stack size needs to be fairly large because we want to
83 * be sure that an app compiled for today's CPUs will continue to run
84 * on all future CPU models. The CPU model matters because the signal
85 * frame needs to have space for the complete machine state, including
86 * all physical stacked registers. The number of physical stacked
87 * registers is CPU model dependent, but given that the width of
88 * ar.rsc.loadrs is 14 bits, we can assume that they'll never take up
89 * more than 16KB of space.
93 * This is a stupid typo: the value was _meant_ to be 131072 (0x20000), but I typed it
94 * in wrong. ;-( To preserve backwards compatibility, we leave the kernel at the
95 * incorrect value and fix libc only.
97 # define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */
99 # define MINSIGSTKSZ 131072 /* min. stack size for sigaltstack() */
101 #define SIGSTKSZ 262144 /* default stack size for sigaltstack() */
104 #include <asm-generic/signal-defs.h>
106 # ifndef __ASSEMBLY__
108 # include <linux/types.h>
110 /* Avoid too many header ordering problems. */
113 typedef struct sigaltstack
{
120 # endif /* !__ASSEMBLY__ */
121 #endif /* _UAPI_ASM_IA64_SIGNAL_H */