pwd_netbsd_arm.go 76 KB

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