Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Expose sigaltstack, stack_t and friends to Posix Issue 5 (20...
details: https://anonhg.NetBSD.org/src/rev/9a9367297ef0
branches: trunk
changeset: 1024758:9a9367297ef0
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 02 20:12:25 2021 +0000
description:
Expose sigaltstack, stack_t and friends to Posix Issue 5 (200809L) References:
https://man7.org/linux/man-pages/man2/sigaltstack.2.html
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html
diffstat:
include/signal.h | 9 ++++++---
sys/sys/signal.h | 16 +++++++++++-----
sys/sys/sigtypes.h | 9 ++++++---
3 files changed, 23 insertions(+), 11 deletions(-)
diffs (106 lines):
diff -r e3b51bd42763 -r 9a9367297ef0 include/signal.h
--- a/include/signal.h Tue Nov 02 11:26:03 2021 +0000
+++ b/include/signal.h Tue Nov 02 20:12:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.58 2021/11/01 05:53:45 thorpej Exp $ */
+/* $NetBSD: signal.h,v 1.59 2021/11/02 20:12:25 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -164,7 +164,8 @@
* X/Open CAE Specification Issue 4 Version 2
*/
#if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
- (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
+ (_XOPEN_SOURCE - 0) >= 500 || (_POSIX_C_SOURCE - 0) >= 200809L || \
+ defined(_NETBSD_SOURCE)
int killpg(pid_t, int);
int siginterrupt(int, int);
int sigstack(const struct sigstack *, struct sigstack *);
@@ -177,7 +178,9 @@
int sigpause(int);
int sigrelse(int);
void (*sigset (int, void (*)(int)))(int);
-#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500 || _NETBSD_SOURCE */
+#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500
+ * || _POSIX_C_SOURCE >= 200809L || _NETBSD_SOURCE
+ */
/*
diff -r e3b51bd42763 -r 9a9367297ef0 sys/sys/signal.h
--- a/sys/sys/signal.h Tue Nov 02 11:26:03 2021 +0000
+++ b/sys/sys/signal.h Tue Nov 02 20:12:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.74 2021/10/27 05:18:51 thorpej Exp $ */
+/* $NetBSD: signal.h,v 1.75 2021/11/02 20:12:26 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -251,7 +251,8 @@
#endif
#if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
- (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
+ (_XOPEN_SOURCE - 0) >= 500 || (_POSIX_C_SOURCE - 0) >= 200809L || \
+ defined(_NETBSD_SOURCE)
/*
* Flags used with stack_t/struct sigaltstack.
*/
@@ -262,10 +263,13 @@
#endif
#define MINSIGSTKSZ 8192 /* minimum allowable stack */
#define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */
-#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500 || _NETBSD_SOURCE */
+#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500
+ * || _POSIX_C_SOURCE >= 200809L || _NETBSD_SOURCE
+ */
#if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
- (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
+ (_XOPEN_SOURCE - 0) >= 500 || (_POSIX_C_SOURCE - 0) >= 200809L || \
+ defined(_NETBSD_SOURCE)
/*
* Structure used in sigstack call.
*/
@@ -273,7 +277,9 @@
void *ss_sp; /* signal stack pointer */
int ss_onstack; /* current status */
};
-#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500 || _NETBSD_SOURCE */
+#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500
+ * || _POSIX_C_SOURCE >= 200809L || _NETBSD_SOURCE
+ */
#if defined(_NETBSD_SOURCE) && !defined(_KERNEL)
/*
diff -r e3b51bd42763 -r 9a9367297ef0 sys/sys/sigtypes.h
--- a/sys/sys/sigtypes.h Tue Nov 02 11:26:03 2021 +0000
+++ b/sys/sys/sigtypes.h Tue Nov 02 20:12:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $ */
+/* $NetBSD: sigtypes.h,v 1.12 2021/11/02 20:12:26 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -104,7 +104,8 @@
} while (/* CONSTCOND */ 0)
#if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
- (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
+ (_XOPEN_SOURCE - 0) >= 500 || (_POSIX_C_SOURCE - 0) >= 200809L || \
+ defined(_NETBSD_SOURCE)
typedef struct
#if defined(_NETBSD_SOURCE)
sigaltstack
@@ -115,7 +116,9 @@
int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */
} stack_t;
-#endif /* _XOPEN_SOURCE_EXTENDED || XOPEN_SOURCE >= 500 || _NETBSD_SOURCE */
+#endif /* _XOPEN_SOURCE_EXTENDED || _XOPEN_SOURCE >= 500
+ * || _POSIX_C_SOURCE >= 200809L || _NETBSD_SOURCE
+ */
#endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || ... */
Home |
Main Index |
Thread Index |
Old Index