uuid_freebsd_386.go 70 KB

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