add back NSIG, removed from powerpc in last commit, but for all archs
authorRich Felker <dalias@aerifal.cx>
Wed, 21 Nov 2012 18:41:58 +0000 (13:41 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 21 Nov 2012 18:41:58 +0000 (13:41 -0500)
unlike the previous definition, NSIG/_NSIG is supposed to be one more
than the highest signal number. adding this will allow simplifying
libc-internal code that makes signal-related syscalls, which can be
done as a later step. some apps might use it too; while this usage is
questionable, it's at least not insane.

arch/arm/bits/signal.h
arch/i386/bits/signal.h
arch/microblaze/bits/signal.h
arch/mips/bits/signal.h
arch/powerpc/bits/signal.h
arch/x86_64/bits/signal.h
include/signal.h

index 328388d..2f83cb9 100644 (file)
@@ -71,3 +71,5 @@ struct sigcontext
 #define SIGPWR    30
 #define SIGSYS    31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 65
index ab9a92c..f899663 100644 (file)
@@ -80,3 +80,5 @@ struct sigcontext {
 #define SIGPWR    30
 #define SIGSYS    31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 65
index 0358245..ed90039 100644 (file)
@@ -73,3 +73,5 @@ struct sigcontext
 #define SIGPWR    30
 #define SIGSYS    31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 65
index f51c29b..603aed3 100644 (file)
@@ -82,3 +82,5 @@ struct sigcontext
 #define SIGXCPU   30
 #define SIGXFSZ   31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 129
index a5c311b..56b599e 100644 (file)
@@ -114,3 +114,5 @@ typedef struct __ucontext {
 #define SIGPWR    30
 #define SIGSYS    31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 65
index 11375b9..cfe7dbb 100644 (file)
@@ -78,3 +78,5 @@ struct sigcontext {
 #define SIGPWR    30
 #define SIGSYS    31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 65
index 1014440..bef8ae0 100644 (file)
@@ -217,6 +217,7 @@ void (*bsd_signal(int, void (*)(int)))(int);
 int sigisemptyset(const sigset_t *);
 #define SA_NOMASK SA_NODEFER
 #define SA_ONESHOT SA_RESETHAND
+#define NSIG _NSIG
 #endif
 
 #include <bits/signal.h>