github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/runtime/os2_windows.go (about) 1 // Copyright 2009 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 // Call a Windows function with stdcall conventions, 10 // and switch to os stack during the call. 11 func asmstdcall(fn unsafe.Pointer) 12 13 func getlasterror() uint32 14 func setlasterror(err uint32) 15 16 // Function to be called by windows CreateThread 17 // to start new os thread. 18 func tstart_stdcall(newm *m) uint32 19 20 func ctrlhandler(_type uint32) uint32 21 22 // TODO(brainman): should not need those 23 const ( 24 _NSIG = 65 25 )