提交 65b98213 编写于 作者: R Rich Felker

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.
上级 57a0b824
...@@ -71,3 +71,5 @@ struct sigcontext ...@@ -71,3 +71,5 @@ struct sigcontext
#define SIGPWR 30 #define SIGPWR 30
#define SIGSYS 31 #define SIGSYS 31
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define _NSIG 65
...@@ -80,3 +80,5 @@ struct sigcontext { ...@@ -80,3 +80,5 @@ struct sigcontext {
#define SIGPWR 30 #define SIGPWR 30
#define SIGSYS 31 #define SIGSYS 31
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define _NSIG 65
...@@ -73,3 +73,5 @@ struct sigcontext ...@@ -73,3 +73,5 @@ struct sigcontext
#define SIGPWR 30 #define SIGPWR 30
#define SIGSYS 31 #define SIGSYS 31
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define _NSIG 65
...@@ -82,3 +82,5 @@ struct sigcontext ...@@ -82,3 +82,5 @@ struct sigcontext
#define SIGXCPU 30 #define SIGXCPU 30
#define SIGXFSZ 31 #define SIGXFSZ 31
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define _NSIG 129
...@@ -114,3 +114,5 @@ typedef struct __ucontext { ...@@ -114,3 +114,5 @@ typedef struct __ucontext {
#define SIGPWR 30 #define SIGPWR 30
#define SIGSYS 31 #define SIGSYS 31
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define _NSIG 65
...@@ -78,3 +78,5 @@ struct sigcontext { ...@@ -78,3 +78,5 @@ struct sigcontext {
#define SIGPWR 30 #define SIGPWR 30
#define SIGSYS 31 #define SIGSYS 31
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define _NSIG 65
...@@ -217,6 +217,7 @@ void (*bsd_signal(int, void (*)(int)))(int); ...@@ -217,6 +217,7 @@ void (*bsd_signal(int, void (*)(int)))(int);
int sigisemptyset(const sigset_t *); int sigisemptyset(const sigset_t *);
#define SA_NOMASK SA_NODEFER #define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND #define SA_ONESHOT SA_RESETHAND
#define NSIG _NSIG
#endif #endif
#include <bits/signal.h> #include <bits/signal.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册