]> Cypherpunks repositories - gostls13.git/commit
runtime: write sigsetstack for Darwin, fix sigaction arg
authorIan Lance Taylor <iant@golang.org>
Thu, 17 Dec 2015 22:49:34 +0000 (14:49 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 18 Dec 2015 20:56:10 +0000 (20:56 +0000)
commitf40c05eea437f0c0a04b6615b72b1292ebb97151
tree6c1a920e0848ff5ab3d932c9b98a79dbb6aca20f
parente5ef5d46932d8f1fbe581ba22fb1d1144fedac5c
runtime: write sigsetstack for Darwin, fix sigaction arg

It turns out that the second argument for sigaction on Darwin has a
different type than the first argument.  The second argument is the user
visible sigaction struct, and does not have the sa_tramp field.

I base this on
  http://www.opensource.apple.com/source/Libc/Libc-1081.1.3/sys/sigaction.c
not to mention actual testing.

While I was at it I removed a useless memclr in setsig, a relic of the C
code.

This CL is Darwin-specific changes.  The tests for this CL are in
https://golang.org/cl/17903 .

Change-Id: I61fe305c72311df6a589b49ad7b6e49b6960ca24
Reviewed-on: https://go-review.googlesource.com/18015
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/defs_darwin.go
src/runtime/defs_darwin_386.go
src/runtime/defs_darwin_amd64.go
src/runtime/defs_darwin_arm.go
src/runtime/defs_darwin_arm64.go
src/runtime/os1_darwin.go
src/runtime/os_darwin.go