diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-08-25 13:18:30 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-08-25 21:42:33 +0000 |
commit | 6126384f6da7866fb0a0ec2e33509306c738c40b (patch) | |
tree | 7795f7d474c7585751b12f1467c6c3533126c2e4 /src/runtime/signal_unix.go | |
parent | 394f6a5ac0f945061483b715ba3fb1f6ccef2806 (diff) | |
download | go-6126384f6da7866fb0a0ec2e33509306c738c40b.tar.gz go-6126384f6da7866fb0a0ec2e33509306c738c40b.zip |
runtime: unify sigTabT type across Unix systems
Change-Id: I8e8a3a118b1216f191c9076b70a88f6f3f19f79f
Reviewed-on: https://go-review.googlesource.com/59150
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/signal_unix.go')
-rw-r--r-- | src/runtime/signal_unix.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/signal_unix.go b/src/runtime/signal_unix.go index a6385a0a5e..973e5f924f 100644 --- a/src/runtime/signal_unix.go +++ b/src/runtime/signal_unix.go @@ -11,6 +11,16 @@ import ( "unsafe" ) +// sigTabT is the type of an entry in the global sigtable array. +// sigtable is inherently system dependent, and appears in OS-specific files, +// but sigTabT is the same for all Unixy systems. +// The sigtable array is indexed by a system signal number to get the flags +// and printable name of each signal. +type sigTabT struct { + flags int32 + name string +} + //go:linkname os_sigpipe os.sigpipe func os_sigpipe() { systemstack(sigpipe) |