github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/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  #pragma	varargck	countpos	runtime·stdcall	2
    12  #pragma	varargck	type		runtime·stdcall	void*
    13  #pragma	varargck	type		runtime·stdcall	uintptr
    14  void runtime·asmstdcall(void *c);
    15  void *runtime·stdcall(void *fn, int32 count, ...);
    16  
    17  uint32 runtime·getlasterror(void);
    18  void runtime·setlasterror(uint32 err);
    19  
    20  // Function to be called by windows CreateThread
    21  // to start new os thread.
    22  uint32 runtime·tstart_stdcall(M *newm);
    23  
    24  uint32 runtime·issigpanic(uint32);
    25  void runtime·sigpanic(void);
    26  uint32 runtime·ctrlhandler(uint32 type);
    27  
    28  // Windows dll function to go callback entry.
    29  byte *runtime·compilecallback(Eface fn, bool cleanstack);
    30  void *runtime·callbackasm(void);
    31  
    32  void runtime·install_exception_handler(void);
    33  void runtime·remove_exception_handler(void);
    34  
    35  // TODO(brainman): should not need those
    36  #define	NSIG	65