]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/ia64/include/asm/siginfo.h
Merge tag 'leds-for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewsk...
[mirror_ubuntu-artful-kernel.git] / arch / ia64 / include / asm / siginfo.h
1 /*
2 * Based on <asm-i386/siginfo.h>.
3 *
4 * Modified 1998-2002
5 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
6 */
7 #ifndef _ASM_IA64_SIGINFO_H
8 #define _ASM_IA64_SIGINFO_H
9
10 #include <linux/string.h>
11 #include <uapi/asm/siginfo.h>
12
13 static inline void
14 copy_siginfo (siginfo_t *to, siginfo_t *from)
15 {
16 if (from->si_code < 0)
17 memcpy(to, from, sizeof(siginfo_t));
18 else
19 /* _sigchld is currently the largest know union member */
20 memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld));
21 }
22
23 #endif /* _ASM_IA64_SIGINFO_H */