langinfo_illumos_amd64.go 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. // Code generated by 'ccgo langinfo/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 langinfo/langinfo_illumos_amd64.go -pkgname langinfo', DO NOT EDIT.
  2. package langinfo
  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. ABDAY_1 = 8 // langinfo.h:59:1:
  15. ABDAY_2 = 9 // langinfo.h:60:1:
  16. ABDAY_3 = 10 // langinfo.h:61:1:
  17. ABDAY_4 = 11 // langinfo.h:62:1:
  18. ABDAY_5 = 12 // langinfo.h:63:1:
  19. ABDAY_6 = 13 // langinfo.h:64:1:
  20. ABDAY_7 = 14 // langinfo.h:65:1:
  21. ABMON_1 = 27 // langinfo.h:88:1:
  22. ABMON_10 = 36 // langinfo.h:97:1:
  23. ABMON_11 = 37 // langinfo.h:98:1:
  24. ABMON_12 = 38 // langinfo.h:99:1:
  25. ABMON_2 = 28 // langinfo.h:89:1:
  26. ABMON_3 = 29 // langinfo.h:90:1:
  27. ABMON_4 = 30 // langinfo.h:91:1:
  28. ABMON_5 = 31 // langinfo.h:92:1:
  29. ABMON_6 = 32 // langinfo.h:93:1:
  30. ABMON_7 = 33 // langinfo.h:94:1:
  31. ABMON_8 = 34 // langinfo.h:95:1:
  32. ABMON_9 = 35 // langinfo.h:96:1:
  33. ALT_DIGITS = 55 // langinfo.h:135:1:
  34. AM_STR = 47 // langinfo.h:122:1:
  35. CODESET = 49 // langinfo.h:129:1:
  36. CRNCYSTR = 43 // langinfo.h:112:1:
  37. DAY_1 = 1 // langinfo.h:47:1:
  38. DAY_2 = 2 // langinfo.h:48:1:
  39. DAY_3 = 3 // langinfo.h:49:1:
  40. DAY_4 = 4 // langinfo.h:50:1:
  41. DAY_5 = 5 // langinfo.h:51:1:
  42. DAY_6 = 6 // langinfo.h:52:1:
  43. DAY_7 = 7 // langinfo.h:53:1:
  44. D_FMT = 45 // langinfo.h:120:1:
  45. D_T_FMT = 44 // langinfo.h:119:1:
  46. ERA = 51 // langinfo.h:131:1:
  47. ERA_D_FMT = 52 // langinfo.h:132:1:
  48. ERA_D_T_FMT = 53 // langinfo.h:133:1:
  49. ERA_T_FMT = 54 // langinfo.h:134:1:
  50. MAXSTRMSG = 58 // langinfo.h:141:1:
  51. MON_1 = 15 // langinfo.h:71:1:
  52. MON_10 = 24 // langinfo.h:80:1:
  53. MON_11 = 25 // langinfo.h:81:1:
  54. MON_12 = 26 // langinfo.h:82:1:
  55. MON_2 = 16 // langinfo.h:72:1:
  56. MON_3 = 17 // langinfo.h:73:1:
  57. MON_4 = 18 // langinfo.h:74:1:
  58. MON_5 = 19 // langinfo.h:75:1:
  59. MON_6 = 20 // langinfo.h:76:1:
  60. MON_7 = 21 // langinfo.h:77:1:
  61. MON_8 = 22 // langinfo.h:78:1:
  62. MON_9 = 23 // langinfo.h:79:1:
  63. NL_CAT_LOCALE = -1 // nl_types.h:44:1:
  64. NL_SETD = 1 // nl_types.h:43:1:
  65. NOEXPR = 57 // langinfo.h:137:1:
  66. NOSTR = 42 // langinfo.h:110:1:
  67. PM_STR = 48 // langinfo.h:123:1:
  68. RADIXCHAR = 39 // langinfo.h:105:1:
  69. THOUSEP = 40 // langinfo.h:106:1:
  70. T_FMT = 46 // langinfo.h:121:1:
  71. T_FMT_AMPM = 50 // langinfo.h:130:1:
  72. YESEXPR = 56 // langinfo.h:136:1:
  73. YESSTR = 41 // langinfo.h:109:1:
  74. X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1:
  75. X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1:
  76. X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1:
  77. X_CAT_MAGIC = 0xFF88FF89 // nl_types.h:46:1:
  78. X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1:
  79. X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1:
  80. X_DATE_FMT = 58 // langinfo.h:138:1:
  81. X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1:
  82. X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1:
  83. X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1:
  84. X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1:
  85. X_DTRACE_VERSION = 1 // feature_tests.h:490:1:
  86. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  87. X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1:
  88. X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1:
  89. X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1:
  90. X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1:
  91. X_IEEE_754 = 0 // isa_defs.h:246:1:
  92. X_INT_ALIGNMENT = 4 // isa_defs.h:251:1:
  93. X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1:
  94. X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1:
  95. X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1:
  96. X_LANGINFO_H = 0 // langinfo.h:34:1:
  97. X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1:
  98. X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1:
  99. X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1:
  100. X_LOCALE_T = 0 // langinfo.h:151:1:
  101. X_LONGLONG_TYPE = 0 // feature_tests.h:412:1:
  102. X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1:
  103. X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1:
  104. X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1:
  105. X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1:
  106. X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1:
  107. X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1:
  108. X_LP64 = 1 // <predefined>:286:1:
  109. X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1:
  110. X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1:
  111. X_NL_TYPES_H = 0 // nl_types.h:35:1:
  112. X_NORETURN_KYWD = 0 // feature_tests.h:448:1:
  113. X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1:
  114. X_PSM_MODULES = 0 // isa_defs.h:284:1:
  115. X_RESTRICT_KYWD = 0 // feature_tests.h:435:1:
  116. X_RTC_CONFIG = 0 // isa_defs.h:285:1:
  117. X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1:
  118. X_SOFT_HOSTID = 0 // isa_defs.h:286:1:
  119. X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1:
  120. X_STDC_C11 = 0 // feature_tests.h:165:1:
  121. X_STDC_C99 = 0 // feature_tests.h:169:1:
  122. X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1:
  123. X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1:
  124. X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1:
  125. X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1:
  126. X_XOPEN_VERSION = 3 // feature_tests.h:392:1:
  127. Sun = 1 // <predefined>:172:1:
  128. Unix = 1 // <predefined>:175:1:
  129. )
  130. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  131. type Size_t = uint64 /* <builtin>:9:23 */
  132. type Wchar_t = int32 /* <builtin>:15:24 */
  133. type X__int128_t = struct {
  134. Flo int64
  135. Fhi int64
  136. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  137. type X__uint128_t = struct {
  138. Flo uint64
  139. Fhi uint64
  140. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  141. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  142. type X__float128 = float64 /* <builtin>:47:21 */
  143. // CDDL HEADER START
  144. //
  145. // The contents of this file are subject to the terms of the
  146. // Common Development and Distribution License, Version 1.0 only
  147. // (the "License"). You may not use this file except in compliance
  148. // with the License.
  149. //
  150. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  151. // or http://www.opensolaris.org/os/licensing.
  152. // See the License for the specific language governing permissions
  153. // and limitations under the License.
  154. //
  155. // When distributing Covered Code, include this CDDL HEADER in each
  156. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  157. // If applicable, add the following below this CDDL HEADER, with the
  158. // fields enclosed by brackets "[]" replaced with your own identifying
  159. // information: Portions Copyright [yyyy] [name of copyright owner]
  160. //
  161. // CDDL HEADER END
  162. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  163. //
  164. // Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  165. // Use is subject to license terms.
  166. // Copyright (c) 1988 AT&T
  167. // All Rights Reserved
  168. // DO NOT EDIT THIS FILE.
  169. //
  170. // It has been auto-edited by fixincludes from:
  171. //
  172. // "/usr/include/sys/feature_tests.h"
  173. //
  174. // This had to be done to correct non-standard usages in the
  175. // original, manufacturer supplied header file.
  176. // CDDL HEADER START
  177. //
  178. // The contents of this file are subject to the terms of the
  179. // Common Development and Distribution License (the "License").
  180. // You may not use this file except in compliance with the License.
  181. //
  182. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  183. // or http://www.opensolaris.org/os/licensing.
  184. // See the License for the specific language governing permissions
  185. // and limitations under the License.
  186. //
  187. // When distributing Covered Code, include this CDDL HEADER in each
  188. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  189. // If applicable, add the following below this CDDL HEADER, with the
  190. // fields enclosed by brackets "[]" replaced with your own identifying
  191. // information: Portions Copyright [yyyy] [name of copyright owner]
  192. //
  193. // CDDL HEADER END
  194. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  195. // Copyright 2016 Joyent, Inc.
  196. // Copyright 2022 Oxide Computer Company
  197. //
  198. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  199. // Use is subject to license terms.
  200. // CDDL HEADER START
  201. //
  202. // The contents of this file are subject to the terms of the
  203. // Common Development and Distribution License, Version 1.0 only
  204. // (the "License"). You may not use this file except in compliance
  205. // with the License.
  206. //
  207. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  208. // or http://www.opensolaris.org/os/licensing.
  209. // See the License for the specific language governing permissions
  210. // and limitations under the License.
  211. //
  212. // When distributing Covered Code, include this CDDL HEADER in each
  213. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  214. // If applicable, add the following below this CDDL HEADER, with the
  215. // fields enclosed by brackets "[]" replaced with your own identifying
  216. // information: Portions Copyright [yyyy] [name of copyright owner]
  217. //
  218. // CDDL HEADER END
  219. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  220. // Use is subject to license terms.
  221. // Copyright 2015 EveryCity Ltd. All rights reserved.
  222. // Copyright 2019 Joyent, Inc.
  223. // This file contains definitions designed to enable different compilers
  224. // to be used harmoniously on Solaris systems.
  225. // Allow for version tests for compiler bugs and features.
  226. // analogous to lint's PRINTFLIKEn
  227. // Handle the kernel printf routines that can take '%b' too
  228. // This one's pretty obvious -- the function never returns
  229. // The function is 'extern inline' and expects GNU C89 behaviour, not C99
  230. // behaviour.
  231. //
  232. // Should only be used on 'extern inline' definitions for GCC.
  233. // The function has control flow such that it may return multiple times (in
  234. // the manner of setjmp or vfork)
  235. // This is an appropriate label for functions that do not
  236. // modify their arguments, e.g. strlen()
  237. // This is a stronger form of __pure__. Can be used for functions
  238. // that do not modify their arguments and don't depend on global
  239. // memory.
  240. // This attribute, attached to a variable, means that the variable is meant to
  241. // be possibly unused. GCC will not produce a warning for this variable.
  242. // Shorthand versions for readability
  243. // In release build, disable warnings about variables
  244. // which are used only for debugging.
  245. // CDDL HEADER START
  246. //
  247. // The contents of this file are subject to the terms of the
  248. // Common Development and Distribution License (the "License").
  249. // You may not use this file except in compliance with the License.
  250. //
  251. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  252. // or http://www.opensolaris.org/os/licensing.
  253. // See the License for the specific language governing permissions
  254. // and limitations under the License.
  255. //
  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 2008 Sun Microsystems, Inc. All rights reserved.
  265. // Use is subject to license terms.
  266. // Copyright 2016 Joyent, Inc.
  267. // This header file serves to group a set of well known defines and to
  268. // set these for each instruction set architecture. These defines may
  269. // be divided into two groups; characteristics of the processor and
  270. // implementation choices for Solaris on a processor.
  271. //
  272. // Processor Characteristics:
  273. //
  274. // _LITTLE_ENDIAN / _BIG_ENDIAN:
  275. // The natural byte order of the processor. A pointer to an int points
  276. // to the least/most significant byte of that int.
  277. //
  278. // _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD:
  279. // The processor specific direction of stack growth. A push onto the
  280. // stack increases/decreases the stack pointer, so it stores data at
  281. // successively higher/lower addresses. (Stackless machines ignored
  282. // without regrets).
  283. //
  284. // _LONG_LONG_HTOL / _LONG_LONG_LTOH:
  285. // A pointer to a long long points to the most/least significant long
  286. // within that long long.
  287. //
  288. // _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH:
  289. // The C compiler assigns bit fields from the high/low to the low/high end
  290. // of an int (most to least significant vs. least to most significant).
  291. //
  292. // _IEEE_754:
  293. // The processor (or supported implementations of the processor)
  294. // supports the ieee-754 floating point standard. No other floating
  295. // point standards are supported (or significant). Any other supported
  296. // floating point formats are expected to be cased on the ISA processor
  297. // symbol.
  298. //
  299. // _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED:
  300. // The C Compiler implements objects of type `char' as `unsigned' or
  301. // `signed' respectively. This is really an implementation choice of
  302. // the compiler writer, but it is specified in the ABI and tends to
  303. // be uniform across compilers for an instruction set architecture.
  304. // Hence, it has the properties of a processor characteristic.
  305. //
  306. // _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT /
  307. // _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT /
  308. // _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT:
  309. // The ABI defines alignment requirements of each of the primitive
  310. // object types. Some, if not all, may be hardware requirements as
  311. // well. The values are expressed in "byte-alignment" units.
  312. //
  313. // _MAX_ALIGNMENT:
  314. // The most stringent alignment requirement as specified by the ABI.
  315. // Equal to the maximum of all the above _XXX_ALIGNMENT values.
  316. //
  317. // _MAX_ALIGNMENT_TYPE:
  318. // The name of the C type that has the value descried in _MAX_ALIGNMENT.
  319. //
  320. // _ALIGNMENT_REQUIRED:
  321. // True or false (1 or 0) whether or not the hardware requires the ABI
  322. // alignment.
  323. //
  324. // _LONG_LONG_ALIGNMENT_32
  325. // The 32-bit ABI supported by a 64-bit kernel may have different
  326. // alignment requirements for primitive object types. The value of this
  327. // identifier is expressed in "byte-alignment" units.
  328. //
  329. // _HAVE_CPUID_INSN
  330. // This indicates that the architecture supports the 'cpuid'
  331. // instruction as defined by Intel. (Intel allows other vendors
  332. // to extend the instruction for their own purposes.)
  333. //
  334. //
  335. // Implementation Choices:
  336. //
  337. // _ILP32 / _LP64:
  338. // This specifies the compiler data type implementation as specified in
  339. // the relevant ABI. The choice between these is strongly influenced
  340. // by the underlying hardware, but is not absolutely tied to it.
  341. // Currently only two data type models are supported:
  342. //
  343. // _ILP32:
  344. // Int/Long/Pointer are 32 bits. This is the historical UNIX
  345. // and Solaris implementation. Due to its historical standing,
  346. // this is the default case.
  347. //
  348. // _LP64:
  349. // Long/Pointer are 64 bits, Int is 32 bits. This is the chosen
  350. // implementation for 64-bit ABIs such as SPARC V9.
  351. //
  352. // _I32LPx:
  353. // A compilation environment where 'int' is 32-bit, and
  354. // longs and pointers are simply the same size.
  355. //
  356. // In all cases, Char is 8 bits and Short is 16 bits.
  357. //
  358. // _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16:
  359. // This specifies the form of the disk VTOC (or label):
  360. //
  361. // _SUNOS_VTOC_8:
  362. // This is a VTOC form which is upwardly compatible with the
  363. // SunOS 4.x disk label and allows 8 partitions per disk.
  364. //
  365. // _SUNOS_VTOC_16:
  366. // In this format the incore vtoc image matches the ondisk
  367. // version. It allows 16 slices per disk, and is not
  368. // compatible with the SunOS 4.x disk label.
  369. //
  370. // Note that these are not the only two VTOC forms possible and
  371. // additional forms may be added. One possible form would be the
  372. // SVr4 VTOC form. The symbol for that is reserved now, although
  373. // it is not implemented.
  374. //
  375. // _SVR4_VTOC_16:
  376. // This VTOC form is compatible with the System V Release 4
  377. // VTOC (as implemented on the SVr4 Intel and 3b ports) with
  378. // 16 partitions per disk.
  379. //
  380. //
  381. // _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR
  382. // This describes the type of addresses used by system DMA:
  383. //
  384. // _DMA_USES_PHYSADDR:
  385. // This type of DMA, used in the x86 implementation,
  386. // requires physical addresses for DMA buffers. The 24-bit
  387. // addresses used by some legacy boards is the source of the
  388. // "low-memory" (<16MB) requirement for some devices using DMA.
  389. //
  390. // _DMA_USES_VIRTADDR:
  391. // This method of DMA allows the use of virtual addresses for
  392. // DMA transfers.
  393. //
  394. // _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT
  395. // This indicates the presence/absence of an fdisk table.
  396. //
  397. // _FIRMWARE_NEEDS_FDISK
  398. // The fdisk table is required by system firmware. If present,
  399. // it allows a disk to be subdivided into multiple fdisk
  400. // partitions, each of which is equivalent to a separate,
  401. // virtual disk. This enables the co-existence of multiple
  402. // operating systems on a shared hard disk.
  403. //
  404. // _NO_FDISK_PRESENT
  405. // If the fdisk table is absent, it is assumed that the entire
  406. // media is allocated for a single operating system.
  407. //
  408. // _HAVE_TEM_FIRMWARE
  409. // Defined if this architecture has the (fallback) option of
  410. // using prom_* calls for doing I/O if a suitable kernel driver
  411. // is not available to do it.
  412. //
  413. // _DONT_USE_1275_GENERIC_NAMES
  414. // Controls whether or not device tree node names should
  415. // comply with the IEEE 1275 "Generic Names" Recommended
  416. // Practice. With _DONT_USE_GENERIC_NAMES, device-specific
  417. // names identifying the particular device will be used.
  418. //
  419. // __i386_COMPAT
  420. // This indicates whether the i386 ABI is supported as a *non-native*
  421. // mode for the platform. When this symbol is defined:
  422. // - 32-bit xstat-style system calls are enabled
  423. // - 32-bit xmknod-style system calls are enabled
  424. // - 32-bit system calls use i386 sizes -and- alignments
  425. //
  426. // Note that this is NOT defined for the i386 native environment!
  427. //
  428. // __x86
  429. // This is ONLY a synonym for defined(__i386) || defined(__amd64)
  430. // which is useful only insofar as these two architectures share
  431. // common attributes. Analogous to __sparc.
  432. //
  433. // _PSM_MODULES
  434. // This indicates whether or not the implementation uses PSM
  435. // modules for processor support, reading /etc/mach from inside
  436. // the kernel to extract a list.
  437. //
  438. // _RTC_CONFIG
  439. // This indicates whether or not the implementation uses /etc/rtc_config
  440. // to configure the real-time clock in the kernel.
  441. //
  442. // _UNIX_KRTLD
  443. // This indicates that the implementation uses a dynamically
  444. // linked unix + krtld to form the core kernel image at boot
  445. // time, or (in the absence of this symbol) a prelinked kernel image.
  446. //
  447. // _OBP
  448. // This indicates the firmware interface is OBP.
  449. //
  450. // _SOFT_HOSTID
  451. // This indicates that the implementation obtains the hostid
  452. // from the file /etc/hostid, rather than from hardware.
  453. // The following set of definitions characterize Solaris on AMD's
  454. // 64-bit systems.
  455. // Define the appropriate "processor characteristics"
  456. // Different alignment constraints for the i386 ABI in compatibility mode
  457. // Define the appropriate "implementation choices".
  458. // The feature test macro __i386 is generic for all processors implementing
  459. // the Intel 386 instruction set or a superset of it. Specifically, this
  460. // includes all members of the 386, 486, and Pentium family of processors.
  461. // Values of _POSIX_C_SOURCE
  462. //
  463. // undefined not a POSIX compilation
  464. // 1 POSIX.1-1990 compilation
  465. // 2 POSIX.2-1992 compilation
  466. // 199309L POSIX.1b-1993 compilation (Real Time)
  467. // 199506L POSIX.1c-1995 compilation (POSIX Threads)
  468. // 200112L POSIX.1-2001 compilation (Austin Group Revision)
  469. // 200809L POSIX.1-2008 compilation
  470. // The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS,
  471. // and _STDC_C99 are Sun implementation specific macros created in order to
  472. // compress common standards specified feature test macros for easier reading.
  473. // These macros should not be used by the application developer as
  474. // unexpected results may occur. Instead, the user should reference
  475. // standards(7) for correct usage of the standards feature test macros.
  476. //
  477. // __XOPEN_OR_POSIX Used in cases where a symbol is defined by both
  478. // X/Open or POSIX or in the negative, when neither
  479. // X/Open or POSIX defines a symbol.
  480. //
  481. // _STRICT_STDC __STDC__ is specified by the C Standards and defined
  482. // by the compiler. For Sun compilers the value of
  483. // __STDC__ is either 1, 0, or not defined based on the
  484. // compilation mode (see cc(1)). When the value of
  485. // __STDC__ is 1 and in the absence of any other feature
  486. // test macros, the namespace available to the application
  487. // is limited to only those symbols defined by the C
  488. // Standard. _STRICT_STDC provides a more readable means
  489. // of identifying symbols defined by the standard, or in
  490. // the negative, symbols that are extensions to the C
  491. // Standard. See additional comments for GNU C differences.
  492. //
  493. // _STDC_C99 __STDC_VERSION__ is specified by the C standards and
  494. // defined by the compiler and indicates the version of
  495. // the C standard. A value of 199901L indicates a
  496. // compiler that complies with ISO/IEC 9899:1999, other-
  497. // wise known as the C99 standard.
  498. //
  499. // _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__
  500. // is 201112L indicating a compiler that compiles with
  501. // ISO/IEC 9899:2011, otherwise known as the C11 standard.
  502. //
  503. // _STRICT_SYMBOLS Used in cases where symbol visibility is restricted
  504. // by the standards, and the user has not explicitly
  505. // relaxed the strictness via __EXTENSIONS__.
  506. // ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC
  507. // 99899:2011 specify the following predefined macro name:
  508. //
  509. // __STDC__ The integer constant 1, intended to indicate a conforming
  510. // implementation.
  511. //
  512. // Furthermore, a strictly conforming program shall use only those features
  513. // of the language and library specified in these standards. A conforming
  514. // implementation shall accept any strictly conforming program.
  515. //
  516. // Based on these requirements, Sun's C compiler defines __STDC__ to 1 for
  517. // strictly conforming environments and __STDC__ to 0 for environments that
  518. // use ANSI C semantics but allow extensions to the C standard. For non-ANSI
  519. // C semantics, Sun's C compiler does not define __STDC__.
  520. //
  521. // The GNU C project interpretation is that __STDC__ should always be defined
  522. // to 1 for compilation modes that accept ANSI C syntax regardless of whether
  523. // or not extensions to the C standard are used. Violations of conforming
  524. // behavior are conditionally flagged as warnings via the use of the
  525. // -pedantic option. In addition to defining __STDC__ to 1, the GNU C
  526. // compiler also defines __STRICT_ANSI__ as a means of specifying strictly
  527. // conforming environments using the -ansi or -std=<standard> options.
  528. //
  529. // In the absence of any other compiler options, Sun and GNU set the value
  530. // of __STDC__ as follows when using the following options:
  531. //
  532. // Value of __STDC__ __STRICT_ANSI__
  533. //
  534. // cc -Xa (default) 0 undefined
  535. // cc -Xt (transitional) 0 undefined
  536. // cc -Xc (strictly conforming) 1 undefined
  537. // cc -Xs (K&R C) undefined undefined
  538. //
  539. // gcc (default) 1 undefined
  540. // gcc -ansi, -std={c89, c99,...) 1 defined
  541. // gcc -traditional (K&R) undefined undefined
  542. //
  543. // The default compilation modes for Sun C compilers versus GNU C compilers
  544. // results in a differing value for __STDC__ which results in a more
  545. // restricted namespace when using Sun compilers. To allow both GNU and Sun
  546. // interpretations to peacefully co-exist, we use the following Sun
  547. // implementation _STRICT_STDC_ macro:
  548. // Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011
  549. // Use strict symbol visibility.
  550. // This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are
  551. // governed by POSIX, but have not been governed by ISO C. One can go two ways
  552. // on what should happen if an application actively includes (not transitively)
  553. // a header that isn't part of the ISO C spec, we opt to say that if someone has
  554. // gone out of there way then they're doing it for a reason and that is an act
  555. // of non-compliance and therefore it's not up to us to hide away every symbol.
  556. //
  557. // In general, prefer using _STRICT_SYMBOLS, but this is here in particular for
  558. // cases where in the past we have only used a POSIX related check and we don't
  559. // wish to make something stricter. Often applications are relying on the
  560. // ability to, or more realistically unwittingly, have _STRICT_STDC declared and
  561. // still use these interfaces.
  562. // Large file interfaces:
  563. //
  564. // _LARGEFILE_SOURCE
  565. // 1 large file-related additions to POSIX
  566. // interfaces requested (fseeko, etc.)
  567. // _LARGEFILE64_SOURCE
  568. // 1 transitional large-file-related interfaces
  569. // requested (seek64, stat64, etc.)
  570. //
  571. // The corresponding announcement macros are respectively:
  572. // _LFS_LARGEFILE
  573. // _LFS64_LARGEFILE
  574. // (These are set in <unistd.h>.)
  575. //
  576. // Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as
  577. // well.
  578. //
  579. // The large file interfaces are made visible regardless of the initial values
  580. // of the feature test macros under certain circumstances:
  581. // - If no explicit standards-conforming environment is requested (neither
  582. // of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of
  583. // __STDC__ does not imply standards conformance).
  584. // - Extended system interfaces are explicitly requested (__EXTENSIONS__
  585. // is defined).
  586. // - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is
  587. // defined). (Note that this dependency is an artifact of the current
  588. // kernel implementation and may change in future releases.)
  589. // Large file compilation environment control:
  590. //
  591. // The setting of _FILE_OFFSET_BITS controls the size of various file-related
  592. // types and governs the mapping between file-related source function symbol
  593. // names and the corresponding binary entry points.
  594. //
  595. // In the 32-bit environment, the default value is 32; if not set, set it to
  596. // the default here, to simplify tests in other headers.
  597. //
  598. // In the 64-bit compilation environment, the only value allowed is 64.
  599. // Use of _XOPEN_SOURCE
  600. //
  601. // The following X/Open specifications are supported:
  602. //
  603. // X/Open Portability Guide, Issue 3 (XPG3)
  604. // X/Open CAE Specification, Issue 4 (XPG4)
  605. // X/Open CAE Specification, Issue 4, Version 2 (XPG4v2)
  606. // X/Open CAE Specification, Issue 5 (XPG5)
  607. // Open Group Technical Standard, Issue 6 (XPG6), also referred to as
  608. // IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002.
  609. // Open Group Technical Standard, Issue 7 (XPG7), also referred to as
  610. // IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009.
  611. //
  612. // XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1).
  613. // XPG5 is also referred to as UNIX 98 or the Single Unix Specification,
  614. // Version 2 (SUSv2)
  615. // XPG6 is the result of a merge of the X/Open and POSIX specifications
  616. // and as such is also referred to as IEEE Std. 1003.1-2001 in
  617. // addition to UNIX 03 and SUSv3.
  618. // XPG7 is also referred to as UNIX 08 and SUSv4.
  619. //
  620. // When writing a conforming X/Open application, as per the specification
  621. // requirements, the appropriate feature test macros must be defined at
  622. // compile time. These are as follows. For more info, see standards(7).
  623. //
  624. // Feature Test Macro Specification
  625. // ------------------------------------------------ -------------
  626. // _XOPEN_SOURCE XPG3
  627. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  628. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  629. // _XOPEN_SOURCE = 500 XPG5
  630. // _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6
  631. // _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7
  632. //
  633. // In order to simplify the guards within the headers, the following
  634. // implementation private test macros have been created. Applications
  635. // must NOT use these private test macros as unexpected results will
  636. // occur.
  637. //
  638. // Note that in general, the use of these private macros is cumulative.
  639. // For example, the use of _XPG3 with no other restrictions on the X/Open
  640. // namespace will make the symbols visible for XPG3 through XPG6
  641. // compilation environments. The use of _XPG4_2 with no other X/Open
  642. // namespace restrictions indicates that the symbols were introduced in
  643. // XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation
  644. // environments, but not for XPG3 or XPG4 compilation environments.
  645. //
  646. // _XPG3 X/Open Portability Guide, Issue 3 (XPG3)
  647. // _XPG4 X/Open CAE Specification, Issue 4 (XPG4)
  648. // _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS)
  649. // _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2)
  650. // _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3)
  651. // _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4)
  652. // X/Open Portability Guide, Issue 3
  653. // _XOPEN_VERSION is defined by the X/Open specifications and is not
  654. // normally defined by the application, except in the case of an XPG4
  655. // application. On the implementation side, _XOPEN_VERSION defined with
  656. // the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined
  657. // with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application.
  658. // _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98)
  659. // application and with a value of 600 indicates an XPG6 (UNIX 03)
  660. // application and with a value of 700 indicates an XPG7 (UNIX 08).
  661. // The appropriate version is determined by the use of the
  662. // feature test macros described earlier. The value of _XOPEN_VERSION
  663. // defaults to 3 otherwise indicating support for XPG3 applications.
  664. // ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly
  665. // conforming environments. ISO 9899:1999 says it does.
  666. //
  667. // The presence of _LONGLONG_TYPE says "long long exists" which is therefore
  668. // defined in all but strictly conforming environments that disallow it.
  669. // The following macro defines a value for the ISO C99 restrict
  670. // keyword so that _RESTRICT_KYWD resolves to "restrict" if
  671. // an ISO C99 compiler is used, "__restrict" for c++ and "" (null string)
  672. // if any other compiler is used. This allows for the use of single
  673. // prototype declarations regardless of compiler version.
  674. // The following macro defines a value for the ISO C11 _Noreturn
  675. // keyword so that _NORETURN_KYWD resolves to "_Noreturn" if
  676. // an ISO C11 compiler is used and "" (null string) if any other
  677. // compiler is used. This allows for the use of single prototype
  678. // declarations regardless of compiler version.
  679. // ISO/IEC 9899:2011 Annex K
  680. // The following macro indicates header support for the ANSI C++
  681. // standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882.
  682. // The following macro indicates header support for the C99 standard,
  683. // ISO/IEC 9899:1999, Programming Languages - C.
  684. // The following macro indicates header support for the C11 standard,
  685. // ISO/IEC 9899:2011, Programming Languages - C.
  686. // The following macro indicates header support for the C11 standard,
  687. // ISO/IEC 9899:2011 Annex K, Programming Languages - C.
  688. // The following macro indicates header support for DTrace. The value is an
  689. // integer that corresponds to the major version number for DTrace.
  690. // CDDL HEADER START
  691. //
  692. // The contents of this file are subject to the terms of the
  693. // Common Development and Distribution License, Version 1.0 only
  694. // (the "License"). You may not use this file except in compliance
  695. // with the License.
  696. //
  697. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  698. // or http://www.opensolaris.org/os/licensing.
  699. // See the License for the specific language governing permissions
  700. // and limitations under the License.
  701. //
  702. // When distributing Covered Code, include this CDDL HEADER in each
  703. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  704. // If applicable, add the following below this CDDL HEADER, with the
  705. // fields enclosed by brackets "[]" replaced with your own identifying
  706. // information: Portions Copyright [yyyy] [name of copyright owner]
  707. //
  708. // CDDL HEADER END
  709. // nl_types.h
  710. //
  711. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  712. //
  713. // Copyright (c) 1991,1997,2000 by Sun Microsystems, Inc.
  714. // All rights reserved.
  715. // Copyright (c) 1988 AT&T
  716. // All Rights Reserved
  717. // CDDL HEADER START
  718. //
  719. // The contents of this file are subject to the terms of the
  720. // Common Development and Distribution License (the "License").
  721. // You may not use this file except in compliance with the License.
  722. //
  723. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  724. // or http://www.opensolaris.org/os/licensing.
  725. // See the License for the specific language governing permissions
  726. // and limitations under the License.
  727. //
  728. //
  729. // When distributing Covered Code, include this CDDL HEADER in each
  730. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  731. // If applicable, add the following below this CDDL HEADER, with the
  732. // fields enclosed by brackets "[]" replaced with your own identifying
  733. // information: Portions Copyright [yyyy] [name of copyright owner]
  734. //
  735. // CDDL HEADER END
  736. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  737. // Use is subject to license terms.
  738. // Copyright 2016 Joyent, Inc.
  739. type X_cat_hdr = struct {
  740. F__hdr_magic int32
  741. F__nsets int32
  742. F__mem int32
  743. F__msg_hdr_offset int32
  744. F__msg_text_offset int32
  745. } /* nl_types.h:51:1 */
  746. type X_cat_set_hdr = struct {
  747. F__set_no int32
  748. F__nmsgs int32
  749. F__first_msg_hdr int32
  750. } /* nl_types.h:72:1 */
  751. type X_cat_msg_hdr = struct {
  752. F__msg_no int32
  753. F__msg_len int32
  754. F__msg_offset int32
  755. } /* nl_types.h:82:1 */
  756. type X_nl_catd_struct = struct {
  757. F__content uintptr
  758. F__size int32
  759. F__trust int32
  760. } /* nl_types.h:95:1 */
  761. type Nl_catd = uintptr /* nl_types.h:101:32 */
  762. type Nl_item = int32 /* nl_types.h:102:13 */ // XPG3 Conformant for nl_langinfo().
  763. // The following is just for the compatibility between OSF and Solaris
  764. // Need to be removed later
  765. type X__nl_item = int32 /* nl_types.h:106:17 */ // get a string from the database
  766. type Locale_t = uintptr /* langinfo.h:152:24 */
  767. var _ int8 /* gen.c:2:13: */