blob: 6f2e2dd0f28fddc5fe73a0ea3fbaec4f7021cccd [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Based on <asm-i386/siginfo.h>.
3 *
4 * Modified 1998-2002
5 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
6 */
David Howells43e40f22012-10-09 09:47:00 +01007#ifndef _ASM_IA64_SIGINFO_H
8#define _ASM_IA64_SIGINFO_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <linux/string.h>
David Howells43e40f22012-10-09 09:47:00 +010011#include <uapi/asm/siginfo.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13static inline void
14copy_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
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif /* _ASM_IA64_SIGINFO_H */