uuid_freebsd_arm.go 68 KB

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