stdlib_windows_386.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. // Code generated by 'ccgo stdlib/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_windows_386.go -pkgname stdlib', DO NOT EDIT.
  2. package stdlib
  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. CHAR_BIT = 8 // limits.h:64:1:
  15. CHAR_MAX = 127 // limits.h:99:1:
  16. CHAR_MIN = -128 // limits.h:97:1:
  17. DUMMYSTRUCTNAME = 0 // _mingw.h:519:1:
  18. DUMMYSTRUCTNAME1 = 0 // _mingw.h:520:1:
  19. DUMMYSTRUCTNAME2 = 0 // _mingw.h:521:1:
  20. DUMMYSTRUCTNAME3 = 0 // _mingw.h:522:1:
  21. DUMMYSTRUCTNAME4 = 0 // _mingw.h:523:1:
  22. DUMMYSTRUCTNAME5 = 0 // _mingw.h:524:1:
  23. DUMMYUNIONNAME = 0 // _mingw.h:497:1:
  24. DUMMYUNIONNAME1 = 0 // _mingw.h:498:1:
  25. DUMMYUNIONNAME2 = 0 // _mingw.h:499:1:
  26. DUMMYUNIONNAME3 = 0 // _mingw.h:500:1:
  27. DUMMYUNIONNAME4 = 0 // _mingw.h:501:1:
  28. DUMMYUNIONNAME5 = 0 // _mingw.h:502:1:
  29. DUMMYUNIONNAME6 = 0 // _mingw.h:503:1:
  30. DUMMYUNIONNAME7 = 0 // _mingw.h:504:1:
  31. DUMMYUNIONNAME8 = 0 // _mingw.h:505:1:
  32. DUMMYUNIONNAME9 = 0 // _mingw.h:506:1:
  33. EXIT_FAILURE = 1 // stdlib.h:45:1:
  34. EXIT_SUCCESS = 0 // stdlib.h:44:1:
  35. INT_MAX = 2147483647 // limits.h:120:1:
  36. INT_MIN = -2147483648 // limits.h:118:1:
  37. LLONG_MAX = 9223372036854775807 // limits.h:142:1:
  38. LLONG_MIN = -9223372036854775808 // limits.h:140:1:
  39. LONG_LONG_MAX = 9223372036854775807 // limits.h:154:1:
  40. LONG_LONG_MIN = -9223372036854775808 // limits.h:152:1:
  41. LONG_MAX = 2147483647 // limits.h:131:1:
  42. LONG_MIN = -2147483648 // limits.h:129:1:
  43. MB_LEN_MAX = 5 // limits.h:35:1:
  44. MINGW_DDK_H = 0 // _mingw_ddk.h:2:1:
  45. MINGW_HAS_DDK_H = 1 // _mingw_ddk.h:4:1:
  46. MINGW_HAS_SECURE_API = 1 // _mingw.h:602:1:
  47. MINGW_SDK_INIT = 0 // _mingw.h:598:1:
  48. PATH_MAX = 260 // limits.h:20:1:
  49. RAND_MAX = 0x7fff // stdlib.h:106:1:
  50. SCHAR_MAX = 127 // limits.h:75:1:
  51. SCHAR_MIN = -128 // limits.h:73:1:
  52. SHRT_MAX = 32767 // limits.h:106:1:
  53. SHRT_MIN = -32768 // limits.h:104:1:
  54. SIZE_MAX = 4294967295 // limits.h:78:1:
  55. SSIZE_MAX = 2147483647 // limits.h:86:1:
  56. UCHAR_MAX = 255 // limits.h:82:1:
  57. UINT_MAX = 4294967295 // limits.h:124:1:
  58. ULLONG_MAX = 18446744073709551615 // limits.h:146:1:
  59. ULONG_LONG_MAX = 18446744073709551615 // limits.h:158:1:
  60. ULONG_MAX = 4294967295 // limits.h:135:1:
  61. UNALIGNED = 0 // _mingw.h:384:1:
  62. USE___UUIDOF = 0 // _mingw.h:77:1:
  63. USHRT_MAX = 65535 // limits.h:113:1:
  64. WIN32 = 1 // <predefined>:258:1:
  65. WINNT = 1 // <predefined>:306:1:
  66. X_AGLOBAL = 0 // _mingw.h:346:1:
  67. X_ALLOCA_S_HEAP_MARKER = 0xDDDD // malloc.h:137:1:
  68. X_ALLOCA_S_MARKER_SIZE = 8 // malloc.h:140:1:
  69. X_ALLOCA_S_STACK_MARKER = 0xCCCC // malloc.h:136:1:
  70. X_ALLOCA_S_THRESHOLD = 1024 // malloc.h:135:1:
  71. X_ANONYMOUS_STRUCT = 0 // _mingw.h:474:1:
  72. X_ANONYMOUS_UNION = 0 // _mingw.h:473:1:
  73. X_ARGMAX = 100 // _mingw.h:402:1:
  74. X_CALL_REPORTFAULT = 0x2 // stdlib.h:139:1:
  75. X_CONST_RETURN = 0 // _mingw.h:377:1:
  76. X_CRTNOALIAS = 0 // corecrt.h:29:1:
  77. X_CRTRESTRICT = 0 // corecrt.h:33:1:
  78. X_CRT_ABS_DEFINED = 0 // stdlib.h:410:1:
  79. X_CRT_ALGO_DEFINED = 0 // stdlib.h:433:1:
  80. X_CRT_ALLOCATION_DEFINED = 0 // stdlib.h:528:1:
  81. X_CRT_ALTERNATIVE_IMPORTED = 0 // _mingw.h:313:1:
  82. X_CRT_ATOF_DEFINED = 0 // stdlib.h:424:1:
  83. X_CRT_DOUBLE_DEC = 0 // stdlib.h:72:1:
  84. X_CRT_ERRNO_DEFINED = 0 // stdlib.h:153:1:
  85. X_CRT_MANAGED_HEAP_DEPRECATE = 0 // _mingw.h:361:1:
  86. X_CRT_PACKING = 8 // corecrt.h:14:1:
  87. X_CRT_PERROR_DEFINED = 0 // stdlib.h:648:1:
  88. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0 // _mingw_secapi.h:34:1:
  89. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0 // _mingw_secapi.h:35:1:
  90. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0 // _mingw_secapi.h:36:1:
  91. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0 // _mingw_secapi.h:37:1:
  92. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0 // _mingw_secapi.h:38:1:
  93. X_CRT_SWAB_DEFINED = 0 // stdlib.h:716:1:
  94. X_CRT_SYSTEM_DEFINED = 0 // stdlib.h:518:1:
  95. X_CRT_TERMINATE_DEFINED = 0 // stdlib.h:387:1:
  96. X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0 // corecrt.h:501:1:
  97. X_CRT_WPERROR_DEFINED = 0 // stdlib.h:677:1:
  98. X_CRT_WSYSTEM_DEFINED = 0 // stdlib.h:587:1:
  99. X_CVTBUFSIZE = 349 // stdlib.h:611:1:
  100. X_DIV_T_DEFINED = 0 // stdlib.h:58:1:
  101. X_DLL = 0 // _mingw.h:326:1:
  102. X_ERRCODE_DEFINED = 0 // corecrt.h:117:1:
  103. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  104. X_FREEA_INLINE = 0 // malloc.h:161:1:
  105. X_FREEENTRY = 0 // malloc.h:40:1:
  106. X_GCC_LIMITS_H_ = 0 // limits.h:30:1:
  107. X_HEAPBADBEGIN = -3 // malloc.h:34:1:
  108. X_HEAPBADNODE = -4 // malloc.h:35:1:
  109. X_HEAPBADPTR = -6 // malloc.h:37:1:
  110. X_HEAPEMPTY = -1 // malloc.h:32:1:
  111. X_HEAPEND = -5 // malloc.h:36:1:
  112. X_HEAPINFO_DEFINED = 0 // malloc.h:44:1:
  113. X_HEAPOK = -2 // malloc.h:33:1:
  114. X_HEAP_MAXREQ = 0xFFFFFFE0 // malloc.h:20:1:
  115. X_I16_MAX = 32767 // limits.h:54:1:
  116. X_I16_MIN = -32768 // limits.h:53:1:
  117. X_I32_MAX = 2147483647 // limits.h:58:1:
  118. X_I32_MIN = -2147483648 // limits.h:57:1:
  119. X_I64_MAX = 9223372036854775807 // limits.h:71:1:
  120. X_I64_MIN = -9223372036854775808 // limits.h:70:1:
  121. X_I8_MAX = 127 // limits.h:50:1:
  122. X_I8_MIN = -128 // limits.h:49:1:
  123. X_ILP32 = 1 // <predefined>:211:1:
  124. X_INC_CORECRT = 0 // corecrt.h:8:1:
  125. X_INC_CORECRT_WSTDLIB = 0 // corecrt_wstdlib.h:7:1:
  126. X_INC_CRTDEFS = 0 // crtdefs.h:8:1:
  127. X_INC_CRTDEFS_MACRO = 0 // _mingw_mac.h:8:1:
  128. X_INC_LIMITS = 0 // limits.h:9:1:
  129. X_INC_MINGW_SECAPI = 0 // _mingw_secapi.h:8:1:
  130. X_INC_STDLIB = 0 // stdlib.h:7:1:
  131. X_INC_STDLIB_S = 0 // stdlib_s.h:7:1:
  132. X_INC_VADEFS = 0 // vadefs.h:7:1:
  133. X_INC__MINGW_H = 0 // _mingw.h:8:1:
  134. X_INT128_DEFINED = 0 // _mingw.h:237:1:
  135. X_INTEGRAL_MAX_BITS = 64 // <predefined>:320:1:
  136. X_INTPTR_T_DEFINED = 0 // corecrt.h:62:1:
  137. X_LIMITS_H___ = 0 // limits.h:60:1:
  138. X_MALLOC_H_ = 0 // malloc.h:7:1:
  139. X_MAX_DIR = 256 // stdlib.h:129:1:
  140. X_MAX_DRIVE = 3 // stdlib.h:128:1:
  141. X_MAX_ENV = 32767 // stdlib.h:141:1:
  142. X_MAX_EXT = 256 // stdlib.h:131:1:
  143. X_MAX_FNAME = 256 // stdlib.h:130:1:
  144. X_MAX_PATH = 260 // stdlib.h:127:1:
  145. X_MAX_WAIT_MALLOC_CRT = 60000 // malloc.h:108:1:
  146. X_MM_MALLOC_H_INCLUDED = 0 // malloc.h:61:1:
  147. X_MT = 0 // _mingw.h:330:1:
  148. X_M_IX86 = 600 // _mingw_mac.h:54:1:
  149. X_ONEXIT_T_DEFINED = 0 // stdlib.h:48:1:
  150. X_OUT_TO_DEFAULT = 0 // stdlib.h:133:1:
  151. X_OUT_TO_MSGBOX = 2 // stdlib.h:135:1:
  152. X_OUT_TO_STDERR = 1 // stdlib.h:134:1:
  153. X_PGLOBAL = 0 // _mingw.h:342:1:
  154. X_PTRDIFF_T_ = 0 // corecrt.h:90:1:
  155. X_PTRDIFF_T_DEFINED = 0 // corecrt.h:88:1:
  156. X_QSORT_S_DEFINED = 0 // stdlib_s.h:40:1:
  157. X_REPORT_ERRMODE = 3 // stdlib.h:136:1:
  158. X_RSIZE_T_DEFINED = 0 // corecrt.h:58:1:
  159. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD // _mingw.h:349:1:
  160. X_SIZE_T_DEFINED = 0 // corecrt.h:37:1:
  161. X_SSIZE_T_DEFINED = 0 // corecrt.h:47:1:
  162. X_TAGLC_ID_DEFINED = 0 // corecrt.h:447:1:
  163. X_THREADLOCALEINFO = 0 // corecrt.h:456:1:
  164. X_TIME32_T_DEFINED = 0 // corecrt.h:122:1:
  165. X_TIME64_T_DEFINED = 0 // corecrt.h:127:1:
  166. X_TIME_T_DEFINED = 0 // corecrt.h:139:1:
  167. X_UI16_MAX = 0xffff // limits.h:55:1:
  168. X_UI32_MAX = 0xffffffff // limits.h:59:1:
  169. X_UI64_MAX = 0xffffffffffffffff // limits.h:72:1:
  170. X_UI8_MAX = 0xff // limits.h:51:1:
  171. X_UINTPTR_T_DEFINED = 0 // corecrt.h:75:1:
  172. X_USEDENTRY = 1 // malloc.h:41:1:
  173. X_USE_32BIT_TIME_T = 0 // _mingw.h:372:1:
  174. X_VA_LIST_DEFINED = 0 // <builtin>:55:1:
  175. X_W64 = 0 // _mingw.h:296:1:
  176. X_WCHAR_T_DEFINED = 0 // corecrt.h:101:1:
  177. X_WCTYPE_T_DEFINED = 0 // corecrt.h:108:1:
  178. X_WIN32 = 1 // <predefined>:164:1:
  179. X_WIN32_WINNT = 0x502 // _mingw.h:233:1:
  180. X_WINT_T = 0 // corecrt.h:110:1:
  181. X_WRITE_ABORT_MSG = 0x1 // stdlib.h:138:1:
  182. X_WSTDLIBP_DEFINED = 0 // stdlib.h:673:1:
  183. X_WSTDLIB_DEFINED = 0 // stdlib.h:553:1:
  184. X_X86_ = 1 // <predefined>:169:1:
  185. I386 = 1 // <predefined>:171:1:
  186. )
  187. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  188. type Size_t = uint32 /* <builtin>:9:23 */
  189. type Wchar_t = uint16 /* <builtin>:15:24 */
  190. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  191. type X__float128 = float64 /* <builtin>:47:21 */
  192. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  193. // *
  194. // This file has no copyright assigned and is placed in the Public Domain.
  195. // This file is part of the mingw-w64 runtime package.
  196. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  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. // *
  202. // This file has no copyright assigned and is placed in the Public Domain.
  203. // This file is part of the mingw-w64 runtime package.
  204. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  205. // *
  206. // This file has no copyright assigned and is placed in the Public Domain.
  207. // This file is part of the mingw-w64 runtime package.
  208. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  209. // This macro holds an monotonic increasing value, which indicates
  210. // a specific fix/patch is present on trunk. This value isn't related to
  211. // minor/major version-macros. It is increased on demand, if a big
  212. // fix was applied to trunk. This macro gets just increased on trunk. For
  213. // other branches its value won't be modified.
  214. // mingw.org's version macros: these make gcc to define
  215. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  216. // and the __mingwthr_key_dtor() function from the MinGW
  217. // CRT in its private gthr-win32.h header.
  218. // Set VC specific compiler target macros.
  219. // For x86 we have always to prefix by underscore.
  220. // Special case nameless struct/union.
  221. // MinGW-w64 has some additional C99 printf/scanf feature support.
  222. // So we add some helper macros to ease recognition of them.
  223. // If _FORTIFY_SOURCE is enabled, some inline functions may use
  224. // __builtin_va_arg_pack(). GCC may report an error if the address
  225. // of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
  226. // Enable workaround for ABI incompatibility on affected platforms
  227. // *
  228. // This file has no copyright assigned and is placed in the Public Domain.
  229. // This file is part of the mingw-w64 runtime package.
  230. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  231. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  232. // Templates won't work in C, will break if secure API is not enabled, disabled
  233. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  234. // fallback on default implementation if we can't know the size of the destination
  235. // Include _cygwin.h if we're building a Cygwin application.
  236. // Target specific macro replacement for type "long". In the Windows API,
  237. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  238. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  239. // sized definitions and declarations, all usage of type long in the Windows
  240. // headers have to be replaced by the below defined macro __LONG32.
  241. // C/C++ specific language defines.
  242. // Note the extern. This is needed to work around GCC's
  243. // limitations in handling dllimport attribute.
  244. // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
  245. // variadiac macro facility, because variadic macros cause syntax
  246. // errors with --traditional-cpp.
  247. // High byte is the major version, low byte is the minor.
  248. // *
  249. // This file has no copyright assigned and is placed in the Public Domain.
  250. // This file is part of the mingw-w64 runtime package.
  251. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  252. // *
  253. // This file has no copyright assigned and is placed in the Public Domain.
  254. // This file is part of the mingw-w64 runtime package.
  255. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  256. // for backward compatibility
  257. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  258. type Ssize_t = int32 /* corecrt.h:52:13 */
  259. type Rsize_t = Size_t /* corecrt.h:57:16 */
  260. type Intptr_t = int32 /* corecrt.h:69:13 */
  261. type Uintptr_t = uint32 /* corecrt.h:82:22 */
  262. type Wint_t = uint16 /* corecrt.h:111:24 */
  263. type Wctype_t = uint16 /* corecrt.h:112:24 */
  264. type Errno_t = int32 /* corecrt.h:118:13 */
  265. type X__time32_t = int32 /* corecrt.h:123:14 */
  266. type X__time64_t = int64 /* corecrt.h:128:35 */
  267. type Time_t = X__time32_t /* corecrt.h:141:20 */
  268. type Threadlocaleinfostruct = struct {
  269. Frefcount int32
  270. Flc_codepage uint32
  271. Flc_collate_cp uint32
  272. Flc_handle [6]uint32
  273. Flc_id [6]LC_ID
  274. Flc_category [6]struct {
  275. Flocale uintptr
  276. Fwlocale uintptr
  277. Frefcount uintptr
  278. Fwrefcount uintptr
  279. }
  280. Flc_clike int32
  281. Fmb_cur_max int32
  282. Flconv_intl_refcount uintptr
  283. Flconv_num_refcount uintptr
  284. Flconv_mon_refcount uintptr
  285. Flconv uintptr
  286. Fctype1_refcount uintptr
  287. Fctype1 uintptr
  288. Fpctype uintptr
  289. Fpclmap uintptr
  290. Fpcumap uintptr
  291. Flc_time_curr uintptr
  292. } /* corecrt.h:435:1 */
  293. type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
  294. type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
  295. type Localeinfo_struct = struct {
  296. Flocinfo Pthreadlocinfo
  297. Fmbcinfo Pthreadmbcinfo
  298. } /* corecrt.h:441:9 */
  299. type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
  300. type X_locale_t = uintptr /* corecrt.h:444:19 */
  301. type TagLC_ID = struct {
  302. FwLanguage uint16
  303. FwCountry uint16
  304. FwCodePage uint16
  305. } /* corecrt.h:435:1 */
  306. type LC_ID = TagLC_ID /* corecrt.h:452:3 */
  307. type LPLC_ID = uintptr /* corecrt.h:452:9 */
  308. type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
  309. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  310. //
  311. // This file is part of GCC.
  312. //
  313. // GCC is free software; you can redistribute it and/or modify it under
  314. // the terms of the GNU General Public License as published by the Free
  315. // Software Foundation; either version 3, or (at your option) any later
  316. // version.
  317. //
  318. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  319. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  320. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  321. // for more details.
  322. //
  323. // Under Section 7 of GPL version 3, you are granted additional
  324. // permissions described in the GCC Runtime Library Exception, version
  325. // 3.1, as published by the Free Software Foundation.
  326. //
  327. // You should have received a copy of the GNU General Public License and
  328. // a copy of the GCC Runtime Library Exception along with this program;
  329. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  330. // <http://www.gnu.org/licenses/>.
  331. // This administrivia gets added to the beginning of limits.h
  332. // if the system has its own version of limits.h.
  333. // We use _GCC_LIMITS_H_ because we want this not to match
  334. // any macros that the system's limits.h uses for its own purposes.
  335. // Use "..." so that we find syslimits.h only in this same directory.
  336. // syslimits.h stands for the system's own limits.h file.
  337. // If we can use it ok unmodified, then we install this text.
  338. // If fixincludes fixes it, then the fixed version is installed
  339. // instead of this text.
  340. // *
  341. // This file has no copyright assigned and is placed in the Public Domain.
  342. // This file is part of the mingw-w64 runtime package.
  343. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  344. // *
  345. // This file has no copyright assigned and is placed in the Public Domain.
  346. // This file is part of the mingw-w64 runtime package.
  347. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  348. // *
  349. // This file has no copyright assigned and is placed in the Public Domain.
  350. // This file is part of the mingw-w64 runtime package.
  351. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  352. // File system limits
  353. //
  354. // NOTE: Apparently the actual size of PATH_MAX is 260, but a space is
  355. // required for the NUL. TODO: Test?
  356. // NOTE: PATH_MAX is the POSIX equivalent for Microsoft's MAX_PATH; the two
  357. // are semantically identical, with a limit of 259 characters for the
  358. // path name, plus one for a terminating NUL, for a total of 260.
  359. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  360. //
  361. // This file is part of GCC.
  362. //
  363. // GCC is free software; you can redistribute it and/or modify it under
  364. // the terms of the GNU General Public License as published by the Free
  365. // Software Foundation; either version 3, or (at your option) any later
  366. // version.
  367. //
  368. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  369. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  370. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  371. // for more details.
  372. //
  373. // Under Section 7 of GPL version 3, you are granted additional
  374. // permissions described in the GCC Runtime Library Exception, version
  375. // 3.1, as published by the Free Software Foundation.
  376. //
  377. // You should have received a copy of the GNU General Public License and
  378. // a copy of the GCC Runtime Library Exception along with this program;
  379. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  380. // <http://www.gnu.org/licenses/>.
  381. // Number of bits in a `char'.
  382. // Maximum length of a multibyte character.
  383. // Minimum and maximum values a `signed char' can hold.
  384. // Maximum value an `unsigned char' can hold. (Minimum is 0).
  385. // Minimum and maximum values a `char' can hold.
  386. // Minimum and maximum values a `signed short int' can hold.
  387. // Maximum value an `unsigned short int' can hold. (Minimum is 0).
  388. // Minimum and maximum values a `signed int' can hold.
  389. // Maximum value an `unsigned int' can hold. (Minimum is 0).
  390. // Minimum and maximum values a `signed long int' can hold.
  391. // (Same as `int').
  392. // Maximum value an `unsigned long int' can hold. (Minimum is 0).
  393. // Minimum and maximum values a `signed long long int' can hold.
  394. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  395. // Minimum and maximum values a `signed long long int' can hold.
  396. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  397. // This administrivia gets added to the end of limits.h
  398. // if the system has its own version of limits.h.
  399. type X_onexit_t = uintptr /* stdlib.h:50:15 */
  400. type X_div_t = struct {
  401. Fquot int32
  402. Frem int32
  403. } /* stdlib.h:60:11 */
  404. type Div_t = X_div_t /* stdlib.h:63:5 */
  405. type X_ldiv_t = struct {
  406. Fquot int32
  407. Frem int32
  408. } /* stdlib.h:65:11 */
  409. type Ldiv_t = X_ldiv_t /* stdlib.h:68:5 */
  410. type X_LDOUBLE = struct{ Fld [10]uint8 } /* stdlib.h:77:5 */
  411. type X_CRT_DOUBLE = struct{ Fx float64 } /* stdlib.h:84:5 */
  412. type X_CRT_FLOAT = struct{ Ff float32 } /* stdlib.h:88:5 */
  413. type X_LONGDOUBLE = struct{ Fx float64 } /* stdlib.h:95:5 */
  414. type X_LDBL12 = struct{ Fld12 [12]uint8 } /* stdlib.h:102:5 */
  415. type X_purecall_handler = uintptr /* stdlib.h:143:16 */
  416. type X_invalid_parameter_handler = uintptr /* stdlib.h:148:16 */
  417. type Lldiv_t = struct {
  418. Fquot int64
  419. Frem int64
  420. } /* stdlib.h:727:61 */
  421. // *
  422. // This file has no copyright assigned and is placed in the Public Domain.
  423. // This file is part of the mingw-w64 runtime package.
  424. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  425. // *
  426. // This file has no copyright assigned and is placed in the Public Domain.
  427. // This file is part of the mingw-w64 runtime package.
  428. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  429. // Return codes for _heapwalk()
  430. // Values for _heapinfo.useflag
  431. // The structure used to walk through the heap with _heapwalk.
  432. type X_heapinfo = struct {
  433. F_pentry uintptr
  434. F_size Size_t
  435. F_useflag int32
  436. } /* malloc.h:46:11 */
  437. // *
  438. // This file has no copyright assigned and is placed in the Public Domain.
  439. // This file is part of the mingw-w64 runtime package.
  440. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  441. // *
  442. // This file has no copyright assigned and is placed in the Public Domain.
  443. // This file is part of the mingw-w64 runtime package.
  444. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  445. // Return codes for _heapwalk()
  446. // Values for _heapinfo.useflag
  447. // The structure used to walk through the heap with _heapwalk.
  448. type X_HEAPINFO = X_heapinfo /* malloc.h:50:5 */
  449. var _ int8 /* gen.c:2:13: */