// Copyright 2012 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// +build darwin dragonfly freebsd linux netbsd openbsd solaris | |
package runtime | |
import _ "unsafe" // for go:linkname | |
//go:linkname os_sigpipe os.sigpipe | |
func os_sigpipe() { | |
systemstack(sigpipe) | |
} | |
func signame(sig uint32) string { | |
if sig >= uint32(len(sigtable)) { | |
return "" | |
} | |
return sigtable[sig].name | |
} |