langinfo_openbsd_amd64.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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_openbsd_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 = 13 // langinfo.h:29:1:
  15. ABDAY_2 = 14 // langinfo.h:30:1:
  16. ABDAY_3 = 15 // langinfo.h:31:1:
  17. ABDAY_4 = 16 // langinfo.h:32:1:
  18. ABDAY_5 = 17 // langinfo.h:33:1:
  19. ABDAY_6 = 18 // langinfo.h:34:1:
  20. ABDAY_7 = 19 // langinfo.h:35:1:
  21. ABMON_1 = 32 // langinfo.h:50:1:
  22. ABMON_10 = 41 // langinfo.h:59:1:
  23. ABMON_11 = 42 // langinfo.h:60:1:
  24. ABMON_12 = 43 // langinfo.h:61:1:
  25. ABMON_2 = 33 // langinfo.h:51:1:
  26. ABMON_3 = 34 // langinfo.h:52:1:
  27. ABMON_4 = 35 // langinfo.h:53:1:
  28. ABMON_5 = 36 // langinfo.h:54:1:
  29. ABMON_6 = 37 // langinfo.h:55:1:
  30. ABMON_7 = 38 // langinfo.h:56:1:
  31. ABMON_8 = 39 // langinfo.h:57:1:
  32. ABMON_9 = 40 // langinfo.h:58:1:
  33. AM_STR = 4 // langinfo.h:18:1:
  34. CODESET = 51 // langinfo.h:71:1:
  35. CRNCYSTR = 50 // langinfo.h:69:1:
  36. DAY_1 = 6 // langinfo.h:21:1:
  37. DAY_2 = 7 // langinfo.h:22:1:
  38. DAY_3 = 8 // langinfo.h:23:1:
  39. DAY_4 = 9 // langinfo.h:24:1:
  40. DAY_5 = 10 // langinfo.h:25:1:
  41. DAY_6 = 11 // langinfo.h:26:1:
  42. DAY_7 = 12 // langinfo.h:27:1:
  43. D_FMT = 1 // langinfo.h:15:1:
  44. D_T_FMT = 0 // langinfo.h:14:1:
  45. MON_1 = 20 // langinfo.h:37:1:
  46. MON_10 = 29 // langinfo.h:46:1:
  47. MON_11 = 30 // langinfo.h:47:1:
  48. MON_12 = 31 // langinfo.h:48:1:
  49. MON_2 = 21 // langinfo.h:38:1:
  50. MON_3 = 22 // langinfo.h:39:1:
  51. MON_4 = 23 // langinfo.h:40:1:
  52. MON_5 = 24 // langinfo.h:41:1:
  53. MON_6 = 25 // langinfo.h:42:1:
  54. MON_7 = 26 // langinfo.h:43:1:
  55. MON_8 = 27 // langinfo.h:44:1:
  56. MON_9 = 28 // langinfo.h:45:1:
  57. NL_CAT_LOCALE = 1 // nl_types.h:76:1:
  58. NL_SETD = 1 // nl_types.h:75:1:
  59. NOEXPR = 49 // langinfo.h:68:1:
  60. NOSTR = 48 // langinfo.h:67:1:
  61. PM_STR = 5 // langinfo.h:19:1:
  62. RADIXCHAR = 44 // langinfo.h:63:1:
  63. THOUSEP = 45 // langinfo.h:64:1:
  64. T_FMT = 2 // langinfo.h:16:1:
  65. T_FMT_AMPM = 3 // langinfo.h:17:1:
  66. YESEXPR = 47 // langinfo.h:66:1:
  67. YESSTR = 46 // langinfo.h:65:1:
  68. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  69. X_LANGINFO_H_ = 0 // langinfo.h:10:1:
  70. X_LOCALE_T_DEFINED_ = 0 // langinfo.h:75:1:
  71. X_LP64 = 1 // <predefined>:1:1:
  72. X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
  73. X_NL_TYPES_H_ = 0 // nl_types.h:34:1:
  74. X_RET_PROTECTOR = 1 // <predefined>:2:1:
  75. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  76. Unix = 1 // <predefined>:344:1:
  77. )
  78. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  79. type Size_t = uint64 /* <builtin>:9:23 */
  80. type Wchar_t = int32 /* <builtin>:15:24 */
  81. type X__int128_t = struct {
  82. Flo int64
  83. Fhi int64
  84. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  85. type X__uint128_t = struct {
  86. Flo uint64
  87. Fhi uint64
  88. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  89. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  90. type X__float128 = float64 /* <builtin>:47:21 */
  91. // $OpenBSD: langinfo.h,v 1.8 2017/09/05 03:16:13 schwarze Exp $
  92. // $NetBSD: langinfo.h,v 1.3 1995/04/28 23:30:54 jtc Exp $
  93. // Written by J.T. Conklin <jtc@netbsd.org>
  94. // Public domain.
  95. // $OpenBSD: nl_types.h,v 1.8 2008/06/26 05:42:04 ray Exp $
  96. // $NetBSD: nl_types.h,v 1.6 1996/05/13 23:11:15 jtc Exp $
  97. // -
  98. // Copyright (c) 1996 The NetBSD Foundation, Inc.
  99. // All rights reserved.
  100. //
  101. // This code is derived from software contributed to The NetBSD Foundation
  102. // by J.T. Conklin.
  103. //
  104. // Redistribution and use in source and binary forms, with or without
  105. // modification, are permitted provided that the following conditions
  106. // are met:
  107. // 1. Redistributions of source code must retain the above copyright
  108. // notice, this list of conditions and the following disclaimer.
  109. // 2. Redistributions in binary form must reproduce the above copyright
  110. // notice, this list of conditions and the following disclaimer in the
  111. // documentation and/or other materials provided with the distribution.
  112. //
  113. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  114. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  115. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  116. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
  117. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  118. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  119. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  120. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  121. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  122. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  123. // POSSIBILITY OF SUCH DAMAGE.
  124. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  125. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  126. // Copyright (c) 1991, 1993
  127. // The Regents of the University of California. All rights reserved.
  128. //
  129. // This code is derived from software contributed to Berkeley by
  130. // Berkeley Software Design, Inc.
  131. //
  132. // Redistribution and use in source and binary forms, with or without
  133. // modification, are permitted provided that the following conditions
  134. // are met:
  135. // 1. Redistributions of source code must retain the above copyright
  136. // notice, this list of conditions and the following disclaimer.
  137. // 2. Redistributions in binary form must reproduce the above copyright
  138. // notice, this list of conditions and the following disclaimer in the
  139. // documentation and/or other materials provided with the distribution.
  140. // 3. Neither the name of the University nor the names of its contributors
  141. // may be used to endorse or promote products derived from this software
  142. // without specific prior written permission.
  143. //
  144. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  145. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  146. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  147. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  148. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  149. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  150. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  151. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  152. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  153. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  154. // SUCH DAMAGE.
  155. //
  156. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  157. // $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
  158. // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  159. // Public domain.
  160. // Macro to test if we're using a specific version of gcc or later.
  161. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  162. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  163. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  164. // in between its arguments. Do not use __CONCAT on double-quoted strings,
  165. // such as those from the __STRING macro: to concatenate strings just put
  166. // them next to each other.
  167. // GCC1 and some versions of GCC2 declare dead (non-returning) and
  168. // pure (no side effects) functions using "volatile" and "const";
  169. // unfortunately, these then cause warnings under "-ansi -pedantic".
  170. // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
  171. // work for GNU C++ (modulo a slight glitch in the C++ grammar in
  172. // the distribution version of 2.5.5).
  173. // __returns_twice makes the compiler not assume the function
  174. // only returns once. This affects registerisation of variables:
  175. // even local variables need to be in memory across such a call.
  176. // Example: setjmp()
  177. // __only_inline makes the compiler only use this function definition
  178. // for inlining; references that can't be inlined will be left as
  179. // external references instead of generating a local copy. The
  180. // matching library should include a simple extern definition for
  181. // the function to handle those references. c.f. ctype.h
  182. // GNU C version 2.96 adds explicit branch prediction so that
  183. // the CPU back-end can hint the processor and also so that
  184. // code blocks can be reordered such that the predicted path
  185. // sees a more linear flow, thus improving cache behavior, etc.
  186. //
  187. // The following two macros provide us with a way to utilize this
  188. // compiler feature. Use __predict_true() if you expect the expression
  189. // to evaluate to true, and __predict_false() if you expect the
  190. // expression to evaluate to false.
  191. //
  192. // A few notes about usage:
  193. //
  194. // * Generally, __predict_false() error condition checks (unless
  195. // you have some _strong_ reason to do otherwise, in which case
  196. // document it), and/or __predict_true() `no-error' condition
  197. // checks, assuming you want to optimize for the no-error case.
  198. //
  199. // * Other than that, if you don't know the likelihood of a test
  200. // succeeding from empirical or other `hard' evidence, don't
  201. // make predictions.
  202. //
  203. // * These are meant to be used in places that are run `a lot'.
  204. // It is wasteful to make predictions in code that is run
  205. // seldomly (e.g. at subsystem initialization time) as the
  206. // basic block reordering that this affects can often generate
  207. // larger code.
  208. // Delete pseudo-keywords wherever they are not available or needed.
  209. // The __packed macro indicates that a variable or structure members
  210. // should have the smallest possible alignment, despite any host CPU
  211. // alignment requirements.
  212. //
  213. // The __aligned(x) macro specifies the minimum alignment of a
  214. // variable or structure.
  215. //
  216. // These macros together are useful for describing the layout and
  217. // alignment of messages exchanged with hardware or other systems.
  218. // "The nice thing about standards is that there are so many to choose from."
  219. // There are a number of "feature test macros" specified by (different)
  220. // standards that determine which interfaces and types the header files
  221. // should expose.
  222. //
  223. // Because of inconsistencies in these macros, we define our own
  224. // set in the private name space that end in _VISIBLE. These are
  225. // always defined and so headers can test their values easily.
  226. // Things can get tricky when multiple feature macros are defined.
  227. // We try to take the union of all the features requested.
  228. //
  229. // The following macros are guaranteed to have a value after cdefs.h
  230. // has been included:
  231. // __POSIX_VISIBLE
  232. // __XPG_VISIBLE
  233. // __ISO_C_VISIBLE
  234. // __BSD_VISIBLE
  235. // X/Open Portability Guides and Single Unix Specifications.
  236. // _XOPEN_SOURCE XPG3
  237. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  238. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  239. // _XOPEN_SOURCE == 500 XPG5
  240. // _XOPEN_SOURCE == 520 XPG5v2
  241. // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
  242. // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
  243. //
  244. // The XPG spec implies a specific value for _POSIX_C_SOURCE.
  245. // POSIX macros, these checks must follow the XOPEN ones above.
  246. //
  247. // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
  248. // _POSIX_C_SOURCE == 1 1003.1-1990
  249. // _POSIX_C_SOURCE == 2 1003.2-1992
  250. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  251. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  252. // and the omnibus ISO/IEC 9945-1:1996
  253. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  254. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  255. //
  256. // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
  257. // this may be overridden by the _ISOC99_SOURCE macro later.
  258. // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
  259. // If the user defines it in addition to one of the POSIX or XOPEN
  260. // macros, assume the POSIX/XOPEN macro(s) should take precedence.
  261. // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
  262. // override any of the other macros since they are non-exclusive.
  263. // Finally deal with BSD-specific interfaces that are not covered
  264. // by any standards. We expose these when none of the POSIX or XPG
  265. // macros is defined or if the user explicitly asks for them.
  266. // Default values.
  267. type X_nl_catd = struct {
  268. F__data uintptr
  269. F__size int32
  270. F__ccgo_pad1 [4]byte
  271. } /* nl_types.h:78:9 */
  272. // $OpenBSD: langinfo.h,v 1.8 2017/09/05 03:16:13 schwarze Exp $
  273. // $NetBSD: langinfo.h,v 1.3 1995/04/28 23:30:54 jtc Exp $
  274. // Written by J.T. Conklin <jtc@netbsd.org>
  275. // Public domain.
  276. // $OpenBSD: nl_types.h,v 1.8 2008/06/26 05:42:04 ray Exp $
  277. // $NetBSD: nl_types.h,v 1.6 1996/05/13 23:11:15 jtc Exp $
  278. // -
  279. // Copyright (c) 1996 The NetBSD Foundation, Inc.
  280. // All rights reserved.
  281. //
  282. // This code is derived from software contributed to The NetBSD Foundation
  283. // by J.T. Conklin.
  284. //
  285. // Redistribution and use in source and binary forms, with or without
  286. // modification, are permitted provided that the following conditions
  287. // are met:
  288. // 1. Redistributions of source code must retain the above copyright
  289. // notice, this list of conditions and the following disclaimer.
  290. // 2. Redistributions in binary form must reproduce the above copyright
  291. // notice, this list of conditions and the following disclaimer in the
  292. // documentation and/or other materials provided with the distribution.
  293. //
  294. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  295. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  296. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  297. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
  298. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  299. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  300. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  301. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  302. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  303. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  304. // POSSIBILITY OF SUCH DAMAGE.
  305. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  306. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  307. // Copyright (c) 1991, 1993
  308. // The Regents of the University of California. All rights reserved.
  309. //
  310. // This code is derived from software contributed to Berkeley by
  311. // Berkeley Software Design, Inc.
  312. //
  313. // Redistribution and use in source and binary forms, with or without
  314. // modification, are permitted provided that the following conditions
  315. // are met:
  316. // 1. Redistributions of source code must retain the above copyright
  317. // notice, this list of conditions and the following disclaimer.
  318. // 2. Redistributions in binary form must reproduce the above copyright
  319. // notice, this list of conditions and the following disclaimer in the
  320. // documentation and/or other materials provided with the distribution.
  321. // 3. Neither the name of the University nor the names of its contributors
  322. // may be used to endorse or promote products derived from this software
  323. // without specific prior written permission.
  324. //
  325. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  326. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  327. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  328. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  329. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  330. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  331. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  332. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  333. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  334. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  335. // SUCH DAMAGE.
  336. //
  337. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  338. // $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
  339. // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  340. // Public domain.
  341. // Macro to test if we're using a specific version of gcc or later.
  342. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  343. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  344. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  345. // in between its arguments. Do not use __CONCAT on double-quoted strings,
  346. // such as those from the __STRING macro: to concatenate strings just put
  347. // them next to each other.
  348. // GCC1 and some versions of GCC2 declare dead (non-returning) and
  349. // pure (no side effects) functions using "volatile" and "const";
  350. // unfortunately, these then cause warnings under "-ansi -pedantic".
  351. // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
  352. // work for GNU C++ (modulo a slight glitch in the C++ grammar in
  353. // the distribution version of 2.5.5).
  354. // __returns_twice makes the compiler not assume the function
  355. // only returns once. This affects registerisation of variables:
  356. // even local variables need to be in memory across such a call.
  357. // Example: setjmp()
  358. // __only_inline makes the compiler only use this function definition
  359. // for inlining; references that can't be inlined will be left as
  360. // external references instead of generating a local copy. The
  361. // matching library should include a simple extern definition for
  362. // the function to handle those references. c.f. ctype.h
  363. // GNU C version 2.96 adds explicit branch prediction so that
  364. // the CPU back-end can hint the processor and also so that
  365. // code blocks can be reordered such that the predicted path
  366. // sees a more linear flow, thus improving cache behavior, etc.
  367. //
  368. // The following two macros provide us with a way to utilize this
  369. // compiler feature. Use __predict_true() if you expect the expression
  370. // to evaluate to true, and __predict_false() if you expect the
  371. // expression to evaluate to false.
  372. //
  373. // A few notes about usage:
  374. //
  375. // * Generally, __predict_false() error condition checks (unless
  376. // you have some _strong_ reason to do otherwise, in which case
  377. // document it), and/or __predict_true() `no-error' condition
  378. // checks, assuming you want to optimize for the no-error case.
  379. //
  380. // * Other than that, if you don't know the likelihood of a test
  381. // succeeding from empirical or other `hard' evidence, don't
  382. // make predictions.
  383. //
  384. // * These are meant to be used in places that are run `a lot'.
  385. // It is wasteful to make predictions in code that is run
  386. // seldomly (e.g. at subsystem initialization time) as the
  387. // basic block reordering that this affects can often generate
  388. // larger code.
  389. // Delete pseudo-keywords wherever they are not available or needed.
  390. // The __packed macro indicates that a variable or structure members
  391. // should have the smallest possible alignment, despite any host CPU
  392. // alignment requirements.
  393. //
  394. // The __aligned(x) macro specifies the minimum alignment of a
  395. // variable or structure.
  396. //
  397. // These macros together are useful for describing the layout and
  398. // alignment of messages exchanged with hardware or other systems.
  399. // "The nice thing about standards is that there are so many to choose from."
  400. // There are a number of "feature test macros" specified by (different)
  401. // standards that determine which interfaces and types the header files
  402. // should expose.
  403. //
  404. // Because of inconsistencies in these macros, we define our own
  405. // set in the private name space that end in _VISIBLE. These are
  406. // always defined and so headers can test their values easily.
  407. // Things can get tricky when multiple feature macros are defined.
  408. // We try to take the union of all the features requested.
  409. //
  410. // The following macros are guaranteed to have a value after cdefs.h
  411. // has been included:
  412. // __POSIX_VISIBLE
  413. // __XPG_VISIBLE
  414. // __ISO_C_VISIBLE
  415. // __BSD_VISIBLE
  416. // X/Open Portability Guides and Single Unix Specifications.
  417. // _XOPEN_SOURCE XPG3
  418. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  419. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  420. // _XOPEN_SOURCE == 500 XPG5
  421. // _XOPEN_SOURCE == 520 XPG5v2
  422. // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
  423. // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
  424. //
  425. // The XPG spec implies a specific value for _POSIX_C_SOURCE.
  426. // POSIX macros, these checks must follow the XOPEN ones above.
  427. //
  428. // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
  429. // _POSIX_C_SOURCE == 1 1003.1-1990
  430. // _POSIX_C_SOURCE == 2 1003.2-1992
  431. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  432. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  433. // and the omnibus ISO/IEC 9945-1:1996
  434. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  435. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  436. //
  437. // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
  438. // this may be overridden by the _ISOC99_SOURCE macro later.
  439. // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
  440. // If the user defines it in addition to one of the POSIX or XOPEN
  441. // macros, assume the POSIX/XOPEN macro(s) should take precedence.
  442. // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
  443. // override any of the other macros since they are non-exclusive.
  444. // Finally deal with BSD-specific interfaces that are not covered
  445. // by any standards. We expose these when none of the POSIX or XPG
  446. // macros is defined or if the user explicitly asks for them.
  447. // Default values.
  448. type Nl_catd = uintptr /* nl_types.h:81:3 */
  449. type Nl_item = int64 /* nl_types.h:83:14 */
  450. type Locale_t = uintptr /* langinfo.h:76:14 */
  451. var _ int8 /* gen.c:2:13: */