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 2b34c61c6ee715175b617f6bf30ec5cacb7cbfbc
Author: guoshichao <guoshic...@xiaomi.com>
AuthorDate: Thu Dec 12 14:35:42 2024 +0800

    signal: add sa_restorer to struct sigaction
    
    Signed-off-by: guoshichao <guoshic...@xiaomi.com>
---
 include/signal.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/signal.h b/include/signal.h
index 865819ee7b..896e67cbc2 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -410,7 +410,11 @@ struct sigaction
   } sa_u;
   sigset_t          sa_mask;
   int               sa_flags;
-  FAR void         *sa_user; /* Passed to siginfo.si_user (non-standard) */
+  union
+  {
+    CODE void (*sa_restorer)(void);
+    FAR void         *sa_user; /* Passed to siginfo.si_user (non-standard) */
+  };
 };
 
 /* Definitions that adjust the non-standard naming */

Reply via email to