github.com/afumu/libc@v0.0.6/signal/signal_windows_amd64.go (about)

     1  // Code generated by 'ccgo signal\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o signal\signal_windows_amd64.go -pkgname signal', DO NOT EDIT.
     2  
     3  package signal
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  )
    11  
    12  var _ = math.Pi
    13  var _ reflect.Kind
    14  var _ atomic.Value
    15  var _ unsafe.Pointer
    16  
    17  const (
    18  	DUMMYSTRUCTNAME                                 = 0
    19  	DUMMYSTRUCTNAME1                                = 0
    20  	DUMMYSTRUCTNAME2                                = 0
    21  	DUMMYSTRUCTNAME3                                = 0
    22  	DUMMYSTRUCTNAME4                                = 0
    23  	DUMMYSTRUCTNAME5                                = 0
    24  	DUMMYUNIONNAME                                  = 0
    25  	DUMMYUNIONNAME1                                 = 0
    26  	DUMMYUNIONNAME2                                 = 0
    27  	DUMMYUNIONNAME3                                 = 0
    28  	DUMMYUNIONNAME4                                 = 0
    29  	DUMMYUNIONNAME5                                 = 0
    30  	DUMMYUNIONNAME6                                 = 0
    31  	DUMMYUNIONNAME7                                 = 0
    32  	DUMMYUNIONNAME8                                 = 0
    33  	DUMMYUNIONNAME9                                 = 0
    34  	MINGW_DDK_H                                     = 0
    35  	MINGW_DDRAW_VERSION                             = 7
    36  	MINGW_HAS_DDK_H                                 = 1
    37  	MINGW_HAS_DDRAW_H                               = 1
    38  	MINGW_HAS_SECURE_API                            = 1
    39  	MINGW_SDK_INIT                                  = 0
    40  	NSIG                                            = 23
    41  	SIGABRT                                         = 22
    42  	SIGABRT2                                        = 22
    43  	SIGABRT_COMPAT                                  = 6
    44  	SIGBREAK                                        = 21
    45  	SIGFPE                                          = 8
    46  	SIGILL                                          = 4
    47  	SIGINT                                          = 2
    48  	SIGSEGV                                         = 11
    49  	SIGTERM                                         = 15
    50  	UNALIGNED                                       = 0
    51  	USE___UUIDOF                                    = 0
    52  	WIN32                                           = 1
    53  	WIN64                                           = 1
    54  	WINNT                                           = 1
    55  	WIN_PTHREADS_SIGNAL_H                           = 0
    56  	X_AGLOBAL                                       = 0
    57  	X_ANONYMOUS_STRUCT                              = 0
    58  	X_ANONYMOUS_UNION                               = 0
    59  	X_ARGMAX                                        = 100
    60  	X_CONST_RETURN                                  = 0
    61  	X_CRTNOALIAS                                    = 0
    62  	X_CRTRESTRICT                                   = 0
    63  	X_CRT_ALTERNATIVE_IMPORTED                      = 0
    64  	X_CRT_MANAGED_HEAP_DEPRECATE                    = 0
    65  	X_CRT_PACKING                                   = 8
    66  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES          = 0
    67  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY   = 0
    68  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES        = 0
    69  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT  = 0
    70  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
    71  	X_DLL                                           = 0
    72  	X_ERRCODE_DEFINED                               = 0
    73  	X_FILE_OFFSET_BITS                              = 64
    74  	X_INC_CRTDEFS                                   = 0
    75  	X_INC_CRTDEFS_MACRO                             = 0
    76  	X_INC_MINGW_SECAPI                              = 0
    77  	X_INC_SIGNAL                                    = 0
    78  	X_INC_VADEFS                                    = 0
    79  	X_INC__MINGW_H                                  = 0
    80  	X_INT128_DEFINED                                = 0
    81  	X_INTEGRAL_MAX_BITS                             = 64
    82  	X_INTPTR_T_DEFINED                              = 0
    83  	X_MT                                            = 0
    84  	X_M_AMD64                                       = 100
    85  	X_M_X64                                         = 100
    86  	X_PGLOBAL                                       = 0
    87  	X_PTRDIFF_T_                                    = 0
    88  	X_PTRDIFF_T_DEFINED                             = 0
    89  	X_REENTRANT                                     = 1
    90  	X_RSIZE_T_DEFINED                               = 0
    91  	X_SECURECRT_FILL_BUFFER_PATTERN                 = 0xFD
    92  	X_SIG_ATOMIC_T_DEFINED                          = 0
    93  	X_SIZE_T_DEFINED                                = 0
    94  	X_SSIZE_T_DEFINED                               = 0
    95  	X_TAGLC_ID_DEFINED                              = 0
    96  	X_THREADLOCALEINFO                              = 0
    97  	X_TIME32_T_DEFINED                              = 0
    98  	X_TIME64_T_DEFINED                              = 0
    99  	X_TIME_T_DEFINED                                = 0
   100  	X_UINTPTR_T_DEFINED                             = 0
   101  	X_VA_LIST_DEFINED                               = 0
   102  	X_W64                                           = 0
   103  	X_WCHAR_T_DEFINED                               = 0
   104  	X_WCTYPE_T_DEFINED                              = 0
   105  	X_WIN32                                         = 1
   106  	X_WIN32_WINNT                                   = 0x502
   107  	X_WIN64                                         = 1
   108  	X_WINT_T                                        = 0
   109  )
   110  
   111  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   112  
   113  type Size_t = uint64 /* <builtin>:9:23 */
   114  
   115  type Wchar_t = uint16 /* <builtin>:15:24 */
   116  
   117  type X__int128_t = struct {
   118  	Flo int64
   119  	Fhi int64
   120  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   121  type X__uint128_t = struct {
   122  	Flo uint64
   123  	Fhi uint64
   124  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   125  
   126  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   127  type X__float128 = float64        /* <builtin>:47:21 */
   128  
   129  type Va_list = X__builtin_va_list /* <builtin>:50:27 */
   130  
   131  // *
   132  // This file has no copyright assigned and is placed in the Public Domain.
   133  // This file is part of the mingw-w64 runtime package.
   134  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   135  
   136  // *
   137  // This file has no copyright assigned and is placed in the Public Domain.
   138  // This file is part of the mingw-w64 runtime package.
   139  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   140  
   141  // *
   142  // This file has no copyright assigned and is placed in the Public Domain.
   143  // This file is part of the mingw-w64 runtime package.
   144  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   145  
   146  // *
   147  // This file has no copyright assigned and is placed in the Public Domain.
   148  // This file is part of the mingw-w64 runtime package.
   149  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   150  
   151  // This macro holds an monotonic increasing value, which indicates
   152  //    a specific fix/patch is present on trunk.  This value isn't related to
   153  //    minor/major version-macros.  It is increased on demand, if a big
   154  //    fix was applied to trunk.  This macro gets just increased on trunk.  For
   155  //    other branches its value won't be modified.
   156  
   157  // mingw.org's version macros: these make gcc to define
   158  //    MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
   159  //    and the __mingwthr_key_dtor() function from the MinGW
   160  //    CRT in its private gthr-win32.h header.
   161  
   162  // Set VC specific compiler target macros.
   163  
   164  // MS does not prefix symbols by underscores for 64-bit.
   165  // As we have to support older gcc version, which are using underscores
   166  //       as symbol prefix for x64, we have to check here for the user label
   167  //       prefix defined by gcc.
   168  
   169  // Special case nameless struct/union.
   170  
   171  // MinGW-w64 has some additional C99 printf/scanf feature support.
   172  //    So we add some helper macros to ease recognition of them.
   173  
   174  // *
   175  // This file has no copyright assigned and is placed in the Public Domain.
   176  // This file is part of the mingw-w64 runtime package.
   177  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   178  
   179  // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
   180  // Templates won't work in C, will break if secure API is not enabled, disabled
   181  
   182  // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
   183  // fallback on default implementation if we can't know the size of the destination
   184  
   185  // Include _cygwin.h if we're building a Cygwin application.
   186  
   187  // Target specific macro replacement for type "long".  In the Windows API,
   188  //    the type long is always 32 bit, even if the target is 64 bit (LLP64).
   189  //    On 64 bit Cygwin, the type long is 64 bit (LP64).  So, to get the right
   190  //    sized definitions and declarations, all usage of type long in the Windows
   191  //    headers have to be replaced by the below defined macro __LONG32.
   192  
   193  // C/C++ specific language defines.
   194  
   195  // Note the extern. This is needed to work around GCC's
   196  // limitations in handling dllimport attribute.
   197  
   198  // Attribute `nonnull' was valid as of gcc 3.3.  We don't use GCC's
   199  //    variadiac macro facility, because variadic macros cause syntax
   200  //    errors with  --traditional-cpp.
   201  
   202  //  High byte is the major version, low byte is the minor.
   203  
   204  // *
   205  // This file has no copyright assigned and is placed in the Public Domain.
   206  // This file is part of the mingw-w64 runtime package.
   207  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   208  
   209  // *
   210  // This file has no copyright assigned and is placed in the Public Domain.
   211  // This file is part of the mingw-w64 runtime package.
   212  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   213  
   214  type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
   215  
   216  type Ssize_t = int64 /* crtdefs.h:45:35 */
   217  
   218  type Rsize_t = Size_t /* crtdefs.h:52:16 */
   219  
   220  type Intptr_t = int64 /* crtdefs.h:62:35 */
   221  
   222  type Uintptr_t = uint64 /* crtdefs.h:75:44 */
   223  
   224  type Wint_t = uint16   /* crtdefs.h:106:24 */
   225  type Wctype_t = uint16 /* crtdefs.h:107:24 */
   226  
   227  type Errno_t = int32 /* crtdefs.h:113:13 */
   228  
   229  type X__time32_t = int32 /* crtdefs.h:118:14 */
   230  
   231  type X__time64_t = int64 /* crtdefs.h:123:35 */
   232  
   233  type Time_t = X__time64_t /* crtdefs.h:138:20 */
   234  
   235  type Threadlocaleinfostruct = struct {
   236  	Frefcount      int32
   237  	Flc_codepage   uint32
   238  	Flc_collate_cp uint32
   239  	Flc_handle     [6]uint32
   240  	Flc_id         [6]LC_ID
   241  	Flc_category   [6]struct {
   242  		Flocale    uintptr
   243  		Fwlocale   uintptr
   244  		Frefcount  uintptr
   245  		Fwrefcount uintptr
   246  	}
   247  	Flc_clike            int32
   248  	Fmb_cur_max          int32
   249  	Flconv_intl_refcount uintptr
   250  	Flconv_num_refcount  uintptr
   251  	Flconv_mon_refcount  uintptr
   252  	Flconv               uintptr
   253  	Fctype1_refcount     uintptr
   254  	Fctype1              uintptr
   255  	Fpctype              uintptr
   256  	Fpclmap              uintptr
   257  	Fpcumap              uintptr
   258  	Flc_time_curr        uintptr
   259  } /* crtdefs.h:422:1 */
   260  
   261  type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
   262  type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
   263  
   264  type Localeinfo_struct = struct {
   265  	Flocinfo Pthreadlocinfo
   266  	Fmbcinfo Pthreadmbcinfo
   267  } /* crtdefs.h:428:9 */
   268  
   269  type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
   270  type X_locale_t = uintptr                 /* crtdefs.h:431:19 */
   271  
   272  type TagLC_ID = struct {
   273  	FwLanguage uint16
   274  	FwCountry  uint16
   275  	FwCodePage uint16
   276  } /* crtdefs.h:422:1 */
   277  
   278  type LC_ID = TagLC_ID  /* crtdefs.h:439:3 */
   279  type LPLC_ID = uintptr /* crtdefs.h:439:9 */
   280  
   281  type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
   282  
   283  //
   284  //    Copyright (c) 2013-2016  mingw-w64 project
   285  //
   286  //    Permission is hereby granted, free of charge, to any person obtaining a
   287  //    copy of this software and associated documentation files (the "Software"),
   288  //    to deal in the Software without restriction, including without limitation
   289  //    the rights to use, copy, modify, merge, publish, distribute, sublicense,
   290  //    and/or sell copies of the Software, and to permit persons to whom the
   291  //    Software is furnished to do so, subject to the following conditions:
   292  //
   293  //    The above copyright notice and this permission notice shall be included in
   294  //    all copies or substantial portions of the Software.
   295  //
   296  //    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   297  //    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   298  //    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   299  //    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   300  //    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   301  //    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
   302  //    DEALINGS IN THE SOFTWARE.
   303  
   304  // Windows has rudimentary signals support.
   305  
   306  type Sig_atomic_t = int32 /* signal.h:18:15 */
   307  
   308  type X__p_sig_fn_t = uintptr /* signal.h:48:16 */
   309  
   310  var _ int8 /* gen.c:2:13: */