1 // Copyright 2014 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 package runtime 6 7 import "unsafe" 8 9 type stdFunction *byte 10 11 //go:linkname os_sigpipe os.sigpipe 12 func os_sigpipe() { 13 throw("too many writes on closed pipe") 14 } 15 16 // Stubs so tests can link correctly. These should never be called. 17 func open(name *byte, mode, perm int32) int32 { 18 throw("unimplemented") 19 return -1 20 } 21 func closefd(fd int32) int32 { 22 throw("unimplemented") 23 return -1 24 } 25 func read(fd int32, p unsafe.Pointer, n int32) int32 { 26 throw("unimplemented") 27 return -1 28 } 29