1 #ifndef _M68K_SIGINFO_H
2 #define _M68K_SIGINFO_H
4 #define HAVE_ARCH_SIGINFO_T
5 #define HAVE_ARCH_COPY_SIGINFO
7 #include <asm-generic/siginfo.h>
9 typedef struct siginfo
{
15 int _pad
[SI_PAD_SIZE
];
19 __kernel_pid_t _pid
; /* sender's pid */
20 __kernel_uid_t _uid
; /* backwards compatibility */
21 __kernel_uid32_t _uid32
; /* sender's uid */
26 timer_t _tid
; /* timer id */
27 int _overrun
; /* overrun count */
28 char _pad
[sizeof( __ARCH_SI_UID_T
) - sizeof(int)];
29 sigval_t _sigval
; /* same as below */
30 int _sys_private
; /* not to be passed to user */
33 /* POSIX.1b signals */
35 __kernel_pid_t _pid
; /* sender's pid */
36 __kernel_uid_t _uid
; /* backwards compatibility */
38 __kernel_uid32_t _uid32
; /* sender's uid */
43 __kernel_pid_t _pid
; /* which child */
44 __kernel_uid_t _uid
; /* backwards compatibility */
45 int _status
; /* exit code */
48 __kernel_uid32_t _uid32
; /* sender's uid */
51 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
53 void *_addr
; /* faulting insn/memory ref. */
58 int _band
; /* POLL_IN, POLL_OUT, POLL_MSG */
64 #define UID16_SIGINFO_COMPAT_NEEDED
67 * How these fields are to be accessed.
71 #define si_uid _sifields._kill._uid32
72 #define si_uid16 _sifields._kill._uid
74 #define si_uid _sifields._kill._uid
79 #include <linux/string.h>
81 static inline void copy_siginfo(struct siginfo
*to
, struct siginfo
*from
)
83 if (from
->si_code
< 0)
84 memcpy(to
, from
, sizeof(*to
));
86 /* _sigchld is currently the largest know union member */
87 memcpy(to
, from
, 3*sizeof(int) + sizeof(from
->_sifields
._sigchld
));
90 #endif /* __KERNEL__ */