public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcus Meissner <meissner@suse.de>
To: linux-kernel@vger.kernel.org
Subject: PATCH: siginfo -> si_band is long
Date: Wed, 24 Mar 2004 14:57:37 +0100	[thread overview]
Message-ID: <20040324135737.GB9355@suse.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]

Hi,

After discussion on the glibc list the result was that 
si_band is "long int" according to POSIX:

	http://www.opengroup.org/onlinepubs/007904975/basedefs/signal.h.html

Ulrich Drepper refused a patch to fix glibc due to this reason:
	http://sources.redhat.com/ml/libc-alpha/2004-03/msg00254.html

so here is the patch to fix it in the kernel.

ppc64 and s390x were broken before and are fixed by this patch too.

Please apply.

Ciao, Marcus

--- linux-2.6.4/include/asm-generic/siginfo.h.xx	2004-03-24 14:44:23.000000000 +0100
+++ linux-2.6.4/include/asm-generic/siginfo.h	2004-03-24 14:44:36.000000000 +0100
@@ -27,7 +27,7 @@
 #endif
 
 #ifndef __ARCH_SI_BAND_T
-#define __ARCH_SI_BAND_T int
+#define __ARCH_SI_BAND_T long int
 #endif
 
 #ifndef HAVE_ARCH_SIGINFO_T
--- linux-2.6.4/include/asm-x86_64/siginfo.h.xx	2004-03-24 14:45:26.000000000 +0100
+++ linux-2.6.4/include/asm-x86_64/siginfo.h	2004-03-24 14:45:34.000000000 +0100
@@ -3,8 +3,6 @@
 
 #define __ARCH_SI_PREAMBLE_SIZE	(4 * sizeof(int))
 
-#define __ARCH_SI_BAND_T long
-
 #define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE/sizeof(int)) - 4)
 
 #include <asm-generic/siginfo.h>

Ciao, Marcus

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-03-24 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-24 13:57 Marcus Meissner [this message]
2004-03-24 21:43 ` PATCH: siginfo -> si_band is long Lars Marowsky-Bree

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=20040324135737.GB9355@suse.de \
    --to=meissner@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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