This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 937bb44c45e4a0aef4f988ef6b79104c4fdbe6ef
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Wed Oct 12 13:14:48 2022 +0800

    signal: add marco _NSIG
    
    Signed-off-by: dongjiuzhu1 <[email protected]>
---
 include/signal.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/signal.h b/include/signal.h
index ed70c4f177..f33aef2c71 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -46,8 +46,9 @@
 
 /* All signals are "real time" signals */
 
-#define SIGRTMIN        MIN_SIGNO  /* First real time signal */
-#define SIGRTMAX        MAX_SIGNO  /* Last real time signal */
+#define SIGRTMIN        MIN_SIGNO       /* First real time signal */
+#define SIGRTMAX        MAX_SIGNO       /* Last real time signal */
+#define _NSIG           (MAX_SIGNO + 1) /* Biggest signal number + 1 */
 
 /* NuttX does not support all standard signal actions.  NuttX supports what
  * are referred to as "real time" signals.  The default action of all NuttX

Reply via email to