stdio_illumos_amd64.go 44 KB

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