aboutsummaryrefslogtreecommitdiff
path: root/libphobos
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-04-07 11:38:28 -0700
committerIan Lance Taylor <iant@golang.org>2020-04-07 11:38:28 -0700
commitcaf99f28b0311c3ffb368819218e7ce4d245627e (patch)
tree7e200c42bded18d4077ae846817e390ae31735e4 /libphobos
parent42fd3e04ccbfbc47c1fddb15d384814637df0636 (diff)
parent50c7853216e8511971c55b51d7fe29173db4749b (diff)
downloadgcc-caf99f28b0311c3ffb368819218e7ce4d245627e.zip
gcc-caf99f28b0311c3ffb368819218e7ce4d245627e.tar.gz
gcc-caf99f28b0311c3ffb368819218e7ce4d245627e.tar.bz2
Merge from trunk revision 50c7853216e8511971c55b51d7fe29173db4749b
Diffstat (limited to 'libphobos')
-rw-r--r--libphobos/ChangeLog5
-rw-r--r--libphobos/libdruntime/core/sys/posix/signal.d47
2 files changed, 42 insertions, 10 deletions
diff --git a/libphobos/ChangeLog b/libphobos/ChangeLog
index d3edfd3..3791d4a 100644
--- a/libphobos/ChangeLog
+++ b/libphobos/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-07 Stefan Liebler <stli@linux.ibm.com>
+
+ * libdruntime/core/sys/posix/signal.d:
+ Add struct sigaction_t for SystemZ.
+
2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/92792
diff --git a/libphobos/libdruntime/core/sys/posix/signal.d b/libphobos/libdruntime/core/sys/posix/signal.d
index ed3985e..5abcdac 100644
--- a/libphobos/libdruntime/core/sys/posix/signal.d
+++ b/libphobos/libdruntime/core/sys/posix/signal.d
@@ -575,24 +575,51 @@ else
version (CRuntime_Glibc)
{
- struct sigaction_t
+ version (SystemZ)
{
- static if ( true /* __USE_POSIX199309 */ )
+ struct sigaction_t
{
- union
+ static if ( true /* __USE_POSIX199309 */ )
+ {
+ union
+ {
+ sigfn_t sa_handler;
+ sigactfn_t sa_sigaction;
+ }
+ }
+ else
{
sigfn_t sa_handler;
- sigactfn_t sa_sigaction;
}
+ int __glibc_reserved0;
+ int sa_flags;
+
+ void function() sa_restorer;
+
+ sigset_t sa_mask;
}
- else
+ }
+ else
+ {
+ struct sigaction_t
{
- sigfn_t sa_handler;
- }
- sigset_t sa_mask;
- int sa_flags;
+ static if ( true /* __USE_POSIX199309 */ )
+ {
+ union
+ {
+ sigfn_t sa_handler;
+ sigactfn_t sa_sigaction;
+ }
+ }
+ else
+ {
+ sigfn_t sa_handler;
+ }
+ sigset_t sa_mask;
+ int sa_flags;
- void function() sa_restorer;
+ void function() sa_restorer;
+ }
}
}
else version (CRuntime_Musl)