time_netbsd_arm.go 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313
  1. // Code generated by 'ccgo time/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 time/time_netbsd_arm.go -pkgname time', DO NOT EDIT.
  2. package time
  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. CLOCKS_PER_SEC = 100 // time.h:73:1:
  17. CLOCK_MONOTONIC = 3 // time.h:297:1:
  18. CLOCK_PROCESS_CPUTIME_ID = 0x40000000 // time.h:299:1:
  19. CLOCK_PROF = 2 // time.h:296:1:
  20. CLOCK_REALTIME = 0 // time.h:294:1:
  21. CLOCK_THREAD_CPUTIME_ID = 0x20000000 // time.h:298:1:
  22. CLOCK_VIRTUAL = 1 // time.h:295:1:
  23. FD_SETSIZE = 256 // fd_set.h:59:1:
  24. INT16_MAX = 32767 // common_int_limits.h:53:1:
  25. INT16_MIN = -32768 // common_int_limits.h:47:1:
  26. INT32_MAX = 2147483647 // common_int_limits.h:54:1:
  27. INT32_MIN = -2147483648 // common_int_limits.h:48:1:
  28. INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
  29. INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
  30. INT8_MAX = 127 // common_int_limits.h:52:1:
  31. INT8_MIN = -128 // common_int_limits.h:46:1:
  32. INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
  33. INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
  34. INTPTR_MAX = 2147483647 // common_int_limits.h:105:1:
  35. INTPTR_MIN = -2147483648 // common_int_limits.h:104:1:
  36. INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
  37. INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
  38. INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
  39. INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
  40. INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
  41. INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
  42. INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
  43. INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
  44. INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
  45. INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
  46. INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
  47. INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
  48. INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
  49. INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
  50. INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
  51. INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
  52. ITIMER_MONOTONIC = 3 // time.h:278:1:
  53. ITIMER_PROF = 2 // time.h:277:1:
  54. ITIMER_REAL = 0 // time.h:275:1:
  55. ITIMER_VIRTUAL = 1 // time.h:276:1:
  56. LITTLE_ENDIAN = 1234 // endian.h:100:1:
  57. NBBY = 8 // types.h:316:1:
  58. NFDBITS = 32 // fd_set.h:93:1:
  59. NODEVMAJOR = -1 // types.h:258:1:
  60. PDP_ENDIAN = 3412 // endian.h:102:1:
  61. PTRDIFF_MAX = 2147483647 // common_int_limits.h:121:1:
  62. PTRDIFF_MIN = -2147483648 // common_int_limits.h:120:1:
  63. SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
  64. SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
  65. SIZE_MAX = 4294967295 // common_int_limits.h:128:1:
  66. TIMER_ABSTIME = 0x1 // time.h:304:1:
  67. TIMER_RELTIME = 0x0 // time.h:302:1:
  68. TIME_UTC = 1 // time.h:238:1:
  69. UINT16_MAX = 65535 // common_int_limits.h:59:1:
  70. UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
  71. UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
  72. UINT8_MAX = 255 // common_int_limits.h:58:1:
  73. UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
  74. UINTPTR_MAX = 4294967295 // common_int_limits.h:106:1:
  75. UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
  76. UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
  77. UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
  78. UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
  79. UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
  80. UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
  81. UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
  82. UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
  83. WCHAR_MAX = 2147483647 // wchar_limits.h:50:1:
  84. WCHAR_MIN = -2147483648 // wchar_limits.h:42:1:
  85. WINT_MAX = 2147483647 // wchar_limits.h:68:1:
  86. WINT_MIN = -2147483648 // wchar_limits.h:60:1:
  87. X_ARM_ARCH_4T = 0 // cdefs.h:44:1:
  88. X_ARM_ARCH_5 = 0 // cdefs.h:40:1:
  89. X_ARM_ARCH_5T = 0 // cdefs.h:36:1:
  90. X_ARM_ARCH_6 = 0 // cdefs.h:31:1:
  91. X_ARM_ARCH_7 = 0 // cdefs.h:20:1:
  92. X_ARM_ARCH_DWORD_OK = 0 // cdefs.h:51:1:
  93. X_ARM_ARCH_T2 = 0 // cdefs.h:24:1:
  94. X_ARM_BSWAP_H_ = 0 // bswap.h:4:1:
  95. X_ARM_BYTE_SWAP_H_ = 0 // byte_swap.h:33:1:
  96. X_ARM_CDEFS_H_ = 0 // cdefs.h:4:1:
  97. X_ARM_INT_CONST_H_ = 0 // int_const.h:33:1:
  98. X_ARM_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
  99. X_ARM_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
  100. X_ARM_INT_TYPES_H_ = 0 // int_types.h:33:1:
  101. X_ARM_TYPES_H_ = 0 // types.h:35:1:
  102. X_ARM_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
  103. X_BIG_ENDIAN = 4321 // endian.h:44:1:
  104. X_BSD_INT16_T_ = 0 // types.h:65:1:
  105. X_BSD_INT32_T_ = 0 // types.h:75:1:
  106. X_BSD_INT64_T_ = 0 // types.h:85:1:
  107. X_BSD_INT8_T_ = 0 // types.h:55:1:
  108. X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
  109. X_BSD_UINT16_T_ = 0 // types.h:70:1:
  110. X_BSD_UINT32_T_ = 0 // types.h:80:1:
  111. X_BSD_UINT64_T_ = 0 // types.h:90:1:
  112. X_BSD_UINT8_T_ = 0 // types.h:60:1:
  113. X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
  114. X_BYTE_ORDER = 1234 // endian_machdep.h:7:1:
  115. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  116. X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
  117. X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
  118. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  119. X_PDP_ENDIAN = 3412 // endian.h:45:1:
  120. X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
  121. X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
  122. X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
  123. X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
  124. X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
  125. X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
  126. X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
  127. X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
  128. X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
  129. X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
  130. X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
  131. X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
  132. X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
  133. X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
  134. X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
  135. X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
  136. X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
  137. X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
  138. X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
  139. X_QUAD_HIGHWORD = 1 // endian.h:84:1:
  140. X_QUAD_LOWWORD = 0 // endian.h:85:1:
  141. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  142. X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
  143. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  144. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  145. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  146. X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
  147. X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
  148. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  149. X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
  150. X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
  151. X_SYS_IDTYPE_H_ = 0 // idtype.h:32:1:
  152. X_SYS_NULL_H_ = 0 // null.h:9:1:
  153. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  154. X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
  155. X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
  156. X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1:
  157. X_SYS_TIME_H_ = 0 // time.h:35:1:
  158. X_SYS_TYPES_H_ = 0 // types.h:40:1:
  159. X_TIME_H_ = 0 // time.h:40:1:
  160. )
  161. // $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
  162. // -
  163. // Copyright (c) 2016 The NetBSD Foundation, Inc.
  164. // All rights reserved.
  165. //
  166. // This code is derived from software contributed to The NetBSD Foundation
  167. // by Christos Zoulas.
  168. //
  169. // Redistribution and use in source and binary forms, with or without
  170. // modification, are permitted provided that the following conditions
  171. // are met:
  172. // 1. Redistributions of source code must retain the above copyright
  173. // notice, this list of conditions and the following disclaimer.
  174. // 2. Redistributions in binary form must reproduce the above copyright
  175. // notice, this list of conditions and the following disclaimer in the
  176. // documentation and/or other materials provided with the distribution.
  177. //
  178. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  179. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  180. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  181. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  182. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  183. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  184. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  185. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  186. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  187. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  188. // POSSIBILITY OF SUCH DAMAGE.
  189. // Using the solaris constants, some of them are not applicable to us
  190. // Do not re-order the list, or add elements in the middle as this will
  191. // break the ABI of the system calls using this. We set a high private
  192. // maximum so that new values can be added in the future without
  193. // changing the width of the type.
  194. const ( /* idtype.h:41:1: */
  195. P_MYID = -1 // Me/my process group
  196. P_ALL = 0 // All processes.
  197. P_PID = 1 // A process identifier.
  198. P_LWPID = 2 // An LWP identifier.
  199. P_PPID = 3 // A parent process identifier.
  200. P_PGID = 4 // A process group identifier.
  201. P_SID = 5 // A session identifier.
  202. P_CID = 6 // A scheduling class identifier.
  203. P_UID = 7 // A user identifier.
  204. P_GID = 8 // A group identifier.
  205. P_TASKID = 9 // A task identifier.
  206. P_PROJID = 10 // A project identifier.
  207. P_POOLID = 11 // A pool identifier.
  208. P_ZONEID = 12 // A zone identifier.
  209. P_CTID = 13 // A (process) contract identifier.
  210. P_CPUID = 14 // CPU identifier.
  211. P_PSETID = 15 // Processor set identifier.
  212. X_P_MAXIDTYPE = 2147483647
  213. )
  214. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  215. type Size_t = uint32 /* <builtin>:9:23 */
  216. type Wchar_t = int32 /* <builtin>:15:24 */
  217. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  218. type X__float128 = float64 /* <builtin>:47:21 */
  219. // return true if value 'a' fits in type 't'
  220. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  221. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  222. // Public domain.
  223. //
  224. // NOTE: Do not protect this header against multiple inclusion. Doing
  225. // so can have subtle side-effects due to header file inclusion order
  226. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  227. // protect each CPP macro that we want to supply.
  228. // Feature-test macros are defined by several standards, and allow an
  229. // application to specify what symbols they want the system headers to
  230. // expose, and hence what standard they want them to conform to.
  231. // There are two classes of feature-test macros. The first class
  232. // specify complete standards, and if one of these is defined, header
  233. // files will try to conform to the relevant standard. They are:
  234. //
  235. // ANSI macros:
  236. // _ANSI_SOURCE ANSI C89
  237. //
  238. // POSIX macros:
  239. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  240. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  241. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  242. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  243. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  244. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  245. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  246. //
  247. // X/Open macros:
  248. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  249. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  250. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  251. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  252. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  253. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  254. //
  255. // NetBSD macros:
  256. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  257. //
  258. // If more than one of these "major" feature-test macros is defined,
  259. // then the set of facilities provided (and namespace used) is the
  260. // union of that specified by the relevant standards, and in case of
  261. // conflict, the earlier standard in the above list has precedence (so
  262. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  263. // of rename() that's used is the POSIX one). If none of the "major"
  264. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  265. //
  266. // There are also "minor" feature-test macros, which enable extra
  267. // functionality in addition to some base standard. They should be
  268. // defined along with one of the "major" macros. The "minor" macros
  269. // are:
  270. //
  271. // _REENTRANT
  272. // _ISOC99_SOURCE
  273. // _ISOC11_SOURCE
  274. // _LARGEFILE_SOURCE Large File Support
  275. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  276. // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  277. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  278. // -
  279. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  280. // All rights reserved.
  281. //
  282. // This code is derived from software contributed to The NetBSD Foundation
  283. // by Matt Thomas of 3am Software Foundry.
  284. //
  285. // Redistribution and use in source and binary forms, with or without
  286. // modification, are permitted provided that the following conditions
  287. // are met:
  288. // 1. Redistributions of source code must retain the above copyright
  289. // notice, this list of conditions and the following disclaimer.
  290. // 2. Redistributions in binary form must reproduce the above copyright
  291. // notice, this list of conditions and the following disclaimer in the
  292. // documentation and/or other materials provided with the distribution.
  293. //
  294. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  295. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  296. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  297. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  298. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  299. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  300. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  301. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  302. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  303. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  304. // POSSIBILITY OF SUCH DAMAGE.
  305. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  306. // * Copyright (c) 1991, 1993
  307. // The Regents of the University of California. All rights reserved.
  308. //
  309. // This code is derived from software contributed to Berkeley by
  310. // Berkeley Software Design, Inc.
  311. //
  312. // Redistribution and use in source and binary forms, with or without
  313. // modification, are permitted provided that the following conditions
  314. // are met:
  315. // 1. Redistributions of source code must retain the above copyright
  316. // notice, this list of conditions and the following disclaimer.
  317. // 2. Redistributions in binary form must reproduce the above copyright
  318. // notice, this list of conditions and the following disclaimer in the
  319. // documentation and/or other materials provided with the distribution.
  320. // 3. Neither the name of the University nor the names of its contributors
  321. // may be used to endorse or promote products derived from this software
  322. // without specific prior written permission.
  323. //
  324. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  325. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  326. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  327. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  328. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  329. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  330. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  331. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  332. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  333. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  334. // SUCH DAMAGE.
  335. //
  336. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  337. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  338. // -
  339. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  340. // All rights reserved.
  341. //
  342. // This code is derived from software contributed to The NetBSD Foundation
  343. // by Matt Thomas of 3am Software Foundry.
  344. //
  345. // Redistribution and use in source and binary forms, with or without
  346. // modification, are permitted provided that the following conditions
  347. // are met:
  348. // 1. Redistributions of source code must retain the above copyright
  349. // notice, this list of conditions and the following disclaimer.
  350. // 2. Redistributions in binary form must reproduce the above copyright
  351. // notice, this list of conditions and the following disclaimer in the
  352. // documentation and/or other materials provided with the distribution.
  353. //
  354. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  355. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  356. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  357. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  358. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  359. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  360. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  361. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  362. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  363. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  364. // POSSIBILITY OF SUCH DAMAGE.
  365. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  366. // -
  367. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  368. // All rights reserved.
  369. //
  370. // This code is derived from software contributed to The NetBSD Foundation
  371. // by Joerg Sonnenberger.
  372. //
  373. // Redistribution and use in source and binary forms, with or without
  374. // modification, are permitted provided that the following conditions
  375. // are met:
  376. // 1. Redistributions of source code must retain the above copyright
  377. // notice, this list of conditions and the following disclaimer.
  378. // 2. Redistributions in binary form must reproduce the above copyright
  379. // notice, this list of conditions and the following disclaimer in the
  380. // documentation and/or other materials provided with the distribution.
  381. //
  382. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  383. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  384. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  385. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  386. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  387. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  388. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  389. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  390. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  391. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  392. // POSSIBILITY OF SUCH DAMAGE.
  393. // 7.18.1 Integer types
  394. // 7.18.1.1 Exact-width integer types
  395. type X__int8_t = int8 /* common_int_types.h:45:27 */
  396. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  397. type X__int16_t = int16 /* common_int_types.h:47:27 */
  398. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  399. type X__int32_t = int32 /* common_int_types.h:49:27 */
  400. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  401. type X__int64_t = int64 /* common_int_types.h:51:27 */
  402. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  403. // 7.18.1.4 Integer types capable of holding object pointers
  404. type X__intptr_t = int32 /* common_int_types.h:58:27 */
  405. type X__uintptr_t = uint32 /* common_int_types.h:59:26 */
  406. // Types which are fundamental to the implementation and may appear in
  407. // more than one standard header are defined here. Standard headers
  408. // then use:
  409. // #ifdef _BSD_SIZE_T_
  410. // typedef _BSD_SIZE_T_ size_t;
  411. // #undef _BSD_SIZE_T_
  412. // #endif
  413. // $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
  414. // Written by Klaus Klein <kleink@NetBSD.org>, December 22, 1999.
  415. // Public domain.
  416. type Clock_t = uint32 /* time.h:49:23 */
  417. type Time_t = X__int64_t /* time.h:54:22 */
  418. type Clockid_t = int32 /* time.h:64:25 */
  419. type Timer_t = int32 /* time.h:69:23 */
  420. type Tm = struct {
  421. Ftm_sec int32
  422. Ftm_min int32
  423. Ftm_hour int32
  424. Ftm_mday int32
  425. Ftm_mon int32
  426. Ftm_year int32
  427. Ftm_wday int32
  428. Ftm_yday int32
  429. Ftm_isdst int32
  430. Ftm_gmtoff int32
  431. Ftm_zone uintptr
  432. } /* time.h:75:1 */
  433. // ISO/IEC 9899:201x 7.27.1/3 Components of time
  434. // $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
  435. // Copyright (c) 1982, 1986, 1993
  436. // The Regents of the University of California. All rights reserved.
  437. //
  438. // Redistribution and use in source and binary forms, with or without
  439. // modification, are permitted provided that the following conditions
  440. // are met:
  441. // 1. Redistributions of source code must retain the above copyright
  442. // notice, this list of conditions and the following disclaimer.
  443. // 2. Redistributions in binary form must reproduce the above copyright
  444. // notice, this list of conditions and the following disclaimer in the
  445. // documentation and/or other materials provided with the distribution.
  446. // 3. Neither the name of the University nor the names of its contributors
  447. // may be used to endorse or promote products derived from this software
  448. // without specific prior written permission.
  449. //
  450. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  451. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  452. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  453. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  454. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  455. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  456. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  457. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  458. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  459. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  460. // SUCH DAMAGE.
  461. //
  462. // @(#)time.h 8.5 (Berkeley) 5/4/95
  463. //
  464. // Extracted by Kamil Rytarowski from:
  465. // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
  466. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  467. // -
  468. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  469. // All rights reserved.
  470. //
  471. // This code is derived from software contributed to The NetBSD Foundation
  472. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  473. //
  474. // Redistribution and use in source and binary forms, with or without
  475. // modification, are permitted provided that the following conditions
  476. // are met:
  477. // 1. Redistributions of source code must retain the above copyright
  478. // notice, this list of conditions and the following disclaimer.
  479. // 2. Redistributions in binary form must reproduce the above copyright
  480. // notice, this list of conditions and the following disclaimer in the
  481. // documentation and/or other materials provided with the distribution.
  482. //
  483. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  484. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  485. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  486. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  487. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  488. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  489. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  490. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  491. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  492. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  493. // POSSIBILITY OF SUCH DAMAGE.
  494. // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  495. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  496. // -
  497. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  498. // All rights reserved.
  499. //
  500. // This code is derived from software contributed to The NetBSD Foundation
  501. // by Matt Thomas of 3am Software Foundry.
  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. //
  512. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  513. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  514. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  515. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  516. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  517. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  518. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  519. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  520. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  521. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  522. // POSSIBILITY OF SUCH DAMAGE.
  523. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  524. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  525. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  526. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  527. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  528. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  529. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  530. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  531. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  532. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  533. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  534. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  535. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  536. type X__wctype_t = uintptr /* ansi.h:54:31 */
  537. // mbstate_t is an opaque object to keep conversion state, during multibyte
  538. // stream conversions. The content must not be referenced by user programs.
  539. type X__mbstate_t = struct {
  540. F__mbstateL X__int64_t
  541. F__ccgo_pad1 [120]byte
  542. } /* ansi.h:63:3 */
  543. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  544. type Timespec = struct {
  545. Ftv_sec Time_t
  546. Ftv_nsec int32
  547. F__ccgo_pad1 [4]byte
  548. } /* timespec.h:47:1 */
  549. // $NetBSD: time.h,v 1.79 2017/01/17 15:28:34 maya Exp $
  550. // Copyright (c) 1982, 1986, 1993
  551. // The Regents of the University of California. All rights reserved.
  552. //
  553. // Redistribution and use in source and binary forms, with or without
  554. // modification, are permitted provided that the following conditions
  555. // are met:
  556. // 1. Redistributions of source code must retain the above copyright
  557. // notice, this list of conditions and the following disclaimer.
  558. // 2. Redistributions in binary form must reproduce the above copyright
  559. // notice, this list of conditions and the following disclaimer in the
  560. // documentation and/or other materials provided with the distribution.
  561. // 3. Neither the name of the University nor the names of its contributors
  562. // may be used to endorse or promote products derived from this software
  563. // without specific prior written permission.
  564. //
  565. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  566. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  567. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  568. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  569. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  570. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  571. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  572. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  573. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  574. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  575. // SUCH DAMAGE.
  576. //
  577. // @(#)time.h 8.5 (Berkeley) 5/4/95
  578. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  579. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  580. // Public domain.
  581. //
  582. // NOTE: Do not protect this header against multiple inclusion. Doing
  583. // so can have subtle side-effects due to header file inclusion order
  584. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  585. // protect each CPP macro that we want to supply.
  586. // Feature-test macros are defined by several standards, and allow an
  587. // application to specify what symbols they want the system headers to
  588. // expose, and hence what standard they want them to conform to.
  589. // There are two classes of feature-test macros. The first class
  590. // specify complete standards, and if one of these is defined, header
  591. // files will try to conform to the relevant standard. They are:
  592. //
  593. // ANSI macros:
  594. // _ANSI_SOURCE ANSI C89
  595. //
  596. // POSIX macros:
  597. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  598. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  599. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  600. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  601. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  602. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  603. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  604. //
  605. // X/Open macros:
  606. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  607. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  608. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  609. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  610. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  611. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  612. //
  613. // NetBSD macros:
  614. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  615. //
  616. // If more than one of these "major" feature-test macros is defined,
  617. // then the set of facilities provided (and namespace used) is the
  618. // union of that specified by the relevant standards, and in case of
  619. // conflict, the earlier standard in the above list has precedence (so
  620. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  621. // of rename() that's used is the POSIX one). If none of the "major"
  622. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  623. //
  624. // There are also "minor" feature-test macros, which enable extra
  625. // functionality in addition to some base standard. They should be
  626. // defined along with one of the "major" macros. The "minor" macros
  627. // are:
  628. //
  629. // _REENTRANT
  630. // _ISOC99_SOURCE
  631. // _ISOC11_SOURCE
  632. // _LARGEFILE_SOURCE Large File Support
  633. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  634. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  635. // -
  636. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  637. // The Regents of the University of California. All rights reserved.
  638. // (c) UNIX System Laboratories, Inc.
  639. // All or some portions of this file are derived from material licensed
  640. // to the University of California by American Telephone and Telegraph
  641. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  642. // the permission of UNIX System Laboratories, Inc.
  643. //
  644. // Redistribution and use in source and binary forms, with or without
  645. // modification, are permitted provided that the following conditions
  646. // are met:
  647. // 1. Redistributions of source code must retain the above copyright
  648. // notice, this list of conditions and the following disclaimer.
  649. // 2. Redistributions in binary form must reproduce the above copyright
  650. // notice, this list of conditions and the following disclaimer in the
  651. // documentation and/or other materials provided with the distribution.
  652. // 3. Neither the name of the University nor the names of its contributors
  653. // may be used to endorse or promote products derived from this software
  654. // without specific prior written permission.
  655. //
  656. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  657. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  658. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  659. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  660. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  661. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  662. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  663. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  664. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  665. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  666. // SUCH DAMAGE.
  667. //
  668. // @(#)types.h 8.4 (Berkeley) 1/21/94
  669. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  670. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  671. // Public domain.
  672. //
  673. // NOTE: Do not protect this header against multiple inclusion. Doing
  674. // so can have subtle side-effects due to header file inclusion order
  675. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  676. // protect each CPP macro that we want to supply.
  677. // Feature-test macros are defined by several standards, and allow an
  678. // application to specify what symbols they want the system headers to
  679. // expose, and hence what standard they want them to conform to.
  680. // There are two classes of feature-test macros. The first class
  681. // specify complete standards, and if one of these is defined, header
  682. // files will try to conform to the relevant standard. They are:
  683. //
  684. // ANSI macros:
  685. // _ANSI_SOURCE ANSI C89
  686. //
  687. // POSIX macros:
  688. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  689. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  690. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  691. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  692. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  693. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  694. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  695. //
  696. // X/Open macros:
  697. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  698. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  699. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  700. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  701. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  702. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  703. //
  704. // NetBSD macros:
  705. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  706. //
  707. // If more than one of these "major" feature-test macros is defined,
  708. // then the set of facilities provided (and namespace used) is the
  709. // union of that specified by the relevant standards, and in case of
  710. // conflict, the earlier standard in the above list has precedence (so
  711. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  712. // of rename() that's used is the POSIX one). If none of the "major"
  713. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  714. //
  715. // There are also "minor" feature-test macros, which enable extra
  716. // functionality in addition to some base standard. They should be
  717. // defined along with one of the "major" macros. The "minor" macros
  718. // are:
  719. //
  720. // _REENTRANT
  721. // _ISOC99_SOURCE
  722. // _ISOC11_SOURCE
  723. // _LARGEFILE_SOURCE Large File Support
  724. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  725. // Machine type dependent parameters.
  726. // $NetBSD: types.h,v 1.38 2019/04/06 03:06:25 thorpej Exp $
  727. // Copyright (c) 1990 The Regents of the University of California.
  728. // All rights reserved.
  729. //
  730. // Redistribution and use in source and binary forms, with or without
  731. // modification, are permitted provided that the following conditions
  732. // are met:
  733. // 1. Redistributions of source code must retain the above copyright
  734. // notice, this list of conditions and the following disclaimer.
  735. // 2. Redistributions in binary form must reproduce the above copyright
  736. // notice, this list of conditions and the following disclaimer in the
  737. // documentation and/or other materials provided with the distribution.
  738. // 3. Neither the name of the University nor the names of its contributors
  739. // may be used to endorse or promote products derived from this software
  740. // without specific prior written permission.
  741. //
  742. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  743. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  744. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  745. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  746. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  747. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  748. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  749. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  750. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  751. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  752. // SUCH DAMAGE.
  753. //
  754. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  755. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  756. // * Copyright (c) 1991, 1993
  757. // The Regents of the University of California. All rights reserved.
  758. //
  759. // This code is derived from software contributed to Berkeley by
  760. // Berkeley Software Design, Inc.
  761. //
  762. // Redistribution and use in source and binary forms, with or without
  763. // modification, are permitted provided that the following conditions
  764. // are met:
  765. // 1. Redistributions of source code must retain the above copyright
  766. // notice, this list of conditions and the following disclaimer.
  767. // 2. Redistributions in binary form must reproduce the above copyright
  768. // notice, this list of conditions and the following disclaimer in the
  769. // documentation and/or other materials provided with the distribution.
  770. // 3. Neither the name of the University nor the names of its contributors
  771. // may be used to endorse or promote products derived from this software
  772. // without specific prior written permission.
  773. //
  774. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  775. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  776. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  777. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  778. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  779. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  780. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  781. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  782. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  783. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  784. // SUCH DAMAGE.
  785. //
  786. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  787. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  788. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  789. // Public domain.
  790. //
  791. // NOTE: Do not protect this header against multiple inclusion. Doing
  792. // so can have subtle side-effects due to header file inclusion order
  793. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  794. // protect each CPP macro that we want to supply.
  795. // Feature-test macros are defined by several standards, and allow an
  796. // application to specify what symbols they want the system headers to
  797. // expose, and hence what standard they want them to conform to.
  798. // There are two classes of feature-test macros. The first class
  799. // specify complete standards, and if one of these is defined, header
  800. // files will try to conform to the relevant standard. They are:
  801. //
  802. // ANSI macros:
  803. // _ANSI_SOURCE ANSI C89
  804. //
  805. // POSIX macros:
  806. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  807. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  808. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  809. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  810. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  811. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  812. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  813. //
  814. // X/Open macros:
  815. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  816. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  817. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  818. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  819. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  820. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  821. //
  822. // NetBSD macros:
  823. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  824. //
  825. // If more than one of these "major" feature-test macros is defined,
  826. // then the set of facilities provided (and namespace used) is the
  827. // union of that specified by the relevant standards, and in case of
  828. // conflict, the earlier standard in the above list has precedence (so
  829. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  830. // of rename() that's used is the POSIX one). If none of the "major"
  831. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  832. //
  833. // There are also "minor" feature-test macros, which enable extra
  834. // functionality in addition to some base standard. They should be
  835. // defined along with one of the "major" macros. The "minor" macros
  836. // are:
  837. //
  838. // _REENTRANT
  839. // _ISOC99_SOURCE
  840. // _ISOC11_SOURCE
  841. // _LARGEFILE_SOURCE Large File Support
  842. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  843. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  844. // -
  845. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  846. // All rights reserved.
  847. //
  848. // This code is derived from software contributed to The NetBSD Foundation
  849. // by Matt Thomas of 3am Software Foundry.
  850. //
  851. // Redistribution and use in source and binary forms, with or without
  852. // modification, are permitted provided that the following conditions
  853. // are met:
  854. // 1. Redistributions of source code must retain the above copyright
  855. // notice, this list of conditions and the following disclaimer.
  856. // 2. Redistributions in binary form must reproduce the above copyright
  857. // notice, this list of conditions and the following disclaimer in the
  858. // documentation and/or other materials provided with the distribution.
  859. //
  860. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  861. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  862. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  863. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  864. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  865. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  866. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  867. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  868. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  869. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  870. // POSSIBILITY OF SUCH DAMAGE.
  871. // This should have always been an 8-bit type, but since it's been exposed
  872. // to user-space, we don't want ABI breakage there.
  873. type X__cpu_simple_lock_nv_t = int32 /* types.h:75:14 */
  874. type X__register_t = int32 /* types.h:77:14 */
  875. // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  876. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  877. // -
  878. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  879. // All rights reserved.
  880. //
  881. // This code is derived from software contributed to The NetBSD Foundation
  882. // by Matt Thomas of 3am Software Foundry.
  883. //
  884. // Redistribution and use in source and binary forms, with or without
  885. // modification, are permitted provided that the following conditions
  886. // are met:
  887. // 1. Redistributions of source code must retain the above copyright
  888. // notice, this list of conditions and the following disclaimer.
  889. // 2. Redistributions in binary form must reproduce the above copyright
  890. // notice, this list of conditions and the following disclaimer in the
  891. // documentation and/or other materials provided with the distribution.
  892. //
  893. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  894. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  895. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  896. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  897. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  898. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  899. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  900. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  901. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  902. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  903. // POSSIBILITY OF SUCH DAMAGE.
  904. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  905. // -
  906. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  907. // All rights reserved.
  908. //
  909. // This code is derived from software contributed to The NetBSD Foundation
  910. // by Matt Thomas of 3am Software Foundry.
  911. //
  912. // Redistribution and use in source and binary forms, with or without
  913. // modification, are permitted provided that the following conditions
  914. // are met:
  915. // 1. Redistributions of source code must retain the above copyright
  916. // notice, this list of conditions and the following disclaimer.
  917. // 2. Redistributions in binary form must reproduce the above copyright
  918. // notice, this list of conditions and the following disclaimer in the
  919. // documentation and/or other materials provided with the distribution.
  920. //
  921. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  922. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  923. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  924. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  925. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  926. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  927. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  928. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  929. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  930. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  931. // POSSIBILITY OF SUCH DAMAGE.
  932. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  933. // -
  934. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  935. // All rights reserved.
  936. //
  937. // This code is derived from software contributed to The NetBSD Foundation
  938. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  939. //
  940. // Redistribution and use in source and binary forms, with or without
  941. // modification, are permitted provided that the following conditions
  942. // are met:
  943. // 1. Redistributions of source code must retain the above copyright
  944. // notice, this list of conditions and the following disclaimer.
  945. // 2. Redistributions in binary form must reproduce the above copyright
  946. // notice, this list of conditions and the following disclaimer in the
  947. // documentation and/or other materials provided with the distribution.
  948. //
  949. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  950. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  951. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  952. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  953. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  954. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  955. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  956. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  957. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  958. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  959. // POSSIBILITY OF SUCH DAMAGE.
  960. type Int8_t = X__int8_t /* types.h:54:18 */
  961. type Uint8_t = X__uint8_t /* types.h:59:19 */
  962. type Int16_t = X__int16_t /* types.h:64:19 */
  963. type Uint16_t = X__uint16_t /* types.h:69:20 */
  964. type Int32_t = X__int32_t /* types.h:74:19 */
  965. type Uint32_t = X__uint32_t /* types.h:79:20 */
  966. type Int64_t = X__int64_t /* types.h:84:19 */
  967. type Uint64_t = X__uint64_t /* types.h:89:20 */
  968. type U_int8_t = Uint8_t /* types.h:93:18 */
  969. type U_int16_t = Uint16_t /* types.h:94:18 */
  970. type U_int32_t = Uint32_t /* types.h:95:18 */
  971. type U_int64_t = Uint64_t /* types.h:96:18 */
  972. // $NetBSD: endian.h,v 1.3 2001/06/23 12:20:27 bjh21 Exp $
  973. // $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
  974. // Copyright (c) 1987, 1991, 1993
  975. // The Regents of the University of California. All rights reserved.
  976. //
  977. // Redistribution and use in source and binary forms, with or without
  978. // modification, are permitted provided that the following conditions
  979. // are met:
  980. // 1. Redistributions of source code must retain the above copyright
  981. // notice, this list of conditions and the following disclaimer.
  982. // 2. Redistributions in binary form must reproduce the above copyright
  983. // notice, this list of conditions and the following disclaimer in the
  984. // documentation and/or other materials provided with the distribution.
  985. // 3. Neither the name of the University nor the names of its contributors
  986. // may be used to endorse or promote products derived from this software
  987. // without specific prior written permission.
  988. //
  989. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  990. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  991. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  992. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  993. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  994. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  995. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  996. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  997. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  998. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  999. // SUCH DAMAGE.
  1000. //
  1001. // @(#)endian.h 8.1 (Berkeley) 6/11/93
  1002. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1003. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1004. // Public domain.
  1005. //
  1006. // NOTE: Do not protect this header against multiple inclusion. Doing
  1007. // so can have subtle side-effects due to header file inclusion order
  1008. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1009. // protect each CPP macro that we want to supply.
  1010. // Feature-test macros are defined by several standards, and allow an
  1011. // application to specify what symbols they want the system headers to
  1012. // expose, and hence what standard they want them to conform to.
  1013. // There are two classes of feature-test macros. The first class
  1014. // specify complete standards, and if one of these is defined, header
  1015. // files will try to conform to the relevant standard. They are:
  1016. //
  1017. // ANSI macros:
  1018. // _ANSI_SOURCE ANSI C89
  1019. //
  1020. // POSIX macros:
  1021. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1022. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1023. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1024. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1025. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1026. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1027. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1028. //
  1029. // X/Open macros:
  1030. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1031. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1032. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1033. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1034. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1035. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1036. //
  1037. // NetBSD macros:
  1038. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1039. //
  1040. // If more than one of these "major" feature-test macros is defined,
  1041. // then the set of facilities provided (and namespace used) is the
  1042. // union of that specified by the relevant standards, and in case of
  1043. // conflict, the earlier standard in the above list has precedence (so
  1044. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1045. // of rename() that's used is the POSIX one). If none of the "major"
  1046. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1047. //
  1048. // There are also "minor" feature-test macros, which enable extra
  1049. // functionality in addition to some base standard. They should be
  1050. // defined along with one of the "major" macros. The "minor" macros
  1051. // are:
  1052. //
  1053. // _REENTRANT
  1054. // _ISOC99_SOURCE
  1055. // _ISOC11_SOURCE
  1056. // _LARGEFILE_SOURCE Large File Support
  1057. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1058. // Definitions for byte order, according to byte significance from low
  1059. // address to high.
  1060. // C-family endian-ness definitions
  1061. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  1062. // -
  1063. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  1064. // All rights reserved.
  1065. //
  1066. // This code is derived from software contributed to The NetBSD Foundation
  1067. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  1068. //
  1069. // Redistribution and use in source and binary forms, with or without
  1070. // modification, are permitted provided that the following conditions
  1071. // are met:
  1072. // 1. Redistributions of source code must retain the above copyright
  1073. // notice, this list of conditions and the following disclaimer.
  1074. // 2. Redistributions in binary form must reproduce the above copyright
  1075. // notice, this list of conditions and the following disclaimer in the
  1076. // documentation and/or other materials provided with the distribution.
  1077. //
  1078. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1079. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1080. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1081. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1082. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1083. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1084. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1085. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1086. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1087. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1088. // POSSIBILITY OF SUCH DAMAGE.
  1089. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1090. // * Copyright (c) 1991, 1993
  1091. // The Regents of the University of California. All rights reserved.
  1092. //
  1093. // This code is derived from software contributed to Berkeley by
  1094. // Berkeley Software Design, Inc.
  1095. //
  1096. // Redistribution and use in source and binary forms, with or without
  1097. // modification, are permitted provided that the following conditions
  1098. // are met:
  1099. // 1. Redistributions of source code must retain the above copyright
  1100. // notice, this list of conditions and the following disclaimer.
  1101. // 2. Redistributions in binary form must reproduce the above copyright
  1102. // notice, this list of conditions and the following disclaimer in the
  1103. // documentation and/or other materials provided with the distribution.
  1104. // 3. Neither the name of the University nor the names of its contributors
  1105. // may be used to endorse or promote products derived from this software
  1106. // without specific prior written permission.
  1107. //
  1108. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1109. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1110. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1111. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1112. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1113. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1114. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1115. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1116. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1117. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1118. // SUCH DAMAGE.
  1119. //
  1120. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1121. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  1122. // -
  1123. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1124. // The Regents of the University of California. All rights reserved.
  1125. // (c) UNIX System Laboratories, Inc.
  1126. // All or some portions of this file are derived from material licensed
  1127. // to the University of California by American Telephone and Telegraph
  1128. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1129. // the permission of UNIX System Laboratories, Inc.
  1130. //
  1131. // Redistribution and use in source and binary forms, with or without
  1132. // modification, are permitted provided that the following conditions
  1133. // are met:
  1134. // 1. Redistributions of source code must retain the above copyright
  1135. // notice, this list of conditions and the following disclaimer.
  1136. // 2. Redistributions in binary form must reproduce the above copyright
  1137. // notice, this list of conditions and the following disclaimer in the
  1138. // documentation and/or other materials provided with the distribution.
  1139. // 3. Neither the name of the University nor the names of its contributors
  1140. // may be used to endorse or promote products derived from this software
  1141. // without specific prior written permission.
  1142. //
  1143. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1144. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1145. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1146. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1147. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1148. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1149. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1150. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1151. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1152. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1153. // SUCH DAMAGE.
  1154. //
  1155. // @(#)types.h 8.4 (Berkeley) 1/21/94
  1156. type In_addr_t = X__in_addr_t /* endian.h:58:21 */
  1157. type In_port_t = X__in_port_t /* endian.h:63:21 */
  1158. // $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
  1159. // Written by Manuel Bouyer. Public domain
  1160. // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  1161. // -
  1162. // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  1163. // All rights reserved.
  1164. //
  1165. // This code is derived from software contributed to The NetBSD Foundation
  1166. // by Klaus Klein.
  1167. //
  1168. // Redistribution and use in source and binary forms, with or without
  1169. // modification, are permitted provided that the following conditions
  1170. // are met:
  1171. // 1. Redistributions of source code must retain the above copyright
  1172. // notice, this list of conditions and the following disclaimer.
  1173. // 2. Redistributions in binary form must reproduce the above copyright
  1174. // notice, this list of conditions and the following disclaimer in the
  1175. // documentation and/or other materials provided with the distribution.
  1176. //
  1177. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1178. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1179. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1180. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1181. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1182. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1183. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1184. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1185. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1186. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1187. // POSSIBILITY OF SUCH DAMAGE.
  1188. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1189. // * Copyright (c) 1991, 1993
  1190. // The Regents of the University of California. All rights reserved.
  1191. //
  1192. // This code is derived from software contributed to Berkeley by
  1193. // Berkeley Software Design, Inc.
  1194. //
  1195. // Redistribution and use in source and binary forms, with or without
  1196. // modification, are permitted provided that the following conditions
  1197. // are met:
  1198. // 1. Redistributions of source code must retain the above copyright
  1199. // notice, this list of conditions and the following disclaimer.
  1200. // 2. Redistributions in binary form must reproduce the above copyright
  1201. // notice, this list of conditions and the following disclaimer in the
  1202. // documentation and/or other materials provided with the distribution.
  1203. // 3. Neither the name of the University nor the names of its contributors
  1204. // may be used to endorse or promote products derived from this software
  1205. // without specific prior written permission.
  1206. //
  1207. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1208. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1209. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1210. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1211. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1212. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1213. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1214. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1215. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1216. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1217. // SUCH DAMAGE.
  1218. //
  1219. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1220. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1221. // -
  1222. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1223. // All rights reserved.
  1224. //
  1225. // This code is derived from software contributed to The NetBSD Foundation
  1226. // by Matt Thomas of 3am Software Foundry.
  1227. //
  1228. // Redistribution and use in source and binary forms, with or without
  1229. // modification, are permitted provided that the following conditions
  1230. // are met:
  1231. // 1. Redistributions of source code must retain the above copyright
  1232. // notice, this list of conditions and the following disclaimer.
  1233. // 2. Redistributions in binary form must reproduce the above copyright
  1234. // notice, this list of conditions and the following disclaimer in the
  1235. // documentation and/or other materials provided with the distribution.
  1236. //
  1237. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1238. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1239. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1240. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1241. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1242. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1243. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1244. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1245. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1246. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1247. // POSSIBILITY OF SUCH DAMAGE.
  1248. type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  1249. type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  1250. // $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1251. // -
  1252. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1253. // All rights reserved.
  1254. //
  1255. // This code is derived from software contributed to The NetBSD Foundation
  1256. // by Matt Thomas of 3am Software Foundry.
  1257. //
  1258. // Redistribution and use in source and binary forms, with or without
  1259. // modification, are permitted provided that the following conditions
  1260. // are met:
  1261. // 1. Redistributions of source code must retain the above copyright
  1262. // notice, this list of conditions and the following disclaimer.
  1263. // 2. Redistributions in binary form must reproduce the above copyright
  1264. // notice, this list of conditions and the following disclaimer in the
  1265. // documentation and/or other materials provided with the distribution.
  1266. //
  1267. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1268. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1269. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1270. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1271. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1272. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1273. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1274. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1275. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1276. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1277. // POSSIBILITY OF SUCH DAMAGE.
  1278. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  1279. // -
  1280. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1281. // All rights reserved.
  1282. //
  1283. // This code is derived from software contributed to The NetBSD Foundation
  1284. // by Joerg Sonnenberger.
  1285. //
  1286. // Redistribution and use in source and binary forms, with or without
  1287. // modification, are permitted provided that the following conditions
  1288. // are met:
  1289. // 1. Redistributions of source code must retain the above copyright
  1290. // notice, this list of conditions and the following disclaimer.
  1291. // 2. Redistributions in binary form must reproduce the above copyright
  1292. // notice, this list of conditions and the following disclaimer in the
  1293. // documentation and/or other materials provided with the distribution.
  1294. //
  1295. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1296. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1297. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1298. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1299. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1300. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1301. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1302. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1303. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1304. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1305. // POSSIBILITY OF SUCH DAMAGE.
  1306. // 7.18.1 Integer types
  1307. // 7.18.1.2 Minimum-width integer types
  1308. type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
  1309. type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
  1310. type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
  1311. type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  1312. type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
  1313. type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  1314. type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
  1315. type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  1316. // 7.18.1.3 Fastest minimum-width integer types
  1317. type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
  1318. type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
  1319. type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
  1320. type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  1321. type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
  1322. type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  1323. type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
  1324. type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  1325. // 7.18.1.5 Greatest-width integer types
  1326. type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
  1327. type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  1328. type U_char = uint8 /* types.h:101:23 */
  1329. type U_short = uint16 /* types.h:102:24 */
  1330. type U_int = uint32 /* types.h:103:22 */
  1331. type U_long = uint32 /* types.h:104:23 */
  1332. type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
  1333. type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  1334. type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
  1335. type Ulong = uint32 /* types.h:109:23 */ // Sys V compatibility
  1336. type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  1337. type Quad_t = Int64_t /* types.h:113:18 */
  1338. type Qaddr_t = uintptr /* types.h:114:16 */
  1339. // The types longlong_t and u_longlong_t exist for use with the
  1340. // Sun-derived XDR routines involving these types, and their usage
  1341. // in other contexts is discouraged. Further note that these types
  1342. // may not be equivalent to "long long" and "unsigned long long",
  1343. // they are only guaranteed to be signed and unsigned 64-bit types
  1344. // respectively. Portable programs that need 64-bit types should use
  1345. // the C99 types int64_t and uint64_t instead.
  1346. type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
  1347. type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  1348. type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
  1349. type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  1350. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  1351. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  1352. // We don't and shouldn't use caddr_t in the kernel anymore
  1353. type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  1354. type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  1355. type Dev_t = Uint64_t /* types.h:157:18 */ // device number
  1356. type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  1357. type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  1358. type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
  1359. type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  1360. type Key_t = int32 /* types.h:167:15 */ // IPC key (for Sys V IPC)
  1361. type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  1362. type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  1363. type Off_t = X__off_t /* types.h:177:18 */ // file offset
  1364. type Pid_t = X__pid_t /* types.h:182:18 */ // process id
  1365. type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  1366. type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  1367. type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  1368. type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  1369. type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  1370. type Mqd_t = int32 /* types.h:195:14 */
  1371. type Cpuid_t = uint32 /* types.h:197:23 */
  1372. type Psetid_t = int32 /* types.h:199:14 */
  1373. type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  1374. // Major, minor numbers, dev_t's.
  1375. type X__devmajor_t = Int32_t /* types.h:255:17 */
  1376. type X__devminor_t = Int32_t /* types.h:255:31 */
  1377. type Ssize_t = int32 /* types.h:284:24 */
  1378. type Suseconds_t = int32 /* types.h:304:27 */
  1379. type Useconds_t = uint32 /* types.h:309:26 */
  1380. // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1381. // -
  1382. // Copyright (c) 1992, 1993
  1383. // The Regents of the University of California. All rights reserved.
  1384. //
  1385. // Redistribution and use in source and binary forms, with or without
  1386. // modification, are permitted provided that the following conditions
  1387. // are met:
  1388. // 1. Redistributions of source code must retain the above copyright
  1389. // notice, this list of conditions and the following disclaimer.
  1390. // 2. Redistributions in binary form must reproduce the above copyright
  1391. // notice, this list of conditions and the following disclaimer in the
  1392. // documentation and/or other materials provided with the distribution.
  1393. // 3. Neither the name of the University nor the names of its contributors
  1394. // may be used to endorse or promote products derived from this software
  1395. // without specific prior written permission.
  1396. //
  1397. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1398. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1399. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1400. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1401. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1402. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1403. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1404. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1405. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1406. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1407. // SUCH DAMAGE.
  1408. //
  1409. // from: @(#)types.h 8.4 (Berkeley) 1/21/94
  1410. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1411. // * Copyright (c) 1991, 1993
  1412. // The Regents of the University of California. All rights reserved.
  1413. //
  1414. // This code is derived from software contributed to Berkeley by
  1415. // Berkeley Software Design, Inc.
  1416. //
  1417. // Redistribution and use in source and binary forms, with or without
  1418. // modification, are permitted provided that the following conditions
  1419. // are met:
  1420. // 1. Redistributions of source code must retain the above copyright
  1421. // notice, this list of conditions and the following disclaimer.
  1422. // 2. Redistributions in binary form must reproduce the above copyright
  1423. // notice, this list of conditions and the following disclaimer in the
  1424. // documentation and/or other materials provided with the distribution.
  1425. // 3. Neither the name of the University nor the names of its contributors
  1426. // may be used to endorse or promote products derived from this software
  1427. // without specific prior written permission.
  1428. //
  1429. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1430. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1431. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1432. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1433. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1434. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1435. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1436. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1437. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1438. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1439. // SUCH DAMAGE.
  1440. //
  1441. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1442. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1443. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1444. // Public domain.
  1445. //
  1446. // NOTE: Do not protect this header against multiple inclusion. Doing
  1447. // so can have subtle side-effects due to header file inclusion order
  1448. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1449. // protect each CPP macro that we want to supply.
  1450. // Feature-test macros are defined by several standards, and allow an
  1451. // application to specify what symbols they want the system headers to
  1452. // expose, and hence what standard they want them to conform to.
  1453. // There are two classes of feature-test macros. The first class
  1454. // specify complete standards, and if one of these is defined, header
  1455. // files will try to conform to the relevant standard. They are:
  1456. //
  1457. // ANSI macros:
  1458. // _ANSI_SOURCE ANSI C89
  1459. //
  1460. // POSIX macros:
  1461. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1462. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1463. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1464. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1465. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1466. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1467. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1468. //
  1469. // X/Open macros:
  1470. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1471. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1472. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1473. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1474. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1475. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1476. //
  1477. // NetBSD macros:
  1478. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1479. //
  1480. // If more than one of these "major" feature-test macros is defined,
  1481. // then the set of facilities provided (and namespace used) is the
  1482. // union of that specified by the relevant standards, and in case of
  1483. // conflict, the earlier standard in the above list has precedence (so
  1484. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1485. // of rename() that's used is the POSIX one). If none of the "major"
  1486. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1487. //
  1488. // There are also "minor" feature-test macros, which enable extra
  1489. // functionality in addition to some base standard. They should be
  1490. // defined along with one of the "major" macros. The "minor" macros
  1491. // are:
  1492. //
  1493. // _REENTRANT
  1494. // _ISOC99_SOURCE
  1495. // _ISOC11_SOURCE
  1496. // _LARGEFILE_SOURCE Large File Support
  1497. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1498. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1499. // -
  1500. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1501. // All rights reserved.
  1502. //
  1503. // This code is derived from software contributed to The NetBSD Foundation
  1504. // by Matt Thomas of 3am Software Foundry.
  1505. //
  1506. // Redistribution and use in source and binary forms, with or without
  1507. // modification, are permitted provided that the following conditions
  1508. // are met:
  1509. // 1. Redistributions of source code must retain the above copyright
  1510. // notice, this list of conditions and the following disclaimer.
  1511. // 2. Redistributions in binary form must reproduce the above copyright
  1512. // notice, this list of conditions and the following disclaimer in the
  1513. // documentation and/or other materials provided with the distribution.
  1514. //
  1515. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1516. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1517. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1518. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1519. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1520. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1521. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1522. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1523. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1524. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1525. // POSSIBILITY OF SUCH DAMAGE.
  1526. // Implementation dependent defines, hidden from user space.
  1527. // POSIX does not specify them.
  1528. type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1529. // 32 = 2 ^ 5
  1530. // Select uses bit fields of file descriptors. These macros manipulate
  1531. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1532. type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1533. // 32 = 2 ^ 5
  1534. // Select uses bit fields of file descriptors. These macros manipulate
  1535. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1536. type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1537. // Expose our internals if we are not required to hide them.
  1538. type Kauth_cred_t = uintptr /* types.h:318:27 */
  1539. type Pri_t = int32 /* types.h:320:13 */
  1540. // $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1541. // -
  1542. // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1543. // All rights reserved.
  1544. //
  1545. // This code is derived from software contributed to The NetBSD Foundation
  1546. // by Nathan J. Williams.
  1547. //
  1548. // Redistribution and use in source and binary forms, with or without
  1549. // modification, are permitted provided that the following conditions
  1550. // are met:
  1551. // 1. Redistributions of source code must retain the above copyright
  1552. // notice, this list of conditions and the following disclaimer.
  1553. // 2. Redistributions in binary form must reproduce the above copyright
  1554. // notice, this list of conditions and the following disclaimer in the
  1555. // documentation and/or other materials provided with the distribution.
  1556. //
  1557. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1558. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1559. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1560. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1561. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1562. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1563. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1564. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1565. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1566. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1567. // POSSIBILITY OF SUCH DAMAGE.
  1568. // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1569. // POSIX spinlock object.
  1570. //
  1571. // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1572. // This does not work for volatile types. Since C++ does not touch the guts
  1573. // of those types, we do not include volatile in the C++ definitions.
  1574. type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1575. type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */
  1576. // Copied from PTQ_HEAD in pthread_queue.h
  1577. type Pthread_queue_struct_t = struct {
  1578. Fptqh_first uintptr
  1579. Fptqh_last uintptr
  1580. } /* pthread_types.h:61:1 */
  1581. type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1582. type X__pthread_attr_st = struct {
  1583. Fpta_magic uint32
  1584. Fpta_flags int32
  1585. Fpta_private uintptr
  1586. } /* pthread_types.h:65:1 */
  1587. type X__pthread_mutex_st = struct {
  1588. Fptm_magic uint32
  1589. Fptm_errorcheck X__pthread_spin_t
  1590. F__8 struct {
  1591. F__ccgo_pad1 [0]uint32
  1592. Fptm_ceiling uint8
  1593. F__ccgo_pad2 [3]byte
  1594. }
  1595. Fptm_owner Pthread_t
  1596. Fptm_waiters uintptr
  1597. Fptm_recursed uint32
  1598. Fptm_spare2 uintptr
  1599. } /* pthread_types.h:66:1 */
  1600. type X__pthread_mutexattr_st = struct {
  1601. Fptma_magic uint32
  1602. Fptma_private uintptr
  1603. } /* pthread_types.h:67:1 */
  1604. type X__pthread_cond_st = struct {
  1605. Fptc_magic uint32
  1606. Fptc_lock X__pthread_spin_t
  1607. Fptc_waiters Pthread_queue_t
  1608. Fptc_mutex uintptr
  1609. Fptc_private uintptr
  1610. } /* pthread_types.h:68:1 */
  1611. type X__pthread_condattr_st = struct {
  1612. Fptca_magic uint32
  1613. Fptca_private uintptr
  1614. } /* pthread_types.h:69:1 */
  1615. type X__pthread_rwlock_st = struct {
  1616. Fptr_magic uint32
  1617. Fptr_interlock X__pthread_spin_t
  1618. Fptr_rblocked Pthread_queue_t
  1619. Fptr_wblocked Pthread_queue_t
  1620. Fptr_nreaders uint32
  1621. Fptr_owner Pthread_t
  1622. Fptr_private uintptr
  1623. } /* pthread_types.h:71:1 */
  1624. type X__pthread_rwlockattr_st = struct {
  1625. Fptra_magic uint32
  1626. Fptra_private uintptr
  1627. } /* pthread_types.h:72:1 */
  1628. type X__pthread_barrier_st = struct {
  1629. Fptb_magic uint32
  1630. Fptb_lock Pthread_spin_t
  1631. Fptb_waiters Pthread_queue_t
  1632. Fptb_initcount uint32
  1633. Fptb_curcount uint32
  1634. Fptb_generation uint32
  1635. Fptb_private uintptr
  1636. } /* pthread_types.h:73:1 */
  1637. type X__pthread_barrierattr_st = struct {
  1638. Fptba_magic uint32
  1639. Fptba_private uintptr
  1640. } /* pthread_types.h:74:1 */
  1641. type Pthread_t = uintptr /* pthread_types.h:76:29 */
  1642. type Pthread_attr_t = X__pthread_attr_st /* pthread_types.h:77:34 */
  1643. type Pthread_mutex_t = X__pthread_mutex_st /* pthread_types.h:78:35 */
  1644. type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1645. type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
  1646. type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
  1647. type X__pthread_once_st = struct {
  1648. Fpto_mutex Pthread_mutex_t
  1649. Fpto_done int32
  1650. } /* pthread_types.h:82:9 */
  1651. type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1652. type X__pthread_spinlock_st = struct {
  1653. Fpts_magic uint32
  1654. Fpts_spin X__pthread_spin_t
  1655. Fpts_flags int32
  1656. } /* pthread_types.h:83:9 */
  1657. type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
  1658. type Pthread_rwlock_t = X__pthread_rwlock_st /* pthread_types.h:84:36 */
  1659. type Pthread_rwlockattr_t = X__pthread_rwlockattr_st /* pthread_types.h:85:40 */
  1660. type Pthread_barrier_t = X__pthread_barrier_st /* pthread_types.h:86:37 */
  1661. type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1662. type Pthread_key_t = int32 /* pthread_types.h:88:13 */
  1663. // Structure returned by gettimeofday(2) system call,
  1664. // and used in other calls.
  1665. type Timeval = struct {
  1666. Ftv_sec Time_t
  1667. Ftv_usec Suseconds_t
  1668. F__ccgo_pad1 [4]byte
  1669. } /* time.h:44:1 */
  1670. // $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
  1671. // Copyright (c) 1982, 1986, 1993
  1672. // The Regents of the University of California. All rights reserved.
  1673. //
  1674. // Redistribution and use in source and binary forms, with or without
  1675. // modification, are permitted provided that the following conditions
  1676. // are met:
  1677. // 1. Redistributions of source code must retain the above copyright
  1678. // notice, this list of conditions and the following disclaimer.
  1679. // 2. Redistributions in binary form must reproduce the above copyright
  1680. // notice, this list of conditions and the following disclaimer in the
  1681. // documentation and/or other materials provided with the distribution.
  1682. // 3. Neither the name of the University nor the names of its contributors
  1683. // may be used to endorse or promote products derived from this software
  1684. // without specific prior written permission.
  1685. //
  1686. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1687. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1688. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1689. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1690. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1691. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1692. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1693. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1694. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1695. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1696. // SUCH DAMAGE.
  1697. //
  1698. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1699. //
  1700. // Extracted by Kamil Rytarowski from:
  1701. // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
  1702. // Note: timezone is obsolete. All timezone handling is now in
  1703. // userland. Its just here for back compatibility.
  1704. type Timezone = struct {
  1705. Ftz_minuteswest int32
  1706. Ftz_dsttime int32
  1707. } /* time.h:65:1 */
  1708. // Operations on timevals.
  1709. // hide bintime for _STANDALONE because this header is used for hpcboot.exe,
  1710. // which is built with compilers which don't recognize LL suffix.
  1711. //
  1712. // http://mail-index.NetBSD.org/tech-userlevel/2008/02/27/msg000181.html
  1713. type Bintime = struct {
  1714. Fsec Time_t
  1715. Ffrac Uint64_t
  1716. } /* time.h:102:1 */
  1717. // Operations on timespecs.
  1718. // Names of the interval timers, and structure
  1719. // defining a timer setting.
  1720. // NB: Must match the CLOCK_ constants below.
  1721. type Itimerval = struct {
  1722. Fit_interval struct {
  1723. Ftv_sec Time_t
  1724. Ftv_usec Suseconds_t
  1725. F__ccgo_pad1 [4]byte
  1726. }
  1727. Fit_value struct {
  1728. Ftv_sec Time_t
  1729. Ftv_usec Suseconds_t
  1730. F__ccgo_pad1 [4]byte
  1731. }
  1732. } /* time.h:280:1 */
  1733. // Structure defined by POSIX.1b to be like a itimerval, but with
  1734. // timespecs. Used in the timer_*() system calls.
  1735. type Itimerspec = struct {
  1736. Fit_interval struct {
  1737. Ftv_sec Time_t
  1738. Ftv_nsec int32
  1739. F__ccgo_pad1 [4]byte
  1740. }
  1741. Fit_value struct {
  1742. Ftv_sec Time_t
  1743. Ftv_nsec int32
  1744. F__ccgo_pad1 [4]byte
  1745. }
  1746. } /* time.h:289:1 */
  1747. // $NetBSD: select.h,v 1.37 2014/04/25 15:52:45 pooka Exp $
  1748. // -
  1749. // Copyright (c) 1992, 1993
  1750. // The Regents of the University of California. All rights reserved.
  1751. //
  1752. // Redistribution and use in source and binary forms, with or without
  1753. // modification, are permitted provided that the following conditions
  1754. // are met:
  1755. // 1. Redistributions of source code must retain the above copyright
  1756. // notice, this list of conditions and the following disclaimer.
  1757. // 2. Redistributions in binary form must reproduce the above copyright
  1758. // notice, this list of conditions and the following disclaimer in the
  1759. // documentation and/or other materials provided with the distribution.
  1760. // 3. Neither the name of the University nor the names of its contributors
  1761. // may be used to endorse or promote products derived from this software
  1762. // without specific prior written permission.
  1763. //
  1764. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1765. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1766. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1767. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1768. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1769. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1770. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1771. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1772. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1773. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1774. // SUCH DAMAGE.
  1775. //
  1776. // @(#)select.h 8.2 (Berkeley) 1/4/94
  1777. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1778. // * Copyright (c) 1991, 1993
  1779. // The Regents of the University of California. All rights reserved.
  1780. //
  1781. // This code is derived from software contributed to Berkeley by
  1782. // Berkeley Software Design, Inc.
  1783. //
  1784. // Redistribution and use in source and binary forms, with or without
  1785. // modification, are permitted provided that the following conditions
  1786. // are met:
  1787. // 1. Redistributions of source code must retain the above copyright
  1788. // notice, this list of conditions and the following disclaimer.
  1789. // 2. Redistributions in binary form must reproduce the above copyright
  1790. // notice, this list of conditions and the following disclaimer in the
  1791. // documentation and/or other materials provided with the distribution.
  1792. // 3. Neither the name of the University nor the names of its contributors
  1793. // may be used to endorse or promote products derived from this software
  1794. // without specific prior written permission.
  1795. //
  1796. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1797. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1798. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1799. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1800. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1801. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1802. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1803. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1804. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1805. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1806. // SUCH DAMAGE.
  1807. //
  1808. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1809. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1810. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1811. // Public domain.
  1812. //
  1813. // NOTE: Do not protect this header against multiple inclusion. Doing
  1814. // so can have subtle side-effects due to header file inclusion order
  1815. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1816. // protect each CPP macro that we want to supply.
  1817. // Feature-test macros are defined by several standards, and allow an
  1818. // application to specify what symbols they want the system headers to
  1819. // expose, and hence what standard they want them to conform to.
  1820. // There are two classes of feature-test macros. The first class
  1821. // specify complete standards, and if one of these is defined, header
  1822. // files will try to conform to the relevant standard. They are:
  1823. //
  1824. // ANSI macros:
  1825. // _ANSI_SOURCE ANSI C89
  1826. //
  1827. // POSIX macros:
  1828. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1829. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1830. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1831. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1832. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1833. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1834. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1835. //
  1836. // X/Open macros:
  1837. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1838. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1839. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1840. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1841. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1842. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1843. //
  1844. // NetBSD macros:
  1845. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1846. //
  1847. // If more than one of these "major" feature-test macros is defined,
  1848. // then the set of facilities provided (and namespace used) is the
  1849. // union of that specified by the relevant standards, and in case of
  1850. // conflict, the earlier standard in the above list has precedence (so
  1851. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1852. // of rename() that's used is the POSIX one). If none of the "major"
  1853. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1854. //
  1855. // There are also "minor" feature-test macros, which enable extra
  1856. // functionality in addition to some base standard. They should be
  1857. // defined along with one of the "major" macros. The "minor" macros
  1858. // are:
  1859. //
  1860. // _REENTRANT
  1861. // _ISOC99_SOURCE
  1862. // _ISOC11_SOURCE
  1863. // _LARGEFILE_SOURCE Large File Support
  1864. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1865. // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1866. // -
  1867. // Copyright (c) 1992, 1993
  1868. // The Regents of the University of California. All rights reserved.
  1869. //
  1870. // Redistribution and use in source and binary forms, with or without
  1871. // modification, are permitted provided that the following conditions
  1872. // are met:
  1873. // 1. Redistributions of source code must retain the above copyright
  1874. // notice, this list of conditions and the following disclaimer.
  1875. // 2. Redistributions in binary form must reproduce the above copyright
  1876. // notice, this list of conditions and the following disclaimer in the
  1877. // documentation and/or other materials provided with the distribution.
  1878. // 3. Neither the name of the University nor the names of its contributors
  1879. // may be used to endorse or promote products derived from this software
  1880. // without specific prior written permission.
  1881. //
  1882. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1883. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1884. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1885. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1886. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1887. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1888. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1889. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1890. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1891. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1892. // SUCH DAMAGE.
  1893. //
  1894. // from: @(#)types.h 8.4 (Berkeley) 1/21/94
  1895. // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
  1896. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1897. // The Regents of the University of California. All rights reserved.
  1898. // (c) UNIX System Laboratories, Inc.
  1899. // All or some portions of this file are derived from material licensed
  1900. // to the University of California by American Telephone and Telegraph
  1901. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1902. // the permission of UNIX System Laboratories, Inc.
  1903. //
  1904. // Redistribution and use in source and binary forms, with or without
  1905. // modification, are permitted provided that the following conditions
  1906. // are met:
  1907. // 1. Redistributions of source code must retain the above copyright
  1908. // notice, this list of conditions and the following disclaimer.
  1909. // 2. Redistributions in binary form must reproduce the above copyright
  1910. // notice, this list of conditions and the following disclaimer in the
  1911. // documentation and/or other materials provided with the distribution.
  1912. // 3. Neither the name of the University nor the names of its contributors
  1913. // may be used to endorse or promote products derived from this software
  1914. // without specific prior written permission.
  1915. //
  1916. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1917. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1918. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1919. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1920. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1921. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1922. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1923. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1924. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1925. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1926. // SUCH DAMAGE.
  1927. //
  1928. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1929. // This header file defines various signal-related types. We also keep
  1930. // the macros to manipulate sigset_t here, to encapsulate knowledge of
  1931. // its internals.
  1932. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1933. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1934. // Public domain.
  1935. //
  1936. // NOTE: Do not protect this header against multiple inclusion. Doing
  1937. // so can have subtle side-effects due to header file inclusion order
  1938. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1939. // protect each CPP macro that we want to supply.
  1940. // Feature-test macros are defined by several standards, and allow an
  1941. // application to specify what symbols they want the system headers to
  1942. // expose, and hence what standard they want them to conform to.
  1943. // There are two classes of feature-test macros. The first class
  1944. // specify complete standards, and if one of these is defined, header
  1945. // files will try to conform to the relevant standard. They are:
  1946. //
  1947. // ANSI macros:
  1948. // _ANSI_SOURCE ANSI C89
  1949. //
  1950. // POSIX macros:
  1951. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1952. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1953. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1954. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1955. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1956. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1957. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1958. //
  1959. // X/Open macros:
  1960. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1961. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1962. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1963. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1964. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1965. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1966. //
  1967. // NetBSD macros:
  1968. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1969. //
  1970. // If more than one of these "major" feature-test macros is defined,
  1971. // then the set of facilities provided (and namespace used) is the
  1972. // union of that specified by the relevant standards, and in case of
  1973. // conflict, the earlier standard in the above list has precedence (so
  1974. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1975. // of rename() that's used is the POSIX one). If none of the "major"
  1976. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1977. //
  1978. // There are also "minor" feature-test macros, which enable extra
  1979. // functionality in addition to some base standard. They should be
  1980. // defined along with one of the "major" macros. The "minor" macros
  1981. // are:
  1982. //
  1983. // _REENTRANT
  1984. // _ISOC99_SOURCE
  1985. // _ISOC11_SOURCE
  1986. // _LARGEFILE_SOURCE Large File Support
  1987. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1988. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1989. // -
  1990. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1991. // All rights reserved.
  1992. //
  1993. // This code is derived from software contributed to The NetBSD Foundation
  1994. // by Matt Thomas of 3am Software Foundry.
  1995. //
  1996. // Redistribution and use in source and binary forms, with or without
  1997. // modification, are permitted provided that the following conditions
  1998. // are met:
  1999. // 1. Redistributions of source code must retain the above copyright
  2000. // notice, this list of conditions and the following disclaimer.
  2001. // 2. Redistributions in binary form must reproduce the above copyright
  2002. // notice, this list of conditions and the following disclaimer in the
  2003. // documentation and/or other materials provided with the distribution.
  2004. //
  2005. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2006. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2007. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2008. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2009. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2010. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2011. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2012. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2013. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2014. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2015. // POSSIBILITY OF SUCH DAMAGE.
  2016. // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  2017. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  2018. // -
  2019. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  2020. // All rights reserved.
  2021. //
  2022. // This code is derived from software contributed to The NetBSD Foundation
  2023. // by Matt Thomas of 3am Software Foundry.
  2024. //
  2025. // Redistribution and use in source and binary forms, with or without
  2026. // modification, are permitted provided that the following conditions
  2027. // are met:
  2028. // 1. Redistributions of source code must retain the above copyright
  2029. // notice, this list of conditions and the following disclaimer.
  2030. // 2. Redistributions in binary form must reproduce the above copyright
  2031. // notice, this list of conditions and the following disclaimer in the
  2032. // documentation and/or other materials provided with the distribution.
  2033. //
  2034. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2035. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2036. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2037. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2038. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2039. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2040. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2041. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2042. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2043. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2044. // POSSIBILITY OF SUCH DAMAGE.
  2045. type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
  2046. // Macro for manipulating signal masks.
  2047. type Sigaltstack = struct {
  2048. Fss_sp uintptr
  2049. Fss_size Size_t
  2050. Fss_flags int32
  2051. } /* sigtypes.h:108:9 */
  2052. // Macro for manipulating signal masks.
  2053. type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
  2054. // $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
  2055. // -
  2056. // Copyright (c) 2016 The NetBSD Foundation, Inc.
  2057. // All rights reserved.
  2058. //
  2059. // This code is derived from software contributed to The NetBSD Foundation
  2060. // by Christos Zoulas.
  2061. //
  2062. // Redistribution and use in source and binary forms, with or without
  2063. // modification, are permitted provided that the following conditions
  2064. // are met:
  2065. // 1. Redistributions of source code must retain the above copyright
  2066. // notice, this list of conditions and the following disclaimer.
  2067. // 2. Redistributions in binary form must reproduce the above copyright
  2068. // notice, this list of conditions and the following disclaimer in the
  2069. // documentation and/or other materials provided with the distribution.
  2070. //
  2071. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2072. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2073. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2074. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2075. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2076. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2077. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2078. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2079. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2080. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2081. // POSSIBILITY OF SUCH DAMAGE.
  2082. // Using the solaris constants, some of them are not applicable to us
  2083. // Do not re-order the list, or add elements in the middle as this will
  2084. // break the ABI of the system calls using this. We set a high private
  2085. // maximum so that new values can be added in the future without
  2086. // changing the width of the type.
  2087. type Idtype_t = int32 /* idtype.h:60:3 */
  2088. type Locale_t = uintptr /* time.h:188:25 */
  2089. type Timezone_t = uintptr /* time.h:198:24 */
  2090. var _ uint8 /* gen.c:2:13: */