signal_windows_amd64.go 12 KB

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