uuid_freebsd_arm64.go 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540
  1. // Code generated by 'ccgo uuid/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 uuid/uuid_freebsd_amd64.go -pkgname uuid', DO NOT EDIT.
  2. package uuid
  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. BIG_ENDIAN = 4321 // _endian.h:70:1:
  15. BYTE_ORDER = 1234 // _endian.h:72:1:
  16. FD_SETSIZE = 1024 // select.h:61:1:
  17. LITTLE_ENDIAN = 1234 // _endian.h:69:1:
  18. PDP_ENDIAN = 3412 // _endian.h:71:1:
  19. X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
  20. X_BIG_ENDIAN = 4321 // _endian.h:47:1:
  21. X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
  22. X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
  23. X_BYTE_ORDER = 1234 // _endian.h:40:1:
  24. X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
  25. X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
  26. X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
  27. X_CLOCK_T_DECLARED = 0 // types.h:95:1:
  28. X_DEV_T_DECLARED = 0 // types.h:108:1:
  29. X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
  30. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  31. X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
  32. X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
  33. X_GID_T_DECLARED = 0 // types.h:126:1:
  34. X_ID_T_DECLARED = 0 // types.h:141:1:
  35. X_INO_T_DECLARED = 0 // types.h:146:1:
  36. X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
  37. X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
  38. X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
  39. X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
  40. X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
  41. X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
  42. X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
  43. X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
  44. X_KEY_T_DECLARED = 0 // types.h:151:1:
  45. X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
  46. X_LP64 = 1 // <predefined>:1:1:
  47. X_LSEEK_DECLARED = 0 // types.h:421:1:
  48. X_LWPID_T_DECLARED = 0 // types.h:156:1:
  49. X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
  50. X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
  51. X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
  52. X_MMAP_DECLARED = 0 // types.h:425:1:
  53. X_MODE_T_DECLARED = 0 // types.h:161:1:
  54. X_MQD_T_DECLARED = 0 // types.h:227:1:
  55. X_NLINK_T_DECLARED = 0 // types.h:171:1:
  56. X_Nonnull = 0 // cdefs.h:790:1:
  57. X_Null_unspecified = 0 // cdefs.h:792:1:
  58. X_Nullable = 0 // cdefs.h:791:1:
  59. X_OFF64_T_DECLARED = 0 // types.h:181:1:
  60. X_OFF_T_DECLARED = 0 // types.h:176:1:
  61. X_PDP_ENDIAN = 3412 // _endian.h:48:1:
  62. X_PID_T_DECLARED = 0 // types.h:186:1:
  63. X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
  64. X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
  65. X_QUAD_LOWWORD = 0 // _endian.h:56:1:
  66. X_RLIM_T_DECLARED = 0 // types.h:193:1:
  67. X_SELECT_DECLARED = 0 // select.h:103:1:
  68. X_SIGSET_T_DECLARED = 0 // select.h:50:1:
  69. X_SIG_MAXSIG = 128 // _sigset.h:47:1:
  70. X_SIG_WORDS = 4 // _sigset.h:46:1:
  71. X_SIZE_T_DECLARED = 0 // types.h:202:1:
  72. X_SSIZE_T_DECLARED = 0 // types.h:207:1:
  73. X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
  74. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  75. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  76. X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
  77. X_SYS_TYPES_H_ = 0 // types.h:41:1:
  78. X_SYS_UUID_H_ = 0 // uuid.h:32:1:
  79. X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
  80. X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
  81. X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
  82. X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
  83. X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
  84. X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
  85. X_SYS__TYPES_H_ = 0 // _types.h:32:1:
  86. X_TIMER_T_DECLARED = 0 // types.h:222:1:
  87. X_TIME_T_DECLARED = 0 // types.h:217:1:
  88. X_TRUNCATE_DECLARED = 0 // types.h:429:1:
  89. X_UID_T_DECLARED = 0 // types.h:234:1:
  90. X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
  91. X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
  92. X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
  93. X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
  94. X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
  95. X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
  96. X_USECONDS_T_DECLARED = 0 // types.h:239:1:
  97. X_UUID_H_ = 0 // uuid.h:33:1:
  98. X_UUID_NODE_LEN = 6 // uuid.h:37:1:
  99. Unix = 1 // <predefined>:340:1:
  100. Uuid_s_bad_version = 1 // uuid.h:46:1:
  101. Uuid_s_invalid_string_uuid = 2 // uuid.h:47:1:
  102. Uuid_s_no_memory = 3 // uuid.h:48:1:
  103. Uuid_s_ok = 0 // uuid.h:45:1:
  104. )
  105. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  106. type Size_t = uint64 /* <builtin>:9:23 */
  107. type Wchar_t = int32 /* <builtin>:15:24 */
  108. type X__int128_t = struct {
  109. Flo int64
  110. Fhi int64
  111. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  112. type X__uint128_t = struct {
  113. Flo uint64
  114. Fhi uint64
  115. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  116. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  117. type X__float128 = float64 /* <builtin>:47:21 */
  118. // -
  119. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  120. //
  121. // Copyright (c) 2002,2005 Marcel Moolenaar
  122. // Copyright (c) 2002 Hiten Mahesh Pandya
  123. // All rights reserved.
  124. //
  125. // Redistribution and use in source and binary forms, with or without
  126. // modification, are permitted provided that the following conditions
  127. // are met:
  128. // 1. Redistributions of source code must retain the above copyright
  129. // notice, this list of conditions and the following disclaimer.
  130. // 2. Redistributions in binary form must reproduce the above copyright
  131. // notice, this list of conditions and the following disclaimer in the
  132. // documentation and/or other materials provided with the distribution.
  133. //
  134. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  135. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  136. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  137. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  138. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  139. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  140. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  141. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  142. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  143. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  144. // SUCH DAMAGE.
  145. //
  146. // $FreeBSD$
  147. // -
  148. // SPDX-License-Identifier: BSD-3-Clause
  149. //
  150. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  151. // The Regents of the University of California. All rights reserved.
  152. // (c) UNIX System Laboratories, Inc.
  153. // All or some portions of this file are derived from material licensed
  154. // to the University of California by American Telephone and Telegraph
  155. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  156. // the permission of UNIX System Laboratories, Inc.
  157. //
  158. // Redistribution and use in source and binary forms, with or without
  159. // modification, are permitted provided that the following conditions
  160. // are met:
  161. // 1. Redistributions of source code must retain the above copyright
  162. // notice, this list of conditions and the following disclaimer.
  163. // 2. Redistributions in binary form must reproduce the above copyright
  164. // notice, this list of conditions and the following disclaimer in the
  165. // documentation and/or other materials provided with the distribution.
  166. // 3. Neither the name of the University nor the names of its contributors
  167. // may be used to endorse or promote products derived from this software
  168. // without specific prior written permission.
  169. //
  170. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  171. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  172. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  173. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  174. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  175. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  176. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  177. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  178. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  179. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  180. // SUCH DAMAGE.
  181. //
  182. // @(#)types.h 8.6 (Berkeley) 2/19/95
  183. // $FreeBSD$
  184. // -
  185. // SPDX-License-Identifier: BSD-3-Clause
  186. //
  187. // Copyright (c) 1991, 1993
  188. // The Regents of the University of California. All rights reserved.
  189. //
  190. // This code is derived from software contributed to Berkeley by
  191. // Berkeley Software Design, Inc.
  192. //
  193. // Redistribution and use in source and binary forms, with or without
  194. // modification, are permitted provided that the following conditions
  195. // are met:
  196. // 1. Redistributions of source code must retain the above copyright
  197. // notice, this list of conditions and the following disclaimer.
  198. // 2. Redistributions in binary form must reproduce the above copyright
  199. // notice, this list of conditions and the following disclaimer in the
  200. // documentation and/or other materials provided with the distribution.
  201. // 3. Neither the name of the University nor the names of its contributors
  202. // may be used to endorse or promote products derived from this software
  203. // without specific prior written permission.
  204. //
  205. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  206. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  207. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  208. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  209. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  210. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  211. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  212. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  213. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  214. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  215. // SUCH DAMAGE.
  216. //
  217. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  218. // $FreeBSD$
  219. // Testing against Clang-specific extensions.
  220. // This code has been put in place to help reduce the addition of
  221. // compiler specific defines in FreeBSD code. It helps to aid in
  222. // having a compiler-agnostic source tree.
  223. // Compiler memory barriers, specific to gcc and clang.
  224. // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
  225. // Macro to test if we're using a specific version of gcc or later.
  226. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  227. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  228. // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
  229. // mode -- there must be no spaces between its arguments, and for nested
  230. // __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
  231. // concatenate double-quoted strings produced by the __STRING macro, but
  232. // this only works with ANSI C.
  233. //
  234. // __XSTRING is like __STRING, but it expands any macros in its argument
  235. // first. It is only available with ANSI C.
  236. // Compiler-dependent macros to help declare dead (non-returning) and
  237. // pure (no side effects) functions, and unused variables. They are
  238. // null except for versions of gcc that are known to support the features
  239. // properly (old versions of gcc-2 supported the dead and pure features
  240. // in a different (wrong) way). If we do not provide an implementation
  241. // for a given compiler, let the compile fail if it is told to use
  242. // a feature that we cannot live without.
  243. // Keywords added in C11.
  244. // Emulation of C11 _Generic(). Unlike the previously defined C11
  245. // keywords, it is not possible to implement this using exactly the same
  246. // syntax. Therefore implement something similar under the name
  247. // __generic(). Unlike _Generic(), this macro can only distinguish
  248. // between a single type, so it requires nested invocations to
  249. // distinguish multiple cases.
  250. // C99 Static array indices in function parameter declarations. Syntax such as:
  251. // void bar(int myArray[static 10]);
  252. // is allowed in C99 but not in C++. Define __min_size appropriately so
  253. // headers using it can be compiled in either language. Use like this:
  254. // void bar(int myArray[__min_size(10)]);
  255. // XXX: should use `#if __STDC_VERSION__ < 199901'.
  256. // C++11 exposes a load of C99 stuff
  257. // GCC 2.95 provides `__restrict' as an extension to C90 to support the
  258. // C99-specific `restrict' type qualifier. We happen to use `__restrict' as
  259. // a way to define the `restrict' type qualifier without disturbing older
  260. // software that is unaware of C99 keywords.
  261. // GNU C version 2.96 adds explicit branch prediction so that
  262. // the CPU back-end can hint the processor and also so that
  263. // code blocks can be reordered such that the predicted path
  264. // sees a more linear flow, thus improving cache behavior, etc.
  265. //
  266. // The following two macros provide us with a way to utilize this
  267. // compiler feature. Use __predict_true() if you expect the expression
  268. // to evaluate to true, and __predict_false() if you expect the
  269. // expression to evaluate to false.
  270. //
  271. // A few notes about usage:
  272. //
  273. // * Generally, __predict_false() error condition checks (unless
  274. // you have some _strong_ reason to do otherwise, in which case
  275. // document it), and/or __predict_true() `no-error' condition
  276. // checks, assuming you want to optimize for the no-error case.
  277. //
  278. // * Other than that, if you don't know the likelihood of a test
  279. // succeeding from empirical or other `hard' evidence, don't
  280. // make predictions.
  281. //
  282. // * These are meant to be used in places that are run `a lot'.
  283. // It is wasteful to make predictions in code that is run
  284. // seldomly (e.g. at subsystem initialization time) as the
  285. // basic block reordering that this affects can often generate
  286. // larger code.
  287. // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
  288. // require it.
  289. // Given the pointer x to the member m of the struct s, return
  290. // a pointer to the containing structure. When using GCC, we first
  291. // assign pointer x to a local variable, to check that its type is
  292. // compatible with member m.
  293. // Compiler-dependent macros to declare that functions take printf-like
  294. // or scanf-like arguments. They are null except for versions of gcc
  295. // that are known to support the features properly (old versions of gcc-2
  296. // didn't permit keeping the keywords out of the application namespace).
  297. // Compiler-dependent macros that rely on FreeBSD-specific extensions.
  298. // Embed the rcs id of a source file in the resulting library. Note that in
  299. // more recent ELF binutils, we use .ident allowing the ID to be stripped.
  300. // Usage:
  301. // __FBSDID("$FreeBSD$");
  302. // -
  303. // The following definitions are an extension of the behavior originally
  304. // implemented in <sys/_posix.h>, but with a different level of granularity.
  305. // POSIX.1 requires that the macros we test be defined before any standard
  306. // header file is included.
  307. //
  308. // Here's a quick run-down of the versions:
  309. // defined(_POSIX_SOURCE) 1003.1-1988
  310. // _POSIX_C_SOURCE == 1 1003.1-1990
  311. // _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
  312. // _POSIX_C_SOURCE == 199309 1003.1b-1993
  313. // _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
  314. // and the omnibus ISO/IEC 9945-1: 1996
  315. // _POSIX_C_SOURCE == 200112 1003.1-2001
  316. // _POSIX_C_SOURCE == 200809 1003.1-2008
  317. //
  318. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  319. // Specification, defines a feature-test macro which indicates the version of
  320. // that specification, and which subsumes _POSIX_C_SOURCE.
  321. //
  322. // Our macros begin with two underscores to avoid namespace screwage.
  323. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
  324. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
  325. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  326. // Deal with all versions of POSIX. The ordering relative to the tests above is
  327. // important.
  328. // -
  329. // Deal with _ANSI_SOURCE:
  330. // If it is defined, and no other compilation environment is explicitly
  331. // requested, then define our internal feature-test macros to zero. This
  332. // makes no difference to the preprocessor (undefined symbols in preprocessing
  333. // expressions are defined to have value zero), but makes it more convenient for
  334. // a test program to print out the values.
  335. //
  336. // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
  337. // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
  338. // environment (and in fact we will never get here).
  339. // User override __EXT1_VISIBLE
  340. // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
  341. // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
  342. // Nullability qualifiers: currently only supported by Clang.
  343. // Type Safety Checking
  344. //
  345. // Clang provides additional attributes to enable checking type safety
  346. // properties that cannot be enforced by the C type system.
  347. // Lock annotations.
  348. //
  349. // Clang provides support for doing basic thread-safety tests at
  350. // compile-time, by marking which locks will/should be held when
  351. // entering/leaving a functions.
  352. //
  353. // Furthermore, it is also possible to annotate variables and structure
  354. // members to enforce that they are only accessed when certain locks are
  355. // held.
  356. // Structure implements a lock.
  357. // Function acquires an exclusive or shared lock.
  358. // Function attempts to acquire an exclusive or shared lock.
  359. // Function releases a lock.
  360. // Function asserts that an exclusive or shared lock is held.
  361. // Function requires that an exclusive or shared lock is or is not held.
  362. // Function should not be analyzed.
  363. // Function or variable should not be sanitized, e.g., by AddressSanitizer.
  364. // GCC has the nosanitize attribute, but as a function attribute only, and
  365. // warns on use as a variable attribute.
  366. // Guard variables and structure members by lock.
  367. // Alignment builtins for better type checking and improved code generation.
  368. // Provide fallback versions for other compilers (GCC/Clang < 10):
  369. // Machine type dependent parameters.
  370. // -
  371. // This file is in the public domain.
  372. // $FreeBSD$
  373. // -
  374. // SPDX-License-Identifier: BSD-3-Clause
  375. //
  376. // Copyright (c) 1987, 1991 Regents of the University of California.
  377. // All rights reserved.
  378. //
  379. // Redistribution and use in source and binary forms, with or without
  380. // modification, are permitted provided that the following conditions
  381. // are met:
  382. // 1. Redistributions of source code must retain the above copyright
  383. // notice, this list of conditions and the following disclaimer.
  384. // 2. Redistributions in binary form must reproduce the above copyright
  385. // notice, this list of conditions and the following disclaimer in the
  386. // documentation and/or other materials provided with the distribution.
  387. // 3. Neither the name of the University nor the names of its contributors
  388. // may be used to endorse or promote products derived from this software
  389. // without specific prior written permission.
  390. //
  391. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  392. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  393. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  394. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  395. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  396. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  397. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  398. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  399. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  400. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  401. // SUCH DAMAGE.
  402. //
  403. // @(#)endian.h 7.8 (Berkeley) 4/3/91
  404. // $FreeBSD$
  405. // -
  406. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  407. //
  408. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  409. // All rights reserved.
  410. //
  411. // Redistribution and use in source and binary forms, with or without
  412. // modification, are permitted provided that the following conditions
  413. // are met:
  414. // 1. Redistributions of source code must retain the above copyright
  415. // notice, this list of conditions and the following disclaimer.
  416. // 2. Redistributions in binary form must reproduce the above copyright
  417. // notice, this list of conditions and the following disclaimer in the
  418. // documentation and/or other materials provided with the distribution.
  419. //
  420. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  421. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  422. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  423. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  424. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  425. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  426. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  427. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  428. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  429. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  430. // SUCH DAMAGE.
  431. //
  432. // $FreeBSD$
  433. // -
  434. // SPDX-License-Identifier: BSD-3-Clause
  435. //
  436. // Copyright (c) 1991, 1993
  437. // The Regents of the University of California. All rights reserved.
  438. //
  439. // This code is derived from software contributed to Berkeley by
  440. // Berkeley Software Design, Inc.
  441. //
  442. // Redistribution and use in source and binary forms, with or without
  443. // modification, are permitted provided that the following conditions
  444. // are met:
  445. // 1. Redistributions of source code must retain the above copyright
  446. // notice, this list of conditions and the following disclaimer.
  447. // 2. Redistributions in binary form must reproduce the above copyright
  448. // notice, this list of conditions and the following disclaimer in the
  449. // documentation and/or other materials provided with the distribution.
  450. // 3. Neither the name of the University nor the names of its contributors
  451. // may be used to endorse or promote products derived from this software
  452. // without specific prior written permission.
  453. //
  454. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  455. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  456. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  457. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  458. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  459. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  460. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  461. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  462. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  463. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  464. // SUCH DAMAGE.
  465. //
  466. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  467. // $FreeBSD$
  468. // -
  469. // This file is in the public domain.
  470. // $FreeBSD$
  471. // -
  472. // SPDX-License-Identifier: BSD-4-Clause
  473. //
  474. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  475. // Copyright (c) 1990, 1993
  476. // The Regents of the University of California. All rights reserved.
  477. //
  478. // Redistribution and use in source and binary forms, with or without
  479. // modification, are permitted provided that the following conditions
  480. // are met:
  481. // 1. Redistributions of source code must retain the above copyright
  482. // notice, this list of conditions and the following disclaimer.
  483. // 2. Redistributions in binary form must reproduce the above copyright
  484. // notice, this list of conditions and the following disclaimer in the
  485. // documentation and/or other materials provided with the distribution.
  486. // 3. All advertising materials mentioning features or use of this software
  487. // must display the following acknowledgement:
  488. // This product includes software developed by the University of
  489. // California, Berkeley and its contributors.
  490. // 4. Neither the name of the University nor the names of its contributors
  491. // may be used to endorse or promote products derived from this software
  492. // without specific prior written permission.
  493. //
  494. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  495. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  496. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  497. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  498. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  499. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  500. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  501. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  502. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  503. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  504. // SUCH DAMAGE.
  505. //
  506. // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
  507. // From: @(#)types.h 8.3 (Berkeley) 1/5/94
  508. // $FreeBSD$
  509. // -
  510. // This file is in the public domain.
  511. // $FreeBSD$
  512. // -
  513. // SPDX-License-Identifier: BSD-3-Clause
  514. //
  515. // Copyright (c) 1988, 1993
  516. // The Regents of the University of California. All rights reserved.
  517. //
  518. // Redistribution and use in source and binary forms, with or without
  519. // modification, are permitted provided that the following conditions
  520. // are met:
  521. // 1. Redistributions of source code must retain the above copyright
  522. // notice, this list of conditions and the following disclaimer.
  523. // 2. Redistributions in binary form must reproduce the above copyright
  524. // notice, this list of conditions and the following disclaimer in the
  525. // documentation and/or other materials provided with the distribution.
  526. // 3. Neither the name of the University nor the names of its contributors
  527. // may be used to endorse or promote products derived from this software
  528. // without specific prior written permission.
  529. //
  530. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  531. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  532. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  533. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  534. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  535. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  536. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  537. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  538. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  539. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  540. // SUCH DAMAGE.
  541. //
  542. // @(#)limits.h 8.3 (Berkeley) 1/4/94
  543. // $FreeBSD$
  544. // According to ANSI (section 2.2.4.2), the values below must be usable by
  545. // #if preprocessing directives. Additionally, the expression must have the
  546. // same type as would an expression that is an object of the corresponding
  547. // type converted according to the integral promotions. The subtraction for
  548. // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
  549. // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
  550. // max value for an unsigned long long
  551. // Quads and longs are the same on the amd64. Ensure they stay in sync.
  552. // Minimum signal stack size.
  553. // Basic types upon which most other types are built.
  554. type X__int8_t = int8 /* _types.h:55:22 */
  555. type X__uint8_t = uint8 /* _types.h:56:24 */
  556. type X__int16_t = int16 /* _types.h:57:17 */
  557. type X__uint16_t = uint16 /* _types.h:58:25 */
  558. type X__int32_t = int32 /* _types.h:59:15 */
  559. type X__uint32_t = uint32 /* _types.h:60:23 */
  560. type X__int64_t = int64 /* _types.h:62:16 */
  561. type X__uint64_t = uint64 /* _types.h:63:24 */
  562. // Standard type definitions.
  563. type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
  564. type X__critical_t = X__int64_t /* _types.h:76:19 */
  565. type X__double_t = float64 /* _types.h:78:17 */
  566. type X__float_t = float32 /* _types.h:79:16 */
  567. type X__intfptr_t = X__int64_t /* _types.h:81:19 */
  568. type X__intptr_t = X__int64_t /* _types.h:82:19 */
  569. type X__intmax_t = X__int64_t /* _types.h:93:19 */
  570. type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
  571. type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
  572. type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
  573. type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
  574. type X__int_least8_t = X__int8_t /* _types.h:98:18 */
  575. type X__int_least16_t = X__int16_t /* _types.h:99:19 */
  576. type X__int_least32_t = X__int32_t /* _types.h:100:19 */
  577. type X__int_least64_t = X__int64_t /* _types.h:101:19 */
  578. type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
  579. type X__register_t = X__int64_t /* _types.h:104:19 */
  580. type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
  581. type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
  582. type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
  583. type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
  584. type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
  585. type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
  586. type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
  587. type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
  588. type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
  589. type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
  590. type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
  591. type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
  592. type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
  593. type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
  594. type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
  595. type X__u_register_t = X__uint64_t /* _types.h:131:20 */
  596. type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
  597. type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
  598. type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
  599. type X___wchar_t = int32 /* _types.h:141:14 */
  600. // Standard type definitions.
  601. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
  602. type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
  603. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
  604. type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
  605. type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
  606. type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
  607. type X__gid_t = X__uint32_t /* _types.h:46:20 */
  608. type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
  609. type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
  610. type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
  611. type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
  612. type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
  613. type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
  614. type X__nl_item = int32 /* _types.h:53:14 */
  615. type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
  616. type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
  617. type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
  618. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
  619. type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
  620. // signed, because of legacy code
  621. // that uses -1 for RLIM_INFINITY
  622. type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
  623. type X__socklen_t = X__uint32_t /* _types.h:62:20 */
  624. type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
  625. type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
  626. type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
  627. type X__uid_t = X__uint32_t /* _types.h:66:20 */
  628. type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
  629. type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
  630. type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
  631. type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
  632. type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
  633. // Unusual type definitions.
  634. // rune_t is declared to be an “int” instead of the more natural
  635. // “unsigned long” or “long”. Two things are happening here. It is not
  636. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  637. // it looks like 10646 will be a 31 bit standard. This means that if your
  638. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  639. // chosen over a long is that the is*() and to*() routines take ints (says
  640. // ANSI C), but they use __ct_rune_t instead of int.
  641. //
  642. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  643. // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
  644. // rune_t must be the same type. Also, wint_t should be able to hold all
  645. // members of the largest character set plus one extra value (WEOF), and
  646. // must be at least 16 bits.
  647. type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
  648. type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
  649. type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
  650. // Clang already provides these types as built-ins, but only in C++ mode.
  651. type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
  652. type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
  653. // In C++11, char16_t and char32_t are built-in types.
  654. type X__max_align_t = struct {
  655. F__max_align1 int64
  656. F__max_align2 float64
  657. } /* _types.h:111:3 */
  658. type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
  659. type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
  660. // mbstate_t is an opaque object to keep conversion state during multibyte
  661. // stream conversions.
  662. type X__mbstate_t = struct {
  663. F__ccgo_pad1 [0]uint64
  664. F__mbstate8 [128]int8
  665. } /* _types.h:124:3 */
  666. type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
  667. // Types for varargs. These are all provided by builtin types these
  668. // days, so centralize their definition.
  669. type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
  670. type X__gnuc_va_list = X__va_list /* _types.h:140:20 */
  671. type Pthread_once = struct {
  672. Fstate int32
  673. F__ccgo_pad1 [4]byte
  674. Fmutex Pthread_mutex_t
  675. } /* _pthreadtypes.h:52:1 */
  676. // Primitive system data type definitions required by P1003.1c.
  677. //
  678. // Note that P1003.1c specifies that there are no defined comparison
  679. // or assignment operators for the types pthread_attr_t, pthread_cond_t,
  680. // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
  681. type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */
  682. type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */
  683. type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */
  684. type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */
  685. type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */
  686. type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */
  687. type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */
  688. type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */
  689. type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */
  690. type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */
  691. type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */
  692. type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
  693. type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */
  694. // Additional type definitions:
  695. //
  696. // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
  697. // use in header symbols.
  698. type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */
  699. type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
  700. type U_char = uint8 /* types.h:52:23 */
  701. type U_short = uint16 /* types.h:53:24 */
  702. type U_int = uint32 /* types.h:54:22 */
  703. type U_long = uint64 /* types.h:55:23 */
  704. type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
  705. type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility
  706. // XXX POSIX sized integrals that should appear only in <sys/stdint.h>.
  707. // -
  708. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  709. //
  710. // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
  711. // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  712. // All rights reserved.
  713. //
  714. // Redistribution and use in source and binary forms, with or without
  715. // modification, are permitted provided that the following conditions
  716. // are met:
  717. // 1. Redistributions of source code must retain the above copyright
  718. // notice, this list of conditions and the following disclaimer.
  719. // 2. Redistributions in binary form must reproduce the above copyright
  720. // notice, this list of conditions and the following disclaimer in the
  721. // documentation and/or other materials provided with the distribution.
  722. //
  723. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  724. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  725. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  726. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  727. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  728. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  729. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  730. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  731. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  732. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  733. // SUCH DAMAGE.
  734. //
  735. // $FreeBSD$
  736. type Int8_t = X__int8_t /* _stdint.h:36:19 */
  737. type Int16_t = X__int16_t /* _stdint.h:41:20 */
  738. type Int32_t = X__int32_t /* _stdint.h:46:20 */
  739. type Int64_t = X__int64_t /* _stdint.h:51:20 */
  740. type Uint8_t = X__uint8_t /* _stdint.h:56:20 */
  741. type Uint16_t = X__uint16_t /* _stdint.h:61:21 */
  742. type Uint32_t = X__uint32_t /* _stdint.h:66:21 */
  743. type Uint64_t = X__uint64_t /* _stdint.h:71:21 */
  744. type Intptr_t = X__intptr_t /* _stdint.h:76:21 */
  745. type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */
  746. type Intmax_t = X__intmax_t /* _stdint.h:84:21 */
  747. type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */
  748. type U_int8_t = X__uint8_t /* types.h:67:19 */ // unsigned integrals (deprecated)
  749. type U_int16_t = X__uint16_t /* types.h:68:20 */
  750. type U_int32_t = X__uint32_t /* types.h:69:20 */
  751. type U_int64_t = X__uint64_t /* types.h:70:20 */
  752. type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated)
  753. type Quad_t = X__int64_t /* types.h:73:19 */
  754. type Qaddr_t = uintptr /* types.h:74:16 */
  755. type Caddr_t = uintptr /* types.h:76:14 */ // core address
  756. type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const
  757. type Blksize_t = X__blksize_t /* types.h:80:21 */
  758. type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */
  759. type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */
  760. type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */
  761. type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */
  762. type Clock_t = X__clock_t /* types.h:94:19 */
  763. type Clockid_t = X__clockid_t /* types.h:99:21 */
  764. type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value
  765. type Daddr_t = X__daddr_t /* types.h:104:19 */ // disk address
  766. type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev
  767. type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags
  768. type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number
  769. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */
  770. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */
  771. type Gid_t = X__gid_t /* types.h:125:18 */ // group id
  772. type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address
  773. type In_port_t = X__uint16_t /* types.h:135:20 */
  774. type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t
  775. type Ino_t = X__ino_t /* types.h:145:18 */ // inode number
  776. type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC)
  777. type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP)
  778. type Mode_t = X__mode_t /* types.h:160:18 */ // permissions
  779. type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions
  780. type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count
  781. type Off_t = X__off_t /* types.h:175:18 */ // file offset
  782. type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias)
  783. type Pid_t = X__pid_t /* types.h:185:18 */ // process id
  784. type Register_t = X__register_t /* types.h:189:22 */
  785. type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit
  786. type Sbintime_t = X__int64_t /* types.h:196:19 */
  787. type Segsz_t = X__segsz_t /* types.h:198:19 */
  788. type Ssize_t = X__ssize_t /* types.h:206:19 */
  789. type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed)
  790. type Time_t = X__time_t /* types.h:216:18 */
  791. type Timer_t = X__timer_t /* types.h:221:19 */
  792. type Mqd_t = X__mqd_t /* types.h:226:17 */
  793. type U_register_t = X__u_register_t /* types.h:230:24 */
  794. type Uid_t = X__uid_t /* types.h:233:18 */ // user id
  795. type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned)
  796. type Cap_ioctl_t = uint64 /* types.h:244:23 */
  797. // Types suitable for exporting physical addresses, virtual addresses
  798. // (pointers), and memory object sizes from the kernel independent of native
  799. // word size. These should be used in place of vm_paddr_t, (u)intptr_t, and
  800. // size_t in structs which contain such types that are shared with userspace.
  801. type Kpaddr_t = X__uint64_t /* types.h:260:20 */
  802. type Kvaddr_t = X__uint64_t /* types.h:261:20 */
  803. type Ksize_t = X__uint64_t /* types.h:262:20 */
  804. type Kssize_t = X__int64_t /* types.h:263:19 */
  805. type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */
  806. type Vm_ooffset_t = X__uint64_t /* types.h:266:20 */
  807. type Vm_paddr_t = X__vm_paddr_t /* types.h:267:22 */
  808. type Vm_pindex_t = X__uint64_t /* types.h:268:20 */
  809. type Vm_size_t = X__vm_size_t /* types.h:269:21 */
  810. type Rman_res_t = X__rman_res_t /* types.h:271:25 */
  811. // -
  812. // SPDX-License-Identifier: BSD-3-Clause
  813. //
  814. // Copyright (c) 1992, 1993
  815. // The Regents of the University of California. All rights reserved.
  816. //
  817. // Redistribution and use in source and binary forms, with or without
  818. // modification, are permitted provided that the following conditions
  819. // are met:
  820. // 1. Redistributions of source code must retain the above copyright
  821. // notice, this list of conditions and the following disclaimer.
  822. // 2. Redistributions in binary form must reproduce the above copyright
  823. // notice, this list of conditions and the following disclaimer in the
  824. // documentation and/or other materials provided with the distribution.
  825. // 3. Neither the name of the University nor the names of its contributors
  826. // may be used to endorse or promote products derived from this software
  827. // without specific prior written permission.
  828. //
  829. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  830. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  831. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  832. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  833. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  834. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  835. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  836. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  837. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  838. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  839. // SUCH DAMAGE.
  840. //
  841. // $FreeBSD$
  842. // -
  843. // SPDX-License-Identifier: BSD-3-Clause
  844. //
  845. // Copyright (c) 1991, 1993
  846. // The Regents of the University of California. All rights reserved.
  847. //
  848. // This code is derived from software contributed to Berkeley by
  849. // Berkeley Software Design, Inc.
  850. //
  851. // Redistribution and use in source and binary forms, with or without
  852. // modification, are permitted provided that the following conditions
  853. // are met:
  854. // 1. Redistributions of source code must retain the above copyright
  855. // notice, this list of conditions and the following disclaimer.
  856. // 2. Redistributions in binary form must reproduce the above copyright
  857. // notice, this list of conditions and the following disclaimer in the
  858. // documentation and/or other materials provided with the distribution.
  859. // 3. Neither the name of the University nor the names of its contributors
  860. // may be used to endorse or promote products derived from this software
  861. // without specific prior written permission.
  862. //
  863. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  864. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  865. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  866. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  867. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  868. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  869. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  870. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  871. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  872. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  873. // SUCH DAMAGE.
  874. //
  875. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  876. // $FreeBSD$
  877. // -
  878. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  879. //
  880. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  881. // All rights reserved.
  882. //
  883. // Redistribution and use in source and binary forms, with or without
  884. // modification, are permitted provided that the following conditions
  885. // are met:
  886. // 1. Redistributions of source code must retain the above copyright
  887. // notice, this list of conditions and the following disclaimer.
  888. // 2. Redistributions in binary form must reproduce the above copyright
  889. // notice, this list of conditions and the following disclaimer in the
  890. // documentation and/or other materials provided with the distribution.
  891. //
  892. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  893. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  894. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  895. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  896. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  897. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  898. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  899. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  900. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  901. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  902. // SUCH DAMAGE.
  903. //
  904. // $FreeBSD$
  905. // -
  906. // SPDX-License-Identifier: BSD-3-Clause
  907. //
  908. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  909. // The Regents of the University of California. All rights reserved.
  910. // (c) UNIX System Laboratories, Inc.
  911. // All or some portions of this file are derived from material licensed
  912. // to the University of California by American Telephone and Telegraph
  913. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  914. // the permission of UNIX System Laboratories, Inc.
  915. //
  916. // Redistribution and use in source and binary forms, with or without
  917. // modification, are permitted provided that the following conditions
  918. // are met:
  919. // 1. Redistributions of source code must retain the above copyright
  920. // notice, this list of conditions and the following disclaimer.
  921. // 2. Redistributions in binary form must reproduce the above copyright
  922. // notice, this list of conditions and the following disclaimer in the
  923. // documentation and/or other materials provided with the distribution.
  924. // 3. Neither the name of the University nor the names of its contributors
  925. // may be used to endorse or promote products derived from this software
  926. // without specific prior written permission.
  927. //
  928. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  929. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  930. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  931. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  932. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  933. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  934. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  935. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  936. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  937. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  938. // SUCH DAMAGE.
  939. //
  940. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  941. // $FreeBSD$
  942. // sigset_t macros.
  943. type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
  944. // -
  945. // SPDX-License-Identifier: BSD-3-Clause
  946. //
  947. // Copyright (c) 1992, 1993
  948. // The Regents of the University of California. All rights reserved.
  949. //
  950. // Redistribution and use in source and binary forms, with or without
  951. // modification, are permitted provided that the following conditions
  952. // are met:
  953. // 1. Redistributions of source code must retain the above copyright
  954. // notice, this list of conditions and the following disclaimer.
  955. // 2. Redistributions in binary form must reproduce the above copyright
  956. // notice, this list of conditions and the following disclaimer in the
  957. // documentation and/or other materials provided with the distribution.
  958. // 3. Neither the name of the University nor the names of its contributors
  959. // may be used to endorse or promote products derived from this software
  960. // without specific prior written permission.
  961. //
  962. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  963. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  964. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  965. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  966. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  967. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  968. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  969. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  970. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  971. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  972. // SUCH DAMAGE.
  973. //
  974. // $FreeBSD$
  975. // -
  976. // SPDX-License-Identifier: BSD-3-Clause
  977. //
  978. // Copyright (c) 1991, 1993
  979. // The Regents of the University of California. All rights reserved.
  980. //
  981. // This code is derived from software contributed to Berkeley by
  982. // Berkeley Software Design, Inc.
  983. //
  984. // Redistribution and use in source and binary forms, with or without
  985. // modification, are permitted provided that the following conditions
  986. // are met:
  987. // 1. Redistributions of source code must retain the above copyright
  988. // notice, this list of conditions and the following disclaimer.
  989. // 2. Redistributions in binary form must reproduce the above copyright
  990. // notice, this list of conditions and the following disclaimer in the
  991. // documentation and/or other materials provided with the distribution.
  992. // 3. Neither the name of the University nor the names of its contributors
  993. // may be used to endorse or promote products derived from this software
  994. // without specific prior written permission.
  995. //
  996. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  997. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  998. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  999. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1000. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1001. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1002. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1003. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1004. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1005. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1006. // SUCH DAMAGE.
  1007. //
  1008. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1009. // $FreeBSD$
  1010. // -
  1011. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1012. //
  1013. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1014. // All rights reserved.
  1015. //
  1016. // Redistribution and use in source and binary forms, with or without
  1017. // modification, are permitted provided that the following conditions
  1018. // are met:
  1019. // 1. Redistributions of source code must retain the above copyright
  1020. // notice, this list of conditions and the following disclaimer.
  1021. // 2. Redistributions in binary form must reproduce the above copyright
  1022. // notice, this list of conditions and the following disclaimer in the
  1023. // documentation and/or other materials provided with the distribution.
  1024. //
  1025. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1026. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1027. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1028. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1029. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1030. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1031. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1032. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1033. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1034. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1035. // SUCH DAMAGE.
  1036. //
  1037. // $FreeBSD$
  1038. // -
  1039. // SPDX-License-Identifier: BSD-3-Clause
  1040. //
  1041. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1042. // The Regents of the University of California. All rights reserved.
  1043. // (c) UNIX System Laboratories, Inc.
  1044. // All or some portions of this file are derived from material licensed
  1045. // to the University of California by American Telephone and Telegraph
  1046. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1047. // the permission of UNIX System Laboratories, Inc.
  1048. //
  1049. // Redistribution and use in source and binary forms, with or without
  1050. // modification, are permitted provided that the following conditions
  1051. // are met:
  1052. // 1. Redistributions of source code must retain the above copyright
  1053. // notice, this list of conditions and the following disclaimer.
  1054. // 2. Redistributions in binary form must reproduce the above copyright
  1055. // notice, this list of conditions and the following disclaimer in the
  1056. // documentation and/or other materials provided with the distribution.
  1057. // 3. Neither the name of the University nor the names of its contributors
  1058. // may be used to endorse or promote products derived from this software
  1059. // without specific prior written permission.
  1060. //
  1061. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1062. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1063. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1064. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1065. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1066. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1067. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1068. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1069. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1070. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1071. // SUCH DAMAGE.
  1072. //
  1073. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1074. // $FreeBSD$
  1075. // sigset_t macros.
  1076. type X__sigset_t = X__sigset /* _sigset.h:55:3 */
  1077. // -
  1078. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1079. //
  1080. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1081. // All rights reserved.
  1082. //
  1083. // Redistribution and use in source and binary forms, with or without
  1084. // modification, are permitted provided that the following conditions
  1085. // are met:
  1086. // 1. Redistributions of source code must retain the above copyright
  1087. // notice, this list of conditions and the following disclaimer.
  1088. // 2. Redistributions in binary form must reproduce the above copyright
  1089. // notice, this list of conditions and the following disclaimer in the
  1090. // documentation and/or other materials provided with the distribution.
  1091. //
  1092. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1093. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1094. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1095. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1096. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1097. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1098. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1099. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1100. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1101. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1102. // SUCH DAMAGE.
  1103. //
  1104. // $FreeBSD$
  1105. // -
  1106. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1107. //
  1108. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1109. // All rights reserved.
  1110. //
  1111. // Redistribution and use in source and binary forms, with or without
  1112. // modification, are permitted provided that the following conditions
  1113. // are met:
  1114. // 1. Redistributions of source code must retain the above copyright
  1115. // notice, this list of conditions and the following disclaimer.
  1116. // 2. Redistributions in binary form must reproduce the above copyright
  1117. // notice, this list of conditions and the following disclaimer in the
  1118. // documentation and/or other materials provided with the distribution.
  1119. //
  1120. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1121. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1122. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1123. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1124. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1125. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1126. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1127. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1128. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1129. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1130. // SUCH DAMAGE.
  1131. //
  1132. // $FreeBSD$
  1133. // Structure returned by gettimeofday(2) system call, and used in other calls.
  1134. type Timeval = struct {
  1135. Ftv_sec Time_t
  1136. Ftv_usec Suseconds_t
  1137. } /* _timeval.h:49:1 */
  1138. // -
  1139. // SPDX-License-Identifier: BSD-3-Clause
  1140. //
  1141. // Copyright (c) 1982, 1986, 1993
  1142. // The Regents of the University of California. All rights reserved.
  1143. //
  1144. // Redistribution and use in source and binary forms, with or without
  1145. // modification, are permitted provided that the following conditions
  1146. // are met:
  1147. // 1. Redistributions of source code must retain the above copyright
  1148. // notice, this list of conditions and the following disclaimer.
  1149. // 2. Redistributions in binary form must reproduce the above copyright
  1150. // notice, this list of conditions and the following disclaimer in the
  1151. // documentation and/or other materials provided with the distribution.
  1152. // 3. Neither the name of the University nor the names of its contributors
  1153. // may be used to endorse or promote products derived from this software
  1154. // without specific prior written permission.
  1155. //
  1156. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1157. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1158. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1159. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1160. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1161. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1162. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1163. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1164. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1165. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1166. // SUCH DAMAGE.
  1167. //
  1168. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1169. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1170. // $FreeBSD$
  1171. // -
  1172. // SPDX-License-Identifier: BSD-3-Clause
  1173. //
  1174. // Copyright (c) 1991, 1993
  1175. // The Regents of the University of California. All rights reserved.
  1176. //
  1177. // This code is derived from software contributed to Berkeley by
  1178. // Berkeley Software Design, Inc.
  1179. //
  1180. // Redistribution and use in source and binary forms, with or without
  1181. // modification, are permitted provided that the following conditions
  1182. // are met:
  1183. // 1. Redistributions of source code must retain the above copyright
  1184. // notice, this list of conditions and the following disclaimer.
  1185. // 2. Redistributions in binary form must reproduce the above copyright
  1186. // notice, this list of conditions and the following disclaimer in the
  1187. // documentation and/or other materials provided with the distribution.
  1188. // 3. Neither the name of the University nor the names of its contributors
  1189. // may be used to endorse or promote products derived from this software
  1190. // without specific prior written permission.
  1191. //
  1192. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1193. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1194. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1195. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1196. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1197. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1198. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1199. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1200. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1201. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1202. // SUCH DAMAGE.
  1203. //
  1204. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1205. // $FreeBSD$
  1206. // -
  1207. // SPDX-License-Identifier: BSD-3-Clause
  1208. //
  1209. // Copyright (c) 1982, 1986, 1993
  1210. // The Regents of the University of California. All rights reserved.
  1211. //
  1212. // Redistribution and use in source and binary forms, with or without
  1213. // modification, are permitted provided that the following conditions
  1214. // are met:
  1215. // 1. Redistributions of source code must retain the above copyright
  1216. // notice, this list of conditions and the following disclaimer.
  1217. // 2. Redistributions in binary form must reproduce the above copyright
  1218. // notice, this list of conditions and the following disclaimer in the
  1219. // documentation and/or other materials provided with the distribution.
  1220. // 3. Neither the name of the University nor the names of its contributors
  1221. // may be used to endorse or promote products derived from this software
  1222. // without specific prior written permission.
  1223. //
  1224. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1225. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1226. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1227. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1228. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1229. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1230. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1231. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1232. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1233. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1234. // SUCH DAMAGE.
  1235. //
  1236. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1237. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1238. // $FreeBSD$
  1239. // -
  1240. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1241. //
  1242. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1243. // All rights reserved.
  1244. //
  1245. // Redistribution and use in source and binary forms, with or without
  1246. // modification, are permitted provided that the following conditions
  1247. // are met:
  1248. // 1. Redistributions of source code must retain the above copyright
  1249. // notice, this list of conditions and the following disclaimer.
  1250. // 2. Redistributions in binary form must reproduce the above copyright
  1251. // notice, this list of conditions and the following disclaimer in the
  1252. // documentation and/or other materials provided with the distribution.
  1253. //
  1254. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1255. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1256. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1257. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1258. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1259. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1260. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1261. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1262. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1263. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1264. // SUCH DAMAGE.
  1265. //
  1266. // $FreeBSD$
  1267. type Timespec = struct {
  1268. Ftv_sec Time_t
  1269. Ftv_nsec int64
  1270. } /* _timespec.h:46:1 */
  1271. // Structure defined by POSIX.1b to be like a itimerval, but with
  1272. // timespecs. Used in the timer_*() system calls.
  1273. type Itimerspec = struct {
  1274. Fit_interval struct {
  1275. Ftv_sec Time_t
  1276. Ftv_nsec int64
  1277. }
  1278. Fit_value struct {
  1279. Ftv_sec Time_t
  1280. Ftv_nsec int64
  1281. }
  1282. } /* timespec.h:60:1 */
  1283. type X__fd_mask = uint64 /* select.h:44:23 */
  1284. type Fd_mask = X__fd_mask /* select.h:46:19 */
  1285. type Sigset_t = X__sigset_t /* select.h:51:20 */
  1286. // Select uses bit masks of file descriptors in longs. These macros
  1287. // manipulate such bit fields (the filesystem macros use chars).
  1288. // FD_SETSIZE may be defined by the user, but the default here should
  1289. // be enough for most uses.
  1290. type Fd_set1 = struct{ F__fds_bits [16]X__fd_mask } /* select.h:73:9 */
  1291. // Select uses bit masks of file descriptors in longs. These macros
  1292. // manipulate such bit fields (the filesystem macros use chars).
  1293. // FD_SETSIZE may be defined by the user, but the default here should
  1294. // be enough for most uses.
  1295. type Fd_set = Fd_set1 /* select.h:75:3 */
  1296. // -
  1297. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1298. //
  1299. // Copyright (c) 2002 Marcel Moolenaar
  1300. // All rights reserved.
  1301. //
  1302. // Redistribution and use in source and binary forms, with or without
  1303. // modification, are permitted provided that the following conditions
  1304. // are met:
  1305. //
  1306. // 1. Redistributions of source code must retain the above copyright
  1307. // notice, this list of conditions and the following disclaimer.
  1308. // 2. Redistributions in binary form must reproduce the above copyright
  1309. // notice, this list of conditions and the following disclaimer in the
  1310. // documentation and/or other materials provided with the distribution.
  1311. //
  1312. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1313. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1314. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1315. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1316. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1317. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1318. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1319. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1320. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1321. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1322. //
  1323. // $FreeBSD$
  1324. // -
  1325. // SPDX-License-Identifier: BSD-3-Clause
  1326. //
  1327. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1328. // The Regents of the University of California. All rights reserved.
  1329. // (c) UNIX System Laboratories, Inc.
  1330. // All or some portions of this file are derived from material licensed
  1331. // to the University of California by American Telephone and Telegraph
  1332. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1333. // the permission of UNIX System Laboratories, Inc.
  1334. //
  1335. // Redistribution and use in source and binary forms, with or without
  1336. // modification, are permitted provided that the following conditions
  1337. // are met:
  1338. // 1. Redistributions of source code must retain the above copyright
  1339. // notice, this list of conditions and the following disclaimer.
  1340. // 2. Redistributions in binary form must reproduce the above copyright
  1341. // notice, this list of conditions and the following disclaimer in the
  1342. // documentation and/or other materials provided with the distribution.
  1343. // 3. Neither the name of the University nor the names of its contributors
  1344. // may be used to endorse or promote products derived from this software
  1345. // without specific prior written permission.
  1346. //
  1347. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1348. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1349. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1350. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1351. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1352. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1353. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1354. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1355. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1356. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1357. // SUCH DAMAGE.
  1358. //
  1359. // @(#)types.h 8.6 (Berkeley) 2/19/95
  1360. // $FreeBSD$
  1361. // Length of a node address (an IEEE 802 address).
  1362. // See also:
  1363. //
  1364. // http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt
  1365. // http://www.opengroup.org/onlinepubs/009629399/apdxa.htm
  1366. //
  1367. // A DCE 1.1 compatible source representation of UUIDs.
  1368. type Uuid = struct {
  1369. Ftime_low Uint32_t
  1370. Ftime_mid Uint16_t
  1371. Ftime_hi_and_version Uint16_t
  1372. Fclock_seq_hi_and_reserved Uint8_t
  1373. Fclock_seq_low Uint8_t
  1374. Fnode [6]Uint8_t
  1375. } /* uuid.h:46:1 */
  1376. // XXX namespace pollution?
  1377. type Uuid_t = Uuid /* uuid.h:93:21 */
  1378. var _ int8 /* gen.c:2:13: */