mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
394f6a5ac0
commit
6126384f6d
10 changed files with 11 additions and 40 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue