]> git.hungrycats.org Git - linux/commitdiff
[PATCH] siginfo.si_band is long
authorAndrew Morton <akpm@osdl.org>
Thu, 1 Apr 2004 05:51:01 +0000 (21:51 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 1 Apr 2004 05:51:01 +0000 (21:51 -0800)
From: Marcus Meissner <meissner@suse.de>

After discussion on the glibc list the result was that=20 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.

include/asm-generic/siginfo.h
include/asm-x86_64/siginfo.h

index 356dd00c15e4863417e0e8b25667cd1b3e7a15fa..3550227a96737e31787a16898f3fc59e3875ec43 100644 (file)
@@ -27,7 +27,7 @@ typedef union sigval {
 #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
index 74fcd6437c8822bf00bd5b27413685016b02a2d8..7bc15985f124e55f36e8e46c2715734146e7a6ad 100644 (file)
@@ -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>