2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1998, 1999, 2001, 2003 Ralf Baechle
7 * Copyright (C) 2000, 2001 Silicon Graphics, Inc.
10 #define _ASM_SIGINFO_H
12 #include <uapi/asm/siginfo.h>
16 * Duplicated here because of <asm-generic/siginfo.h> braindamage ...
18 #include <linux/string.h>
20 static inline void copy_siginfo(struct siginfo
*to
, struct siginfo
*from
)
22 if (from
->si_code
< 0)
23 memcpy(to
, from
, sizeof(*to
));
25 /* _sigchld is currently the largest know union member */
26 memcpy(to
, from
, 3*sizeof(int) + sizeof(from
->_sifields
._sigchld
));
29 #endif /* _ASM_SIGINFO_H */