1 #ifndef _M68K_SIGINFO_H
2 #define _M68K_SIGINFO_H
5 #define HAVE_ARCH_SIGINFO_T
6 #define HAVE_ARCH_COPY_SIGINFO
9 #include <asm-generic/siginfo.h>
13 typedef struct siginfo
{
19 int _pad
[SI_PAD_SIZE
];
23 __kernel_pid_t _pid
; /* sender's pid */
24 __kernel_uid_t _uid
; /* backwards compatibility */
25 __kernel_uid32_t _uid32
; /* sender's uid */
30 timer_t _tid
; /* timer id */
31 int _overrun
; /* overrun count */
32 char _pad
[sizeof( __ARCH_SI_UID_T
) - sizeof(int)];
33 sigval_t _sigval
; /* same as below */
34 int _sys_private
; /* not to be passed to user */
37 /* POSIX.1b signals */
39 __kernel_pid_t _pid
; /* sender's pid */
40 __kernel_uid_t _uid
; /* backwards compatibility */
42 __kernel_uid32_t _uid32
; /* sender's uid */
47 __kernel_pid_t _pid
; /* which child */
48 __kernel_uid_t _uid
; /* backwards compatibility */
49 int _status
; /* exit code */
52 __kernel_uid32_t _uid32
; /* sender's uid */
55 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
57 void *_addr
; /* faulting insn/memory ref. */
62 int _band
; /* POLL_IN, POLL_OUT, POLL_MSG */
68 #define UID16_SIGINFO_COMPAT_NEEDED
71 * How these fields are to be accessed.
75 #define si_uid _sifields._kill._uid32
76 #define si_uid16 _sifields._kill._uid
78 #define si_uid _sifields._kill._uid
83 #include <linux/string.h>
85 static inline void copy_siginfo(struct siginfo
*to
, struct siginfo
*from
)
87 if (from
->si_code
< 0)
88 memcpy(to
, from
, sizeof(*to
));
90 /* _sigchld is currently the largest know union member */
91 memcpy(to
, from
, 3*sizeof(int) + sizeof(from
->_sifields
._sigchld
));
94 #endif /* __KERNEL__ */
95 #endif /* !__uClinux__ */