stat_netbsd_amd64.go 111 KB

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