Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2152)

Delta Between Two Patch Sets: src/pkg/runtime/windows/os.h

Issue 4926042: code review 4926042: runtime: use cgo runtime functions to call windows syscalls (Closed)
Left Patch Set: diff -r 15cefddbe963 https://go.googlecode.com/hg/ Created 13 years, 8 months ago
Right Patch Set: diff -r 7fec8679f10d https://go.googlecode.com/hg/ Created 13 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 extern void *runtime·LoadLibraryEx; 5 extern void *runtime·LoadLibraryEx;
6 extern void *runtime·GetProcAddress; 6 extern void *runtime·GetProcAddress;
7 7
8 // Call a Windows function with stdcall conventions, 8 // Call a Windows function with stdcall conventions,
9 // and switch to os stack during the call. 9 // and switch to os stack during the call.
10 #pragma varargck countpos runtime·stdcall 2 10 #pragma varargck countpos runtime·stdcall 2
11 #pragma varargck type runtime·stdcall void* 11 #pragma varargck type runtime·stdcall void*
12 #pragma varargck type runtime·stdcall uintptr 12 #pragma varargck type runtime·stdcall uintptr
13 void runtime·asmstdcall(WinCall *c); 13 void runtime·asmstdcall(void *c);
14 void *runtime·stdcall(void *fn, int32 count, ...); 14 void *runtime·stdcall(void *fn, int32 count, ...);
15 uintptr runtime·syscall(void *fn, uintptr nargs, void *args, uintptr *err); 15 uintptr runtime·syscall(void *fn, uintptr nargs, void *args, uintptr *err);
16 16
17 uintptr runtime·getlasterror(void); 17 uintptr runtime·getlasterror(void);
18 void runtime·setlasterror(uintptr err); 18 void runtime·setlasterror(uintptr err);
19 19
20 // Function to be called by windows CreateThread 20 // Function to be called by windows CreateThread
21 // to start new os thread. 21 // to start new os thread.
22 uint32 runtime·tstart_stdcall(M *newm); 22 uint32 runtime·tstart_stdcall(M *newm);
23 23
24 uint32 runtime·issigpanic(uint32); 24 uint32 runtime·issigpanic(uint32);
25 void runtime·sigpanic(void); 25 void runtime·sigpanic(void);
26 uint32 runtime·ctrlhandler(uint32 type); 26 uint32 runtime·ctrlhandler(uint32 type);
27 27
28 // Windows dll function to go callback entry. 28 // Windows dll function to go callback entry.
29 byte *runtime·compilecallback(Eface fn, bool cleanstack); 29 byte *runtime·compilecallback(Eface fn, bool cleanstack);
30 void *runtime·callbackasm(void); 30 void *runtime·callbackasm(void);
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b