uuid_netbsd_arm.go 68 KB

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