git: 813072296261 - stable/14 - posix: POSIX-1.2008 moved SA_* from XSI to base standard
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Mar 2025 17:52:28 UTC
The branch stable/14 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=8130722962610736ea41911a5e24a17bf1bc444e
commit 8130722962610736ea41911a5e24a17bf1bc444e
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-10 15:18:43 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-03-14 17:51:03 +0000
posix: POSIX-1.2008 moved SA_* from XSI to base standard
Starting with POSIX-1.2008, "The SA_RESETHAND, SA_RESTART, SA_SIGINFO,
SA_NOCLDWAIT, and SA_NODEFER constants are moved from the XSI option to
the Base." Make them so visible.
PR: 275328
Sponsored by: Netflix
(cherry picked from commit 06af7bd12a4a654f5c5e8da41cf329eee3aa61f6)
---
sys/sys/signal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 6a519db54893..2aad8ef3a479 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -373,7 +373,7 @@ struct sigaction {
#define SA_NOCLDSTOP 0x0008 /* do not generate SIGCHLD on child stop */
#endif /* __POSIX_VISIBLE || __XSI_VISIBLE */
-#if __XSI_VISIBLE
+#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
#define SA_ONSTACK 0x0001 /* take signal on signal stack */
#define SA_RESTART 0x0002 /* restart system call on signal return */
#define SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */