Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			770 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			770 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * This file is subject to the terms and conditions of the GNU General Public
 | 
						|
 * License.  See the file "COPYING" in the main directory of this archive
 | 
						|
 * for more details.
 | 
						|
 *
 | 
						|
 * Copyright (C) 1998, 1999, 2001, 2003 Ralf Baechle
 | 
						|
 * Copyright (C) 2000, 2001 Silicon Graphics, Inc.
 | 
						|
 */
 | 
						|
#ifndef _ASM_SIGINFO_H
 | 
						|
#define _ASM_SIGINFO_H
 | 
						|
 | 
						|
#include <uapi/asm/siginfo.h>
 | 
						|
 | 
						|
 | 
						|
/*
 | 
						|
 * Duplicated here because of <asm-generic/siginfo.h> braindamage ...
 | 
						|
 */
 | 
						|
#include <linux/string.h>
 | 
						|
 | 
						|
static inline void copy_siginfo(struct siginfo *to, struct siginfo *from)
 | 
						|
{
 | 
						|
	if (from->si_code < 0)
 | 
						|
		memcpy(to, from, sizeof(*to));
 | 
						|
	else
 | 
						|
		/* _sigchld is currently the largest know union member */
 | 
						|
		memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld));
 | 
						|
}
 | 
						|
 | 
						|
#endif /* _ASM_SIGINFO_H */
 |