From 700cc5ab9004a562c4541a32c42ba78ac3643de6 Mon Sep 17 00:00:00 2001 From: yangyalei Date: Mon, 26 Jun 2023 11:12:05 +0800 Subject: [PATCH] single: add SS_ONSTACK and SS_DISABLE define MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix ltp_sigaltstack_6_1 testcase comile error: iltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/6-1.c:41:28: \ error: ‘SS_ONSTACK’ undeclared (first use in this function); did you mean ‘SA_ONSTACK’? ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/8-1.c:41:28: \ error: ‘SS_DISABLE’ undeclared (first use in this function Signed-off-by: yangyalei --- include/signal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/signal.h b/include/signal.h index ccaa198805..5f8421aef3 100644 --- a/include/signal.h +++ b/include/signal.h @@ -225,6 +225,11 @@ #define MINSIGSTKSZ CONFIG_PTHREAD_STACK_MIN /* Smallest signal stack size */ #define SIGSTKSZ CONFIG_PTHREAD_STACK_DEFAULT /* Default signal stack size */ +/* define signal handlers stack on an alternate stack or the current thread */ + +#define SS_ONSTACK 1 +#define SS_DISABLE 2 + /* Special values of sa_handler used by sigaction and sigset. They are all * treated like NULL for now. This is okay for SIG_DFL and SIG_IGN because * in NuttX, the default action for all signals is to ignore them.