stdio_windows_amd64.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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_amd64.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_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. SEEK_CUR = 1
  41. SEEK_END = 2
  42. SEEK_SET = 0
  43. STDERR_FILENO = 2
  44. STDIN_FILENO = 0
  45. STDOUT_FILENO = 1
  46. SYS_OPEN = 20
  47. TMP_MAX = 32767
  48. UNALIGNED = 0
  49. USE___UUIDOF = 0
  50. WIN32 = 1
  51. WIN64 = 1
  52. WINNT = 1
  53. X_AGLOBAL = 0
  54. X_ANONYMOUS_STRUCT = 0
  55. X_ANONYMOUS_UNION = 0
  56. X_ARGMAX = 100
  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_MANAGED_HEAP_DEPRECATE = 0
  63. X_CRT_PACKING = 8
  64. X_CRT_PERROR_DEFINED = 0
  65. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
  66. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
  67. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
  68. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
  69. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
  70. X_CRT_WPERROR_DEFINED = 0
  71. X_DLL = 0
  72. X_ERRCODE_DEFINED = 0
  73. X_FILE_DEFINED = 0
  74. X_FILE_OFFSET_BITS = 64
  75. X_FILE_OFFSET_BITS_SET_FSEEKO = 0
  76. X_FILE_OFFSET_BITS_SET_FTELLO = 0
  77. X_FILE_OFFSET_BITS_SET_OFFT = 0
  78. X_FPOS_T_DEFINED = 0
  79. X_INC_CRTDEFS = 0
  80. X_INC_CRTDEFS_MACRO = 0
  81. X_INC_MINGW_SECAPI = 0
  82. X_INC_STDIO = 0
  83. X_INC_STDIO_S = 0
  84. X_INC_SWPRINTF_INL = 0
  85. X_INC_VADEFS = 0
  86. X_INC__MINGW_H = 0
  87. X_INT128_DEFINED = 0
  88. X_INTEGRAL_MAX_BITS = 64
  89. X_INTPTR_T_DEFINED = 0
  90. X_IOB_ENTRIES = 20
  91. X_IOEOF = 0x0010
  92. X_IOERR = 0x0020
  93. X_IOFBF = 0x0000
  94. X_IOLBF = 0x0040
  95. X_IOMYBUF = 0x0008
  96. X_IONBF = 0x0004
  97. X_IOREAD = 0x0001
  98. X_IORW = 0x0080
  99. X_IOSTRG = 0x0040
  100. X_IOWRT = 0x0002
  101. X_MT = 0
  102. X_M_AMD64 = 100
  103. X_M_X64 = 100
  104. X_NFILE = 512
  105. X_NSTREAM_ = 512
  106. X_OFF64_T_DEFINED = 0
  107. X_OFF_T_ = 0
  108. X_OFF_T_DEFINED = 0
  109. X_OLD_P_OVERLAY = 2
  110. X_PGLOBAL = 0
  111. X_PTRDIFF_T_ = 0
  112. X_PTRDIFF_T_DEFINED = 0
  113. X_P_DETACH = 4
  114. X_P_NOWAIT = 1
  115. X_P_NOWAITO = 3
  116. X_P_OVERLAY = 2
  117. X_P_WAIT = 0
  118. X_P_tmpdir = "\\"
  119. X_REENTRANT = 1
  120. X_RSIZE_T_DEFINED = 0
  121. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
  122. X_SIZE_T_DEFINED = 0
  123. X_SPAWNV_DEFINED = 0
  124. X_SSIZE_T_DEFINED = 0
  125. X_STDIO_DEFINED = 0
  126. X_STDIO_S_DEFINED = 0
  127. X_STDSTREAM_DEFINED = 0
  128. X_SYS_OPEN = 20
  129. X_TAGLC_ID_DEFINED = 0
  130. X_THREADLOCALEINFO = 0
  131. X_TIME32_T_DEFINED = 0
  132. X_TIME64_T_DEFINED = 0
  133. X_TIME_T_DEFINED = 0
  134. X_TWO_DIGIT_EXPONENT = 0x1
  135. X_UINTPTR_T_DEFINED = 0
  136. X_VA_LIST_DEFINED = 0
  137. X_W64 = 0
  138. X_WAIT_CHILD = 0
  139. X_WAIT_GRANDCHILD = 1
  140. X_WCHAR_T_DEFINED = 0
  141. X_WCTYPE_T_DEFINED = 0
  142. X_WIN32 = 1
  143. X_WIN32_WINNT = 0x502
  144. X_WIN64 = 1
  145. X_WINT_T = 0
  146. X_WSPAWN_DEFINED = 0
  147. X_WSTDIO_DEFINED = 0
  148. X_WSTDIO_S_DEFINED = 0
  149. )
  150. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  151. type Size_t = uint64 /* <builtin>:9:23 */
  152. type Wchar_t = uint16 /* <builtin>:15:24 */
  153. type X__int128_t = struct {
  154. Flo int64
  155. Fhi int64
  156. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  157. type X__uint128_t = struct {
  158. Flo uint64
  159. Fhi uint64
  160. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  161. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  162. type X__float128 = float64 /* <builtin>:47:21 */
  163. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  164. // *
  165. // This file has no copyright assigned and is placed in the Public Domain.
  166. // This file is part of the mingw-w64 runtime package.
  167. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  168. // *
  169. // This file has no copyright assigned and is placed in the Public Domain.
  170. // This file is part of the mingw-w64 runtime package.
  171. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  172. // *
  173. // This file has no copyright assigned and is placed in the Public Domain.
  174. // This file is part of the mingw-w64 runtime package.
  175. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  176. // *
  177. // This file has no copyright assigned and is placed in the Public Domain.
  178. // This file is part of the mingw-w64 runtime package.
  179. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  180. // This macro holds an monotonic increasing value, which indicates
  181. // a specific fix/patch is present on trunk. This value isn't related to
  182. // minor/major version-macros. It is increased on demand, if a big
  183. // fix was applied to trunk. This macro gets just increased on trunk. For
  184. // other branches its value won't be modified.
  185. // mingw.org's version macros: these make gcc to define
  186. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  187. // and the __mingwthr_key_dtor() function from the MinGW
  188. // CRT in its private gthr-win32.h header.
  189. // Set VC specific compiler target macros.
  190. // MS does not prefix symbols by underscores for 64-bit.
  191. // As we have to support older gcc version, which are using underscores
  192. // as symbol prefix for x64, we have to check here for the user label
  193. // prefix defined by gcc.
  194. // Special case nameless struct/union.
  195. // MinGW-w64 has some additional C99 printf/scanf feature support.
  196. // So we add some helper macros to ease recognition of them.
  197. // *
  198. // This file has no copyright assigned and is placed in the Public Domain.
  199. // This file is part of the mingw-w64 runtime package.
  200. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  201. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  202. // Templates won't work in C, will break if secure API is not enabled, disabled
  203. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  204. // fallback on default implementation if we can't know the size of the destination
  205. // Include _cygwin.h if we're building a Cygwin application.
  206. // Target specific macro replacement for type "long". In the Windows API,
  207. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  208. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  209. // sized definitions and declarations, all usage of type long in the Windows
  210. // headers have to be replaced by the below defined macro __LONG32.
  211. // C/C++ specific language defines.
  212. // Note the extern. This is needed to work around GCC's
  213. // limitations in handling dllimport attribute.
  214. // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
  215. // variadiac macro facility, because variadic macros cause syntax
  216. // errors with --traditional-cpp.
  217. // High byte is the major version, low byte is the minor.
  218. // *
  219. // This file has no copyright assigned and is placed in the Public Domain.
  220. // This file is part of the mingw-w64 runtime package.
  221. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  222. // *
  223. // This file has no copyright assigned and is placed in the Public Domain.
  224. // This file is part of the mingw-w64 runtime package.
  225. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  226. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  227. type Ssize_t = int64 /* crtdefs.h:45:35 */
  228. type Rsize_t = Size_t /* crtdefs.h:52:16 */
  229. type Intptr_t = int64 /* crtdefs.h:62:35 */
  230. type Uintptr_t = uint64 /* crtdefs.h:75:44 */
  231. type Wint_t = uint16 /* crtdefs.h:106:24 */
  232. type Wctype_t = uint16 /* crtdefs.h:107:24 */
  233. type Errno_t = int32 /* crtdefs.h:113:13 */
  234. type X__time32_t = int32 /* crtdefs.h:118:14 */
  235. type X__time64_t = int64 /* crtdefs.h:123:35 */
  236. type Time_t = X__time64_t /* crtdefs.h:138:20 */
  237. type Threadlocaleinfostruct = struct {
  238. Frefcount int32
  239. Flc_codepage uint32
  240. Flc_collate_cp uint32
  241. Flc_handle [6]uint32
  242. Flc_id [6]LC_ID
  243. Flc_category [6]struct {
  244. Flocale uintptr
  245. Fwlocale uintptr
  246. Frefcount uintptr
  247. Fwrefcount uintptr
  248. }
  249. Flc_clike int32
  250. Fmb_cur_max int32
  251. Flconv_intl_refcount uintptr
  252. Flconv_num_refcount uintptr
  253. Flconv_mon_refcount uintptr
  254. Flconv uintptr
  255. Fctype1_refcount uintptr
  256. Fctype1 uintptr
  257. Fpctype uintptr
  258. Fpclmap uintptr
  259. Fpcumap uintptr
  260. Flc_time_curr uintptr
  261. } /* crtdefs.h:422:1 */
  262. type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
  263. type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
  264. type Localeinfo_struct = struct {
  265. Flocinfo Pthreadlocinfo
  266. Fmbcinfo Pthreadmbcinfo
  267. } /* crtdefs.h:428:9 */
  268. type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
  269. type X_locale_t = uintptr /* crtdefs.h:431:19 */
  270. type TagLC_ID = struct {
  271. FwLanguage uint16
  272. FwCountry uint16
  273. FwCodePage uint16
  274. } /* crtdefs.h:422:1 */
  275. type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
  276. type LPLC_ID = uintptr /* crtdefs.h:439:9 */
  277. type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
  278. // *
  279. // This file has no copyright assigned and is placed in the Public Domain.
  280. // This file is part of the mingw-w64 runtime package.
  281. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  282. // Undefine __mingw_<printf> macros.
  283. type X_iobuf = struct {
  284. F_ptr uintptr
  285. F_cnt int32
  286. F__ccgo_pad1 [4]byte
  287. F_base uintptr
  288. F_flag int32
  289. F_file int32
  290. F_charbuf int32
  291. F_bufsiz int32
  292. F_tmpfname uintptr
  293. } /* stdio.h:26:3 */
  294. type FILE = X_iobuf /* stdio.h:36:25 */
  295. type X_off_t = int32 /* _mingw_off_t.h:5:16 */
  296. type Off32_t = int32 /* _mingw_off_t.h:7:16 */
  297. type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
  298. type Off64_t = int64 /* _mingw_off_t.h:15:39 */
  299. type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
  300. type Fpos_t = int64 /* stdio.h:104:37 */
  301. // *
  302. // This file has no copyright assigned and is placed in the Public Domain.
  303. // This file is part of the mingw-w64 runtime package.
  304. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  305. // Define __mingw_<printf> macros.
  306. var _ int8 /* gen.c:2:13: */