github.com/brownsys/tracing-framework-go@v0.0.0-20161210174012-0542a62412fe/go/darwin_amd64/src/runtime/signal_unix.go (about)

     1  // Copyright 2012 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.
     4  
     5  // +build darwin dragonfly freebsd linux netbsd openbsd solaris
     6  
     7  package runtime
     8  
     9  import _ "unsafe" // for go:linkname
    10  
    11  //go:linkname os_sigpipe os.sigpipe
    12  func os_sigpipe() {
    13  	systemstack(sigpipe)
    14  }
    15  
    16  func signame(sig uint32) string {
    17  	if sig >= uint32(len(sigtable)) {
    18  		return ""
    19  	}
    20  	return sigtable[sig].name
    21  }