lkml.org 
[lkml]   [2004]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: siginfo -> si_band is long
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.193 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site