signal_windows_arm64.go 13 KB

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