| // Copyright 2014 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. | |
| package runtime | |
| import "unsafe" | |
| type mOS struct { | |
| waitsema uintptr // semaphore for parking on locks | |
| } | |
| type stdFunction *byte | |
| //go:linkname os_sigpipe os.sigpipe | |
| func os_sigpipe() { | |
| throw("too many writes on closed pipe") | |
| } | |
| // Stubs so tests can link correctly. These should never be called. | |
| func open(name *byte, mode, perm int32) int32 { | |
| throw("unimplemented") | |
| return -1 | |
| } | |
| func closefd(fd int32) int32 { | |
| throw("unimplemented") | |
| return -1 | |
| } | |
| func read(fd int32, p unsafe.Pointer, n int32) int32 { | |
| throw("unimplemented") | |
| return -1 | |
| } |