runtime: scan register backing store on ia64
[official-gcc.git] / libgo / go / runtime / net_plan9.go
blob77ae8c612d7fc6cc3d9c687f188394eeac234009
1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package runtime
7 import (
8 _ "unsafe"
11 //go:linkname runtime_ignoreHangup internal_poll.runtime_ignoreHangup
12 func runtime_ignoreHangup() {
13 getg().m.ignoreHangup = true
16 //go:linkname runtime_unignoreHangup internal_poll.runtime_unignoreHangup
17 func runtime_unignoreHangup(sig string) {
18 getg().m.ignoreHangup = false
21 func ignoredNote(note *byte) bool {
22 if note == nil {
23 return false
25 if gostringnocopy(note) != "hangup" {
26 return false
28 return getg().m.ignoreHangup