SIGNAL: Move generic copy_siginfo() to signal.h
[linux-2.6-block.git] / include / asm-generic / siginfo.h
index 3d1a3af5cf595ccc4e2c9fc5f0060edca1d96272..a2508a8f9a9ce266677a3176d74d56ee10ae5129 100644 (file)
 struct siginfo;
 void do_schedule_next_timer(struct siginfo *info);
 
-#ifndef HAVE_ARCH_COPY_SIGINFO
-
-#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, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld));
-}
-
-#endif
-
 extern int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from);
 
 #endif