|
@@ -3,16 +3,13 @@
|
|
|
|
|
|
#include <linux/bug.h>
|
|
#include <linux/bug.h>
|
|
#include <linux/signal_types.h>
|
|
#include <linux/signal_types.h>
|
|
|
|
+#include <linux/string.h>
|
|
|
|
|
|
struct task_struct;
|
|
struct task_struct;
|
|
|
|
|
|
/* for sysctl */
|
|
/* for sysctl */
|
|
extern int print_fatal_signals;
|
|
extern int print_fatal_signals;
|
|
|
|
|
|
-#ifndef HAVE_ARCH_COPY_SIGINFO
|
|
|
|
-
|
|
|
|
-#include <linux/string.h>
|
|
|
|
-
|
|
|
|
static inline void copy_siginfo(struct siginfo *to, struct siginfo *from)
|
|
static inline void copy_siginfo(struct siginfo *to, struct siginfo *from)
|
|
{
|
|
{
|
|
if (from->si_code < 0)
|
|
if (from->si_code < 0)
|
|
@@ -22,8 +19,6 @@ static inline void copy_siginfo(struct siginfo *to, struct siginfo *from)
|
|
memcpy(to, from, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld));
|
|
memcpy(to, from, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld));
|
|
}
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Define some primitives to manipulate sigset_t.
|
|
* Define some primitives to manipulate sigset_t.
|
|
*/
|
|
*/
|