summaryrefslogtreecommitdiff
path: root/include/signal.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-21 13:41:58 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-21 13:41:58 -0500
commit65b98213e4a12997a519e34695250d9f3a4d6bc7 (patch)
tree0394b6b286f0b62882d54272d30926df676d4a1e /include/signal.h
parent57a0b82441e8d03a93965e2a373588721374ed78 (diff)
downloadmusl-65b98213e4a12997a519e34695250d9f3a4d6bc7.tar.gz
musl-65b98213e4a12997a519e34695250d9f3a4d6bc7.tar.bz2
musl-65b98213e4a12997a519e34695250d9f3a4d6bc7.tar.xz
musl-65b98213e4a12997a519e34695250d9f3a4d6bc7.zip
add back NSIG, removed from powerpc in last commit, but for all archs
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.
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/signal.h b/include/signal.h
index 1014440d..bef8ae04 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -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>