public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: siginfo -> si_band is long
@ 2004-03-24 13:57 Marcus Meissner
  2004-03-24 21:43 ` Lars Marowsky-Bree
  0 siblings, 1 reply; 2+ messages in thread
From: Marcus Meissner @ 2004-03-24 13:57 UTC (permalink / raw)
  To: linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: siginfo -> si_band is long
  2004-03-24 13:57 PATCH: siginfo -> si_band is long Marcus Meissner
@ 2004-03-24 21:43 ` Lars Marowsky-Bree
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Marowsky-Bree @ 2004-03-24 21:43 UTC (permalink / raw)
  To: Marcus Meissner, linux-kernel; +Cc: Andrew Morton

On 2004-03-24T14:57:37,
   Marcus Meissner <meissner@suse.de> said:

Hi Andrew, the patch looks good to me (I originally stumbled across this
when debugging an application trying to use SIGIO, which is currently
broken on ppc64).

Could you please pick it up?

s390x, sparc64 might also be affected, btw.

Why are all these archs not using the asm-generic/siginfo.h anyway?
*sigh*. Oh well.

> 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


Sincerely,
    Lars Marowsky-Brée <lmb@suse.de>

-- 
High Availability & Clustering	      \ ever tried. ever failed. no matter.
SUSE Labs			      | try again. fail again. fail better.
Research & Development, SUSE LINUX AG \ 	-- Samuel Beckett


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-24 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-24 13:57 PATCH: siginfo -> si_band is long Marcus Meissner
2004-03-24 21:43 ` Lars Marowsky-Bree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox