uuid_netbsd_amd64.go 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455
  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_netbsd_amd64.go -pkgname uuid', DO NOT EDIT.
  2. package uuid
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. BIG_ENDIAN = 4321 // endian.h:101:1:
  15. BYTE_ORDER = 1234 // endian.h:103:1:
  16. FD_SETSIZE = 256 // fd_set.h:59:1:
  17. INT16_MAX = 32767 // common_int_limits.h:53:1:
  18. INT16_MIN = -32768 // common_int_limits.h:47:1:
  19. INT32_MAX = 2147483647 // common_int_limits.h:54:1:
  20. INT32_MIN = -2147483648 // common_int_limits.h:48:1:
  21. INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
  22. INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
  23. INT8_MAX = 127 // common_int_limits.h:52:1:
  24. INT8_MIN = -128 // common_int_limits.h:46:1:
  25. INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
  26. INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
  27. INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
  28. INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
  29. INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
  30. INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
  31. INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
  32. INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
  33. INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
  34. INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
  35. INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
  36. INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
  37. INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
  38. INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
  39. INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
  40. INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
  41. INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
  42. INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
  43. INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
  44. INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
  45. LITTLE_ENDIAN = 1234 // endian.h:100:1:
  46. NBBY = 8 // types.h:316:1:
  47. NFDBITS = 32 // fd_set.h:93:1:
  48. NODEVMAJOR = -1 // types.h:258:1:
  49. PDP_ENDIAN = 3412 // endian.h:102:1:
  50. PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
  51. PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
  52. SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
  53. SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
  54. SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
  55. UINT16_MAX = 65535 // common_int_limits.h:59:1:
  56. UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
  57. UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
  58. UINT8_MAX = 255 // common_int_limits.h:58:1:
  59. UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
  60. UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
  61. UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
  62. UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
  63. UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
  64. UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
  65. UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
  66. UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
  67. UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
  68. UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
  69. WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
  70. WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
  71. WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
  72. WINT_MIN = -2147483648 // wchar_limits.h:44:1:
  73. X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
  74. X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
  75. X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
  76. X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
  77. X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
  78. X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
  79. X_BIG_ENDIAN = 4321 // endian.h:44:1:
  80. X_BSD_INT16_T_ = 0 // types.h:65:1:
  81. X_BSD_INT32_T_ = 0 // types.h:75:1:
  82. X_BSD_INT64_T_ = 0 // types.h:85:1:
  83. X_BSD_INT8_T_ = 0 // types.h:55:1:
  84. X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
  85. X_BSD_UINT16_T_ = 0 // types.h:70:1:
  86. X_BSD_UINT32_T_ = 0 // types.h:80:1:
  87. X_BSD_UINT64_T_ = 0 // types.h:90:1:
  88. X_BSD_UINT8_T_ = 0 // types.h:60:1:
  89. X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
  90. X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
  91. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  92. X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
  93. X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
  94. X_LP64 = 1 // <predefined>:268:1:
  95. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  96. X_PDP_ENDIAN = 3412 // endian.h:45:1:
  97. X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
  98. X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
  99. X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
  100. X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
  101. X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
  102. X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
  103. X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
  104. X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
  105. X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
  106. X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
  107. X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
  108. X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
  109. X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
  110. X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
  111. X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
  112. X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
  113. X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
  114. X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
  115. X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
  116. X_QUAD_HIGHWORD = 1 // endian.h:84:1:
  117. X_QUAD_LOWWORD = 0 // endian.h:85:1:
  118. X_SIZE_T = 0 // types.h:279:1:
  119. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  120. X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
  121. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  122. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  123. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  124. X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
  125. X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
  126. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  127. X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
  128. X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
  129. X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
  130. X_SYS_TYPES_H_ = 0 // types.h:40:1:
  131. X_SYS_UUID_H_ = 0 // uuid.h:32:1:
  132. X_UUID_H_ = 0 // uuid.h:33:1:
  133. X_UUID_NODE_LEN = 6 // uuid.h:37:1:
  134. X_UUID_STR_LEN = 38 // uuid.h:40:1:
  135. X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
  136. X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
  137. X_X86_64_TYPES_H_ = 0 // types.h:35:1:
  138. Uuid_s_bad_version = 1 // uuid.h:40:1:
  139. Uuid_s_invalid_string_uuid = 2 // uuid.h:41:1:
  140. Uuid_s_no_memory = 3 // uuid.h:42:1:
  141. Uuid_s_ok = 0 // uuid.h:39:1:
  142. )
  143. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  144. type Size_t = uint64 /* <builtin>:9:23 */
  145. type Wchar_t = int32 /* <builtin>:15:24 */
  146. type X__int128_t = struct {
  147. Flo int64
  148. Fhi int64
  149. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  150. type X__uint128_t = struct {
  151. Flo uint64
  152. Fhi uint64
  153. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  154. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  155. type X__float128 = float64 /* <builtin>:47:21 */
  156. // return true if value 'a' fits in type 't'
  157. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  158. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  159. // Public domain.
  160. //
  161. // NOTE: Do not protect this header against multiple inclusion. Doing
  162. // so can have subtle side-effects due to header file inclusion order
  163. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  164. // protect each CPP macro that we want to supply.
  165. // Feature-test macros are defined by several standards, and allow an
  166. // application to specify what symbols they want the system headers to
  167. // expose, and hence what standard they want them to conform to.
  168. // There are two classes of feature-test macros. The first class
  169. // specify complete standards, and if one of these is defined, header
  170. // files will try to conform to the relevant standard. They are:
  171. //
  172. // ANSI macros:
  173. // _ANSI_SOURCE ANSI C89
  174. //
  175. // POSIX macros:
  176. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  177. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  178. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  179. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  180. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  181. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  182. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  183. //
  184. // X/Open macros:
  185. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  186. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  187. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  188. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  189. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  190. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  191. //
  192. // NetBSD macros:
  193. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  194. //
  195. // If more than one of these "major" feature-test macros is defined,
  196. // then the set of facilities provided (and namespace used) is the
  197. // union of that specified by the relevant standards, and in case of
  198. // conflict, the earlier standard in the above list has precedence (so
  199. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  200. // of rename() that's used is the POSIX one). If none of the "major"
  201. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  202. //
  203. // There are also "minor" feature-test macros, which enable extra
  204. // functionality in addition to some base standard. They should be
  205. // defined along with one of the "major" macros. The "minor" macros
  206. // are:
  207. //
  208. // _REENTRANT
  209. // _ISOC99_SOURCE
  210. // _ISOC11_SOURCE
  211. // _LARGEFILE_SOURCE Large File Support
  212. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  213. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  214. // -
  215. // Copyright (c) 1990 The Regents of the University of California.
  216. // All rights reserved.
  217. //
  218. // Redistribution and use in source and binary forms, with or without
  219. // modification, are permitted provided that the following conditions
  220. // are met:
  221. // 1. Redistributions of source code must retain the above copyright
  222. // notice, this list of conditions and the following disclaimer.
  223. // 2. Redistributions in binary form must reproduce the above copyright
  224. // notice, this list of conditions and the following disclaimer in the
  225. // documentation and/or other materials provided with the distribution.
  226. // 3. Neither the name of the University nor the names of its contributors
  227. // may be used to endorse or promote products derived from this software
  228. // without specific prior written permission.
  229. //
  230. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  231. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  232. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  233. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  234. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  235. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  236. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  237. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  238. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  239. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  240. // SUCH DAMAGE.
  241. //
  242. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  243. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  244. // -
  245. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  246. // All rights reserved.
  247. //
  248. // This code is derived from software contributed to The NetBSD Foundation
  249. // by Joerg Sonnenberger.
  250. //
  251. // Redistribution and use in source and binary forms, with or without
  252. // modification, are permitted provided that the following conditions
  253. // are met:
  254. // 1. Redistributions of source code must retain the above copyright
  255. // notice, this list of conditions and the following disclaimer.
  256. // 2. Redistributions in binary form must reproduce the above copyright
  257. // notice, this list of conditions and the following disclaimer in the
  258. // documentation and/or other materials provided with the distribution.
  259. //
  260. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  261. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  262. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  263. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  264. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  265. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  266. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  267. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  268. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  269. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  270. // POSSIBILITY OF SUCH DAMAGE.
  271. // 7.18.1 Integer types
  272. // 7.18.1.1 Exact-width integer types
  273. type X__int8_t = int8 /* common_int_types.h:45:27 */
  274. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  275. type X__int16_t = int16 /* common_int_types.h:47:27 */
  276. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  277. type X__int32_t = int32 /* common_int_types.h:49:27 */
  278. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  279. type X__int64_t = int64 /* common_int_types.h:51:27 */
  280. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  281. // 7.18.1.4 Integer types capable of holding object pointers
  282. type X__intptr_t = int64 /* common_int_types.h:58:27 */
  283. type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
  284. type X__register_t = int64 /* types.h:68:19 */
  285. type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
  286. // __cpu_simple_lock_t used to be a full word.
  287. // The amd64 does not have strict alignment requirements.
  288. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  289. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  290. // -
  291. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  292. // All rights reserved.
  293. //
  294. // This code is derived from software contributed to The NetBSD Foundation
  295. // by Matt Thomas of 3am Software Foundry.
  296. //
  297. // Redistribution and use in source and binary forms, with or without
  298. // modification, are permitted provided that the following conditions
  299. // are met:
  300. // 1. Redistributions of source code must retain the above copyright
  301. // notice, this list of conditions and the following disclaimer.
  302. // 2. Redistributions in binary form must reproduce the above copyright
  303. // notice, this list of conditions and the following disclaimer in the
  304. // documentation and/or other materials provided with the distribution.
  305. //
  306. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  307. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  308. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  309. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  310. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  311. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  312. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  313. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  314. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  315. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  316. // POSSIBILITY OF SUCH DAMAGE.
  317. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  318. // * Copyright (c) 1991, 1993
  319. // The Regents of the University of California. All rights reserved.
  320. //
  321. // This code is derived from software contributed to Berkeley by
  322. // Berkeley Software Design, Inc.
  323. //
  324. // Redistribution and use in source and binary forms, with or without
  325. // modification, are permitted provided that the following conditions
  326. // are met:
  327. // 1. Redistributions of source code must retain the above copyright
  328. // notice, this list of conditions and the following disclaimer.
  329. // 2. Redistributions in binary form must reproduce the above copyright
  330. // notice, this list of conditions and the following disclaimer in the
  331. // documentation and/or other materials provided with the distribution.
  332. // 3. Neither the name of the University nor the names of its contributors
  333. // may be used to endorse or promote products derived from this software
  334. // without specific prior written permission.
  335. //
  336. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  337. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  338. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  339. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  340. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  341. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  342. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  343. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  344. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  345. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  346. // SUCH DAMAGE.
  347. //
  348. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  349. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  350. // -
  351. // Copyright (c) 1990 The Regents of the University of California.
  352. // All rights reserved.
  353. //
  354. // Redistribution and use in source and binary forms, with or without
  355. // modification, are permitted provided that the following conditions
  356. // are met:
  357. // 1. Redistributions of source code must retain the above copyright
  358. // notice, this list of conditions and the following disclaimer.
  359. // 2. Redistributions in binary form must reproduce the above copyright
  360. // notice, this list of conditions and the following disclaimer in the
  361. // documentation and/or other materials provided with the distribution.
  362. // 3. Neither the name of the University nor the names of its contributors
  363. // may be used to endorse or promote products derived from this software
  364. // without specific prior written permission.
  365. //
  366. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  367. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  368. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  369. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  370. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  371. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  372. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  373. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  374. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  375. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  376. // SUCH DAMAGE.
  377. //
  378. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  379. // Types which are fundamental to the implementation and may appear in
  380. // more than one standard header are defined here. Standard headers
  381. // then use:
  382. // #ifdef _BSD_SIZE_T_
  383. // typedef _BSD_SIZE_T_ size_t;
  384. // #undef _BSD_SIZE_T_
  385. // #endif
  386. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  387. // -
  388. // Copyright (c) 1990 The Regents of the University of California.
  389. // All rights reserved.
  390. //
  391. // Redistribution and use in source and binary forms, with or without
  392. // modification, are permitted provided that the following conditions
  393. // are met:
  394. // 1. Redistributions of source code must retain the above copyright
  395. // notice, this list of conditions and the following disclaimer.
  396. // 2. Redistributions in binary form must reproduce the above copyright
  397. // notice, this list of conditions and the following disclaimer in the
  398. // documentation and/or other materials provided with the distribution.
  399. // 3. Neither the name of the University nor the names of its contributors
  400. // may be used to endorse or promote products derived from this software
  401. // without specific prior written permission.
  402. //
  403. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  404. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  405. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  406. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  407. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  408. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  409. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  410. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  411. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  412. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  413. // SUCH DAMAGE.
  414. //
  415. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  416. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  417. // -
  418. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  419. // All rights reserved.
  420. //
  421. // This code is derived from software contributed to The NetBSD Foundation
  422. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  423. //
  424. // Redistribution and use in source and binary forms, with or without
  425. // modification, are permitted provided that the following conditions
  426. // are met:
  427. // 1. Redistributions of source code must retain the above copyright
  428. // notice, this list of conditions and the following disclaimer.
  429. // 2. Redistributions in binary form must reproduce the above copyright
  430. // notice, this list of conditions and the following disclaimer in the
  431. // documentation and/or other materials provided with the distribution.
  432. //
  433. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  434. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  435. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  436. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  437. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  438. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  439. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  440. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  441. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  442. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  443. // POSSIBILITY OF SUCH DAMAGE.
  444. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  445. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  446. // -
  447. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  448. // All rights reserved.
  449. //
  450. // This code is derived from software contributed to The NetBSD Foundation
  451. // by Matt Thomas of 3am Software Foundry.
  452. //
  453. // Redistribution and use in source and binary forms, with or without
  454. // modification, are permitted provided that the following conditions
  455. // are met:
  456. // 1. Redistributions of source code must retain the above copyright
  457. // notice, this list of conditions and the following disclaimer.
  458. // 2. Redistributions in binary form must reproduce the above copyright
  459. // notice, this list of conditions and the following disclaimer in the
  460. // documentation and/or other materials provided with the distribution.
  461. //
  462. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  463. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  464. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  465. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  466. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  467. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  468. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  469. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  470. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  471. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  472. // POSSIBILITY OF SUCH DAMAGE.
  473. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  474. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  475. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  476. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  477. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  478. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  479. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  480. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  481. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  482. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  483. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  484. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  485. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  486. type X__wctype_t = uintptr /* ansi.h:54:31 */
  487. // mbstate_t is an opaque object to keep conversion state, during multibyte
  488. // stream conversions. The content must not be referenced by user programs.
  489. type X__mbstate_t = struct {
  490. F__mbstateL X__int64_t
  491. F__ccgo_pad1 [120]byte
  492. } /* ansi.h:63:3 */
  493. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  494. type Int8_t = X__int8_t /* types.h:54:18 */
  495. type Uint8_t = X__uint8_t /* types.h:59:19 */
  496. type Int16_t = X__int16_t /* types.h:64:19 */
  497. type Uint16_t = X__uint16_t /* types.h:69:20 */
  498. type Int32_t = X__int32_t /* types.h:74:19 */
  499. type Uint32_t = X__uint32_t /* types.h:79:20 */
  500. type Int64_t = X__int64_t /* types.h:84:19 */
  501. type Uint64_t = X__uint64_t /* types.h:89:20 */
  502. type U_int8_t = Uint8_t /* types.h:93:18 */
  503. type U_int16_t = Uint16_t /* types.h:94:18 */
  504. type U_int32_t = Uint32_t /* types.h:95:18 */
  505. type U_int64_t = Uint64_t /* types.h:96:18 */
  506. // $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
  507. // $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
  508. // Copyright (c) 1987, 1991, 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. // @(#)endian.h 8.1 (Berkeley) 6/11/93
  536. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  537. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  538. // Public domain.
  539. //
  540. // NOTE: Do not protect this header against multiple inclusion. Doing
  541. // so can have subtle side-effects due to header file inclusion order
  542. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  543. // protect each CPP macro that we want to supply.
  544. // Feature-test macros are defined by several standards, and allow an
  545. // application to specify what symbols they want the system headers to
  546. // expose, and hence what standard they want them to conform to.
  547. // There are two classes of feature-test macros. The first class
  548. // specify complete standards, and if one of these is defined, header
  549. // files will try to conform to the relevant standard. They are:
  550. //
  551. // ANSI macros:
  552. // _ANSI_SOURCE ANSI C89
  553. //
  554. // POSIX macros:
  555. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  556. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  557. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  558. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  559. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  560. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  561. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  562. //
  563. // X/Open macros:
  564. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  565. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  566. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  567. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  568. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  569. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  570. //
  571. // NetBSD macros:
  572. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  573. //
  574. // If more than one of these "major" feature-test macros is defined,
  575. // then the set of facilities provided (and namespace used) is the
  576. // union of that specified by the relevant standards, and in case of
  577. // conflict, the earlier standard in the above list has precedence (so
  578. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  579. // of rename() that's used is the POSIX one). If none of the "major"
  580. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  581. //
  582. // There are also "minor" feature-test macros, which enable extra
  583. // functionality in addition to some base standard. They should be
  584. // defined along with one of the "major" macros. The "minor" macros
  585. // are:
  586. //
  587. // _REENTRANT
  588. // _ISOC99_SOURCE
  589. // _ISOC11_SOURCE
  590. // _LARGEFILE_SOURCE Large File Support
  591. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  592. // Definitions for byte order, according to byte significance from low
  593. // address to high.
  594. // C-family endian-ness definitions
  595. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  596. // -
  597. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  598. // All rights reserved.
  599. //
  600. // This code is derived from software contributed to The NetBSD Foundation
  601. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  602. //
  603. // Redistribution and use in source and binary forms, with or without
  604. // modification, are permitted provided that the following conditions
  605. // are met:
  606. // 1. Redistributions of source code must retain the above copyright
  607. // notice, this list of conditions and the following disclaimer.
  608. // 2. Redistributions in binary form must reproduce the above copyright
  609. // notice, this list of conditions and the following disclaimer in the
  610. // documentation and/or other materials provided with the distribution.
  611. //
  612. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  613. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  614. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  615. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  616. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  617. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  618. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  619. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  620. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  621. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  622. // POSSIBILITY OF SUCH DAMAGE.
  623. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  624. // * Copyright (c) 1991, 1993
  625. // The Regents of the University of California. All rights reserved.
  626. //
  627. // This code is derived from software contributed to Berkeley by
  628. // Berkeley Software Design, Inc.
  629. //
  630. // Redistribution and use in source and binary forms, with or without
  631. // modification, are permitted provided that the following conditions
  632. // are met:
  633. // 1. Redistributions of source code must retain the above copyright
  634. // notice, this list of conditions and the following disclaimer.
  635. // 2. Redistributions in binary form must reproduce the above copyright
  636. // notice, this list of conditions and the following disclaimer in the
  637. // documentation and/or other materials provided with the distribution.
  638. // 3. Neither the name of the University nor the names of its contributors
  639. // may be used to endorse or promote products derived from this software
  640. // without specific prior written permission.
  641. //
  642. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  643. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  644. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  645. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  646. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  647. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  648. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  649. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  650. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  651. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  652. // SUCH DAMAGE.
  653. //
  654. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  655. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  656. // -
  657. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  658. // The Regents of the University of California. All rights reserved.
  659. // (c) UNIX System Laboratories, Inc.
  660. // All or some portions of this file are derived from material licensed
  661. // to the University of California by American Telephone and Telegraph
  662. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  663. // the permission of UNIX System Laboratories, Inc.
  664. //
  665. // Redistribution and use in source and binary forms, with or without
  666. // modification, are permitted provided that the following conditions
  667. // are met:
  668. // 1. Redistributions of source code must retain the above copyright
  669. // notice, this list of conditions and the following disclaimer.
  670. // 2. Redistributions in binary form must reproduce the above copyright
  671. // notice, this list of conditions and the following disclaimer in the
  672. // documentation and/or other materials provided with the distribution.
  673. // 3. Neither the name of the University nor the names of its contributors
  674. // may be used to endorse or promote products derived from this software
  675. // without specific prior written permission.
  676. //
  677. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  678. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  679. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  680. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  681. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  682. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  683. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  684. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  685. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  686. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  687. // SUCH DAMAGE.
  688. //
  689. // @(#)types.h 8.4 (Berkeley) 1/21/94
  690. type In_addr_t = X__in_addr_t /* endian.h:58:21 */
  691. type In_port_t = X__in_port_t /* endian.h:63:21 */
  692. // $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
  693. // Written by Manuel Bouyer. Public domain
  694. // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  695. // -
  696. // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  697. // All rights reserved.
  698. //
  699. // This code is derived from software contributed to The NetBSD Foundation
  700. // by Klaus Klein.
  701. //
  702. // Redistribution and use in source and binary forms, with or without
  703. // modification, are permitted provided that the following conditions
  704. // are met:
  705. // 1. Redistributions of source code must retain the above copyright
  706. // notice, this list of conditions and the following disclaimer.
  707. // 2. Redistributions in binary form must reproduce the above copyright
  708. // notice, this list of conditions and the following disclaimer in the
  709. // documentation and/or other materials provided with the distribution.
  710. //
  711. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  712. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  713. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  714. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  715. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  716. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  717. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  718. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  719. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  720. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  721. // POSSIBILITY OF SUCH DAMAGE.
  722. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  723. // * Copyright (c) 1991, 1993
  724. // The Regents of the University of California. All rights reserved.
  725. //
  726. // This code is derived from software contributed to Berkeley by
  727. // Berkeley Software Design, Inc.
  728. //
  729. // Redistribution and use in source and binary forms, with or without
  730. // modification, are permitted provided that the following conditions
  731. // are met:
  732. // 1. Redistributions of source code must retain the above copyright
  733. // notice, this list of conditions and the following disclaimer.
  734. // 2. Redistributions in binary form must reproduce the above copyright
  735. // notice, this list of conditions and the following disclaimer in the
  736. // documentation and/or other materials provided with the distribution.
  737. // 3. Neither the name of the University nor the names of its contributors
  738. // may be used to endorse or promote products derived from this software
  739. // without specific prior written permission.
  740. //
  741. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  742. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  743. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  744. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  745. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  746. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  747. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  748. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  749. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  750. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  751. // SUCH DAMAGE.
  752. //
  753. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  754. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  755. // -
  756. // Copyright (c) 1990 The Regents of the University of California.
  757. // 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. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  784. type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  785. type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  786. // $NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
  787. // -
  788. // Copyright (c) 2001 The NetBSD Foundation, Inc.
  789. // All rights reserved.
  790. //
  791. // This code is derived from software contributed to The NetBSD Foundation
  792. // by Klaus Klein.
  793. //
  794. // Redistribution and use in source and binary forms, with or without
  795. // modification, are permitted provided that the following conditions
  796. // are met:
  797. // 1. Redistributions of source code must retain the above copyright
  798. // notice, this list of conditions and the following disclaimer.
  799. // 2. Redistributions in binary form must reproduce the above copyright
  800. // notice, this list of conditions and the following disclaimer in the
  801. // documentation and/or other materials provided with the distribution.
  802. //
  803. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  804. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  805. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  806. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  807. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  808. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  809. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  810. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  811. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  812. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  813. // POSSIBILITY OF SUCH DAMAGE.
  814. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  815. // -
  816. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  817. // All rights reserved.
  818. //
  819. // This code is derived from software contributed to The NetBSD Foundation
  820. // by Joerg Sonnenberger.
  821. //
  822. // Redistribution and use in source and binary forms, with or without
  823. // modification, are permitted provided that the following conditions
  824. // are met:
  825. // 1. Redistributions of source code must retain the above copyright
  826. // notice, this list of conditions and the following disclaimer.
  827. // 2. Redistributions in binary form must reproduce the above copyright
  828. // notice, this list of conditions and the following disclaimer in the
  829. // documentation and/or other materials provided with the distribution.
  830. //
  831. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  832. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  833. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  834. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  835. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  836. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  837. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  838. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  839. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  840. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  841. // POSSIBILITY OF SUCH DAMAGE.
  842. // 7.18.1 Integer types
  843. // 7.18.1.2 Minimum-width integer types
  844. type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
  845. type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
  846. type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
  847. type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  848. type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
  849. type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  850. type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
  851. type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  852. // 7.18.1.3 Fastest minimum-width integer types
  853. type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
  854. type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
  855. type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
  856. type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  857. type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
  858. type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  859. type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
  860. type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  861. // 7.18.1.5 Greatest-width integer types
  862. type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
  863. type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  864. type U_char = uint8 /* types.h:101:23 */
  865. type U_short = uint16 /* types.h:102:24 */
  866. type U_int = uint32 /* types.h:103:22 */
  867. type U_long = uint64 /* types.h:104:23 */
  868. type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
  869. type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  870. type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
  871. type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
  872. type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  873. type Quad_t = Int64_t /* types.h:113:18 */
  874. type Qaddr_t = uintptr /* types.h:114:16 */
  875. // The types longlong_t and u_longlong_t exist for use with the
  876. // Sun-derived XDR routines involving these types, and their usage
  877. // in other contexts is discouraged. Further note that these types
  878. // may not be equivalent to "long long" and "unsigned long long",
  879. // they are only guaranteed to be signed and unsigned 64-bit types
  880. // respectively. Portable programs that need 64-bit types should use
  881. // the C99 types int64_t and uint64_t instead.
  882. type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
  883. type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  884. type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
  885. type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  886. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  887. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  888. // We don't and shouldn't use caddr_t in the kernel anymore
  889. type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  890. type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  891. type Dev_t = Uint64_t /* types.h:157:18 */ // device number
  892. type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  893. type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  894. type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
  895. type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  896. type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
  897. type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  898. type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  899. type Off_t = X__off_t /* types.h:177:18 */ // file offset
  900. type Pid_t = X__pid_t /* types.h:182:18 */ // process id
  901. type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  902. type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  903. type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  904. type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  905. type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  906. type Mqd_t = int32 /* types.h:195:14 */
  907. type Cpuid_t = uint64 /* types.h:197:23 */
  908. type Psetid_t = int32 /* types.h:199:14 */
  909. type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  910. // Major, minor numbers, dev_t's.
  911. type X__devmajor_t = Int32_t /* types.h:255:17 */
  912. type X__devminor_t = Int32_t /* types.h:255:31 */
  913. type Clock_t = uint32 /* types.h:268:24 */
  914. type Ssize_t = int64 /* types.h:284:24 */
  915. type Time_t = X__int64_t /* types.h:289:23 */
  916. type Clockid_t = int32 /* types.h:294:26 */
  917. type Timer_t = int32 /* types.h:299:24 */
  918. type Suseconds_t = int32 /* types.h:304:27 */
  919. type Useconds_t = uint32 /* types.h:309:26 */
  920. // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  921. // -
  922. // Copyright (c) 1992, 1993
  923. // The Regents of the University of California. All rights reserved.
  924. //
  925. // Redistribution and use in source and binary forms, with or without
  926. // modification, are permitted provided that the following conditions
  927. // are met:
  928. // 1. Redistributions of source code must retain the above copyright
  929. // notice, this list of conditions and the following disclaimer.
  930. // 2. Redistributions in binary form must reproduce the above copyright
  931. // notice, this list of conditions and the following disclaimer in the
  932. // documentation and/or other materials provided with the distribution.
  933. // 3. Neither the name of the University nor the names of its contributors
  934. // may be used to endorse or promote products derived from this software
  935. // without specific prior written permission.
  936. //
  937. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  938. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  939. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  940. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  941. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  942. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  943. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  944. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  945. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  946. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  947. // SUCH DAMAGE.
  948. //
  949. // from: @(#)types.h 8.4 (Berkeley) 1/21/94
  950. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  951. // * Copyright (c) 1991, 1993
  952. // The Regents of the University of California. All rights reserved.
  953. //
  954. // This code is derived from software contributed to Berkeley by
  955. // Berkeley Software Design, Inc.
  956. //
  957. // Redistribution and use in source and binary forms, with or without
  958. // modification, are permitted provided that the following conditions
  959. // are met:
  960. // 1. Redistributions of source code must retain the above copyright
  961. // notice, this list of conditions and the following disclaimer.
  962. // 2. Redistributions in binary form must reproduce the above copyright
  963. // notice, this list of conditions and the following disclaimer in the
  964. // documentation and/or other materials provided with the distribution.
  965. // 3. Neither the name of the University nor the names of its contributors
  966. // may be used to endorse or promote products derived from this software
  967. // without specific prior written permission.
  968. //
  969. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  970. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  971. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  972. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  973. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  974. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  975. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  976. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  977. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  978. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  979. // SUCH DAMAGE.
  980. //
  981. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  982. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  983. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  984. // Public domain.
  985. //
  986. // NOTE: Do not protect this header against multiple inclusion. Doing
  987. // so can have subtle side-effects due to header file inclusion order
  988. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  989. // protect each CPP macro that we want to supply.
  990. // Feature-test macros are defined by several standards, and allow an
  991. // application to specify what symbols they want the system headers to
  992. // expose, and hence what standard they want them to conform to.
  993. // There are two classes of feature-test macros. The first class
  994. // specify complete standards, and if one of these is defined, header
  995. // files will try to conform to the relevant standard. They are:
  996. //
  997. // ANSI macros:
  998. // _ANSI_SOURCE ANSI C89
  999. //
  1000. // POSIX macros:
  1001. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1002. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1003. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1004. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1005. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1006. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1007. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1008. //
  1009. // X/Open macros:
  1010. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1011. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1012. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1013. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1014. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1015. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1016. //
  1017. // NetBSD macros:
  1018. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1019. //
  1020. // If more than one of these "major" feature-test macros is defined,
  1021. // then the set of facilities provided (and namespace used) is the
  1022. // union of that specified by the relevant standards, and in case of
  1023. // conflict, the earlier standard in the above list has precedence (so
  1024. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1025. // of rename() that's used is the POSIX one). If none of the "major"
  1026. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1027. //
  1028. // There are also "minor" feature-test macros, which enable extra
  1029. // functionality in addition to some base standard. They should be
  1030. // defined along with one of the "major" macros. The "minor" macros
  1031. // are:
  1032. //
  1033. // _REENTRANT
  1034. // _ISOC99_SOURCE
  1035. // _ISOC11_SOURCE
  1036. // _LARGEFILE_SOURCE Large File Support
  1037. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1038. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1039. // -
  1040. // Copyright (c) 1990 The Regents of the University of California.
  1041. // All rights reserved.
  1042. //
  1043. // Redistribution and use in source and binary forms, with or without
  1044. // modification, are permitted provided that the following conditions
  1045. // are met:
  1046. // 1. Redistributions of source code must retain the above copyright
  1047. // notice, this list of conditions and the following disclaimer.
  1048. // 2. Redistributions in binary form must reproduce the above copyright
  1049. // notice, this list of conditions and the following disclaimer in the
  1050. // documentation and/or other materials provided with the distribution.
  1051. // 3. Neither the name of the University nor the names of its contributors
  1052. // may be used to endorse or promote products derived from this software
  1053. // without specific prior written permission.
  1054. //
  1055. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1056. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1057. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1058. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1059. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1060. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1061. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1062. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1063. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1064. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1065. // SUCH DAMAGE.
  1066. //
  1067. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  1068. // Implementation dependent defines, hidden from user space.
  1069. // POSIX does not specify them.
  1070. type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1071. // 32 = 2 ^ 5
  1072. // Select uses bit fields of file descriptors. These macros manipulate
  1073. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1074. type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1075. // 32 = 2 ^ 5
  1076. // Select uses bit fields of file descriptors. These macros manipulate
  1077. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1078. type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1079. // Expose our internals if we are not required to hide them.
  1080. type Kauth_cred_t = uintptr /* types.h:318:27 */
  1081. type Pri_t = int32 /* types.h:320:13 */
  1082. // $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1083. // -
  1084. // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1085. // All rights reserved.
  1086. //
  1087. // This code is derived from software contributed to The NetBSD Foundation
  1088. // by Nathan J. Williams.
  1089. //
  1090. // Redistribution and use in source and binary forms, with or without
  1091. // modification, are permitted provided that the following conditions
  1092. // are met:
  1093. // 1. Redistributions of source code must retain the above copyright
  1094. // notice, this list of conditions and the following disclaimer.
  1095. // 2. Redistributions in binary form must reproduce the above copyright
  1096. // notice, this list of conditions and the following disclaimer in the
  1097. // documentation and/or other materials provided with the distribution.
  1098. //
  1099. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1100. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1101. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1102. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1103. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1104. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1105. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1106. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1107. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1108. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1109. // POSSIBILITY OF SUCH DAMAGE.
  1110. // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1111. // POSIX spinlock object.
  1112. //
  1113. // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1114. // This does not work for volatile types. Since C++ does not touch the guts
  1115. // of those types, we do not include volatile in the C++ definitions.
  1116. type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1117. type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */
  1118. // Copied from PTQ_HEAD in pthread_queue.h
  1119. type Pthread_queue_struct_t = struct {
  1120. Fptqh_first uintptr
  1121. Fptqh_last uintptr
  1122. } /* pthread_types.h:61:1 */
  1123. type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1124. type X__pthread_attr_st = struct {
  1125. Fpta_magic uint32
  1126. Fpta_flags int32
  1127. Fpta_private uintptr
  1128. } /* pthread_types.h:65:1 */
  1129. type X__pthread_mutex_st = struct {
  1130. Fptm_magic uint32
  1131. Fptm_errorcheck X__pthread_spin_t
  1132. Fptm_pad1 [3]Uint8_t
  1133. F__8 struct{ Fptm_ceiling uint8 }
  1134. Fptm_pad2 [3]Uint8_t
  1135. F__ccgo_pad1 [4]byte
  1136. Fptm_owner Pthread_t
  1137. Fptm_waiters uintptr
  1138. Fptm_recursed uint32
  1139. F__ccgo_pad2 [4]byte
  1140. Fptm_spare2 uintptr
  1141. } /* pthread_types.h:66:1 */
  1142. type X__pthread_mutexattr_st = struct {
  1143. Fptma_magic uint32
  1144. F__ccgo_pad1 [4]byte
  1145. Fptma_private uintptr
  1146. } /* pthread_types.h:67:1 */
  1147. type X__pthread_cond_st = struct {
  1148. Fptc_magic uint32
  1149. Fptc_lock X__pthread_spin_t
  1150. F__ccgo_pad1 [3]byte
  1151. Fptc_waiters Pthread_queue_t
  1152. Fptc_mutex uintptr
  1153. Fptc_private uintptr
  1154. } /* pthread_types.h:68:1 */
  1155. type X__pthread_condattr_st = struct {
  1156. Fptca_magic uint32
  1157. F__ccgo_pad1 [4]byte
  1158. Fptca_private uintptr
  1159. } /* pthread_types.h:69:1 */
  1160. type X__pthread_rwlock_st = struct {
  1161. Fptr_magic uint32
  1162. Fptr_interlock X__pthread_spin_t
  1163. F__ccgo_pad1 [3]byte
  1164. Fptr_rblocked Pthread_queue_t
  1165. Fptr_wblocked Pthread_queue_t
  1166. Fptr_nreaders uint32
  1167. F__ccgo_pad2 [4]byte
  1168. Fptr_owner Pthread_t
  1169. Fptr_private uintptr
  1170. } /* pthread_types.h:71:1 */
  1171. type X__pthread_rwlockattr_st = struct {
  1172. Fptra_magic uint32
  1173. F__ccgo_pad1 [4]byte
  1174. Fptra_private uintptr
  1175. } /* pthread_types.h:72:1 */
  1176. type X__pthread_barrier_st = struct {
  1177. Fptb_magic uint32
  1178. Fptb_lock Pthread_spin_t
  1179. F__ccgo_pad1 [3]byte
  1180. Fptb_waiters Pthread_queue_t
  1181. Fptb_initcount uint32
  1182. Fptb_curcount uint32
  1183. Fptb_generation uint32
  1184. F__ccgo_pad2 [4]byte
  1185. Fptb_private uintptr
  1186. } /* pthread_types.h:73:1 */
  1187. type X__pthread_barrierattr_st = struct {
  1188. Fptba_magic uint32
  1189. F__ccgo_pad1 [4]byte
  1190. Fptba_private uintptr
  1191. } /* pthread_types.h:74:1 */
  1192. type Pthread_t = uintptr /* pthread_types.h:76:29 */
  1193. type Pthread_attr_t = X__pthread_attr_st /* pthread_types.h:77:34 */
  1194. type Pthread_mutex_t = X__pthread_mutex_st /* pthread_types.h:78:35 */
  1195. type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1196. type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
  1197. type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
  1198. type X__pthread_once_st = struct {
  1199. Fpto_mutex Pthread_mutex_t
  1200. Fpto_done int32
  1201. F__ccgo_pad1 [4]byte
  1202. } /* pthread_types.h:82:9 */
  1203. type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1204. type X__pthread_spinlock_st = struct {
  1205. Fpts_magic uint32
  1206. Fpts_spin X__pthread_spin_t
  1207. F__ccgo_pad1 [3]byte
  1208. Fpts_flags int32
  1209. } /* pthread_types.h:83:9 */
  1210. type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
  1211. type Pthread_rwlock_t = X__pthread_rwlock_st /* pthread_types.h:84:36 */
  1212. type Pthread_rwlockattr_t = X__pthread_rwlockattr_st /* pthread_types.h:85:40 */
  1213. type Pthread_barrier_t = X__pthread_barrier_st /* pthread_types.h:86:37 */
  1214. type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1215. type Pthread_key_t = int32 /* pthread_types.h:88:13 */
  1216. // $NetBSD: uuid.h,v 1.6 2014/10/04 11:15:44 riastradh Exp $
  1217. // Copyright (c) 2002 Marcel Moolenaar
  1218. // All rights reserved.
  1219. //
  1220. // Redistribution and use in source and binary forms, with or without
  1221. // modification, are permitted provided that the following conditions
  1222. // are met:
  1223. //
  1224. // 1. Redistributions of source code must retain the above copyright
  1225. // notice, this list of conditions and the following disclaimer.
  1226. // 2. Redistributions in binary form must reproduce the above copyright
  1227. // notice, this list of conditions and the following disclaimer in the
  1228. // documentation and/or other materials provided with the distribution.
  1229. //
  1230. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1231. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1232. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1233. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1234. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1235. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1236. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1237. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1238. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1239. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1240. //
  1241. // $FreeBSD: /repoman/r/ncvs/src/sys/sys/uuid.h,v 1.3 2003/05/31 16:47:07 phk Exp $
  1242. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1243. // * Copyright (c) 1991, 1993
  1244. // The Regents of the University of California. All rights reserved.
  1245. //
  1246. // This code is derived from software contributed to Berkeley by
  1247. // Berkeley Software Design, Inc.
  1248. //
  1249. // Redistribution and use in source and binary forms, with or without
  1250. // modification, are permitted provided that the following conditions
  1251. // are met:
  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. // 3. Neither the name of the University nor the names of its contributors
  1258. // may be used to endorse or promote products derived from this software
  1259. // without specific prior written permission.
  1260. //
  1261. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1262. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1263. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1264. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1265. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1266. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1267. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1268. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1269. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1270. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1271. // SUCH DAMAGE.
  1272. //
  1273. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1274. // Length of a node address (an IEEE 802 address).
  1275. // Length of a printed UUID.
  1276. // See also:
  1277. //
  1278. // http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt
  1279. // http://www.opengroup.org/onlinepubs/009629399/apdxa.htm
  1280. //
  1281. // A DCE 1.1 compatible source representation of UUIDs.
  1282. type Uuid = struct {
  1283. Ftime_low Uint32_t
  1284. Ftime_mid Uint16_t
  1285. Ftime_hi_and_version Uint16_t
  1286. Fclock_seq_hi_and_reserved Uint8_t
  1287. Fclock_seq_low Uint8_t
  1288. Fnode [6]Uint8_t
  1289. } /* uuid.h:49:1 */
  1290. type Uuid_t = Uuid /* uuid.h:73:21 */
  1291. var _ int8 /* gen.c:2:13: */