Amend log entry with omitted file.
[jlayton/glibc.git] / sysdeps / unix / sysv / linux / mips / kernel_sigaction.h
1 /* This is the sigaction structure from the Linux 2.1.24 kernel.  */
2
3 #include <sgidefs.h>
4
5 #define HAVE_SA_RESTORER
6
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 */
12
13         /* Abi says here follows reserved int[2] */
14         void            (*sa_restorer)(void);
15 #if (_MIPS_SZPTR < 64)
16         /*
17          * For 32 bit code we have to pad struct sigaction to get
18          * constant size for the ABI
19          */
20         int             pad1[1]; /* reserved */
21 #endif
22 };
23
24
25 #define _KERNEL_NSIG           128
26 #define _KERNEL_NSIG_BPW       _MIPS_SZLONG
27 #define _KERNEL_NSIG_WORDS     (_KERNEL_NSIG / _KERNEL_NSIG_BPW)
28
29 typedef struct {
30         unsigned long sig[_KERNEL_NSIG_WORDS];
31 } kernel_sigset_t;
32
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 */
40 };