stdlib_illumos_amd64.go 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  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_illumos_amd64.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. EXIT_FAILURE = 1 // stdlib_iso.h:84:1:
  15. EXIT_SUCCESS = 0 // stdlib_iso.h:85:1:
  16. INT16_MAX = 32767 // int_limits.h:93:1:
  17. INT16_MIN = -32768 // int_limits.h:211:1:
  18. INT32_MAX = 2147483647 // int_limits.h:94:1:
  19. INT32_MIN = -2147483648 // int_limits.h:212:1:
  20. INT64_MAX = 9223372036854775807 // int_limits.h:96:1:
  21. INT64_MIN = -9223372036854775808 // int_limits.h:214:1:
  22. INT8_MAX = 127 // int_limits.h:92:1:
  23. INT8_MIN = -128 // int_limits.h:210:1:
  24. INTMAX_MAX = 9223372036854775807 // int_limits.h:111:1:
  25. INTMAX_MIN = -9223372036854775808 // int_limits.h:220:1:
  26. INTPTR_MAX = 9223372036854775807 // int_limits.h:157:1:
  27. INTPTR_MIN = -9223372036854775808 // int_limits.h:241:1:
  28. INT_FAST16_MAX = 2147483647 // int_limits.h:137:1:
  29. INT_FAST16_MIN = -2147483648 // int_limits.h:233:1:
  30. INT_FAST32_MAX = 2147483647 // int_limits.h:138:1:
  31. INT_FAST32_MIN = -2147483648 // int_limits.h:234:1:
  32. INT_FAST64_MAX = 9223372036854775807 // int_limits.h:140:1:
  33. INT_FAST64_MIN = -9223372036854775808 // int_limits.h:236:1:
  34. INT_FAST8_MAX = 127 // int_limits.h:136:1:
  35. INT_FAST8_MIN = -128 // int_limits.h:232:1:
  36. INT_LEAST16_MAX = 32767 // int_limits.h:123:1:
  37. INT_LEAST16_MIN = -32768 // int_limits.h:226:1:
  38. INT_LEAST32_MAX = 2147483647 // int_limits.h:124:1:
  39. INT_LEAST32_MIN = -2147483648 // int_limits.h:227:1:
  40. INT_LEAST64_MAX = 9223372036854775807 // int_limits.h:126:1:
  41. INT_LEAST64_MIN = -9223372036854775808 // int_limits.h:229:1:
  42. INT_LEAST8_MAX = 127 // int_limits.h:122:1:
  43. INT_LEAST8_MIN = -128 // int_limits.h:225:1:
  44. PRIX32 = "X" // int_fmtio.h:211:1:
  45. PRIX64 = "lX" // int_fmtio.h:216:1:
  46. PRIXMAX = "lX" // int_fmtio.h:365:1:
  47. PRIXPTR = "lX" // int_fmtio.h:237:1:
  48. PRId32 = "d" // int_fmtio.h:102:1:
  49. PRId64 = "ld" // int_fmtio.h:107:1:
  50. PRIdMAX = "ld" // int_fmtio.h:360:1:
  51. PRIdPTR = "ld" // int_fmtio.h:232:1:
  52. PRIi32 = "i" // int_fmtio.h:123:1:
  53. PRIi64 = "li" // int_fmtio.h:128:1:
  54. PRIiMAX = "li" // int_fmtio.h:361:1:
  55. PRIiPTR = "li" // int_fmtio.h:233:1:
  56. PRIo32 = "o" // int_fmtio.h:148:1:
  57. PRIo64 = "lo" // int_fmtio.h:153:1:
  58. PRIoMAX = "lo" // int_fmtio.h:362:1:
  59. PRIoPTR = "lo" // int_fmtio.h:234:1:
  60. PRIu32 = "u" // int_fmtio.h:169:1:
  61. PRIu64 = "lu" // int_fmtio.h:174:1:
  62. PRIuMAX = "lu" // int_fmtio.h:364:1:
  63. PRIuPTR = "lu" // int_fmtio.h:235:1:
  64. PRIx32 = "x" // int_fmtio.h:190:1:
  65. PRIx64 = "lx" // int_fmtio.h:195:1:
  66. PRIxMAX = "lx" // int_fmtio.h:363:1:
  67. PRIxPTR = "lx" // int_fmtio.h:236:1:
  68. PTRDIFF_MAX = 9223372036854775807 // int_limits.h:166:1:
  69. PTRDIFF_MIN = -9223372036854775808 // int_limits.h:248:1:
  70. RAND_MAX = 32767 // stdlib_iso.h:86:1:
  71. SCNX16 = "hX" // int_fmtio.h:336:1:
  72. SCNX32 = "X" // int_fmtio.h:338:1:
  73. SCNX8 = "hhX" // int_fmtio.h:333:1:
  74. SCNd16 = "hd" // int_fmtio.h:253:1:
  75. SCNd32 = "d" // int_fmtio.h:255:1:
  76. SCNd8 = "hhd" // int_fmtio.h:250:1:
  77. SCNi16 = "hi" // int_fmtio.h:269:1:
  78. SCNi32 = "i" // int_fmtio.h:271:1:
  79. SCNi8 = "hhi" // int_fmtio.h:266:1:
  80. SCNo16 = "ho" // int_fmtio.h:288:1:
  81. SCNo32 = "o" // int_fmtio.h:290:1:
  82. SCNo8 = "hho" // int_fmtio.h:285:1:
  83. SCNu16 = "hu" // int_fmtio.h:304:1:
  84. SCNu32 = "u" // int_fmtio.h:306:1:
  85. SCNu8 = "hhu" // int_fmtio.h:301:1:
  86. SCNx16 = "hx" // int_fmtio.h:320:1:
  87. SCNx32 = "x" // int_fmtio.h:322:1:
  88. SCNx8 = "hhx" // int_fmtio.h:317:1:
  89. SIG_ATOMIC_MAX = 2147483647 // int_limits.h:186:1:
  90. SIG_ATOMIC_MIN = -2147483648 // int_limits.h:255:1:
  91. SIZE_MAX = 18446744073709551615 // int_limits.h:179:1:
  92. UINT16_MAX = 65535 // int_limits.h:102:1:
  93. UINT32_MAX = 4294967295 // int_limits.h:103:1:
  94. UINT64_MAX = 18446744073709551615 // int_limits.h:105:1:
  95. UINT8_MAX = 255 // int_limits.h:101:1:
  96. UINTMAX_MAX = 18446744073709551615 // int_limits.h:117:1:
  97. UINTPTR_MAX = 18446744073709551615 // int_limits.h:158:1:
  98. UINT_FAST16_MAX = 4294967295 // int_limits.h:144:1:
  99. UINT_FAST32_MAX = 4294967295 // int_limits.h:145:1:
  100. UINT_FAST64_MAX = 18446744073709551615 // int_limits.h:147:1:
  101. UINT_FAST8_MAX = 255 // int_limits.h:143:1:
  102. UINT_LEAST16_MAX = 65535 // int_limits.h:130:1:
  103. UINT_LEAST32_MAX = 4294967295 // int_limits.h:131:1:
  104. UINT_LEAST64_MAX = 18446744073709551615 // int_limits.h:133:1:
  105. UINT_LEAST8_MAX = 255 // int_limits.h:129:1:
  106. WCHAR_MAX = 2147483647 // int_limits.h:195:1:
  107. WCHAR_MIN = -2147483648 // int_limits.h:264:1:
  108. WINT_MAX = 2147483647 // int_limits.h:200:1:
  109. WINT_MIN = -2147483648 // int_limits.h:269:1:
  110. X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1:
  111. X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1:
  112. X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1:
  113. X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1:
  114. X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1:
  115. X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1:
  116. X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1:
  117. X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1:
  118. X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1:
  119. X_DTRACE_VERSION = 1 // feature_tests.h:490:1:
  120. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  121. X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1:
  122. X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1:
  123. X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1:
  124. X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1:
  125. X_IEEE_754 = 0 // isa_defs.h:246:1:
  126. X_INT64_TYPE = 0 // int_types.h:82:1:
  127. X_INTTYPES_H = 0 // inttypes.h:30:1:
  128. X_INT_ALIGNMENT = 4 // isa_defs.h:251:1:
  129. X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1:
  130. X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1:
  131. X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1:
  132. X_ISO_STDLIB_C11_H = 0 // stdlib_c11.h:28:1:
  133. X_ISO_STDLIB_C99_H = 0 // stdlib_c99.h:41:1:
  134. X_ISO_STDLIB_ISO_H = 0 // stdlib_iso.h:47:1:
  135. X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1:
  136. X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1:
  137. X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1:
  138. X_LONGLONG_TYPE = 0 // feature_tests.h:412:1:
  139. X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1:
  140. X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1:
  141. X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1:
  142. X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1:
  143. X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1:
  144. X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1:
  145. X_LP64 = 1 // <predefined>:286:1:
  146. X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1:
  147. X_MODF16 = "h" // int_fmtio.h:87:1:
  148. X_MODF8 = "hh" // int_fmtio.h:86:1:
  149. X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1:
  150. X_NORETURN_KYWD = 0 // feature_tests.h:448:1:
  151. X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1:
  152. X_PRIX = "X" // int_fmtio.h:95:1:
  153. X_PRId = "d" // int_fmtio.h:90:1:
  154. X_PRIi = "i" // int_fmtio.h:91:1:
  155. X_PRIo = "o" // int_fmtio.h:92:1:
  156. X_PRIu = "u" // int_fmtio.h:93:1:
  157. X_PRIx = "x" // int_fmtio.h:94:1:
  158. X_PSM_MODULES = 0 // isa_defs.h:284:1:
  159. X_RESTRICT_KYWD = 0 // feature_tests.h:435:1:
  160. X_RTC_CONFIG = 0 // isa_defs.h:285:1:
  161. X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1:
  162. X_SIZE_T = 0 // stdlib_iso.h:76:1:
  163. X_SOFT_HOSTID = 0 // isa_defs.h:286:1:
  164. X_SSIZE_T = 0 // stdlib.h:177:1:
  165. X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1:
  166. X_STDC_C11 = 0 // feature_tests.h:165:1:
  167. X_STDC_C99 = 0 // feature_tests.h:169:1:
  168. X_STDLIB_H = 0 // stdlib.h:38:1:
  169. X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1:
  170. X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1:
  171. X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1:
  172. X_SYS_INTTYPES_H = 0 // inttypes.h:28:1:
  173. X_SYS_INT_CONST_H = 0 // int_const.h:39:1:
  174. X_SYS_INT_FMTIO_H = 0 // int_fmtio.h:30:1:
  175. X_SYS_INT_LIMITS_H = 0 // int_limits.h:39:1:
  176. X_SYS_INT_TYPES_H = 0 // int_types.h:30:1:
  177. X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1:
  178. X_SYS_NULL_H = 0 // null.h:17:1:
  179. X_SYS_STDINT_H = 0 // stdint.h:28:1:
  180. X_UID_T = 0 // stdlib.h:103:1:
  181. X_WCHAR_T = 0 // stdlib_iso.h:103:1:
  182. X_XOPEN_VERSION = 3 // feature_tests.h:392:1:
  183. Sun = 1 // <predefined>:172:1:
  184. Unix = 1 // <predefined>:175:1:
  185. )
  186. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  187. type Size_t = uint64 /* <builtin>:9:23 */
  188. type Wchar_t = int32 /* <builtin>:15:24 */
  189. type X__int128_t = struct {
  190. Flo int64
  191. Fhi int64
  192. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  193. type X__uint128_t = struct {
  194. Flo uint64
  195. Fhi uint64
  196. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  197. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  198. type X__float128 = float64 /* <builtin>:47:21 */
  199. type Div_t = struct {
  200. Fquot int32
  201. Frem int32
  202. } /* stdlib_iso.h:68:3 */
  203. type Ldiv_t = struct {
  204. Fquot int64
  205. Frem int64
  206. } /* stdlib_iso.h:73:3 */
  207. // CDDL HEADER START
  208. //
  209. // The contents of this file are subject to the terms of the
  210. // Common Development and Distribution License, Version 1.0 only
  211. // (the "License"). You may not use this file except in compliance
  212. // with the License.
  213. //
  214. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  215. // or http://www.opensolaris.org/os/licensing.
  216. // See the License for the specific language governing permissions
  217. // and limitations under the License.
  218. //
  219. // When distributing Covered Code, include this CDDL HEADER in each
  220. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  221. // If applicable, add the following below this CDDL HEADER, with the
  222. // fields enclosed by brackets "[]" replaced with your own identifying
  223. // information: Portions Copyright [yyyy] [name of copyright owner]
  224. //
  225. // CDDL HEADER END
  226. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  227. //
  228. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  229. // Use is subject to license terms.
  230. // An application should not include this header directly. Instead it
  231. // should be included only through the inclusion of other Sun headers.
  232. //
  233. // The contents of this header is limited to identifiers specified in
  234. // the C99 standard and in conflict with the C++ implementation of the
  235. // standard header. The C++ standard may adopt the C99 standard at
  236. // which point it is expected that the symbols included here will
  237. // become part of the C++ std namespace.
  238. // DO NOT EDIT THIS FILE.
  239. //
  240. // It has been auto-edited by fixincludes from:
  241. //
  242. // "/usr/include/sys/feature_tests.h"
  243. //
  244. // This had to be done to correct non-standard usages in the
  245. // original, manufacturer supplied header file.
  246. // CDDL HEADER START
  247. //
  248. // The contents of this file are subject to the terms of the
  249. // Common Development and Distribution License (the "License").
  250. // You may not use this file except in compliance with the License.
  251. //
  252. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  253. // or http://www.opensolaris.org/os/licensing.
  254. // See the License for the specific language governing permissions
  255. // and limitations under the License.
  256. //
  257. // When distributing Covered Code, include this CDDL HEADER in each
  258. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  259. // If applicable, add the following below this CDDL HEADER, with the
  260. // fields enclosed by brackets "[]" replaced with your own identifying
  261. // information: Portions Copyright [yyyy] [name of copyright owner]
  262. //
  263. // CDDL HEADER END
  264. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  265. // Copyright 2016 Joyent, Inc.
  266. // Copyright 2022 Oxide Computer Company
  267. //
  268. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  269. // Use is subject to license terms.
  270. // The following have been added as a result of the ISO/IEC 9899:1999
  271. // standard. For a strictly conforming C application, visibility is
  272. // contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h).
  273. // For non-strictly conforming C applications, there are no restrictions
  274. // on the C namespace.
  275. type Lldiv_t = struct {
  276. Fquot int64
  277. Frem int64
  278. } /* stdlib_c99.h:61:3 */
  279. // ISO C11 Annex K functions are not allowed to be in the standard
  280. // namespace; however, it is implementation-defined as to whether or
  281. // not they are in the global namespace and we opt to make them
  282. // available to software.
  283. // Allow global visibility for symbols defined in
  284. // C++ "std" namespace in <iso/stdlib_iso.h>.
  285. // Allow global visibility for symbols defined in
  286. // C++ "std" namespace in <iso/stdlib_c11.h>.
  287. type Uid_t = uint32 /* stdlib.h:104:22 */
  288. // swab() has historically been in <stdlib.h> as delivered from AT&T
  289. // and continues to be visible in the default compilation environment.
  290. // As of Issue 4 of the X/Open Portability Guides, swab() was declared
  291. // in <unistd.h>. As a result, with respect to X/Open namespace the
  292. // swab() declaration in this header is only visible for the XPG3
  293. // environment.
  294. type Ssize_t = int64 /* stdlib.h:179:14 */
  295. // OpenBSD and misc. compatibility functions
  296. // CDDL HEADER START
  297. //
  298. // The contents of this file are subject to the terms of the
  299. // Common Development and Distribution License, Version 1.0 only
  300. // (the "License"). You may not use this file except in compliance
  301. // with the License.
  302. //
  303. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  304. // or http://www.opensolaris.org/os/licensing.
  305. // See the License for the specific language governing permissions
  306. // and limitations under the License.
  307. //
  308. // When distributing Covered Code, include this CDDL HEADER in each
  309. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  310. // If applicable, add the following below this CDDL HEADER, with the
  311. // fields enclosed by brackets "[]" replaced with your own identifying
  312. // information: Portions Copyright [yyyy] [name of copyright owner]
  313. //
  314. // CDDL HEADER END
  315. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  316. //
  317. // Copyright 2005 Sun Microsystems, Inc. All rights reserved.
  318. // Use is subject to license terms.
  319. // This file, <inttypes.h>, is specified by the ISO C standard,
  320. // standard, ISO/IEC 9899:1999 Programming language - C and is
  321. // also defined by SUSv3.
  322. //
  323. // ISO International Organization for Standardization.
  324. // SUSv3 Single Unix Specification, Version 3
  325. // DO NOT EDIT THIS FILE.
  326. //
  327. // It has been auto-edited by fixincludes from:
  328. //
  329. // "/usr/include/sys/feature_tests.h"
  330. //
  331. // This had to be done to correct non-standard usages in the
  332. // original, manufacturer supplied header file.
  333. // CDDL HEADER START
  334. //
  335. // The contents of this file are subject to the terms of the
  336. // Common Development and Distribution License (the "License").
  337. // You may not use this file except in compliance with the License.
  338. //
  339. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  340. // or http://www.opensolaris.org/os/licensing.
  341. // See the License for the specific language governing permissions
  342. // and limitations under the License.
  343. //
  344. // When distributing Covered Code, include this CDDL HEADER in each
  345. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  346. // If applicable, add the following below this CDDL HEADER, with the
  347. // fields enclosed by brackets "[]" replaced with your own identifying
  348. // information: Portions Copyright [yyyy] [name of copyright owner]
  349. //
  350. // CDDL HEADER END
  351. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  352. // Copyright 2016 Joyent, Inc.
  353. // Copyright 2022 Oxide Computer Company
  354. //
  355. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  356. // Use is subject to license terms.
  357. // CDDL HEADER START
  358. //
  359. // The contents of this file are subject to the terms of the
  360. // Common Development and Distribution License, Version 1.0 only
  361. // (the "License"). You may not use this file except in compliance
  362. // with the License.
  363. //
  364. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  365. // or http://www.opensolaris.org/os/licensing.
  366. // See the License for the specific language governing permissions
  367. // and limitations under the License.
  368. //
  369. // When distributing Covered Code, include this CDDL HEADER in each
  370. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  371. // If applicable, add the following below this CDDL HEADER, with the
  372. // fields enclosed by brackets "[]" replaced with your own identifying
  373. // information: Portions Copyright [yyyy] [name of copyright owner]
  374. //
  375. // CDDL HEADER END
  376. // Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  377. // Use is subject to license terms.
  378. // This header, <sys/inttypes.h>, contains (through nested inclusion) the
  379. // vast majority of the facilities specified for <inttypes.h> as defined
  380. // by the ISO C Standard, ISO/IEC 9899:1999 Programming language - C.
  381. //
  382. // Kernel/Driver developers are encouraged to include this file to access
  383. // the fixed size types, limits and utility macros. Application developers
  384. // should use the standard defined header <inttypes.h>.
  385. // DO NOT EDIT THIS FILE.
  386. //
  387. // It has been auto-edited by fixincludes from:
  388. //
  389. // "/usr/include/sys/feature_tests.h"
  390. //
  391. // This had to be done to correct non-standard usages in the
  392. // original, manufacturer supplied header file.
  393. // CDDL HEADER START
  394. //
  395. // The contents of this file are subject to the terms of the
  396. // Common Development and Distribution License (the "License").
  397. // You may not use this file except in compliance with the License.
  398. //
  399. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  400. // or http://www.opensolaris.org/os/licensing.
  401. // See the License for the specific language governing permissions
  402. // and limitations under the License.
  403. //
  404. // When distributing Covered Code, include this CDDL HEADER in each
  405. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  406. // If applicable, add the following below this CDDL HEADER, with the
  407. // fields enclosed by brackets "[]" replaced with your own identifying
  408. // information: Portions Copyright [yyyy] [name of copyright owner]
  409. //
  410. // CDDL HEADER END
  411. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  412. // Copyright 2016 Joyent, Inc.
  413. // Copyright 2022 Oxide Computer Company
  414. //
  415. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  416. // Use is subject to license terms.
  417. // CDDL HEADER START
  418. //
  419. // The contents of this file are subject to the terms of the
  420. // Common Development and Distribution License, Version 1.0 only
  421. // (the "License"). You may not use this file except in compliance
  422. // with the License.
  423. //
  424. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  425. // or http://www.opensolaris.org/os/licensing.
  426. // See the License for the specific language governing permissions
  427. // and limitations under the License.
  428. //
  429. // When distributing Covered Code, include this CDDL HEADER in each
  430. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  431. // If applicable, add the following below this CDDL HEADER, with the
  432. // fields enclosed by brackets "[]" replaced with your own identifying
  433. // information: Portions Copyright [yyyy] [name of copyright owner]
  434. //
  435. // CDDL HEADER END
  436. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  437. //
  438. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  439. // Use is subject to license terms.
  440. // This file, <sys/int_types.h>, is part of the Sun Microsystems implementation
  441. // of <inttypes.h> defined in the ISO C standard, ISO/IEC 9899:1999
  442. // Programming language - C.
  443. //
  444. // Programs/Modules should not directly include this file. Access to the
  445. // types defined in this file should be through the inclusion of one of the
  446. // following files:
  447. //
  448. // <sys/types.h> Provides only the "_t" types defined in this
  449. // file which is a subset of the contents of
  450. // <inttypes.h>. (This can be appropriate for
  451. // all programs/modules except those claiming
  452. // ANSI-C conformance.)
  453. //
  454. // <sys/inttypes.h> Provides the Kernel and Driver appropriate
  455. // components of <inttypes.h>.
  456. //
  457. // <inttypes.h> For use by applications.
  458. //
  459. // See these files for more details.
  460. // DO NOT EDIT THIS FILE.
  461. //
  462. // It has been auto-edited by fixincludes from:
  463. //
  464. // "/usr/include/sys/feature_tests.h"
  465. //
  466. // This had to be done to correct non-standard usages in the
  467. // original, manufacturer supplied header file.
  468. // CDDL HEADER START
  469. //
  470. // The contents of this file are subject to the terms of the
  471. // Common Development and Distribution License (the "License").
  472. // You may not use this file except in compliance with the License.
  473. //
  474. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  475. // or http://www.opensolaris.org/os/licensing.
  476. // See the License for the specific language governing permissions
  477. // and limitations under the License.
  478. //
  479. // When distributing Covered Code, include this CDDL HEADER in each
  480. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  481. // If applicable, add the following below this CDDL HEADER, with the
  482. // fields enclosed by brackets "[]" replaced with your own identifying
  483. // information: Portions Copyright [yyyy] [name of copyright owner]
  484. //
  485. // CDDL HEADER END
  486. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  487. // Copyright 2016 Joyent, Inc.
  488. // Copyright 2022 Oxide Computer Company
  489. //
  490. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  491. // Use is subject to license terms.
  492. // Basic / Extended integer types
  493. //
  494. // The following defines the basic fixed-size integer types.
  495. //
  496. // Implementations are free to typedef them to Standard C integer types or
  497. // extensions that they support. If an implementation does not support one
  498. // of the particular integer data types below, then it should not define the
  499. // typedefs and macros corresponding to that data type. Note that int8_t
  500. // is not defined in -Xs mode on ISAs for which the ABI specifies "char"
  501. // as an unsigned entity because there is no way to define an eight bit
  502. // signed integral.
  503. type Int8_t = int8 /* int_types.h:75:16 */
  504. type Int16_t = int16 /* int_types.h:79:17 */
  505. type Int32_t = int32 /* int_types.h:80:15 */
  506. type Int64_t = int64 /* int_types.h:83:16 */
  507. type Uint8_t = uint8 /* int_types.h:91:24 */
  508. type Uint16_t = uint16 /* int_types.h:92:25 */
  509. type Uint32_t = uint32 /* int_types.h:93:23 */
  510. type Uint64_t = uint64 /* int_types.h:95:24 */
  511. // intmax_t and uintmax_t are to be the longest (in number of bits) signed
  512. // and unsigned integer types supported by the implementation.
  513. type Intmax_t = int64 /* int_types.h:107:19 */
  514. type Uintmax_t = uint64 /* int_types.h:108:19 */
  515. // intptr_t and uintptr_t are signed and unsigned integer types large enough
  516. // to hold any data pointer; that is, data pointers can be assigned into or
  517. // from these integer types without losing precision.
  518. type Intptr_t = int64 /* int_types.h:120:16 */
  519. type Uintptr_t = uint64 /* int_types.h:121:24 */
  520. // The following define the fastest integer types that can hold the
  521. // specified number of bits.
  522. type Int_fast8_t = int8 /* int_types.h:132:16 */
  523. type Int_fast16_t = int32 /* int_types.h:136:15 */
  524. type Int_fast32_t = int32 /* int_types.h:137:15 */
  525. type Int_fast64_t = int64 /* int_types.h:139:16 */
  526. type Uint_fast8_t = uint8 /* int_types.h:146:24 */
  527. type Uint_fast16_t = uint32 /* int_types.h:147:23 */
  528. type Uint_fast32_t = uint32 /* int_types.h:148:23 */
  529. type Uint_fast64_t = uint64 /* int_types.h:150:24 */
  530. // The following define the smallest integer types that can hold the
  531. // specified number of bits.
  532. type Int_least8_t = int8 /* int_types.h:162:16 */
  533. type Int_least16_t = int16 /* int_types.h:166:17 */
  534. type Int_least32_t = int32 /* int_types.h:167:15 */
  535. type Int_least64_t = int64 /* int_types.h:169:16 */
  536. // If these are changed, please update char16_t and char32_t in head/uchar.h.
  537. type Uint_least8_t = uint8 /* int_types.h:179:24 */
  538. type Uint_least16_t = uint16 /* int_types.h:180:25 */
  539. type Uint_least32_t = uint32 /* int_types.h:181:23 */
  540. type Uint_least64_t = uint64 /* int_types.h:183:24 */
  541. // DO NOT EDIT THIS FILE.
  542. //
  543. // It has been auto-edited by fixincludes from:
  544. //
  545. // "/usr/include/sys/int_limits.h"
  546. //
  547. // This had to be done to correct non-standard usages in the
  548. // original, manufacturer supplied header file.
  549. // CDDL HEADER START
  550. //
  551. // The contents of this file are subject to the terms of the
  552. // Common Development and Distribution License, Version 1.0 only
  553. // (the "License"). You may not use this file except in compliance
  554. // with the License.
  555. //
  556. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  557. // or http://www.opensolaris.org/os/licensing.
  558. // See the License for the specific language governing permissions
  559. // and limitations under the License.
  560. //
  561. // When distributing Covered Code, include this CDDL HEADER in each
  562. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  563. // If applicable, add the following below this CDDL HEADER, with the
  564. // fields enclosed by brackets "[]" replaced with your own identifying
  565. // information: Portions Copyright [yyyy] [name of copyright owner]
  566. //
  567. // CDDL HEADER END
  568. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  569. //
  570. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  571. // Use is subject to license terms.
  572. // This file, <sys/int_limits.h>, is part of the Sun Microsystems implementation
  573. // of <inttypes.h> as defined in the ISO C standard, ISO/IEC 9899:1999
  574. // Programming language - C.
  575. //
  576. // Programs/Modules should not directly include this file. Access to the
  577. // types defined in this file should be through the inclusion of one of the
  578. // following files:
  579. //
  580. // <limits.h> This nested inclusion is disabled for strictly
  581. // ANSI-C conforming compilations. The *_MIN
  582. // definitions are not visible to POSIX or XPG
  583. // conforming applications (due to what may be
  584. // a bug in the specification - this is under
  585. // investigation)
  586. //
  587. // <sys/inttypes.h> Provides the Kernel and Driver appropriate
  588. // components of <inttypes.h>.
  589. //
  590. // <inttypes.h> For use by applications.
  591. //
  592. // See these files for more details.
  593. // DO NOT EDIT THIS FILE.
  594. //
  595. // It has been auto-edited by fixincludes from:
  596. //
  597. // "/usr/include/sys/feature_tests.h"
  598. //
  599. // This had to be done to correct non-standard usages in the
  600. // original, manufacturer supplied header file.
  601. // CDDL HEADER START
  602. //
  603. // The contents of this file are subject to the terms of the
  604. // Common Development and Distribution License (the "License").
  605. // You may not use this file except in compliance with the License.
  606. //
  607. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  608. // or http://www.opensolaris.org/os/licensing.
  609. // See the License for the specific language governing permissions
  610. // and limitations under the License.
  611. //
  612. // When distributing Covered Code, include this CDDL HEADER in each
  613. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  614. // If applicable, add the following below this CDDL HEADER, with the
  615. // fields enclosed by brackets "[]" replaced with your own identifying
  616. // information: Portions Copyright [yyyy] [name of copyright owner]
  617. //
  618. // CDDL HEADER END
  619. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  620. // Copyright 2016 Joyent, Inc.
  621. // Copyright 2022 Oxide Computer Company
  622. //
  623. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  624. // Use is subject to license terms.
  625. // Limits
  626. //
  627. // The following define the limits for the types defined in <sys/int_types.h>.
  628. //
  629. // INTMAX_MIN (minimum value of the largest supported signed integer type),
  630. // INTMAX_MAX (maximum value of the largest supported signed integer type),
  631. // and UINTMAX_MAX (maximum value of the largest supported unsigned integer
  632. // type) can be set to implementation defined limits.
  633. //
  634. // NOTE : A programmer can test to see whether an implementation supports
  635. // a particular size of integer by testing if the macro that gives the
  636. // maximum for that datatype is defined. For example, if #ifdef UINT64_MAX
  637. // tests false, the implementation does not support unsigned 64 bit integers.
  638. //
  639. // The type of these macros is intentionally unspecified.
  640. //
  641. // The types int8_t, int_least8_t, and int_fast8_t are not defined for ISAs
  642. // where the ABI specifies "char" as unsigned when the translation mode is
  643. // not ANSI-C.
  644. // The following 2 macros are provided for testing whether the types
  645. // intptr_t and uintptr_t (integers large enough to hold a void *) are
  646. // defined in this header. They are needed in case the architecture can't
  647. // represent a pointer in any standard integral type.
  648. // Maximum limits of ptrdiff_t defined in <sys/types.h>
  649. // Maximum value of a "size_t". SIZE_MAX was previously defined
  650. // in <limits.h>, however, the standards specify it be defined
  651. // in <stdint.h>. The <stdint.h> headers includes this header as
  652. // does <limits.h>. The value of SIZE_MAX should not deviate
  653. // from the value of ULONG_MAX defined <sys/types.h>.
  654. // Maximum limit of sig_atomic_t defined in <sys/types.h>
  655. // Maximum limit of wchar_t. The WCHAR_* macros are also
  656. // defined in <iso/wchar_iso.h>, but inclusion of that header
  657. // will break ISO/IEC C namespace.
  658. // Maximum limit of wint_t
  659. // It is probably a bug in the POSIX specification (IEEE-1003.1-1990) that
  660. // when including <limits.h> that the suffix _MAX is reserved but not the
  661. // suffix _MIN. However, until that issue is resolved....
  662. // Minimum value of a pointer-holding signed integer type
  663. // Minimum limits of ptrdiff_t defined in <sys/types.h>
  664. // Minimum limit of sig_atomic_t defined in <sys/types.h>
  665. // Minimum limit of wchar_t. The WCHAR_* macros are also
  666. // defined in <iso/wchar_iso.h>, but inclusion of that header
  667. // will break ISO/IEC C namespace.
  668. // Minimum limit of wint_t
  669. // DO NOT EDIT THIS FILE.
  670. //
  671. // It has been auto-edited by fixincludes from:
  672. //
  673. // "/usr/include/sys/int_const.h"
  674. //
  675. // This had to be done to correct non-standard usages in the
  676. // original, manufacturer supplied header file.
  677. // CDDL HEADER START
  678. //
  679. // The contents of this file are subject to the terms of the
  680. // Common Development and Distribution License, Version 1.0 only
  681. // (the "License"). You may not use this file except in compliance
  682. // with the License.
  683. //
  684. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  685. // or http://www.opensolaris.org/os/licensing.
  686. // See the License for the specific language governing permissions
  687. // and limitations under the License.
  688. //
  689. // When distributing Covered Code, include this CDDL HEADER in each
  690. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  691. // If applicable, add the following below this CDDL HEADER, with the
  692. // fields enclosed by brackets "[]" replaced with your own identifying
  693. // information: Portions Copyright [yyyy] [name of copyright owner]
  694. //
  695. // CDDL HEADER END
  696. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  697. //
  698. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  699. // Use is subject to license terms.
  700. // This file, <sys/int_const.h>, is part of the Sun Microsystems implementation
  701. // of <inttypes.h> as proposed in the ISO/JTC1/SC22/WG14 C committee's working
  702. // draft for the revision of the current ISO C standard, ISO/IEC 9899:1990
  703. // Programming language - C.
  704. //
  705. // Programs/Modules should not directly include this file. Access to the
  706. // types defined in this file should be through the inclusion of one of the
  707. // following files:
  708. //
  709. // <sys/inttypes.h> Provides the Kernel and Driver appropriate
  710. // components of <inttypes.h>.
  711. //
  712. // <inttypes.h> For use by applications.
  713. //
  714. // See these files for more details.
  715. //
  716. // Use at your own risk. This file will track the evolution of the revision
  717. // of the current ISO C standard. As of February 1996, the committee is
  718. // squarely behind the fixed sized types.
  719. // DO NOT EDIT THIS FILE.
  720. //
  721. // It has been auto-edited by fixincludes from:
  722. //
  723. // "/usr/include/sys/feature_tests.h"
  724. //
  725. // This had to be done to correct non-standard usages in the
  726. // original, manufacturer supplied header file.
  727. // CDDL HEADER START
  728. //
  729. // The contents of this file are subject to the terms of the
  730. // Common Development and Distribution License (the "License").
  731. // You may not use this file except in compliance with the License.
  732. //
  733. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  734. // or http://www.opensolaris.org/os/licensing.
  735. // See the License for the specific language governing permissions
  736. // and limitations under the License.
  737. //
  738. // When distributing Covered Code, include this CDDL HEADER in each
  739. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  740. // If applicable, add the following below this CDDL HEADER, with the
  741. // fields enclosed by brackets "[]" replaced with your own identifying
  742. // information: Portions Copyright [yyyy] [name of copyright owner]
  743. //
  744. // CDDL HEADER END
  745. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  746. // Copyright 2016 Joyent, Inc.
  747. // Copyright 2022 Oxide Computer Company
  748. //
  749. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  750. // Use is subject to license terms.
  751. // Constants
  752. //
  753. // The following macros create constants of the types defined in
  754. // <sys/int_types.h>. The intent is that:
  755. // Constants defined using these macros have a specific size and
  756. // signedness. The suffix used for int64_t and uint64_t (ll and ull)
  757. // are for examples only. Implementations are permitted to use other
  758. // suffixes.
  759. //
  760. // The "CSTYLED" comments are flags to an internal code style analysis tool
  761. // telling it to silently accept the line which follows. This internal
  762. // standard requires a space between arguments, but the historical,
  763. // non-ANSI-C ``method'' of concatenation can't tolerate those spaces.
  764. // CSTYLED
  765. // CSTYLED
  766. // CSTYLED
  767. // CSTYLED
  768. // CSTYLED
  769. // CSTYLED
  770. // CSTYLED
  771. // CSTYLED
  772. // CDDL HEADER START
  773. //
  774. // The contents of this file are subject to the terms of the
  775. // Common Development and Distribution License, Version 1.0 only
  776. // (the "License"). You may not use this file except in compliance
  777. // with the License.
  778. //
  779. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  780. // or http://www.opensolaris.org/os/licensing.
  781. // See the License for the specific language governing permissions
  782. // and limitations under the License.
  783. //
  784. // When distributing Covered Code, include this CDDL HEADER in each
  785. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  786. // If applicable, add the following below this CDDL HEADER, with the
  787. // fields enclosed by brackets "[]" replaced with your own identifying
  788. // information: Portions Copyright [yyyy] [name of copyright owner]
  789. //
  790. // CDDL HEADER END
  791. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  792. //
  793. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  794. // Use is subject to license terms.
  795. // This file, <sys/int_fmtio.h>, is part of the Sun Microsystems implementation
  796. // of <inttypes.h> as defined by the ISO C Standard, ISO/IEC 9899:1999
  797. // Programming language - C.
  798. //
  799. // ISO International Organization for Standardization.
  800. //
  801. // Programs/Modules should not directly include this file. Access to the
  802. // types defined in this file should be through the inclusion of one of the
  803. // following files:
  804. //
  805. // <sys/inttypes.h> Provides the Kernel and Driver appropriate
  806. // components of <inttypes.h>.
  807. //
  808. // <inttypes.h> For use by applications.
  809. //
  810. // See these files for more details.
  811. // DO NOT EDIT THIS FILE.
  812. //
  813. // It has been auto-edited by fixincludes from:
  814. //
  815. // "/usr/include/sys/feature_tests.h"
  816. //
  817. // This had to be done to correct non-standard usages in the
  818. // original, manufacturer supplied header file.
  819. // CDDL HEADER START
  820. //
  821. // The contents of this file are subject to the terms of the
  822. // Common Development and Distribution License (the "License").
  823. // You may not use this file except in compliance with the License.
  824. //
  825. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  826. // or http://www.opensolaris.org/os/licensing.
  827. // See the License for the specific language governing permissions
  828. // and limitations under the License.
  829. //
  830. // When distributing Covered Code, include this CDDL HEADER in each
  831. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  832. // If applicable, add the following below this CDDL HEADER, with the
  833. // fields enclosed by brackets "[]" replaced with your own identifying
  834. // information: Portions Copyright [yyyy] [name of copyright owner]
  835. //
  836. // CDDL HEADER END
  837. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  838. // Copyright 2016 Joyent, Inc.
  839. // Copyright 2022 Oxide Computer Company
  840. //
  841. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  842. // Use is subject to license terms.
  843. // Formatted I/O
  844. //
  845. // The following macros can be used even when an implementation has not
  846. // extended the printf/scanf family of functions.
  847. //
  848. // The form of the names of the macros is either "PRI" for printf specifiers
  849. // or "SCN" for scanf specifiers, followed by the conversion specifier letter
  850. // followed by the datatype size. For example, PRId32 is the macro for
  851. // the printf d conversion specifier with the flags for 32 bit datatype.
  852. //
  853. // An example using one of these macros:
  854. //
  855. // uint64_t u;
  856. // printf("u = %016" PRIx64 "\n", u);
  857. //
  858. // For the purpose of example, the definitions of the printf/scanf macros
  859. // below have the values appropriate for a machine with 8 bit shorts, 16
  860. // bit shorts, 32 bit ints, 32 or 64 bit longs depending on compilation
  861. // mode, and 64 bit long longs.
  862. // fprintf macros for signed integers
  863. // fprintf macros for unsigned integers
  864. // fprintf macros for pointers
  865. // fscanf macros for signed integers
  866. // fscanf macros for unsigned integers
  867. // The following macros define I/O formats for intmax_t and uintmax_t.
  868. // CDDL HEADER START
  869. //
  870. // The contents of this file are subject to the terms of the
  871. // Common Development and Distribution License, Version 1.0 only
  872. // (the "License"). You may not use this file except in compliance
  873. // with the License.
  874. //
  875. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  876. // or http://www.opensolaris.org/os/licensing.
  877. // See the License for the specific language governing permissions
  878. // and limitations under the License.
  879. //
  880. // When distributing Covered Code, include this CDDL HEADER in each
  881. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  882. // If applicable, add the following below this CDDL HEADER, with the
  883. // fields enclosed by brackets "[]" replaced with your own identifying
  884. // information: Portions Copyright [yyyy] [name of copyright owner]
  885. //
  886. // CDDL HEADER END
  887. // Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  888. // Use is subject to license terms.
  889. // This header is included by <stdint.h> which was introduced by
  890. // the ISO C Standard, ISO/IEC 9899:1999 Programming language - C.
  891. // The header is a subset of the <inttypes.h> header.
  892. // CDDL HEADER START
  893. //
  894. // The contents of this file are subject to the terms of the
  895. // Common Development and Distribution License, Version 1.0 only
  896. // (the "License"). You may not use this file except in compliance
  897. // with the License.
  898. //
  899. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  900. // or http://www.opensolaris.org/os/licensing.
  901. // See the License for the specific language governing permissions
  902. // and limitations under the License.
  903. //
  904. // When distributing Covered Code, include this CDDL HEADER in each
  905. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  906. // If applicable, add the following below this CDDL HEADER, with the
  907. // fields enclosed by brackets "[]" replaced with your own identifying
  908. // information: Portions Copyright [yyyy] [name of copyright owner]
  909. //
  910. // CDDL HEADER END
  911. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  912. //
  913. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  914. // Use is subject to license terms.
  915. // DO NOT EDIT THIS FILE.
  916. //
  917. // It has been auto-edited by fixincludes from:
  918. //
  919. // "/usr/include/sys/int_limits.h"
  920. //
  921. // This had to be done to correct non-standard usages in the
  922. // original, manufacturer supplied header file.
  923. // CDDL HEADER START
  924. //
  925. // The contents of this file are subject to the terms of the
  926. // Common Development and Distribution License, Version 1.0 only
  927. // (the "License"). You may not use this file except in compliance
  928. // with the License.
  929. //
  930. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  931. // or http://www.opensolaris.org/os/licensing.
  932. // See the License for the specific language governing permissions
  933. // and limitations under the License.
  934. //
  935. // When distributing Covered Code, include this CDDL HEADER in each
  936. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  937. // If applicable, add the following below this CDDL HEADER, with the
  938. // fields enclosed by brackets "[]" replaced with your own identifying
  939. // information: Portions Copyright [yyyy] [name of copyright owner]
  940. //
  941. // CDDL HEADER END
  942. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  943. //
  944. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  945. // Use is subject to license terms.
  946. // DO NOT EDIT THIS FILE.
  947. //
  948. // It has been auto-edited by fixincludes from:
  949. //
  950. // "/usr/include/sys/int_const.h"
  951. //
  952. // This had to be done to correct non-standard usages in the
  953. // original, manufacturer supplied header file.
  954. // CDDL HEADER START
  955. //
  956. // The contents of this file are subject to the terms of the
  957. // Common Development and Distribution License, Version 1.0 only
  958. // (the "License"). You may not use this file except in compliance
  959. // with the License.
  960. //
  961. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  962. // or http://www.opensolaris.org/os/licensing.
  963. // See the License for the specific language governing permissions
  964. // and limitations under the License.
  965. //
  966. // When distributing Covered Code, include this CDDL HEADER in each
  967. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  968. // If applicable, add the following below this CDDL HEADER, with the
  969. // fields enclosed by brackets "[]" replaced with your own identifying
  970. // information: Portions Copyright [yyyy] [name of copyright owner]
  971. //
  972. // CDDL HEADER END
  973. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  974. //
  975. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  976. // Use is subject to license terms.
  977. // Inclusion of <stddef.h> breaks namespace, therefore define wchar_t
  978. // wchar_t is a built-in type in standard C++ and as such is not
  979. // defined here when using standard C++. However, the GNU compiler
  980. // fixincludes utility nonetheless creates its own version of this
  981. // header for use by gcc and g++. In that version it adds a redundant
  982. // guard for __cplusplus. To avoid the creation of a gcc/g++ specific
  983. // header we need to include the following magic comment:
  984. //
  985. // we must use the C++ compiler's type
  986. //
  987. // The above comment should not be removed or changed until GNU
  988. // gcc/fixinc/inclhack.def is updated to bypass this header.
  989. type Imaxdiv_t = struct {
  990. Fquot int64
  991. Frem int64
  992. } /* inttypes.h:84:3 */
  993. var _ int8 /* gen.c:2:13: */