aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_linux_amd64.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-09-25 13:38:54 -0700
committerIan Lance Taylor <iant@golang.org>2016-09-26 04:07:31 +0000
commitd15295c6790b70eba0e4a3aa7ddead251aa440da (patch)
tree6867463cd01a28a0566eadbf2cbda73fe1cf82ff /src/runtime/defs_linux_amd64.go
parente6143e17d3e0c3ab8a7bd8357001217eb01dc6c6 (diff)
downloadgo-d15295c6790b70eba0e4a3aa7ddead251aa440da.tar.gz
go-d15295c6790b70eba0e4a3aa7ddead251aa440da.zip
runtime: unify handling of alternate signal stack
Change all Unix systems to use stackt for the alternate signal stack (some were using sigaltstackt). Add OS-specific setSignalstackSP function to handle different types for ss_sp field, and unify all OS-specific signalstack functions into one. Unify handling of alternate signal stack in OS-specific minit and sigtrampgo functions via new functions minitSignalstack and setGsignalStack. Change-Id: Idc316dc69b1dd725717acdf61a1cd8b9f33ed174 Reviewed-on: https://go-review.googlesource.com/29757 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/defs_linux_amd64.go')
-rw-r--r--src/runtime/defs_linux_amd64.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/defs_linux_amd64.go b/src/runtime/defs_linux_amd64.go
index 19362855e7..e8c6a212db 100644
--- a/src/runtime/defs_linux_amd64.go
+++ b/src/runtime/defs_linux_amd64.go
@@ -205,7 +205,7 @@ type fpreg1 struct {
exponent uint16
}
-type sigaltstackt struct {
+type stackt struct {
ss_sp *byte
ss_flags int32
pad_cgo_0 [4]byte
@@ -221,7 +221,7 @@ type mcontext struct {
type ucontext struct {
uc_flags uint64
uc_link *ucontext
- uc_stack sigaltstackt
+ uc_stack stackt
uc_mcontext mcontext
uc_sigmask usigset
__fpregs_mem fpstate