Fix for NSIGCHLD in <asm-*/siginfo.h>
Andreas Jaeger
aj en suse.de
Dom Ene 23 23:21:10 CST 2000
The kernel doesn't define a value for NSIGCHLD on most platforms:
gromit:/usr/src/linux-2.3.41-pre2/include:[1]$ grep NSIGCHLD asm-*/siginfo.h
asm-alpha/siginfo.h:#define NSIGCHLD
asm-arm/siginfo.h:#define NSIGCHLD
asm-i386/siginfo.h:#define NSIGCHLD
asm-m68k/siginfo.h:#define NSIGCHLD 6
asm-mips/siginfo.h:#define NSIGCHLD
asm-ppc/siginfo.h:#define NSIGCHLD
asm-sh/siginfo.h:#define NSIGCHLD
asm-sparc64/siginfo.h:#define NSIGCHLD
asm-sparc/siginfo.h:#define NSIGCHLD
I'm appending a patch against 2.3.41pre2.
Andreas
Here's an entry for CREDITS:
N: Andreas Jaeger
E: aj en suse.de
D: Various smaller kernel fixes
D: glibc developer
S: Gottfried-Kinkel-Str. 18
S: D 67659 Kaiserslautern
S: Germany
and here the patch:
diff -ur linux-2.3.41-pre2.orig/include/asm/siginfo.h linux-2.3.41-pre2/include/asm/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm/siginfo.h Sun Jan 23 19:26:45 2000
+++ linux-2.3.41-pre2/include/asm/siginfo.h Sun Jan 23 22:11:03 2000
@@ -149,7 +149,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-alpha/siginfo.h linux-2.3.41-pre2/include/asm-alpha/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-alpha/siginfo.h Sat May 29 13:21:04 1999
+++ linux-2.3.41-pre2/include/asm-alpha/siginfo.h Sun Jan 23 22:10:39 2000
@@ -149,7 +149,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm-alpha: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-arm/siginfo.h linux-2.3.41-pre2/include/asm-arm/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-arm/siginfo.h Sun Jan 23 19:26:45 2000
+++ linux-2.3.41-pre2/include/asm-arm/siginfo.h Sun Jan 23 22:10:53 2000
@@ -149,7 +149,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm-arm: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-i386/siginfo.h linux-2.3.41-pre2/include/asm-i386/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-i386/siginfo.h Sun Jan 23 19:26:45 2000
+++ linux-2.3.41-pre2/include/asm-i386/siginfo.h Sun Jan 23 22:11:03 2000
@@ -149,7 +149,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm-i386: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-mips/siginfo.h linux-2.3.41-pre2/include/asm-mips/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-mips/siginfo.h Sat May 29 13:21:05 1999
+++ linux-2.3.41-pre2/include/asm-mips/siginfo.h Sun Jan 23 22:11:19 2000
@@ -157,7 +157,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm-mips: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-ppc/siginfo.h linux-2.3.41-pre2/include/asm-ppc/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-ppc/siginfo.h Sat May 29 13:21:05 1999
+++ linux-2.3.41-pre2/include/asm-ppc/siginfo.h Sun Jan 23 22:11:29 2000
@@ -149,7 +149,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm-ppc: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-sparc/siginfo.h linux-2.3.41-pre2/include/asm-sparc/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-sparc/siginfo.h Sun Jan 23 19:26:45 2000
+++ linux-2.3.41-pre2/include/asm-sparc/siginfo.h Sun Jan 23 22:11:51 2000
@@ -159,7 +159,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
Only in linux-2.3.41-pre2/include/asm-sparc: siginfo.h.~1~
diff -ur linux-2.3.41-pre2.orig/include/asm-sparc64/siginfo.h linux-2.3.41-pre2/include/asm-sparc64/siginfo.h
--- linux-2.3.41-pre2.orig/include/asm-sparc64/siginfo.h Sun Jan 23 19:26:45 2000
+++ linux-2.3.41-pre2/include/asm-sparc64/siginfo.h Sun Jan 23 22:11:39 2000
@@ -219,7 +219,7 @@
#define CLD_TRAPPED 4 /* traced child has trapped */
#define CLD_STOPPED 5 /* child has stopped */
#define CLD_CONTINUED 6 /* stopped child has continued */
-#define NSIGCHLD
+#define NSIGCHLD 6
/*
* SIGPOLL si_codes
--
Andreas Jaeger
SuSE Labs aj en suse.de
private aj en arthur.rhein-neckar.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda