https://github.com/torvalds/linux
Raw File
Tip revision: 566cf877a1fcb6d6dc0126b076aad062054c2637 authored by Linus Torvalds on 29 January 2017, 22:25:17 UTC
Linux 4.10-rc6
Tip revision: 566cf87
siginfo.h
/*
 * Based on <asm-i386/siginfo.h>.
 *
 * Modified 1998-2002
 *	David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
 */
#ifndef _ASM_IA64_SIGINFO_H
#define _ASM_IA64_SIGINFO_H

#include <linux/string.h>
#include <uapi/asm/siginfo.h>

static inline void
copy_siginfo (siginfo_t *to, siginfo_t *from)
{
	if (from->si_code < 0)
		memcpy(to, from, sizeof(siginfo_t));
	else
		/* _sigchld is currently the largest know union member */
		memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld));
}

#endif /* _ASM_IA64_SIGINFO_H */
back to top