github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/os_windows.h (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  extern void *runtime·LoadLibrary;
     6  extern void *runtime·GetProcAddress;
     7  extern void *runtime·GetQueuedCompletionStatusEx;
     8  
     9  // Call a Windows function with stdcall conventions,
    10  // and switch to os stack during the call.
    11  void runtime·asmstdcall(void *c);
    12  void *runtime·stdcall0(void *fn);
    13  void *runtime·stdcall1(void *fn, uintptr a0);
    14  void *runtime·stdcall2(void *fn, uintptr a0, uintptr a1);
    15  void *runtime·stdcall3(void *fn, uintptr a0, uintptr a1, uintptr a2);
    16  void *runtime·stdcall4(void *fn, uintptr a0, uintptr a1, uintptr a2, uintptr a3);
    17  void *runtime·stdcall5(void *fn, uintptr a0, uintptr a1, uintptr a2, uintptr a3, uintptr a4);
    18  void *runtime·stdcall6(void *fn, uintptr a0, uintptr a1, uintptr a2, uintptr a3, uintptr a4, uintptr a5);
    19  void *runtime·stdcall7(void *fn, uintptr a0, uintptr a1, uintptr a2, uintptr a3, uintptr a4, uintptr a5, uintptr a6);
    20  
    21  uint32 runtime·getlasterror(void);
    22  void runtime·setlasterror(uint32 err);
    23  
    24  // Function to be called by windows CreateThread
    25  // to start new os thread.
    26  uint32 runtime·tstart_stdcall(M *newm);
    27  
    28  uint32 runtime·issigpanic(uint32);
    29  void runtime·sigpanic(void);
    30  uint32 runtime·ctrlhandler(uint32 type);
    31  
    32  // Windows dll function to go callback entry.
    33  byte *runtime·compilecallback(Eface fn, bool cleanstack);
    34  void *runtime·callbackasm(void);
    35  
    36  void runtime·install_exception_handler(void);
    37  void runtime·remove_exception_handler(void);
    38  
    39  // TODO(brainman): should not need those
    40  enum {
    41  	NSIG = 65,
    42  };