From 937bb44c45e4a0aef4f988ef6b79104c4fdbe6ef Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Wed, 12 Oct 2022 13:14:48 +0800 Subject: [PATCH] signal: add marco _NSIG Signed-off-by: dongjiuzhu1 --- 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