github.com/aloncn/graphics-go@v0.0.1/src/runtime/os_windows.go (about) 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 mOS struct { 10 waitsema uintptr // semaphore for parking on locks 11 } 12 13 type stdFunction *byte 14 15 //go:linkname os_sigpipe os.sigpipe 16 func os_sigpipe() { 17 throw("too many writes on closed pipe") 18 } 19 20 // Stubs so tests can link correctly. These should never be called. 21 func open(name *byte, mode, perm int32) int32 { 22 throw("unimplemented") 23 return -1 24 } 25 func closefd(fd int32) int32 { 26 throw("unimplemented") 27 return -1 28 } 29 func read(fd int32, p unsafe.Pointer, n int32) int32 { 30 throw("unimplemented") 31 return -1 32 }