(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / unix / sysv / linux / mips / kernel_sigaction.h
blobb6f52cc9c9a2be3dd21c8b78b1d6a70053ff50af
1 /* This is the sigaction structure from the Linux 2.1.24 kernel. */
3 #include <sgidefs.h>
5 #define HAVE_SA_RESTORER
7 struct old_kernel_sigaction {
8 unsigned int sa_flags;
9 __sighandler_t k_sa_handler;
10 unsigned long sa_mask;
11 unsigned int __pad0[3]; /* reserved, keep size constant */
13 /* Abi says here follows reserved int[2] */
14 void (*sa_restorer)(void);
15 #if (_MIPS_SZPTR < 64)
17 * For 32 bit code we have to pad struct sigaction to get
18 * constant size for the ABI
20 int pad1[1]; /* reserved */
21 #endif
25 #define _KERNEL_NSIG 128
26 #define _KERNEL_NSIG_BPW _MIPS_SZLONG
27 #define _KERNEL_NSIG_WORDS (_KERNEL_NSIG / _KERNEL_NSIG_BPW)
29 typedef struct {
30 unsigned long sig[_KERNEL_NSIG_WORDS];
31 } kernel_sigset_t;
33 /* This is the sigaction structure from the Linux 2.1.68 kernel. */
34 struct kernel_sigaction {
35 unsigned int sa_flags;
36 __sighandler_t k_sa_handler;
37 kernel_sigset_t sa_mask;
38 void (*sa_restorer)(void);
39 int s_resv[1]; /* reserved */