Messages in this thread |  | | Date | Thu, 30 May 2002 21:57:58 +0200 | From | Roman Zippel <> | Subject | Re: missing bit from signal patches |
| |
Hi,
Stephen Rothwell wrote:
> Try this ...
This almost works. :)
> diff -ruN 2.5.19/include/asm-m68k/siginfo.h 2.5.19-si.4/include/asm-m68k/siginfo.h > --- 2.5.19/include/asm-m68k/siginfo.h Thu May 30 09:44:38 2002 > +++ 2.5.19-si.4/include/asm-m68k/siginfo.h Thu May 30 23:17:10 2002 > @@ -2,6 +2,7 @@ > #define _M68K_SIGINFO_H > > #define HAVE_ARCH_SIGINFO_T > +#define HAVE_ARCH_COPY_SIGINFO > > #include <asm-generic/siginfo.h> > > @@ -68,6 +69,18 @@ > #define si_uid16 _sifields._kill._uid > #else > #define si_uid _sifields._kill._uid > + > +#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 /* __KERNEL__ */ > > #endif
The function is in the #else part of #ifdef __KERNEL__.
bye, Roman - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |