1 #ifndef _SPARC64_SIGINFO_H
2 #define _SPARC64_SIGINFO_H
4 #define SI_PAD_SIZE32 ((SI_MAX_SIZE/sizeof(int)) - 3)
6 #define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE/sizeof(int)) - 4)
7 #define SIGEV_PAD_SIZE32 ((SIGEV_MAX_SIZE/sizeof(int)) - 3)
9 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
10 #define __ARCH_SI_TRAPNO
11 #define __ARCH_SI_BAND_T int
13 #include <asm-generic/siginfo.h>
17 #include <linux/compat.h>
19 typedef union sigval32 {
24 typedef struct siginfo32 {
30 int _pad[SI_PAD_SIZE32];
34 compat_pid_t _pid; /* sender's pid */
35 unsigned int _uid; /* sender's uid */
40 timer_t _tid; /* timer id */
41 int _overrun; /* overrun count */
42 sigval_t32 _sigval; /* same as below */
43 int _sys_private; /* not to be passed to user */
46 /* POSIX.1b signals */
48 compat_pid_t _pid; /* sender's pid */
49 unsigned int _uid; /* sender's uid */
55 compat_pid_t _pid; /* which child */
56 unsigned int _uid; /* sender's uid */
57 int _status; /* exit code */
58 compat_clock_t _utime;
59 compat_clock_t _stime;
62 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGEMT */
64 u32 _addr; /* faulting insn/memory ref. */
70 int _band; /* POLL_IN, POLL_OUT, POLL_MSG */
76 #endif /* __KERNEL__ */
78 #define SI_NOINFO 32767 /* no information in siginfo_t */
83 #define EMT_TAGOVF (__SI_FAULT|1) /* tag overflow */
88 typedef struct sigevent32 {
89 sigval_t32 sigev_value;
93 int _pad[SIGEV_PAD_SIZE32];
97 u32 _attribute; /* really pthread_attr_t */
102 extern int copy_siginfo_to_user32(siginfo_t32 *to, siginfo_t *from);
104 #endif /* __KERNEL__ */