stdio_windows_arm64.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. // Code generated by 'ccgo stdio\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 stdio\stdio_windows_arm64.go -pkgname stdio', DO NOT EDIT.
  2. package stdio
  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. BUFSIZ = 512
  15. DUMMYSTRUCTNAME = 0
  16. DUMMYSTRUCTNAME1 = 0
  17. DUMMYSTRUCTNAME2 = 0
  18. DUMMYSTRUCTNAME3 = 0
  19. DUMMYSTRUCTNAME4 = 0
  20. DUMMYSTRUCTNAME5 = 0
  21. DUMMYUNIONNAME = 0
  22. DUMMYUNIONNAME1 = 0
  23. DUMMYUNIONNAME2 = 0
  24. DUMMYUNIONNAME3 = 0
  25. DUMMYUNIONNAME4 = 0
  26. DUMMYUNIONNAME5 = 0
  27. DUMMYUNIONNAME6 = 0
  28. DUMMYUNIONNAME7 = 0
  29. DUMMYUNIONNAME8 = 0
  30. DUMMYUNIONNAME9 = 0
  31. EOF = -1
  32. FILENAME_MAX = 260
  33. FOPEN_MAX = 20
  34. MINGW_DDK_H = 0
  35. MINGW_HAS_DDK_H = 1
  36. MINGW_HAS_SECURE_API = 1
  37. MINGW_SDK_INIT = 0
  38. SEEK_CUR = 1
  39. SEEK_END = 2
  40. SEEK_SET = 0
  41. STDERR_FILENO = 2
  42. STDIN_FILENO = 0
  43. STDOUT_FILENO = 1
  44. SYS_OPEN = 20
  45. TMP_MAX = 32767
  46. TMP_MAX_S = 32767
  47. UNALIGNED = 0
  48. USE___UUIDOF = 0
  49. WIN32 = 1
  50. WIN64 = 1
  51. WINNT = 1
  52. X_AGLOBAL = 0
  53. X_ANONYMOUS_STRUCT = 0
  54. X_ANONYMOUS_UNION = 0
  55. X_ARGMAX = 100
  56. X_ARM64_ = 1
  57. X_CONST_RETURN = 0
  58. X_CRTNOALIAS = 0
  59. X_CRTRESTRICT = 0
  60. X_CRT_ALTERNATIVE_IMPORTED = 0
  61. X_CRT_DIRECTORY_DEFINED = 0
  62. X_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS = 4
  63. X_CRT_INTERNAL_LOCAL_SCANF_OPTIONS = 2
  64. X_CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY = 0x0008
  65. X_CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS = 0x0010
  66. X_CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION = 0x0001
  67. X_CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS = 0x0004
  68. X_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR = 0x0002
  69. X_CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY = 0x0004
  70. X_CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS = 0x0002
  71. X_CRT_INTERNAL_SCANF_SECURECRT = 0x0001
  72. X_CRT_MANAGED_HEAP_DEPRECATE = 0
  73. X_CRT_PACKING = 8
  74. X_CRT_PERROR_DEFINED = 0
  75. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
  76. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
  77. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
  78. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
  79. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
  80. X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
  81. X_CRT_WPERROR_DEFINED = 0
  82. X_DLL = 0
  83. X_ERRCODE_DEFINED = 0
  84. X_FILE_DEFINED = 0
  85. X_FILE_OFFSET_BITS = 64
  86. X_FILE_OFFSET_BITS_SET_FSEEKO = 0
  87. X_FILE_OFFSET_BITS_SET_FTELLO = 0
  88. X_FILE_OFFSET_BITS_SET_OFFT = 0
  89. X_FPOS_T_DEFINED = 0
  90. X_INC_CORECRT = 0
  91. X_INC_CRTDEFS_MACRO = 0
  92. X_INC_MINGW_SECAPI = 0
  93. X_INC_STDIO = 0
  94. X_INC_STDIO_S = 0
  95. X_INC_SWPRINTF_INL = 0
  96. X_INC_VADEFS = 0
  97. X_INC__MINGW_H = 0
  98. X_INT128_DEFINED = 0
  99. X_INTPTR_T_DEFINED = 0
  100. X_IOB_ENTRIES = 20
  101. X_IOFBF = 0x0000
  102. X_IOLBF = 0x0040
  103. X_IONBF = 0x0004
  104. X_MT = 0
  105. X_M_ARM64 = 1
  106. X_NFILE = 512
  107. X_NSTREAM_ = 512
  108. X_OFF64_T_DEFINED = 0
  109. X_OFF_T_ = 0
  110. X_OFF_T_DEFINED = 0
  111. X_OLD_P_OVERLAY = 2
  112. X_PGLOBAL = 0
  113. X_PTRDIFF_T_ = 0
  114. X_PTRDIFF_T_DEFINED = 0
  115. X_P_DETACH = 4
  116. X_P_NOWAIT = 1
  117. X_P_NOWAITO = 3
  118. X_P_OVERLAY = 2
  119. X_P_WAIT = 0
  120. X_P_tmpdir = "\\"
  121. X_RSIZE_T_DEFINED = 0
  122. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
  123. X_SIZE_T_DEFINED = 0
  124. X_SPAWNV_DEFINED = 0
  125. X_SSIZE_T_DEFINED = 0
  126. X_STDIO_CONFIG_DEFINED = 0
  127. X_STDIO_DEFINED = 0
  128. X_STDIO_S_DEFINED = 0
  129. X_STDSTREAM_DEFINED = 0
  130. X_SYS_OPEN = 20
  131. X_TAGLC_ID_DEFINED = 0
  132. X_THREADLOCALEINFO = 0
  133. X_TIME32_T_DEFINED = 0
  134. X_TIME64_T_DEFINED = 0
  135. X_TIME_T_DEFINED = 0
  136. X_TWO_DIGIT_EXPONENT = 0x1
  137. X_UCRT = 0
  138. X_UINTPTR_T_DEFINED = 0
  139. X_VA_LIST_DEFINED = 0
  140. X_W64 = 0
  141. X_WAIT_CHILD = 0
  142. X_WAIT_GRANDCHILD = 1
  143. X_WCHAR_T_DEFINED = 0
  144. X_WCTYPE_T_DEFINED = 0
  145. X_WIN32 = 1
  146. X_WIN32_WINNT = 0x601
  147. X_WIN64 = 1
  148. X_WINT_T = 0
  149. X_WSPAWN_DEFINED = 0
  150. X_WSTDIO_DEFINED = 0
  151. X_WSTDIO_S_DEFINED = 0
  152. )
  153. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  154. type Size_t = uint64 /* <builtin>:9:23 */
  155. type Wchar_t = uint16 /* <builtin>:15:24 */
  156. type X__int128_t = struct {
  157. Flo int64
  158. Fhi int64
  159. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  160. type X__uint128_t = struct {
  161. Flo uint64
  162. Fhi uint64
  163. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  164. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  165. type X__float128 = float64 /* <builtin>:47:21 */
  166. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  167. // *
  168. // This file has no copyright assigned and is placed in the Public Domain.
  169. // This file is part of the mingw-w64 runtime package.
  170. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  171. // *
  172. // This file has no copyright assigned and is placed in the Public Domain.
  173. // This file is part of the Wine project.
  174. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  175. // *
  176. // This file has no copyright assigned and is placed in the Public Domain.
  177. // This file is part of the mingw-w64 runtime package.
  178. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  179. // *
  180. // This file has no copyright assigned and is placed in the Public Domain.
  181. // This file is part of the mingw-w64 runtime package.
  182. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  183. // *
  184. // This file has no copyright assigned and is placed in the Public Domain.
  185. // This file is part of the mingw-w64 runtime package.
  186. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  187. // This macro holds an monotonic increasing value, which indicates
  188. // a specific fix/patch is present on trunk. This value isn't related to
  189. // minor/major version-macros. It is increased on demand, if a big
  190. // fix was applied to trunk. This macro gets just increased on trunk. For
  191. // other branches its value won't be modified.
  192. // mingw.org's version macros: these make gcc to define
  193. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  194. // and the __mingwthr_key_dtor() function from the MinGW
  195. // CRT in its private gthr-win32.h header.
  196. // Set VC specific compiler target macros.
  197. // MS does not prefix symbols by underscores for 64-bit.
  198. // As we have to support older gcc version, which are using underscores
  199. // as symbol prefix for x64, we have to check here for the user label
  200. // prefix defined by gcc.
  201. // Special case nameless struct/union.
  202. // MinGW-w64 has some additional C99 printf/scanf feature support.
  203. // So we add some helper macros to ease recognition of them.
  204. // If _FORTIFY_SOURCE is enabled, some inline functions may use
  205. // __builtin_va_arg_pack(). GCC may report an error if the address
  206. // of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
  207. // Enable workaround for ABI incompatibility on affected platforms
  208. // *
  209. // This file has no copyright assigned and is placed in the Public Domain.
  210. // This file is part of the mingw-w64 runtime package.
  211. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  212. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  213. // Templates won't work in C, will break if secure API is not enabled, disabled
  214. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  215. // fallback on default implementation if we can't know the size of the destination
  216. // Include _cygwin.h if we're building a Cygwin application.
  217. // Target specific macro replacement for type "long". In the Windows API,
  218. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  219. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  220. // sized definitions and declarations, all usage of type long in the Windows
  221. // headers have to be replaced by the below defined macro __LONG32.
  222. // C/C++ specific language defines.
  223. // Note the extern. This is needed to work around GCC's
  224. // limitations in handling dllimport attribute.
  225. // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
  226. // variadiac macro facility, because variadic macros cause syntax
  227. // errors with --traditional-cpp.
  228. // High byte is the major version, low byte is the minor.
  229. // Allow both 0x1400 and 0xE00 to identify UCRT
  230. // ===-------- vadefs.h ---------------------------------------------------===
  231. //
  232. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  233. // See https://llvm.org/LICENSE.txt for license information.
  234. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  235. //
  236. //===-----------------------------------------------------------------------===
  237. // Only include this if we are aiming for MSVC compatibility.
  238. // *
  239. // This file has no copyright assigned and is placed in the Public Domain.
  240. // This file is part of the mingw-w64 runtime package.
  241. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  242. // *
  243. // This file has no copyright assigned and is placed in the Public Domain.
  244. // This file is part of the mingw-w64 runtime package.
  245. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  246. // for backward compatibility
  247. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  248. type Ssize_t = int64 /* corecrt.h:45:35 */
  249. type Rsize_t = Size_t /* corecrt.h:52:16 */
  250. type Intptr_t = int64 /* corecrt.h:62:35 */
  251. type Uintptr_t = uint64 /* corecrt.h:75:44 */
  252. type Wint_t = uint16 /* corecrt.h:106:24 */
  253. type Wctype_t = uint16 /* corecrt.h:107:24 */
  254. type Errno_t = int32 /* corecrt.h:113:13 */
  255. type X__time32_t = int32 /* corecrt.h:118:14 */
  256. type X__time64_t = int64 /* corecrt.h:123:35 */
  257. type Time_t = X__time64_t /* corecrt.h:138:20 */
  258. type Threadlocaleinfostruct = struct {
  259. F_locale_pctype uintptr
  260. F_locale_mb_cur_max int32
  261. F_locale_lc_codepage uint32
  262. } /* corecrt.h:430:1 */
  263. type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
  264. type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
  265. type Localeinfo_struct = struct {
  266. Flocinfo Pthreadlocinfo
  267. Fmbcinfo Pthreadmbcinfo
  268. } /* corecrt.h:436:9 */
  269. type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
  270. type X_locale_t = uintptr /* corecrt.h:439:19 */
  271. type TagLC_ID = struct {
  272. FwLanguage uint16
  273. FwCountry uint16
  274. FwCodePage uint16
  275. } /* corecrt.h:443:9 */
  276. type LC_ID = TagLC_ID /* corecrt.h:447:3 */
  277. type LPLC_ID = uintptr /* corecrt.h:447:9 */
  278. type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
  279. type X_iobuf = struct{ F_Placeholder uintptr } /* stdio.h:33:3 */
  280. type FILE = X_iobuf /* stdio.h:47:25 */
  281. type X_off_t = int32 /* _mingw_off_t.h:5:16 */
  282. type Off32_t = int32 /* _mingw_off_t.h:7:16 */
  283. type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
  284. type Off64_t = int64 /* _mingw_off_t.h:15:39 */
  285. type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
  286. type Fpos_t = int64 /* stdio.h:115:37 */
  287. var _ int8 /* gen.c:2:13: */