limits_windows_amd64.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. // Code generated by 'ccgo limits\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 limits\limits_windows_amd64.go -pkgname limits', DO NOT EDIT.
  2. package limits
  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
  15. CHAR_MAX = 127
  16. CHAR_MIN = -128
  17. DUMMYSTRUCTNAME = 0
  18. DUMMYSTRUCTNAME1 = 0
  19. DUMMYSTRUCTNAME2 = 0
  20. DUMMYSTRUCTNAME3 = 0
  21. DUMMYSTRUCTNAME4 = 0
  22. DUMMYSTRUCTNAME5 = 0
  23. DUMMYUNIONNAME = 0
  24. DUMMYUNIONNAME1 = 0
  25. DUMMYUNIONNAME2 = 0
  26. DUMMYUNIONNAME3 = 0
  27. DUMMYUNIONNAME4 = 0
  28. DUMMYUNIONNAME5 = 0
  29. DUMMYUNIONNAME6 = 0
  30. DUMMYUNIONNAME7 = 0
  31. DUMMYUNIONNAME8 = 0
  32. DUMMYUNIONNAME9 = 0
  33. INT_MAX = 2147483647
  34. INT_MIN = -2147483648
  35. LLONG_MAX = 9223372036854775807
  36. LLONG_MIN = -9223372036854775808
  37. LONG_LONG_MAX = 9223372036854775807
  38. LONG_LONG_MIN = -9223372036854775808
  39. LONG_MAX = 2147483647
  40. LONG_MIN = -2147483648
  41. MB_LEN_MAX = 5
  42. MINGW_DDK_H = 0
  43. MINGW_DDRAW_VERSION = 7
  44. MINGW_HAS_DDK_H = 1
  45. MINGW_HAS_DDRAW_H = 1
  46. MINGW_HAS_SECURE_API = 1
  47. MINGW_SDK_INIT = 0
  48. PATH_MAX = 260
  49. SCHAR_MAX = 127
  50. SCHAR_MIN = -128
  51. SHRT_MAX = 32767
  52. SHRT_MIN = -32768
  53. SIZE_MAX = 18446744073709551615
  54. SSIZE_MAX = 9223372036854775807
  55. UCHAR_MAX = 255
  56. UINT_MAX = 4294967295
  57. ULLONG_MAX = 18446744073709551615
  58. ULONG_LONG_MAX = 18446744073709551615
  59. ULONG_MAX = 4294967295
  60. UNALIGNED = 0
  61. USE___UUIDOF = 0
  62. USHRT_MAX = 65535
  63. WIN32 = 1
  64. WIN64 = 1
  65. WINNT = 1
  66. X_AGLOBAL = 0
  67. X_ANONYMOUS_STRUCT = 0
  68. X_ANONYMOUS_UNION = 0
  69. X_ARGMAX = 100
  70. X_CONST_RETURN = 0
  71. X_CRTNOALIAS = 0
  72. X_CRTRESTRICT = 0
  73. X_CRT_ALTERNATIVE_IMPORTED = 0
  74. X_CRT_MANAGED_HEAP_DEPRECATE = 0
  75. X_CRT_PACKING = 8
  76. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
  77. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
  78. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
  79. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
  80. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
  81. X_DLL = 0
  82. X_ERRCODE_DEFINED = 0
  83. X_FILE_OFFSET_BITS = 64
  84. X_GCC_LIMITS_H_ = 0
  85. X_I16_MAX = 32767
  86. X_I16_MIN = -32768
  87. X_I32_MAX = 2147483647
  88. X_I32_MIN = -2147483648
  89. X_I64_MAX = 9223372036854775807
  90. X_I64_MIN = -9223372036854775808
  91. X_I8_MAX = 127
  92. X_I8_MIN = -128
  93. X_INC_CRTDEFS = 0
  94. X_INC_CRTDEFS_MACRO = 0
  95. X_INC_LIMITS = 0
  96. X_INC_MINGW_SECAPI = 0
  97. X_INC_VADEFS = 0
  98. X_INC__MINGW_H = 0
  99. X_INT128_DEFINED = 0
  100. X_INTEGRAL_MAX_BITS = 64
  101. X_INTPTR_T_DEFINED = 0
  102. X_LIMITS_H___ = 0
  103. X_MT = 0
  104. X_M_AMD64 = 100
  105. X_M_X64 = 100
  106. X_PGLOBAL = 0
  107. X_PTRDIFF_T_ = 0
  108. X_PTRDIFF_T_DEFINED = 0
  109. X_REENTRANT = 1
  110. X_RSIZE_T_DEFINED = 0
  111. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
  112. X_SIZE_T_DEFINED = 0
  113. X_SSIZE_T_DEFINED = 0
  114. X_TAGLC_ID_DEFINED = 0
  115. X_THREADLOCALEINFO = 0
  116. X_TIME32_T_DEFINED = 0
  117. X_TIME64_T_DEFINED = 0
  118. X_TIME_T_DEFINED = 0
  119. X_UI16_MAX = 0xffff
  120. X_UI32_MAX = 0xffffffff
  121. X_UI64_MAX = 0xffffffffffffffff
  122. X_UI8_MAX = 0xff
  123. X_UINTPTR_T_DEFINED = 0
  124. X_VA_LIST_DEFINED = 0
  125. X_W64 = 0
  126. X_WCHAR_T_DEFINED = 0
  127. X_WCTYPE_T_DEFINED = 0
  128. X_WIN32 = 1
  129. X_WIN32_WINNT = 0x502
  130. X_WIN64 = 1
  131. X_WINT_T = 0
  132. )
  133. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  134. type Size_t = uint64 /* <builtin>:9:23 */
  135. type Wchar_t = uint16 /* <builtin>:15:24 */
  136. type X__int128_t = struct {
  137. Flo int64
  138. Fhi int64
  139. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  140. type X__uint128_t = struct {
  141. Flo uint64
  142. Fhi uint64
  143. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  144. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  145. type X__float128 = float64 /* <builtin>:47:21 */
  146. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  147. // Copyright (C) 1992-2018 Free Software Foundation, Inc.
  148. //
  149. // This file is part of GCC.
  150. //
  151. // GCC is free software; you can redistribute it and/or modify it under
  152. // the terms of the GNU General Public License as published by the Free
  153. // Software Foundation; either version 3, or (at your option) any later
  154. // version.
  155. //
  156. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  157. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  158. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  159. // for more details.
  160. //
  161. // Under Section 7 of GPL version 3, you are granted additional
  162. // permissions described in the GCC Runtime Library Exception, version
  163. // 3.1, as published by the Free Software Foundation.
  164. //
  165. // You should have received a copy of the GNU General Public License and
  166. // a copy of the GCC Runtime Library Exception along with this program;
  167. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  168. // <http://www.gnu.org/licenses/>.
  169. // This administrivia gets added to the beginning of limits.h
  170. // if the system has its own version of limits.h.
  171. // We use _GCC_LIMITS_H_ because we want this not to match
  172. // any macros that the system's limits.h uses for its own purposes.
  173. // Use "..." so that we find syslimits.h only in this same directory.
  174. // syslimits.h stands for the system's own limits.h file.
  175. // If we can use it ok unmodified, then we install this text.
  176. // If fixincludes fixes it, then the fixed version is installed
  177. // instead of this text.
  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. // *
  183. // This file has no copyright assigned and is placed in the Public Domain.
  184. // This file is part of the mingw-w64 runtime package.
  185. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  186. // *
  187. // This file has no copyright assigned and is placed in the Public Domain.
  188. // This file is part of the mingw-w64 runtime package.
  189. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  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. // This macro holds an monotonic increasing value, which indicates
  195. // a specific fix/patch is present on trunk. This value isn't related to
  196. // minor/major version-macros. It is increased on demand, if a big
  197. // fix was applied to trunk. This macro gets just increased on trunk. For
  198. // other branches its value won't be modified.
  199. // mingw.org's version macros: these make gcc to define
  200. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  201. // and the __mingwthr_key_dtor() function from the MinGW
  202. // CRT in its private gthr-win32.h header.
  203. // Set VC specific compiler target macros.
  204. // MS does not prefix symbols by underscores for 64-bit.
  205. // As we have to support older gcc version, which are using underscores
  206. // as symbol prefix for x64, we have to check here for the user label
  207. // prefix defined by gcc.
  208. // Special case nameless struct/union.
  209. // MinGW-w64 has some additional C99 printf/scanf feature support.
  210. // So we add some helper macros to ease recognition of them.
  211. // *
  212. // This file has no copyright assigned and is placed in the Public Domain.
  213. // This file is part of the mingw-w64 runtime package.
  214. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  215. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  216. // Templates won't work in C, will break if secure API is not enabled, disabled
  217. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  218. // fallback on default implementation if we can't know the size of the destination
  219. // Include _cygwin.h if we're building a Cygwin application.
  220. // Target specific macro replacement for type "long". In the Windows API,
  221. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  222. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  223. // sized definitions and declarations, all usage of type long in the Windows
  224. // headers have to be replaced by the below defined macro __LONG32.
  225. // C/C++ specific language defines.
  226. // Note the extern. This is needed to work around GCC's
  227. // limitations in handling dllimport attribute.
  228. // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
  229. // variadiac macro facility, because variadic macros cause syntax
  230. // errors with --traditional-cpp.
  231. // High byte is the major version, low byte is the minor.
  232. // *
  233. // This file has no copyright assigned and is placed in the Public Domain.
  234. // This file is part of the mingw-w64 runtime package.
  235. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  236. // *
  237. // This file has no copyright assigned and is placed in the Public Domain.
  238. // This file is part of the mingw-w64 runtime package.
  239. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  240. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  241. type Ssize_t = int64 /* crtdefs.h:45:35 */
  242. type Rsize_t = Size_t /* crtdefs.h:52:16 */
  243. type Intptr_t = int64 /* crtdefs.h:62:35 */
  244. type Uintptr_t = uint64 /* crtdefs.h:75:44 */
  245. type Wint_t = uint16 /* crtdefs.h:106:24 */
  246. type Wctype_t = uint16 /* crtdefs.h:107:24 */
  247. type Errno_t = int32 /* crtdefs.h:113:13 */
  248. type X__time32_t = int32 /* crtdefs.h:118:14 */
  249. type X__time64_t = int64 /* crtdefs.h:123:35 */
  250. type Time_t = X__time64_t /* crtdefs.h:138:20 */
  251. type Threadlocaleinfostruct = struct {
  252. Frefcount int32
  253. Flc_codepage uint32
  254. Flc_collate_cp uint32
  255. Flc_handle [6]uint32
  256. Flc_id [6]LC_ID
  257. Flc_category [6]struct {
  258. Flocale uintptr
  259. Fwlocale uintptr
  260. Frefcount uintptr
  261. Fwrefcount uintptr
  262. }
  263. Flc_clike int32
  264. Fmb_cur_max int32
  265. Flconv_intl_refcount uintptr
  266. Flconv_num_refcount uintptr
  267. Flconv_mon_refcount uintptr
  268. Flconv uintptr
  269. Fctype1_refcount uintptr
  270. Fctype1 uintptr
  271. Fpctype uintptr
  272. Fpclmap uintptr
  273. Fpcumap uintptr
  274. Flc_time_curr uintptr
  275. } /* crtdefs.h:422:1 */
  276. type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
  277. type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
  278. type Localeinfo_struct = struct {
  279. Flocinfo Pthreadlocinfo
  280. Fmbcinfo Pthreadmbcinfo
  281. } /* crtdefs.h:428:9 */
  282. type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
  283. type X_locale_t = uintptr /* crtdefs.h:431:19 */
  284. type TagLC_ID = struct {
  285. FwLanguage uint16
  286. FwCountry uint16
  287. FwCodePage uint16
  288. } /* crtdefs.h:422:1 */
  289. type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
  290. type LPLC_ID = uintptr /* crtdefs.h:439:9 */
  291. type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
  292. // File system limits
  293. //
  294. // NOTE: Apparently the actual size of PATH_MAX is 260, but a space is
  295. // required for the NUL. TODO: Test?
  296. // NOTE: PATH_MAX is the POSIX equivalent for Microsoft's MAX_PATH; the two
  297. // are semantically identical, with a limit of 259 characters for the
  298. // path name, plus one for a terminating NUL, for a total of 260.
  299. // Copyright (C) 1991-2018 Free Software Foundation, Inc.
  300. //
  301. // This file is part of GCC.
  302. //
  303. // GCC is free software; you can redistribute it and/or modify it under
  304. // the terms of the GNU General Public License as published by the Free
  305. // Software Foundation; either version 3, or (at your option) any later
  306. // version.
  307. //
  308. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  309. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  310. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  311. // for more details.
  312. //
  313. // Under Section 7 of GPL version 3, you are granted additional
  314. // permissions described in the GCC Runtime Library Exception, version
  315. // 3.1, as published by the Free Software Foundation.
  316. //
  317. // You should have received a copy of the GNU General Public License and
  318. // a copy of the GCC Runtime Library Exception along with this program;
  319. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  320. // <http://www.gnu.org/licenses/>.
  321. // Number of bits in a `char'.
  322. // Maximum length of a multibyte character.
  323. // Minimum and maximum values a `signed char' can hold.
  324. // Maximum value an `unsigned char' can hold. (Minimum is 0).
  325. // Minimum and maximum values a `char' can hold.
  326. // Minimum and maximum values a `signed short int' can hold.
  327. // Maximum value an `unsigned short int' can hold. (Minimum is 0).
  328. // Minimum and maximum values a `signed int' can hold.
  329. // Maximum value an `unsigned int' can hold. (Minimum is 0).
  330. // Minimum and maximum values a `signed long int' can hold.
  331. // (Same as `int').
  332. // Maximum value an `unsigned long int' can hold. (Minimum is 0).
  333. // Minimum and maximum values a `signed long long int' can hold.
  334. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  335. // Minimum and maximum values a `signed long long int' can hold.
  336. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  337. // This administrivia gets added to the end of limits.h
  338. // if the system has its own version of limits.h.
  339. var _ int8 /* gen.c:2:13: */