]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] runtime: add explicit siginfo.si_addr field
authorAustin Clements <austin@google.com>
Wed, 19 Nov 2014 19:56:49 +0000 (14:56 -0500)
committerAustin Clements <austin@google.com>
Wed, 19 Nov 2014 19:56:49 +0000 (14:56 -0500)
commitf4a525452e1442c08e2a973a5871445258ed0054
tree821d640aceb3688bf4277f0fd6eaad6b3e33deaf
parentd11a42595940df79bbd73bfe54469f840952ab79
[dev.cc] runtime: add explicit siginfo.si_addr field

struct siginfo_t's si_addr field is part of a union.
Previously, we represented this union in Go using an opaque
byte array and accessed the si_addr field using unsafe (and
wrong on 386 and arm!) pointer arithmetic.  Since si_addr is
the only field we use from this union, this replaces the
opaque byte array with an explicit declaration of the si_addr
field and accesses it directly.

LGTM=minux, rsc
R=rsc, minux
CC=golang-codereviews
https://golang.org/cl/179970044
src/runtime/defs_linux_386.go
src/runtime/defs_linux_amd64.go
src/runtime/defs_linux_arm.go
src/runtime/defs_linux_power64.go
src/runtime/defs_linux_power64le.go
src/runtime/signal_linux_386.go
src/runtime/signal_linux_amd64.go
src/runtime/signal_linux_arm.go
src/runtime/signal_linux_power64x.go