public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: missing bit from signal patches
Date: Thu, 30 May 2002 21:57:58 +0200	[thread overview]
Message-ID: <3CF68446.644850F8@linux-m68k.org> (raw)
In-Reply-To: <20020530220828.3c3192cd.sfr@canb.auug.org.au> <Pine.LNX.4.21.0205301442410.17583-100000@serv> <20020530232636.09d7b7eb.sfr@canb.auug.org.au>

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

  parent reply	other threads:[~2002-05-30 19:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-30  0:18 [PATCH] missing bit from signal patches Stephen Rothwell
2002-05-30  8:04 ` Roman Zippel
2002-05-30 12:08   ` Stephen Rothwell
2002-05-30 12:46     ` Roman Zippel
2002-05-30 13:26       ` Stephen Rothwell
2002-05-30 14:16         ` Peter Wächtler
2002-05-30 19:57         ` Roman Zippel [this message]
2002-05-31  0:24           ` Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CF68446.644850F8@linux-m68k.org \
    --to=zippel@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox