signal_netbsd_amd64.go 135 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889
  1. // Code generated by 'ccgo signal/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 signal/signal_netbsd_amd64.go -pkgname signal', DO NOT EDIT.
  2. package signal
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. BIG_ENDIAN = 4321 // endian.h:101:1:
  15. BUS_ADRALN = 1 // siginfo.h:239:1:
  16. BUS_ADRERR = 2 // siginfo.h:240:1:
  17. BUS_OBJERR = 3 // siginfo.h:241:1:
  18. BYTE_ORDER = 1234 // endian.h:103:1:
  19. CLD_CONTINUED = 6 // siginfo.h:261:1:
  20. CLD_DUMPED = 3 // siginfo.h:257:1:
  21. CLD_EXITED = 1 // siginfo.h:254:1:
  22. CLD_KILLED = 2 // siginfo.h:255:1:
  23. CLD_STOPPED = 5 // siginfo.h:260:1:
  24. CLD_TRAPPED = 4 // siginfo.h:259:1:
  25. FD_SETSIZE = 256 // fd_set.h:59:1:
  26. FPE_FLTDIV = 3 // siginfo.h:227:1:
  27. FPE_FLTINV = 7 // siginfo.h:231:1:
  28. FPE_FLTOVF = 4 // siginfo.h:228:1:
  29. FPE_FLTRES = 6 // siginfo.h:230:1:
  30. FPE_FLTSUB = 8 // siginfo.h:232:1:
  31. FPE_FLTUND = 5 // siginfo.h:229:1:
  32. FPE_INTDIV = 1 // siginfo.h:225:1:
  33. FPE_INTOVF = 2 // siginfo.h:226:1:
  34. ILL_BADSTK = 8 // siginfo.h:222:1:
  35. ILL_COPROC = 7 // siginfo.h:221:1:
  36. ILL_ILLADR = 3 // siginfo.h:217:1:
  37. ILL_ILLOPC = 1 // siginfo.h:215:1:
  38. ILL_ILLOPN = 2 // siginfo.h:216:1:
  39. ILL_ILLTRP = 4 // siginfo.h:218:1:
  40. ILL_PRVOPC = 5 // siginfo.h:219:1:
  41. ILL_PRVREG = 6 // siginfo.h:220:1:
  42. INT16_MAX = 32767 // common_int_limits.h:53:1:
  43. INT16_MIN = -32768 // common_int_limits.h:47:1:
  44. INT32_MAX = 2147483647 // common_int_limits.h:54:1:
  45. INT32_MIN = -2147483648 // common_int_limits.h:48:1:
  46. INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
  47. INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
  48. INT8_MAX = 127 // common_int_limits.h:52:1:
  49. INT8_MIN = -128 // common_int_limits.h:46:1:
  50. INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
  51. INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
  52. INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
  53. INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
  54. INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
  55. INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
  56. INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
  57. INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
  58. INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
  59. INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
  60. INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
  61. INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
  62. INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
  63. INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
  64. INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
  65. INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
  66. INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
  67. INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
  68. INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
  69. INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
  70. LITTLE_ENDIAN = 1234 // endian.h:100:1:
  71. MINSIGSTKSZ = 8192 // signal.h:189:1:
  72. NBBY = 8 // types.h:316:1:
  73. NFDBITS = 32 // fd_set.h:93:1:
  74. NODEVMAJOR = -1 // types.h:258:1:
  75. NSIG = 64 // signal.h:48:1:
  76. PDP_ENDIAN = 3412 // endian.h:102:1:
  77. POLL_ERR = 4 // siginfo.h:267:1:
  78. POLL_HUP = 6 // siginfo.h:269:1:
  79. POLL_IN = 1 // siginfo.h:264:1:
  80. POLL_MSG = 3 // siginfo.h:266:1:
  81. POLL_OUT = 2 // siginfo.h:265:1:
  82. POLL_PRI = 5 // siginfo.h:268:1:
  83. PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
  84. PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
  85. SA_NOCLDSTOP = 0x0008 // signal.h:151:1:
  86. SA_NOCLDWAIT = 0x0020 // signal.h:152:1:
  87. SA_NODEFER = 0x0010 // signal.h:148:1:
  88. SA_NOKERNINFO = 0x0080 // signal.h:158:1:
  89. SA_ONSTACK = 0x0001 // signal.h:145:1:
  90. SA_RESETHAND = 0x0004 // signal.h:147:1:
  91. SA_RESTART = 0x0002 // signal.h:146:1:
  92. SA_SIGINFO = 0x0040 // signal.h:155:1:
  93. SEGV_ACCERR = 2 // siginfo.h:236:1:
  94. SEGV_MAPERR = 1 // siginfo.h:235:1:
  95. SIGABRT = 6 // signal.h:57:1:
  96. SIGALRM = 14 // signal.h:66:1:
  97. SIGBUS = 10 // signal.h:62:1:
  98. SIGCHLD = 20 // signal.h:72:1:
  99. SIGCONT = 19 // signal.h:71:1:
  100. SIGEMT = 7 // signal.h:59:1:
  101. SIGEV_NONE = 0 // signal.h:224:1:
  102. SIGEV_SA = 3 // signal.h:228:1:
  103. SIGEV_SIGNAL = 1 // signal.h:225:1:
  104. SIGEV_THREAD = 2 // signal.h:226:1:
  105. SIGFPE = 8 // signal.h:60:1:
  106. SIGHUP = 1 // signal.h:52:1:
  107. SIGILL = 4 // signal.h:55:1:
  108. SIGINFO = 29 // signal.h:81:1:
  109. SIGINT = 2 // signal.h:53:1:
  110. SIGIO = 23 // signal.h:75:1:
  111. SIGIOT = 6 // signal.h:58:1:
  112. SIGKILL = 9 // signal.h:61:1:
  113. SIGPIPE = 13 // signal.h:65:1:
  114. SIGPROF = 27 // signal.h:79:1:
  115. SIGPWR = 32 // signal.h:84:1:
  116. SIGQUIT = 3 // signal.h:54:1:
  117. SIGRTMAX = 63 // signal.h:86:1:
  118. SIGRTMIN = 33 // signal.h:85:1:
  119. SIGSEGV = 11 // signal.h:63:1:
  120. SIGSTKSZ = 40960 // signal.h:190:1:
  121. SIGSTOP = 17 // signal.h:69:1:
  122. SIGSYS = 12 // signal.h:64:1:
  123. SIGTERM = 15 // signal.h:67:1:
  124. SIGTRAP = 5 // signal.h:56:1:
  125. SIGTSTP = 18 // signal.h:70:1:
  126. SIGTTIN = 21 // signal.h:73:1:
  127. SIGTTOU = 22 // signal.h:74:1:
  128. SIGURG = 16 // signal.h:68:1:
  129. SIGUSR1 = 30 // signal.h:82:1:
  130. SIGUSR2 = 31 // signal.h:83:1:
  131. SIGVTALRM = 26 // signal.h:78:1:
  132. SIGWINCH = 28 // signal.h:80:1:
  133. SIGXCPU = 24 // signal.h:76:1:
  134. SIGXFSZ = 25 // signal.h:77:1:
  135. SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
  136. SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
  137. SIG_BLOCK = 1 // signal.h:167:1:
  138. SIG_SETMASK = 3 // signal.h:169:1:
  139. SIG_UNBLOCK = 2 // signal.h:168:1:
  140. SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
  141. SI_ASYNCIO = -3 // siginfo.h:277:1:
  142. SI_LWP = -5 // siginfo.h:282:1:
  143. SI_MESGQ = -4 // siginfo.h:279:1:
  144. SI_NOINFO = 32767 // siginfo.h:283:1:
  145. SI_QUEUE = -1 // siginfo.h:274:1:
  146. SI_TIMER = -2 // siginfo.h:275:1:
  147. SI_USER = 0 // siginfo.h:273:1:
  148. SS_DISABLE = 0x0004 // signal.h:185:1:
  149. SS_ONSTACK = 0x0001 // signal.h:184:1:
  150. TC_FLAGMASK = 2147483648 // trap.h:70:1:
  151. TC_TSS = 0x80000000 // trap.h:69:1:
  152. TRAP_BRKPT = 1 // siginfo.h:244:1:
  153. TRAP_CHLD = 4 // siginfo.h:247:1:
  154. TRAP_DBREG = 6 // siginfo.h:249:1:
  155. TRAP_EXEC = 3 // siginfo.h:246:1:
  156. TRAP_LWP = 5 // siginfo.h:248:1:
  157. TRAP_SCE = 7 // siginfo.h:250:1:
  158. TRAP_SCX = 8 // siginfo.h:251:1:
  159. TRAP_TRACE = 2 // siginfo.h:245:1:
  160. T_ALIGNFLT = 7 // trap.h:49:1:
  161. T_ARITHTRAP = 2 // trap.h:44:1:
  162. T_ASTFLT = 3 // trap.h:45:1:
  163. T_BOUND = 11 // trap.h:53:1:
  164. T_BPTFLT = 1 // trap.h:43:1:
  165. T_DIVIDE = 8 // trap.h:50:1:
  166. T_DNA = 12 // trap.h:54:1:
  167. T_DOUBLEFLT = 13 // trap.h:55:1:
  168. T_FPOPFLT = 14 // trap.h:56:1:
  169. T_MCA = 18 // trap.h:60:1:
  170. T_NMI = 9 // trap.h:51:1:
  171. T_OFLOW = 10 // trap.h:52:1:
  172. T_PAGEFLT = 6 // trap.h:48:1:
  173. T_PRIVINFLT = 0 // trap.h:42:1:
  174. T_PROTFLT = 4 // trap.h:46:1:
  175. T_RESERVED = 20 // trap.h:62:1:
  176. T_SEGNPFLT = 16 // trap.h:58:1:
  177. T_STKFLT = 17 // trap.h:59:1:
  178. T_TRCTRAP = 5 // trap.h:47:1:
  179. T_TSSFLT = 15 // trap.h:57:1:
  180. T_USER = 0x100 // trap.h:65:1:
  181. T_XMM = 19 // trap.h:61:1:
  182. UINT16_MAX = 65535 // common_int_limits.h:59:1:
  183. UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
  184. UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
  185. UINT8_MAX = 255 // common_int_limits.h:58:1:
  186. UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
  187. UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
  188. UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
  189. UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
  190. UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
  191. UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
  192. UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
  193. UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
  194. UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
  195. UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
  196. WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
  197. WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
  198. WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
  199. WINT_MIN = -2147483648 // wchar_limits.h:44:1:
  200. X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
  201. X_AMD64_FRAME_REGS_H_ = 0 // frame_regs.h:4:1:
  202. X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
  203. X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
  204. X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
  205. X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
  206. X_AMD64_MCONTEXT_H_ = 0 // mcontext.h:33:1:
  207. X_AMD64_SIGNAL_H_ = 0 // signal.h:35:1:
  208. X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
  209. X_BIG_ENDIAN = 4321 // endian.h:44:1:
  210. X_BSD_INT16_T_ = 0 // types.h:65:1:
  211. X_BSD_INT32_T_ = 0 // types.h:75:1:
  212. X_BSD_INT64_T_ = 0 // types.h:85:1:
  213. X_BSD_INT8_T_ = 0 // types.h:55:1:
  214. X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
  215. X_BSD_UINT16_T_ = 0 // types.h:70:1:
  216. X_BSD_UINT32_T_ = 0 // types.h:80:1:
  217. X_BSD_UINT64_T_ = 0 // types.h:90:1:
  218. X_BSD_UINT8_T_ = 0 // types.h:60:1:
  219. X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
  220. X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
  221. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  222. X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
  223. X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
  224. X_LP64 = 1 // <predefined>:268:1:
  225. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  226. X_NSIG = 64 // signal.h:45:1:
  227. X_PDP_ENDIAN = 3412 // endian.h:45:1:
  228. X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
  229. X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
  230. X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
  231. X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
  232. X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
  233. X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
  234. X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
  235. X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
  236. X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
  237. X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
  238. X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
  239. X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
  240. X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
  241. X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
  242. X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
  243. X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
  244. X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
  245. X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
  246. X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
  247. X_QUAD_HIGHWORD = 1 // endian.h:84:1:
  248. X_QUAD_LOWWORD = 0 // endian.h:85:1:
  249. X_SIGNAL_H_ = 0 // signal.h:35:1:
  250. X_SIZE_T = 0 // types.h:279:1:
  251. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  252. X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
  253. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  254. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  255. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  256. X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
  257. X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
  258. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  259. X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
  260. X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
  261. X_SYS_SIGINFO_H_ = 0 // siginfo.h:33:1:
  262. X_SYS_SIGNAL_H_ = 0 // signal.h:40:1:
  263. X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
  264. X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
  265. X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1:
  266. X_SYS_TYPES_H_ = 0 // types.h:40:1:
  267. X_SYS_UCONTEXT_H_ = 0 // ucontext.h:33:1:
  268. X_UC_CLRSTACK = 0x00020000 // mcontext.h:83:1:
  269. X_UC_CPU = 0x04 // ucontext.h:58:1:
  270. X_UC_FPU = 0x08 // ucontext.h:59:1:
  271. X_UC_MD = 0x400f0020 // ucontext.h:60:1:
  272. X_UC_SETSTACK = 0x00010000 // mcontext.h:82:1:
  273. X_UC_SIGMASK = 0x01 // ucontext.h:56:1:
  274. X_UC_STACK = 0x02 // ucontext.h:57:1:
  275. X_UC_TLSBASE = 0x00080000 // mcontext.h:77:1:
  276. X_UC_UCONTEXT_ALIGN = -16 // mcontext.h:67:1:
  277. X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
  278. X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
  279. X_X86_64_TYPES_H_ = 0 // types.h:35:1:
  280. )
  281. // Get the "code" values
  282. // $NetBSD: trap.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $
  283. // $NetBSD: trap.h,v 1.2 2003/08/07 16:30:33 agc Exp $
  284. // -
  285. // Copyright (c) 1990 The Regents of the University of California.
  286. // All rights reserved.
  287. //
  288. // This code is derived from software contributed to Berkeley by
  289. // William Jolitz.
  290. //
  291. // Redistribution and use in source and binary forms, with or without
  292. // modification, are permitted provided that the following conditions
  293. // are met:
  294. // 1. Redistributions of source code must retain the above copyright
  295. // notice, this list of conditions and the following disclaimer.
  296. // 2. Redistributions in binary form must reproduce the above copyright
  297. // notice, this list of conditions and the following disclaimer in the
  298. // documentation and/or other materials provided with the distribution.
  299. // 3. Neither the name of the University nor the names of its contributors
  300. // may be used to endorse or promote products derived from this software
  301. // without specific prior written permission.
  302. //
  303. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  304. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  305. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  306. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  307. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  308. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  309. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  310. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  311. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  312. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  313. // SUCH DAMAGE.
  314. //
  315. // @(#)trap.h 5.4 (Berkeley) 5/9/91
  316. // Trap type values
  317. // also known in trap.c for name strings
  318. // Trap's coming from user mode
  319. // Flags kludged into the trap code
  320. // $NetBSD: mcontext.h,v 1.19 2018/02/15 15:53:56 kamil Exp $
  321. // -
  322. // Copyright (c) 1999 The NetBSD Foundation, Inc.
  323. // All rights reserved.
  324. //
  325. // This code is derived from software contributed to The NetBSD Foundation
  326. // by Klaus Klein.
  327. //
  328. // Redistribution and use in source and binary forms, with or without
  329. // modification, are permitted provided that the following conditions
  330. // are met:
  331. // 1. Redistributions of source code must retain the above copyright
  332. // notice, this list of conditions and the following disclaimer.
  333. // 2. Redistributions in binary form must reproduce the above copyright
  334. // notice, this list of conditions and the following disclaimer in the
  335. // documentation and/or other materials provided with the distribution.
  336. //
  337. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  338. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  339. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  340. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  341. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  342. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  343. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  344. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  345. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  346. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  347. // POSSIBILITY OF SUCH DAMAGE.
  348. // $NetBSD: frame_regs.h,v 1.7 2015/04/26 18:49:39 mrg Exp $
  349. // amd64 registers (and friends) ordered as in a trap/interrupt/syscall frame.
  350. // Also the indexes into the 'general register state' (__greg_t) passed to
  351. // userland.
  352. // Historically they were in the same order, but the order in the frames
  353. // has been changed to improve syscall efficiency.
  354. //
  355. // Notes:
  356. // 1) gdb (amd64nbsd-tdep.c) has a lookup table that assumes the __greg_t
  357. // ordering.
  358. // 2) src/lib/libc/arch/x86_64/gen/makecontext.c assumes that the first
  359. // 6 entries in the __greg_t array match the registers used to pass
  360. // function arguments.
  361. // 3) The 'struct reg' from machine/reg.h has to match __greg_t.
  362. // Since they are both arrays and indexed with the same tokens this
  363. // shouldn't be a problem, but is rather confusing.
  364. // This assumption is made in a lot of places!
  365. // 4) There might be other code out there that relies on the ordering.
  366. //
  367. // The first entries below match the registers used for syscall arguments
  368. // (%rcx is destroyed by the syscall instruction, the libc system call
  369. // stubs copy %rcx to %r10).
  370. // arg6-arg9 are copied from the user stack for system calls with more
  371. // than 6 args (SYS_MAXSYSARGS is 8, + 2 entries for SYS___SYSCALL).
  372. // General register state
  373. const ( /* mcontext.h:43:1: */
  374. X_REG_RDI = 0 /* tf_rdi */
  375. X_REG_RSI = 1 /* tf_rsi */
  376. X_REG_RDX = 2 /* tf_rdx */
  377. X_REG_R10 = 6 /* tf_r10 */
  378. X_REG_R8 = 4 /* tf_r8 */
  379. X_REG_R9 = 5 /* tf_r9 */
  380. X_REG_RCX = 3 /* tf_rcx */
  381. X_REG_R11 = 7 /* tf_r11 */
  382. X_REG_R12 = 8 /* tf_r12 */
  383. X_REG_R13 = 9 /* tf_r13 */
  384. X_REG_R14 = 10 /* tf_r14 */
  385. X_REG_R15 = 11 /* tf_r15 */
  386. X_REG_RBP = 12 /* tf_rbp */
  387. X_REG_RBX = 13 /* tf_rbx */
  388. X_REG_RAX = 14 /* tf_rax */
  389. X_REG_GS = 15 /* tf_gs */
  390. X_REG_FS = 16 /* tf_fs */
  391. X_REG_ES = 17 /* tf_es */
  392. X_REG_DS = 18 /* tf_ds */
  393. X_REG_TRAPNO = 19 /* Below portion defined in hardware */
  394. X_REG_ERR = 20 /* tf_err: Dummy inserted if not defined */
  395. X_REG_RIP = 21 /* tf_rip */
  396. X_REG_CS = 22 /* tf_cs */
  397. X_REG_RFLAGS = 23 /* These are pushed unconditionally on the x86-64 */
  398. X_REG_RSP = 24 /* tf_rsp */
  399. X_REG_SS = 25
  400. X_NGREG = 26
  401. )
  402. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  403. type Size_t = uint64 /* <builtin>:9:23 */
  404. type Wchar_t = int32 /* <builtin>:15:24 */
  405. type X__int128_t = struct {
  406. Flo int64
  407. Fhi int64
  408. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  409. type X__uint128_t = struct {
  410. Flo uint64
  411. Fhi uint64
  412. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  413. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  414. type X__float128 = float64 /* <builtin>:47:21 */
  415. // return true if value 'a' fits in type 't'
  416. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  417. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  418. // Public domain.
  419. //
  420. // NOTE: Do not protect this header against multiple inclusion. Doing
  421. // so can have subtle side-effects due to header file inclusion order
  422. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  423. // protect each CPP macro that we want to supply.
  424. // Feature-test macros are defined by several standards, and allow an
  425. // application to specify what symbols they want the system headers to
  426. // expose, and hence what standard they want them to conform to.
  427. // There are two classes of feature-test macros. The first class
  428. // specify complete standards, and if one of these is defined, header
  429. // files will try to conform to the relevant standard. They are:
  430. //
  431. // ANSI macros:
  432. // _ANSI_SOURCE ANSI C89
  433. //
  434. // POSIX macros:
  435. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  436. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  437. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  438. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  439. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  440. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  441. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  442. //
  443. // X/Open macros:
  444. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  445. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  446. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  447. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  448. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  449. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  450. //
  451. // NetBSD macros:
  452. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  453. //
  454. // If more than one of these "major" feature-test macros is defined,
  455. // then the set of facilities provided (and namespace used) is the
  456. // union of that specified by the relevant standards, and in case of
  457. // conflict, the earlier standard in the above list has precedence (so
  458. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  459. // of rename() that's used is the POSIX one). If none of the "major"
  460. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  461. //
  462. // There are also "minor" feature-test macros, which enable extra
  463. // functionality in addition to some base standard. They should be
  464. // defined along with one of the "major" macros. The "minor" macros
  465. // are:
  466. //
  467. // _REENTRANT
  468. // _ISOC99_SOURCE
  469. // _ISOC11_SOURCE
  470. // _LARGEFILE_SOURCE Large File Support
  471. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  472. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  473. // -
  474. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  475. // The Regents of the University of California. All rights reserved.
  476. // (c) UNIX System Laboratories, Inc.
  477. // All or some portions of this file are derived from material licensed
  478. // to the University of California by American Telephone and Telegraph
  479. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  480. // the permission of UNIX System Laboratories, Inc.
  481. //
  482. // Redistribution and use in source and binary forms, with or without
  483. // modification, are permitted provided that the following conditions
  484. // are met:
  485. // 1. Redistributions of source code must retain the above copyright
  486. // notice, this list of conditions and the following disclaimer.
  487. // 2. Redistributions in binary form must reproduce the above copyright
  488. // notice, this list of conditions and the following disclaimer in the
  489. // documentation and/or other materials provided with the distribution.
  490. // 3. Neither the name of the University nor the names of its contributors
  491. // may be used to endorse or promote products derived from this software
  492. // without specific prior written permission.
  493. //
  494. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  495. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  496. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  497. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  498. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  499. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  500. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  501. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  502. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  503. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  504. // SUCH DAMAGE.
  505. //
  506. // @(#)types.h 8.4 (Berkeley) 1/21/94
  507. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  508. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  509. // Public domain.
  510. //
  511. // NOTE: Do not protect this header against multiple inclusion. Doing
  512. // so can have subtle side-effects due to header file inclusion order
  513. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  514. // protect each CPP macro that we want to supply.
  515. // Feature-test macros are defined by several standards, and allow an
  516. // application to specify what symbols they want the system headers to
  517. // expose, and hence what standard they want them to conform to.
  518. // There are two classes of feature-test macros. The first class
  519. // specify complete standards, and if one of these is defined, header
  520. // files will try to conform to the relevant standard. They are:
  521. //
  522. // ANSI macros:
  523. // _ANSI_SOURCE ANSI C89
  524. //
  525. // POSIX macros:
  526. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  527. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  528. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  529. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  530. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  531. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  532. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  533. //
  534. // X/Open macros:
  535. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  536. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  537. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  538. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  539. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  540. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  541. //
  542. // NetBSD macros:
  543. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  544. //
  545. // If more than one of these "major" feature-test macros is defined,
  546. // then the set of facilities provided (and namespace used) is the
  547. // union of that specified by the relevant standards, and in case of
  548. // conflict, the earlier standard in the above list has precedence (so
  549. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  550. // of rename() that's used is the POSIX one). If none of the "major"
  551. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  552. //
  553. // There are also "minor" feature-test macros, which enable extra
  554. // functionality in addition to some base standard. They should be
  555. // defined along with one of the "major" macros. The "minor" macros
  556. // are:
  557. //
  558. // _REENTRANT
  559. // _ISOC99_SOURCE
  560. // _ISOC11_SOURCE
  561. // _LARGEFILE_SOURCE Large File Support
  562. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  563. // Machine type dependent parameters.
  564. // $NetBSD: types.h,v 1.60 2019/04/06 03:06:24 thorpej Exp $
  565. // -
  566. // Copyright (c) 1990 The Regents of the University of California.
  567. // All rights reserved.
  568. //
  569. // Redistribution and use in source and binary forms, with or without
  570. // modification, are permitted provided that the following conditions
  571. // are met:
  572. // 1. Redistributions of source code must retain the above copyright
  573. // notice, this list of conditions and the following disclaimer.
  574. // 2. Redistributions in binary form must reproduce the above copyright
  575. // notice, this list of conditions and the following disclaimer in the
  576. // documentation and/or other materials provided with the distribution.
  577. // 3. Neither the name of the University nor the names of its contributors
  578. // may be used to endorse or promote products derived from this software
  579. // without specific prior written permission.
  580. //
  581. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  582. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  583. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  584. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  585. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  586. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  587. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  588. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  589. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  590. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  591. // SUCH DAMAGE.
  592. //
  593. // @(#)types.h 7.5 (Berkeley) 3/9/91
  594. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  595. // * Copyright (c) 1991, 1993
  596. // The Regents of the University of California. All rights reserved.
  597. //
  598. // This code is derived from software contributed to Berkeley by
  599. // Berkeley Software Design, Inc.
  600. //
  601. // Redistribution and use in source and binary forms, with or without
  602. // modification, are permitted provided that the following conditions
  603. // are met:
  604. // 1. Redistributions of source code must retain the above copyright
  605. // notice, this list of conditions and the following disclaimer.
  606. // 2. Redistributions in binary form must reproduce the above copyright
  607. // notice, this list of conditions and the following disclaimer in the
  608. // documentation and/or other materials provided with the distribution.
  609. // 3. Neither the name of the University nor the names of its contributors
  610. // may be used to endorse or promote products derived from this software
  611. // without specific prior written permission.
  612. //
  613. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  614. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  615. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  616. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  617. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  618. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  619. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  620. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  621. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  622. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  623. // SUCH DAMAGE.
  624. //
  625. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  626. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  627. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  628. // Public domain.
  629. //
  630. // NOTE: Do not protect this header against multiple inclusion. Doing
  631. // so can have subtle side-effects due to header file inclusion order
  632. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  633. // protect each CPP macro that we want to supply.
  634. // Feature-test macros are defined by several standards, and allow an
  635. // application to specify what symbols they want the system headers to
  636. // expose, and hence what standard they want them to conform to.
  637. // There are two classes of feature-test macros. The first class
  638. // specify complete standards, and if one of these is defined, header
  639. // files will try to conform to the relevant standard. They are:
  640. //
  641. // ANSI macros:
  642. // _ANSI_SOURCE ANSI C89
  643. //
  644. // POSIX macros:
  645. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  646. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  647. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  648. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  649. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  650. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  651. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  652. //
  653. // X/Open macros:
  654. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  655. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  656. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  657. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  658. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  659. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  660. //
  661. // NetBSD macros:
  662. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  663. //
  664. // If more than one of these "major" feature-test macros is defined,
  665. // then the set of facilities provided (and namespace used) is the
  666. // union of that specified by the relevant standards, and in case of
  667. // conflict, the earlier standard in the above list has precedence (so
  668. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  669. // of rename() that's used is the POSIX one). If none of the "major"
  670. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  671. //
  672. // There are also "minor" feature-test macros, which enable extra
  673. // functionality in addition to some base standard. They should be
  674. // defined along with one of the "major" macros. The "minor" macros
  675. // are:
  676. //
  677. // _REENTRANT
  678. // _ISOC99_SOURCE
  679. // _ISOC11_SOURCE
  680. // _LARGEFILE_SOURCE Large File Support
  681. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  682. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  683. // -
  684. // Copyright (c) 1990 The Regents of the University of California.
  685. // All rights reserved.
  686. //
  687. // Redistribution and use in source and binary forms, with or without
  688. // modification, are permitted provided that the following conditions
  689. // are met:
  690. // 1. Redistributions of source code must retain the above copyright
  691. // notice, this list of conditions and the following disclaimer.
  692. // 2. Redistributions in binary form must reproduce the above copyright
  693. // notice, this list of conditions and the following disclaimer in the
  694. // documentation and/or other materials provided with the distribution.
  695. // 3. Neither the name of the University nor the names of its contributors
  696. // may be used to endorse or promote products derived from this software
  697. // without specific prior written permission.
  698. //
  699. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  700. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  701. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  702. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  703. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  704. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  705. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  706. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  707. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  708. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  709. // SUCH DAMAGE.
  710. //
  711. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  712. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  713. // -
  714. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  715. // All rights reserved.
  716. //
  717. // This code is derived from software contributed to The NetBSD Foundation
  718. // by Joerg Sonnenberger.
  719. //
  720. // Redistribution and use in source and binary forms, with or without
  721. // modification, are permitted provided that the following conditions
  722. // are met:
  723. // 1. Redistributions of source code must retain the above copyright
  724. // notice, this list of conditions and the following disclaimer.
  725. // 2. Redistributions in binary form must reproduce the above copyright
  726. // notice, this list of conditions and the following disclaimer in the
  727. // documentation and/or other materials provided with the distribution.
  728. //
  729. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  730. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  731. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  732. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  733. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  734. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  735. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  736. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  737. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  738. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  739. // POSSIBILITY OF SUCH DAMAGE.
  740. // 7.18.1 Integer types
  741. // 7.18.1.1 Exact-width integer types
  742. type X__int8_t = int8 /* common_int_types.h:45:27 */
  743. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  744. type X__int16_t = int16 /* common_int_types.h:47:27 */
  745. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  746. type X__int32_t = int32 /* common_int_types.h:49:27 */
  747. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  748. type X__int64_t = int64 /* common_int_types.h:51:27 */
  749. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  750. // 7.18.1.4 Integer types capable of holding object pointers
  751. type X__intptr_t = int64 /* common_int_types.h:58:27 */
  752. type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
  753. type X__register_t = int64 /* types.h:68:19 */
  754. type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
  755. // __cpu_simple_lock_t used to be a full word.
  756. // The amd64 does not have strict alignment requirements.
  757. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  758. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  759. // -
  760. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  761. // All rights reserved.
  762. //
  763. // This code is derived from software contributed to The NetBSD Foundation
  764. // by Matt Thomas of 3am Software Foundry.
  765. //
  766. // Redistribution and use in source and binary forms, with or without
  767. // modification, are permitted provided that the following conditions
  768. // are met:
  769. // 1. Redistributions of source code must retain the above copyright
  770. // notice, this list of conditions and the following disclaimer.
  771. // 2. Redistributions in binary form must reproduce the above copyright
  772. // notice, this list of conditions and the following disclaimer in the
  773. // documentation and/or other materials provided with the distribution.
  774. //
  775. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  776. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  777. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  778. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  779. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  780. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  781. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  782. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  783. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  784. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  785. // POSSIBILITY OF SUCH DAMAGE.
  786. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  787. // * Copyright (c) 1991, 1993
  788. // The Regents of the University of California. All rights reserved.
  789. //
  790. // This code is derived from software contributed to Berkeley by
  791. // Berkeley Software Design, Inc.
  792. //
  793. // Redistribution and use in source and binary forms, with or without
  794. // modification, are permitted provided that the following conditions
  795. // are met:
  796. // 1. Redistributions of source code must retain the above copyright
  797. // notice, this list of conditions and the following disclaimer.
  798. // 2. Redistributions in binary form must reproduce the above copyright
  799. // notice, this list of conditions and the following disclaimer in the
  800. // documentation and/or other materials provided with the distribution.
  801. // 3. Neither the name of the University nor the names of its contributors
  802. // may be used to endorse or promote products derived from this software
  803. // without specific prior written permission.
  804. //
  805. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  806. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  807. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  808. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  809. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  810. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  811. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  812. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  813. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  814. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  815. // SUCH DAMAGE.
  816. //
  817. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  818. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  819. // -
  820. // Copyright (c) 1990 The Regents of the University of California.
  821. // All rights reserved.
  822. //
  823. // Redistribution and use in source and binary forms, with or without
  824. // modification, are permitted provided that the following conditions
  825. // are met:
  826. // 1. Redistributions of source code must retain the above copyright
  827. // notice, this list of conditions and the following disclaimer.
  828. // 2. Redistributions in binary form must reproduce the above copyright
  829. // notice, this list of conditions and the following disclaimer in the
  830. // documentation and/or other materials provided with the distribution.
  831. // 3. Neither the name of the University nor the names of its contributors
  832. // may be used to endorse or promote products derived from this software
  833. // without specific prior written permission.
  834. //
  835. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  836. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  837. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  838. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  839. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  840. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  841. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  842. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  843. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  844. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  845. // SUCH DAMAGE.
  846. //
  847. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  848. // Types which are fundamental to the implementation and may appear in
  849. // more than one standard header are defined here. Standard headers
  850. // then use:
  851. // #ifdef _BSD_SIZE_T_
  852. // typedef _BSD_SIZE_T_ size_t;
  853. // #undef _BSD_SIZE_T_
  854. // #endif
  855. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  856. // -
  857. // Copyright (c) 1990 The Regents of the University of California.
  858. // All rights reserved.
  859. //
  860. // Redistribution and use in source and binary forms, with or without
  861. // modification, are permitted provided that the following conditions
  862. // are met:
  863. // 1. Redistributions of source code must retain the above copyright
  864. // notice, this list of conditions and the following disclaimer.
  865. // 2. Redistributions in binary form must reproduce the above copyright
  866. // notice, this list of conditions and the following disclaimer in the
  867. // documentation and/or other materials provided with the distribution.
  868. // 3. Neither the name of the University nor the names of its contributors
  869. // may be used to endorse or promote products derived from this software
  870. // without specific prior written permission.
  871. //
  872. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  873. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  874. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  875. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  876. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  877. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  878. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  879. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  880. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  881. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  882. // SUCH DAMAGE.
  883. //
  884. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  885. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  886. // -
  887. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  888. // All rights reserved.
  889. //
  890. // This code is derived from software contributed to The NetBSD Foundation
  891. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  892. //
  893. // Redistribution and use in source and binary forms, with or without
  894. // modification, are permitted provided that the following conditions
  895. // are met:
  896. // 1. Redistributions of source code must retain the above copyright
  897. // notice, this list of conditions and the following disclaimer.
  898. // 2. Redistributions in binary form must reproduce the above copyright
  899. // notice, this list of conditions and the following disclaimer in the
  900. // documentation and/or other materials provided with the distribution.
  901. //
  902. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  903. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  904. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  905. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  906. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  907. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  908. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  909. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  910. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  911. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  912. // POSSIBILITY OF SUCH DAMAGE.
  913. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  914. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  915. // -
  916. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  917. // All rights reserved.
  918. //
  919. // This code is derived from software contributed to The NetBSD Foundation
  920. // by Matt Thomas of 3am Software Foundry.
  921. //
  922. // Redistribution and use in source and binary forms, with or without
  923. // modification, are permitted provided that the following conditions
  924. // are met:
  925. // 1. Redistributions of source code must retain the above copyright
  926. // notice, this list of conditions and the following disclaimer.
  927. // 2. Redistributions in binary form must reproduce the above copyright
  928. // notice, this list of conditions and the following disclaimer in the
  929. // documentation and/or other materials provided with the distribution.
  930. //
  931. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  932. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  933. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  934. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  935. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  936. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  937. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  938. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  939. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  940. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  941. // POSSIBILITY OF SUCH DAMAGE.
  942. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  943. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  944. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  945. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  946. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  947. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  948. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  949. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  950. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  951. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  952. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  953. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  954. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  955. type X__wctype_t = uintptr /* ansi.h:54:31 */
  956. // mbstate_t is an opaque object to keep conversion state, during multibyte
  957. // stream conversions. The content must not be referenced by user programs.
  958. type X__mbstate_t = struct {
  959. F__mbstateL X__int64_t
  960. F__ccgo_pad1 [120]byte
  961. } /* ansi.h:63:3 */
  962. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  963. type Int8_t = X__int8_t /* types.h:54:18 */
  964. type Uint8_t = X__uint8_t /* types.h:59:19 */
  965. type Int16_t = X__int16_t /* types.h:64:19 */
  966. type Uint16_t = X__uint16_t /* types.h:69:20 */
  967. type Int32_t = X__int32_t /* types.h:74:19 */
  968. type Uint32_t = X__uint32_t /* types.h:79:20 */
  969. type Int64_t = X__int64_t /* types.h:84:19 */
  970. type Uint64_t = X__uint64_t /* types.h:89:20 */
  971. type U_int8_t = Uint8_t /* types.h:93:18 */
  972. type U_int16_t = Uint16_t /* types.h:94:18 */
  973. type U_int32_t = Uint32_t /* types.h:95:18 */
  974. type U_int64_t = Uint64_t /* types.h:96:18 */
  975. // $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
  976. // $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
  977. // Copyright (c) 1987, 1991, 1993
  978. // The Regents of the University of California. All rights reserved.
  979. //
  980. // Redistribution and use in source and binary forms, with or without
  981. // modification, are permitted provided that the following conditions
  982. // are met:
  983. // 1. Redistributions of source code must retain the above copyright
  984. // notice, this list of conditions and the following disclaimer.
  985. // 2. Redistributions in binary form must reproduce the above copyright
  986. // notice, this list of conditions and the following disclaimer in the
  987. // documentation and/or other materials provided with the distribution.
  988. // 3. Neither the name of the University nor the names of its contributors
  989. // may be used to endorse or promote products derived from this software
  990. // without specific prior written permission.
  991. //
  992. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  993. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  994. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  995. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  996. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  997. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  998. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  999. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1000. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1001. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1002. // SUCH DAMAGE.
  1003. //
  1004. // @(#)endian.h 8.1 (Berkeley) 6/11/93
  1005. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1006. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1007. // Public domain.
  1008. //
  1009. // NOTE: Do not protect this header against multiple inclusion. Doing
  1010. // so can have subtle side-effects due to header file inclusion order
  1011. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1012. // protect each CPP macro that we want to supply.
  1013. // Feature-test macros are defined by several standards, and allow an
  1014. // application to specify what symbols they want the system headers to
  1015. // expose, and hence what standard they want them to conform to.
  1016. // There are two classes of feature-test macros. The first class
  1017. // specify complete standards, and if one of these is defined, header
  1018. // files will try to conform to the relevant standard. They are:
  1019. //
  1020. // ANSI macros:
  1021. // _ANSI_SOURCE ANSI C89
  1022. //
  1023. // POSIX macros:
  1024. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1025. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1026. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1027. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1028. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1029. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1030. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1031. //
  1032. // X/Open macros:
  1033. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1034. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1035. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1036. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1037. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1038. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1039. //
  1040. // NetBSD macros:
  1041. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1042. //
  1043. // If more than one of these "major" feature-test macros is defined,
  1044. // then the set of facilities provided (and namespace used) is the
  1045. // union of that specified by the relevant standards, and in case of
  1046. // conflict, the earlier standard in the above list has precedence (so
  1047. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1048. // of rename() that's used is the POSIX one). If none of the "major"
  1049. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1050. //
  1051. // There are also "minor" feature-test macros, which enable extra
  1052. // functionality in addition to some base standard. They should be
  1053. // defined along with one of the "major" macros. The "minor" macros
  1054. // are:
  1055. //
  1056. // _REENTRANT
  1057. // _ISOC99_SOURCE
  1058. // _ISOC11_SOURCE
  1059. // _LARGEFILE_SOURCE Large File Support
  1060. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1061. // Definitions for byte order, according to byte significance from low
  1062. // address to high.
  1063. // C-family endian-ness definitions
  1064. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  1065. // -
  1066. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  1067. // All rights reserved.
  1068. //
  1069. // This code is derived from software contributed to The NetBSD Foundation
  1070. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  1071. //
  1072. // Redistribution and use in source and binary forms, with or without
  1073. // modification, are permitted provided that the following conditions
  1074. // are met:
  1075. // 1. Redistributions of source code must retain the above copyright
  1076. // notice, this list of conditions and the following disclaimer.
  1077. // 2. Redistributions in binary form must reproduce the above copyright
  1078. // notice, this list of conditions and the following disclaimer in the
  1079. // documentation and/or other materials provided with the distribution.
  1080. //
  1081. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1082. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1083. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1084. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1085. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1086. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1087. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1088. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1089. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1090. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1091. // POSSIBILITY OF SUCH DAMAGE.
  1092. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1093. // * Copyright (c) 1991, 1993
  1094. // The Regents of the University of California. All rights reserved.
  1095. //
  1096. // This code is derived from software contributed to Berkeley by
  1097. // Berkeley Software Design, Inc.
  1098. //
  1099. // Redistribution and use in source and binary forms, with or without
  1100. // modification, are permitted provided that the following conditions
  1101. // are met:
  1102. // 1. Redistributions of source code must retain the above copyright
  1103. // notice, this list of conditions and the following disclaimer.
  1104. // 2. Redistributions in binary form must reproduce the above copyright
  1105. // notice, this list of conditions and the following disclaimer in the
  1106. // documentation and/or other materials provided with the distribution.
  1107. // 3. Neither the name of the University nor the names of its contributors
  1108. // may be used to endorse or promote products derived from this software
  1109. // without specific prior written permission.
  1110. //
  1111. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1112. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1113. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1114. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1115. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1116. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1117. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1118. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1119. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1120. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1121. // SUCH DAMAGE.
  1122. //
  1123. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1124. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  1125. // -
  1126. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1127. // The Regents of the University of California. All rights reserved.
  1128. // (c) UNIX System Laboratories, Inc.
  1129. // All or some portions of this file are derived from material licensed
  1130. // to the University of California by American Telephone and Telegraph
  1131. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1132. // the permission of UNIX System Laboratories, Inc.
  1133. //
  1134. // Redistribution and use in source and binary forms, with or without
  1135. // modification, are permitted provided that the following conditions
  1136. // are met:
  1137. // 1. Redistributions of source code must retain the above copyright
  1138. // notice, this list of conditions and the following disclaimer.
  1139. // 2. Redistributions in binary form must reproduce the above copyright
  1140. // notice, this list of conditions and the following disclaimer in the
  1141. // documentation and/or other materials provided with the distribution.
  1142. // 3. Neither the name of the University nor the names of its contributors
  1143. // may be used to endorse or promote products derived from this software
  1144. // without specific prior written permission.
  1145. //
  1146. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1147. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1148. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1149. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1150. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1151. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1152. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1153. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1154. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1155. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1156. // SUCH DAMAGE.
  1157. //
  1158. // @(#)types.h 8.4 (Berkeley) 1/21/94
  1159. type In_addr_t = X__in_addr_t /* endian.h:58:21 */
  1160. type In_port_t = X__in_port_t /* endian.h:63:21 */
  1161. // $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
  1162. // Written by Manuel Bouyer. Public domain
  1163. // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  1164. // -
  1165. // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  1166. // All rights reserved.
  1167. //
  1168. // This code is derived from software contributed to The NetBSD Foundation
  1169. // by Klaus Klein.
  1170. //
  1171. // Redistribution and use in source and binary forms, with or without
  1172. // modification, are permitted provided that the following conditions
  1173. // are met:
  1174. // 1. Redistributions of source code must retain the above copyright
  1175. // notice, this list of conditions and the following disclaimer.
  1176. // 2. Redistributions in binary form must reproduce the above copyright
  1177. // notice, this list of conditions and the following disclaimer in the
  1178. // documentation and/or other materials provided with the distribution.
  1179. //
  1180. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1181. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1182. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1183. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1184. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1185. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1186. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1187. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1188. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1189. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1190. // POSSIBILITY OF SUCH DAMAGE.
  1191. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1192. // * Copyright (c) 1991, 1993
  1193. // The Regents of the University of California. All rights reserved.
  1194. //
  1195. // This code is derived from software contributed to Berkeley by
  1196. // Berkeley Software Design, Inc.
  1197. //
  1198. // Redistribution and use in source and binary forms, with or without
  1199. // modification, are permitted provided that the following conditions
  1200. // are met:
  1201. // 1. Redistributions of source code must retain the above copyright
  1202. // notice, this list of conditions and the following disclaimer.
  1203. // 2. Redistributions in binary form must reproduce the above copyright
  1204. // notice, this list of conditions and the following disclaimer in the
  1205. // documentation and/or other materials provided with the distribution.
  1206. // 3. Neither the name of the University nor the names of its contributors
  1207. // may be used to endorse or promote products derived from this software
  1208. // without specific prior written permission.
  1209. //
  1210. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1211. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1212. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1213. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1214. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1215. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1216. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1217. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1218. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1219. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1220. // SUCH DAMAGE.
  1221. //
  1222. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1223. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1224. // -
  1225. // Copyright (c) 1990 The Regents of the University of California.
  1226. // All rights reserved.
  1227. //
  1228. // Redistribution and use in source and binary forms, with or without
  1229. // modification, are permitted provided that the following conditions
  1230. // are met:
  1231. // 1. Redistributions of source code must retain the above copyright
  1232. // notice, this list of conditions and the following disclaimer.
  1233. // 2. Redistributions in binary form must reproduce the above copyright
  1234. // notice, this list of conditions and the following disclaimer in the
  1235. // documentation and/or other materials provided with the distribution.
  1236. // 3. Neither the name of the University nor the names of its contributors
  1237. // may be used to endorse or promote products derived from this software
  1238. // without specific prior written permission.
  1239. //
  1240. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1241. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1242. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1243. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1244. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1245. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1246. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1247. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1248. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1249. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1250. // SUCH DAMAGE.
  1251. //
  1252. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  1253. type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  1254. type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  1255. // $NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
  1256. // -
  1257. // Copyright (c) 2001 The NetBSD Foundation, Inc.
  1258. // All rights reserved.
  1259. //
  1260. // This code is derived from software contributed to The NetBSD Foundation
  1261. // by Klaus Klein.
  1262. //
  1263. // Redistribution and use in source and binary forms, with or without
  1264. // modification, are permitted provided that the following conditions
  1265. // are met:
  1266. // 1. Redistributions of source code must retain the above copyright
  1267. // notice, this list of conditions and the following disclaimer.
  1268. // 2. Redistributions in binary form must reproduce the above copyright
  1269. // notice, this list of conditions and the following disclaimer in the
  1270. // documentation and/or other materials provided with the distribution.
  1271. //
  1272. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1273. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1274. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1275. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1276. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1277. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1278. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1279. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1280. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1281. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1282. // POSSIBILITY OF SUCH DAMAGE.
  1283. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  1284. // -
  1285. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1286. // All rights reserved.
  1287. //
  1288. // This code is derived from software contributed to The NetBSD Foundation
  1289. // by Joerg Sonnenberger.
  1290. //
  1291. // Redistribution and use in source and binary forms, with or without
  1292. // modification, are permitted provided that the following conditions
  1293. // are met:
  1294. // 1. Redistributions of source code must retain the above copyright
  1295. // notice, this list of conditions and the following disclaimer.
  1296. // 2. Redistributions in binary form must reproduce the above copyright
  1297. // notice, this list of conditions and the following disclaimer in the
  1298. // documentation and/or other materials provided with the distribution.
  1299. //
  1300. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1301. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1302. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1303. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1304. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1305. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1306. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1307. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1308. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1309. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1310. // POSSIBILITY OF SUCH DAMAGE.
  1311. // 7.18.1 Integer types
  1312. // 7.18.1.2 Minimum-width integer types
  1313. type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
  1314. type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
  1315. type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
  1316. type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  1317. type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
  1318. type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  1319. type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
  1320. type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  1321. // 7.18.1.3 Fastest minimum-width integer types
  1322. type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
  1323. type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
  1324. type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
  1325. type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  1326. type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
  1327. type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  1328. type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
  1329. type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  1330. // 7.18.1.5 Greatest-width integer types
  1331. type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
  1332. type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  1333. type U_char = uint8 /* types.h:101:23 */
  1334. type U_short = uint16 /* types.h:102:24 */
  1335. type U_int = uint32 /* types.h:103:22 */
  1336. type U_long = uint64 /* types.h:104:23 */
  1337. type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
  1338. type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  1339. type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
  1340. type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
  1341. type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  1342. type Quad_t = Int64_t /* types.h:113:18 */
  1343. type Qaddr_t = uintptr /* types.h:114:16 */
  1344. // The types longlong_t and u_longlong_t exist for use with the
  1345. // Sun-derived XDR routines involving these types, and their usage
  1346. // in other contexts is discouraged. Further note that these types
  1347. // may not be equivalent to "long long" and "unsigned long long",
  1348. // they are only guaranteed to be signed and unsigned 64-bit types
  1349. // respectively. Portable programs that need 64-bit types should use
  1350. // the C99 types int64_t and uint64_t instead.
  1351. type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
  1352. type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  1353. type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
  1354. type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  1355. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  1356. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  1357. // We don't and shouldn't use caddr_t in the kernel anymore
  1358. type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  1359. type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  1360. type Dev_t = Uint64_t /* types.h:157:18 */ // device number
  1361. type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  1362. type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  1363. type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
  1364. type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  1365. type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
  1366. type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  1367. type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  1368. type Off_t = X__off_t /* types.h:177:18 */ // file offset
  1369. type Pid_t = X__pid_t /* types.h:182:18 */ // process id
  1370. type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  1371. type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  1372. type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  1373. type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  1374. type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  1375. type Mqd_t = int32 /* types.h:195:14 */
  1376. type Cpuid_t = uint64 /* types.h:197:23 */
  1377. type Psetid_t = int32 /* types.h:199:14 */
  1378. type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  1379. // Major, minor numbers, dev_t's.
  1380. type X__devmajor_t = Int32_t /* types.h:255:17 */
  1381. type X__devminor_t = Int32_t /* types.h:255:31 */
  1382. type Clock_t = uint32 /* types.h:268:24 */
  1383. type Ssize_t = int64 /* types.h:284:24 */
  1384. type Time_t = X__int64_t /* types.h:289:23 */
  1385. type Clockid_t = int32 /* types.h:294:26 */
  1386. type Timer_t = int32 /* types.h:299:24 */
  1387. type Suseconds_t = int32 /* types.h:304:27 */
  1388. type Useconds_t = uint32 /* types.h:309:26 */
  1389. // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1390. // -
  1391. // Copyright (c) 1992, 1993
  1392. // The Regents of the University of California. All rights reserved.
  1393. //
  1394. // Redistribution and use in source and binary forms, with or without
  1395. // modification, are permitted provided that the following conditions
  1396. // are met:
  1397. // 1. Redistributions of source code must retain the above copyright
  1398. // notice, this list of conditions and the following disclaimer.
  1399. // 2. Redistributions in binary form must reproduce the above copyright
  1400. // notice, this list of conditions and the following disclaimer in the
  1401. // documentation and/or other materials provided with the distribution.
  1402. // 3. Neither the name of the University nor the names of its contributors
  1403. // may be used to endorse or promote products derived from this software
  1404. // without specific prior written permission.
  1405. //
  1406. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1407. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1408. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1409. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1410. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1411. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1412. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1413. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1414. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1415. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1416. // SUCH DAMAGE.
  1417. //
  1418. // from: @(#)types.h 8.4 (Berkeley) 1/21/94
  1419. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1420. // * Copyright (c) 1991, 1993
  1421. // The Regents of the University of California. All rights reserved.
  1422. //
  1423. // This code is derived from software contributed to Berkeley by
  1424. // Berkeley Software Design, Inc.
  1425. //
  1426. // Redistribution and use in source and binary forms, with or without
  1427. // modification, are permitted provided that the following conditions
  1428. // are met:
  1429. // 1. Redistributions of source code must retain the above copyright
  1430. // notice, this list of conditions and the following disclaimer.
  1431. // 2. Redistributions in binary form must reproduce the above copyright
  1432. // notice, this list of conditions and the following disclaimer in the
  1433. // documentation and/or other materials provided with the distribution.
  1434. // 3. Neither the name of the University nor the names of its contributors
  1435. // may be used to endorse or promote products derived from this software
  1436. // without specific prior written permission.
  1437. //
  1438. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1439. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1440. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1441. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1442. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1443. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1444. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1445. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1446. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1447. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1448. // SUCH DAMAGE.
  1449. //
  1450. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1451. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1452. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1453. // Public domain.
  1454. //
  1455. // NOTE: Do not protect this header against multiple inclusion. Doing
  1456. // so can have subtle side-effects due to header file inclusion order
  1457. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1458. // protect each CPP macro that we want to supply.
  1459. // Feature-test macros are defined by several standards, and allow an
  1460. // application to specify what symbols they want the system headers to
  1461. // expose, and hence what standard they want them to conform to.
  1462. // There are two classes of feature-test macros. The first class
  1463. // specify complete standards, and if one of these is defined, header
  1464. // files will try to conform to the relevant standard. They are:
  1465. //
  1466. // ANSI macros:
  1467. // _ANSI_SOURCE ANSI C89
  1468. //
  1469. // POSIX macros:
  1470. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1471. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1472. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1473. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1474. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1475. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1476. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1477. //
  1478. // X/Open macros:
  1479. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1480. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1481. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1482. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1483. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1484. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1485. //
  1486. // NetBSD macros:
  1487. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1488. //
  1489. // If more than one of these "major" feature-test macros is defined,
  1490. // then the set of facilities provided (and namespace used) is the
  1491. // union of that specified by the relevant standards, and in case of
  1492. // conflict, the earlier standard in the above list has precedence (so
  1493. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1494. // of rename() that's used is the POSIX one). If none of the "major"
  1495. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1496. //
  1497. // There are also "minor" feature-test macros, which enable extra
  1498. // functionality in addition to some base standard. They should be
  1499. // defined along with one of the "major" macros. The "minor" macros
  1500. // are:
  1501. //
  1502. // _REENTRANT
  1503. // _ISOC99_SOURCE
  1504. // _ISOC11_SOURCE
  1505. // _LARGEFILE_SOURCE Large File Support
  1506. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1507. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1508. // -
  1509. // Copyright (c) 1990 The Regents of the University of California.
  1510. // All rights reserved.
  1511. //
  1512. // Redistribution and use in source and binary forms, with or without
  1513. // modification, are permitted provided that the following conditions
  1514. // are met:
  1515. // 1. Redistributions of source code must retain the above copyright
  1516. // notice, this list of conditions and the following disclaimer.
  1517. // 2. Redistributions in binary form must reproduce the above copyright
  1518. // notice, this list of conditions and the following disclaimer in the
  1519. // documentation and/or other materials provided with the distribution.
  1520. // 3. Neither the name of the University nor the names of its contributors
  1521. // may be used to endorse or promote products derived from this software
  1522. // without specific prior written permission.
  1523. //
  1524. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1525. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1526. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1527. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1528. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1529. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1530. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1531. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1532. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1533. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1534. // SUCH DAMAGE.
  1535. //
  1536. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  1537. // Implementation dependent defines, hidden from user space.
  1538. // POSIX does not specify them.
  1539. type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1540. // 32 = 2 ^ 5
  1541. // Select uses bit fields of file descriptors. These macros manipulate
  1542. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1543. type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1544. // 32 = 2 ^ 5
  1545. // Select uses bit fields of file descriptors. These macros manipulate
  1546. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1547. type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1548. // Expose our internals if we are not required to hide them.
  1549. type Kauth_cred_t = uintptr /* types.h:318:27 */
  1550. type Pri_t = int32 /* types.h:320:13 */
  1551. // $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1552. // -
  1553. // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1554. // All rights reserved.
  1555. //
  1556. // This code is derived from software contributed to The NetBSD Foundation
  1557. // by Nathan J. Williams.
  1558. //
  1559. // Redistribution and use in source and binary forms, with or without
  1560. // modification, are permitted provided that the following conditions
  1561. // are met:
  1562. // 1. Redistributions of source code must retain the above copyright
  1563. // notice, this list of conditions and the following disclaimer.
  1564. // 2. Redistributions in binary form must reproduce the above copyright
  1565. // notice, this list of conditions and the following disclaimer in the
  1566. // documentation and/or other materials provided with the distribution.
  1567. //
  1568. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1569. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1570. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1571. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1572. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1573. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1574. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1575. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1576. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1577. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1578. // POSSIBILITY OF SUCH DAMAGE.
  1579. // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1580. // POSIX spinlock object.
  1581. //
  1582. // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1583. // This does not work for volatile types. Since C++ does not touch the guts
  1584. // of those types, we do not include volatile in the C++ definitions.
  1585. type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1586. type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */
  1587. // Copied from PTQ_HEAD in pthread_queue.h
  1588. type Pthread_queue_struct_t = struct {
  1589. Fptqh_first uintptr
  1590. Fptqh_last uintptr
  1591. } /* pthread_types.h:61:1 */
  1592. type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1593. type X__pthread_attr_st = struct {
  1594. Fpta_magic uint32
  1595. Fpta_flags int32
  1596. Fpta_private uintptr
  1597. } /* pthread_types.h:65:1 */
  1598. type X__pthread_mutex_st = struct {
  1599. Fptm_magic uint32
  1600. Fptm_errorcheck X__pthread_spin_t
  1601. Fptm_pad1 [3]Uint8_t
  1602. F__8 struct{ Fptm_ceiling uint8 }
  1603. Fptm_pad2 [3]Uint8_t
  1604. F__ccgo_pad1 [4]byte
  1605. Fptm_owner Pthread_t
  1606. Fptm_waiters uintptr
  1607. Fptm_recursed uint32
  1608. F__ccgo_pad2 [4]byte
  1609. Fptm_spare2 uintptr
  1610. } /* pthread_types.h:66:1 */
  1611. type X__pthread_mutexattr_st = struct {
  1612. Fptma_magic uint32
  1613. F__ccgo_pad1 [4]byte
  1614. Fptma_private uintptr
  1615. } /* pthread_types.h:67:1 */
  1616. type X__pthread_cond_st = struct {
  1617. Fptc_magic uint32
  1618. Fptc_lock X__pthread_spin_t
  1619. F__ccgo_pad1 [3]byte
  1620. Fptc_waiters Pthread_queue_t
  1621. Fptc_mutex uintptr
  1622. Fptc_private uintptr
  1623. } /* pthread_types.h:68:1 */
  1624. type X__pthread_condattr_st = struct {
  1625. Fptca_magic uint32
  1626. F__ccgo_pad1 [4]byte
  1627. Fptca_private uintptr
  1628. } /* pthread_types.h:69:1 */
  1629. type X__pthread_rwlock_st = struct {
  1630. Fptr_magic uint32
  1631. Fptr_interlock X__pthread_spin_t
  1632. F__ccgo_pad1 [3]byte
  1633. Fptr_rblocked Pthread_queue_t
  1634. Fptr_wblocked Pthread_queue_t
  1635. Fptr_nreaders uint32
  1636. F__ccgo_pad2 [4]byte
  1637. Fptr_owner Pthread_t
  1638. Fptr_private uintptr
  1639. } /* pthread_types.h:71:1 */
  1640. type X__pthread_rwlockattr_st = struct {
  1641. Fptra_magic uint32
  1642. F__ccgo_pad1 [4]byte
  1643. Fptra_private uintptr
  1644. } /* pthread_types.h:72:1 */
  1645. type X__pthread_barrier_st = struct {
  1646. Fptb_magic uint32
  1647. Fptb_lock Pthread_spin_t
  1648. F__ccgo_pad1 [3]byte
  1649. Fptb_waiters Pthread_queue_t
  1650. Fptb_initcount uint32
  1651. Fptb_curcount uint32
  1652. Fptb_generation uint32
  1653. F__ccgo_pad2 [4]byte
  1654. Fptb_private uintptr
  1655. } /* pthread_types.h:73:1 */
  1656. type X__pthread_barrierattr_st = struct {
  1657. Fptba_magic uint32
  1658. F__ccgo_pad1 [4]byte
  1659. Fptba_private uintptr
  1660. } /* pthread_types.h:74:1 */
  1661. type Pthread_t = uintptr /* pthread_types.h:76:29 */
  1662. type Pthread_attr_t = X__pthread_attr_st /* pthread_types.h:77:34 */
  1663. type Pthread_mutex_t = X__pthread_mutex_st /* pthread_types.h:78:35 */
  1664. type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1665. type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
  1666. type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
  1667. type X__pthread_once_st = struct {
  1668. Fpto_mutex Pthread_mutex_t
  1669. Fpto_done int32
  1670. F__ccgo_pad1 [4]byte
  1671. } /* pthread_types.h:82:9 */
  1672. type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1673. type X__pthread_spinlock_st = struct {
  1674. Fpts_magic uint32
  1675. Fpts_spin X__pthread_spin_t
  1676. F__ccgo_pad1 [3]byte
  1677. Fpts_flags int32
  1678. } /* pthread_types.h:83:9 */
  1679. type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
  1680. type Pthread_rwlock_t = X__pthread_rwlock_st /* pthread_types.h:84:36 */
  1681. type Pthread_rwlockattr_t = X__pthread_rwlockattr_st /* pthread_types.h:85:40 */
  1682. type Pthread_barrier_t = X__pthread_barrier_st /* pthread_types.h:86:37 */
  1683. type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1684. type Pthread_key_t = int32 /* pthread_types.h:88:13 */
  1685. // $NetBSD: signal.h,v 1.72 2017/04/21 15:10:35 christos Exp $
  1686. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1687. // The Regents of the University of California. All rights reserved.
  1688. // (c) UNIX System Laboratories, Inc.
  1689. // All or some portions of this file are derived from material licensed
  1690. // to the University of California by American Telephone and Telegraph
  1691. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1692. // the permission of UNIX System Laboratories, Inc.
  1693. //
  1694. // Redistribution and use in source and binary forms, with or without
  1695. // modification, are permitted provided that the following conditions
  1696. // are met:
  1697. // 1. Redistributions of source code must retain the above copyright
  1698. // notice, this list of conditions and the following disclaimer.
  1699. // 2. Redistributions in binary form must reproduce the above copyright
  1700. // notice, this list of conditions and the following disclaimer in the
  1701. // documentation and/or other materials provided with the distribution.
  1702. // 3. Neither the name of the University nor the names of its contributors
  1703. // may be used to endorse or promote products derived from this software
  1704. // without specific prior written permission.
  1705. //
  1706. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1707. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1708. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1709. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1710. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1711. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1712. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1713. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1714. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1715. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1716. // SUCH DAMAGE.
  1717. //
  1718. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1719. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1720. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1721. // Public domain.
  1722. //
  1723. // NOTE: Do not protect this header against multiple inclusion. Doing
  1724. // so can have subtle side-effects due to header file inclusion order
  1725. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1726. // protect each CPP macro that we want to supply.
  1727. // Feature-test macros are defined by several standards, and allow an
  1728. // application to specify what symbols they want the system headers to
  1729. // expose, and hence what standard they want them to conform to.
  1730. // There are two classes of feature-test macros. The first class
  1731. // specify complete standards, and if one of these is defined, header
  1732. // files will try to conform to the relevant standard. They are:
  1733. //
  1734. // ANSI macros:
  1735. // _ANSI_SOURCE ANSI C89
  1736. //
  1737. // POSIX macros:
  1738. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1739. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1740. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1741. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1742. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1743. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1744. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1745. //
  1746. // X/Open macros:
  1747. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1748. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1749. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1750. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1751. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1752. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1753. //
  1754. // NetBSD macros:
  1755. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1756. //
  1757. // If more than one of these "major" feature-test macros is defined,
  1758. // then the set of facilities provided (and namespace used) is the
  1759. // union of that specified by the relevant standards, and in case of
  1760. // conflict, the earlier standard in the above list has precedence (so
  1761. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1762. // of rename() that's used is the POSIX one). If none of the "major"
  1763. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1764. //
  1765. // There are also "minor" feature-test macros, which enable extra
  1766. // functionality in addition to some base standard. They should be
  1767. // defined along with one of the "major" macros. The "minor" macros
  1768. // are:
  1769. //
  1770. // _REENTRANT
  1771. // _ISOC99_SOURCE
  1772. // _ISOC11_SOURCE
  1773. // _LARGEFILE_SOURCE Large File Support
  1774. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1775. // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
  1776. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1777. // The Regents of the University of California. All rights reserved.
  1778. // (c) UNIX System Laboratories, Inc.
  1779. // All or some portions of this file are derived from material licensed
  1780. // to the University of California by American Telephone and Telegraph
  1781. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1782. // the permission of UNIX System Laboratories, Inc.
  1783. //
  1784. // Redistribution and use in source and binary forms, with or without
  1785. // modification, are permitted provided that the following conditions
  1786. // are met:
  1787. // 1. Redistributions of source code must retain the above copyright
  1788. // notice, this list of conditions and the following disclaimer.
  1789. // 2. Redistributions in binary form must reproduce the above copyright
  1790. // notice, this list of conditions and the following disclaimer in the
  1791. // documentation and/or other materials provided with the distribution.
  1792. // 3. Neither the name of the University nor the names of its contributors
  1793. // may be used to endorse or promote products derived from this software
  1794. // without specific prior written permission.
  1795. //
  1796. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1797. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1798. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1799. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1800. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1801. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1802. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1803. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1804. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1805. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1806. // SUCH DAMAGE.
  1807. //
  1808. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1809. // This header file defines various signal-related types. We also keep
  1810. // the macros to manipulate sigset_t here, to encapsulate knowledge of
  1811. // its internals.
  1812. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1813. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1814. // Public domain.
  1815. //
  1816. // NOTE: Do not protect this header against multiple inclusion. Doing
  1817. // so can have subtle side-effects due to header file inclusion order
  1818. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1819. // protect each CPP macro that we want to supply.
  1820. // Feature-test macros are defined by several standards, and allow an
  1821. // application to specify what symbols they want the system headers to
  1822. // expose, and hence what standard they want them to conform to.
  1823. // There are two classes of feature-test macros. The first class
  1824. // specify complete standards, and if one of these is defined, header
  1825. // files will try to conform to the relevant standard. They are:
  1826. //
  1827. // ANSI macros:
  1828. // _ANSI_SOURCE ANSI C89
  1829. //
  1830. // POSIX macros:
  1831. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1832. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1833. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1834. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1835. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1836. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1837. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1838. //
  1839. // X/Open macros:
  1840. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1841. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1842. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1843. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1844. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1845. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1846. //
  1847. // NetBSD macros:
  1848. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1849. //
  1850. // If more than one of these "major" feature-test macros is defined,
  1851. // then the set of facilities provided (and namespace used) is the
  1852. // union of that specified by the relevant standards, and in case of
  1853. // conflict, the earlier standard in the above list has precedence (so
  1854. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1855. // of rename() that's used is the POSIX one). If none of the "major"
  1856. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1857. //
  1858. // There are also "minor" feature-test macros, which enable extra
  1859. // functionality in addition to some base standard. They should be
  1860. // defined along with one of the "major" macros. The "minor" macros
  1861. // are:
  1862. //
  1863. // _REENTRANT
  1864. // _ISOC99_SOURCE
  1865. // _ISOC11_SOURCE
  1866. // _LARGEFILE_SOURCE Large File Support
  1867. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1868. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1869. // -
  1870. // Copyright (c) 1990 The Regents of the University of California.
  1871. // All rights reserved.
  1872. //
  1873. // Redistribution and use in source and binary forms, with or without
  1874. // modification, are permitted provided that the following conditions
  1875. // are met:
  1876. // 1. Redistributions of source code must retain the above copyright
  1877. // notice, this list of conditions and the following disclaimer.
  1878. // 2. Redistributions in binary form must reproduce the above copyright
  1879. // notice, this list of conditions and the following disclaimer in the
  1880. // documentation and/or other materials provided with the distribution.
  1881. // 3. Neither the name of the University nor the names of its contributors
  1882. // may be used to endorse or promote products derived from this software
  1883. // without specific prior written permission.
  1884. //
  1885. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1886. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1887. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1888. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1889. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1890. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1891. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1892. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1893. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1894. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1895. // SUCH DAMAGE.
  1896. //
  1897. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  1898. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  1899. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  1900. // -
  1901. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1902. // All rights reserved.
  1903. //
  1904. // This code is derived from software contributed to The NetBSD Foundation
  1905. // by Matt Thomas of 3am Software Foundry.
  1906. //
  1907. // Redistribution and use in source and binary forms, with or without
  1908. // modification, are permitted provided that the following conditions
  1909. // are met:
  1910. // 1. Redistributions of source code must retain the above copyright
  1911. // notice, this list of conditions and the following disclaimer.
  1912. // 2. Redistributions in binary form must reproduce the above copyright
  1913. // notice, this list of conditions and the following disclaimer in the
  1914. // documentation and/or other materials provided with the distribution.
  1915. //
  1916. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1917. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1918. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1919. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1920. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1921. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1922. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1923. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1924. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1925. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1926. // POSSIBILITY OF SUCH DAMAGE.
  1927. type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
  1928. // Macro for manipulating signal masks.
  1929. type Sigaltstack = struct {
  1930. Fss_sp uintptr
  1931. Fss_size Size_t
  1932. Fss_flags int32
  1933. F__ccgo_pad1 [4]byte
  1934. } /* sigtypes.h:108:9 */
  1935. // Macro for manipulating signal masks.
  1936. type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
  1937. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1938. // * Copyright (c) 1991, 1993
  1939. // The Regents of the University of California. All rights reserved.
  1940. //
  1941. // This code is derived from software contributed to Berkeley by
  1942. // Berkeley Software Design, Inc.
  1943. //
  1944. // Redistribution and use in source and binary forms, with or without
  1945. // modification, are permitted provided that the following conditions
  1946. // are met:
  1947. // 1. Redistributions of source code must retain the above copyright
  1948. // notice, this list of conditions and the following disclaimer.
  1949. // 2. Redistributions in binary form must reproduce the above copyright
  1950. // notice, this list of conditions and the following disclaimer in the
  1951. // documentation and/or other materials provided with the distribution.
  1952. // 3. Neither the name of the University nor the names of its contributors
  1953. // may be used to endorse or promote products derived from this software
  1954. // without specific prior written permission.
  1955. //
  1956. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1957. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1958. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1959. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1960. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1961. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1962. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1963. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1964. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1965. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1966. // SUCH DAMAGE.
  1967. //
  1968. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1969. // $NetBSD: siginfo.h,v 1.33.2.1 2019/10/15 18:32:13 martin Exp $
  1970. // -
  1971. // Copyright (c) 2002 The NetBSD Foundation, Inc.
  1972. // All rights reserved.
  1973. //
  1974. // This code is derived from software contributed to The NetBSD Foundation
  1975. // by Christos Zoulas.
  1976. //
  1977. // Redistribution and use in source and binary forms, with or without
  1978. // modification, are permitted provided that the following conditions
  1979. // are met:
  1980. // 1. Redistributions of source code must retain the above copyright
  1981. // notice, this list of conditions and the following disclaimer.
  1982. // 2. Redistributions in binary form must reproduce the above copyright
  1983. // notice, this list of conditions and the following disclaimer in the
  1984. // documentation and/or other materials provided with the distribution.
  1985. //
  1986. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1987. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1988. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1989. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1990. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1991. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1992. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1993. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1994. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1995. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1996. // POSSIBILITY OF SUCH DAMAGE.
  1997. // $NetBSD: signal.h,v 1.12 2013/01/02 19:40:23 dsl Exp $
  1998. // Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
  1999. // All rights reserved.
  2000. //
  2001. // Redistribution and use in source and binary forms, with or without
  2002. // modification, are permitted provided that the following conditions
  2003. // are met:
  2004. // 1. Redistributions of source code must retain the above copyright
  2005. // notice, this list of conditions and the following disclaimer.
  2006. // 2. Redistributions in binary form must reproduce the above copyright
  2007. // notice, this list of conditions and the following disclaimer in the
  2008. // documentation and/or other materials provided with the distribution.
  2009. // 3. Neither the name of the University nor the names of its contributors
  2010. // may be used to endorse or promote products derived from this software
  2011. // without specific prior written permission.
  2012. //
  2013. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2014. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2015. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2016. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2017. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2018. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2019. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2020. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2021. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2022. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2023. // SUCH DAMAGE.
  2024. //
  2025. // @(#)signal.h 7.16 (Berkeley) 3/17/91
  2026. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  2027. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  2028. // Public domain.
  2029. //
  2030. // NOTE: Do not protect this header against multiple inclusion. Doing
  2031. // so can have subtle side-effects due to header file inclusion order
  2032. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  2033. // protect each CPP macro that we want to supply.
  2034. // Feature-test macros are defined by several standards, and allow an
  2035. // application to specify what symbols they want the system headers to
  2036. // expose, and hence what standard they want them to conform to.
  2037. // There are two classes of feature-test macros. The first class
  2038. // specify complete standards, and if one of these is defined, header
  2039. // files will try to conform to the relevant standard. They are:
  2040. //
  2041. // ANSI macros:
  2042. // _ANSI_SOURCE ANSI C89
  2043. //
  2044. // POSIX macros:
  2045. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  2046. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  2047. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  2048. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  2049. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  2050. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  2051. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  2052. //
  2053. // X/Open macros:
  2054. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  2055. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  2056. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  2057. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  2058. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  2059. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  2060. //
  2061. // NetBSD macros:
  2062. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  2063. //
  2064. // If more than one of these "major" feature-test macros is defined,
  2065. // then the set of facilities provided (and namespace used) is the
  2066. // union of that specified by the relevant standards, and in case of
  2067. // conflict, the earlier standard in the above list has precedence (so
  2068. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  2069. // of rename() that's used is the POSIX one). If none of the "major"
  2070. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  2071. //
  2072. // There are also "minor" feature-test macros, which enable extra
  2073. // functionality in addition to some base standard. They should be
  2074. // defined along with one of the "major" macros. The "minor" macros
  2075. // are:
  2076. //
  2077. // _REENTRANT
  2078. // _ISOC99_SOURCE
  2079. // _ISOC11_SOURCE
  2080. // _LARGEFILE_SOURCE Large File Support
  2081. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  2082. type Sig_atomic_t = int32 /* signal.h:41:13 */
  2083. type X__greg_t = uint64 /* mcontext.h:46:23 */
  2084. type X__gregset_t = [26]X__greg_t /* mcontext.h:47:18 */
  2085. // These names are for compatibility
  2086. // Floating point register state
  2087. // The format of __fpregset_t is that of the fxsave instruction
  2088. // which requires 16 byte alignment. However the mcontext version
  2089. // is never directly accessed.
  2090. type X__fpregset_t = [512]int8 /* mcontext.h:59:14 */
  2091. type Mcontext_t = struct {
  2092. F__gregs X__gregset_t
  2093. F_mc_tlsbase X__greg_t
  2094. F__fpregs X__fpregset_t
  2095. } /* mcontext.h:65:3 */
  2096. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  2097. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  2098. // Public domain.
  2099. //
  2100. // NOTE: Do not protect this header against multiple inclusion. Doing
  2101. // so can have subtle side-effects due to header file inclusion order
  2102. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  2103. // protect each CPP macro that we want to supply.
  2104. // Feature-test macros are defined by several standards, and allow an
  2105. // application to specify what symbols they want the system headers to
  2106. // expose, and hence what standard they want them to conform to.
  2107. // There are two classes of feature-test macros. The first class
  2108. // specify complete standards, and if one of these is defined, header
  2109. // files will try to conform to the relevant standard. They are:
  2110. //
  2111. // ANSI macros:
  2112. // _ANSI_SOURCE ANSI C89
  2113. //
  2114. // POSIX macros:
  2115. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  2116. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  2117. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  2118. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  2119. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  2120. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  2121. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  2122. //
  2123. // X/Open macros:
  2124. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  2125. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  2126. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  2127. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  2128. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  2129. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  2130. //
  2131. // NetBSD macros:
  2132. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  2133. //
  2134. // If more than one of these "major" feature-test macros is defined,
  2135. // then the set of facilities provided (and namespace used) is the
  2136. // union of that specified by the relevant standards, and in case of
  2137. // conflict, the earlier standard in the above list has precedence (so
  2138. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  2139. // of rename() that's used is the POSIX one). If none of the "major"
  2140. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  2141. //
  2142. // There are also "minor" feature-test macros, which enable extra
  2143. // functionality in addition to some base standard. They should be
  2144. // defined along with one of the "major" macros. The "minor" macros
  2145. // are:
  2146. //
  2147. // _REENTRANT
  2148. // _ISOC99_SOURCE
  2149. // _ISOC11_SOURCE
  2150. // _LARGEFILE_SOURCE Large File Support
  2151. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  2152. type Sigval = struct {
  2153. F__ccgo_pad1 [0]uint64
  2154. Fsival_int int32
  2155. F__ccgo_pad2 [4]byte
  2156. } /* siginfo.h:41:9 */
  2157. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  2158. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  2159. // Public domain.
  2160. //
  2161. // NOTE: Do not protect this header against multiple inclusion. Doing
  2162. // so can have subtle side-effects due to header file inclusion order
  2163. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  2164. // protect each CPP macro that we want to supply.
  2165. // Feature-test macros are defined by several standards, and allow an
  2166. // application to specify what symbols they want the system headers to
  2167. // expose, and hence what standard they want them to conform to.
  2168. // There are two classes of feature-test macros. The first class
  2169. // specify complete standards, and if one of these is defined, header
  2170. // files will try to conform to the relevant standard. They are:
  2171. //
  2172. // ANSI macros:
  2173. // _ANSI_SOURCE ANSI C89
  2174. //
  2175. // POSIX macros:
  2176. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  2177. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  2178. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  2179. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  2180. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  2181. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  2182. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  2183. //
  2184. // X/Open macros:
  2185. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  2186. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  2187. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  2188. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  2189. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  2190. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  2191. //
  2192. // NetBSD macros:
  2193. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  2194. //
  2195. // If more than one of these "major" feature-test macros is defined,
  2196. // then the set of facilities provided (and namespace used) is the
  2197. // union of that specified by the relevant standards, and in case of
  2198. // conflict, the earlier standard in the above list has precedence (so
  2199. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  2200. // of rename() that's used is the POSIX one). If none of the "major"
  2201. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  2202. //
  2203. // There are also "minor" feature-test macros, which enable extra
  2204. // functionality in addition to some base standard. They should be
  2205. // defined along with one of the "major" macros. The "minor" macros
  2206. // are:
  2207. //
  2208. // _REENTRANT
  2209. // _ISOC99_SOURCE
  2210. // _ISOC11_SOURCE
  2211. // _LARGEFILE_SOURCE Large File Support
  2212. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  2213. type Sigval_t = Sigval /* siginfo.h:44:3 */
  2214. type X_ksiginfo = struct {
  2215. F_signo int32
  2216. F_code int32
  2217. F_errno int32
  2218. F_pad int32
  2219. F_reason struct {
  2220. F_rt struct {
  2221. F_pid X__pid_t
  2222. F_uid X__uid_t
  2223. F_value Sigval_t
  2224. }
  2225. F__ccgo_pad1 [64]byte
  2226. }
  2227. } /* siginfo.h:46:1 */
  2228. type Siginfo = struct {
  2229. F__ccgo_pad1 [0]uint64
  2230. Fsi_pad [128]int8
  2231. } /* siginfo.h:148:9 */
  2232. type Siginfo_t = Siginfo /* siginfo.h:151:3 */
  2233. //* Field access macros
  2234. //* si_code
  2235. // SIGILL
  2236. // SIGFPE
  2237. // SIGSEGV
  2238. // SIGBUS
  2239. // SIGTRAP
  2240. // SIGCHLD
  2241. // did not create a core file
  2242. // created a core file
  2243. // SIGIO
  2244. //* si_code
  2245. // set by timer_settime(2)
  2246. // asynchronous I/O signal
  2247. // an empty message queue
  2248. // $NetBSD: ucontext.h,v 1.19 2018/02/27 23:09:02 uwe Exp $
  2249. // -
  2250. // Copyright (c) 1999, 2003 The NetBSD Foundation, Inc.
  2251. // All rights reserved.
  2252. //
  2253. // This code is derived from software contributed to The NetBSD Foundation
  2254. // by Klaus Klein, and by Jason R. Thorpe.
  2255. //
  2256. // Redistribution and use in source and binary forms, with or without
  2257. // modification, are permitted provided that the following conditions
  2258. // are met:
  2259. // 1. Redistributions of source code must retain the above copyright
  2260. // notice, this list of conditions and the following disclaimer.
  2261. // 2. Redistributions in binary form must reproduce the above copyright
  2262. // notice, this list of conditions and the following disclaimer in the
  2263. // documentation and/or other materials provided with the distribution.
  2264. //
  2265. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2266. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2267. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2268. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2269. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2270. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2271. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2272. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2273. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2274. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2275. // POSSIBILITY OF SUCH DAMAGE.
  2276. // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
  2277. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  2278. // The Regents of the University of California. All rights reserved.
  2279. // (c) UNIX System Laboratories, Inc.
  2280. // All or some portions of this file are derived from material licensed
  2281. // to the University of California by American Telephone and Telegraph
  2282. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2283. // the permission of UNIX System Laboratories, Inc.
  2284. //
  2285. // Redistribution and use in source and binary forms, with or without
  2286. // modification, are permitted provided that the following conditions
  2287. // are met:
  2288. // 1. Redistributions of source code must retain the above copyright
  2289. // notice, this list of conditions and the following disclaimer.
  2290. // 2. Redistributions in binary form must reproduce the above copyright
  2291. // notice, this list of conditions and the following disclaimer in the
  2292. // documentation and/or other materials provided with the distribution.
  2293. // 3. Neither the name of the University nor the names of its contributors
  2294. // may be used to endorse or promote products derived from this software
  2295. // without specific prior written permission.
  2296. //
  2297. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2298. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2299. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2300. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2301. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2302. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2303. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2304. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2305. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2306. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2307. // SUCH DAMAGE.
  2308. //
  2309. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  2310. // $NetBSD: mcontext.h,v 1.19 2018/02/15 15:53:56 kamil Exp $
  2311. // -
  2312. // Copyright (c) 1999 The NetBSD Foundation, Inc.
  2313. // All rights reserved.
  2314. //
  2315. // This code is derived from software contributed to The NetBSD Foundation
  2316. // by Klaus Klein.
  2317. //
  2318. // Redistribution and use in source and binary forms, with or without
  2319. // modification, are permitted provided that the following conditions
  2320. // are met:
  2321. // 1. Redistributions of source code must retain the above copyright
  2322. // notice, this list of conditions and the following disclaimer.
  2323. // 2. Redistributions in binary form must reproduce the above copyright
  2324. // notice, this list of conditions and the following disclaimer in the
  2325. // documentation and/or other materials provided with the distribution.
  2326. //
  2327. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2328. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2329. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2330. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2331. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2332. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2333. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2334. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2335. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2336. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2337. // POSSIBILITY OF SUCH DAMAGE.
  2338. type X__ucontext = struct {
  2339. Fuc_flags uint32
  2340. F__ccgo_pad1 [4]byte
  2341. Fuc_link uintptr
  2342. Fuc_sigmask Sigset_t
  2343. Fuc_stack Stack_t
  2344. Fuc_mcontext Mcontext_t
  2345. } /* ucontext.h:38:9 */
  2346. //* Field access macros
  2347. //* si_code
  2348. // SIGILL
  2349. // SIGFPE
  2350. // SIGSEGV
  2351. // SIGBUS
  2352. // SIGTRAP
  2353. // SIGCHLD
  2354. // did not create a core file
  2355. // created a core file
  2356. // SIGIO
  2357. //* si_code
  2358. // set by timer_settime(2)
  2359. // asynchronous I/O signal
  2360. // an empty message queue
  2361. // $NetBSD: ucontext.h,v 1.19 2018/02/27 23:09:02 uwe Exp $
  2362. // -
  2363. // Copyright (c) 1999, 2003 The NetBSD Foundation, Inc.
  2364. // All rights reserved.
  2365. //
  2366. // This code is derived from software contributed to The NetBSD Foundation
  2367. // by Klaus Klein, and by Jason R. Thorpe.
  2368. //
  2369. // Redistribution and use in source and binary forms, with or without
  2370. // modification, are permitted provided that the following conditions
  2371. // are met:
  2372. // 1. Redistributions of source code must retain the above copyright
  2373. // notice, this list of conditions and the following disclaimer.
  2374. // 2. Redistributions in binary form must reproduce the above copyright
  2375. // notice, this list of conditions and the following disclaimer in the
  2376. // documentation and/or other materials provided with the distribution.
  2377. //
  2378. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2379. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2380. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2381. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2382. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2383. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2384. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2385. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2386. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2387. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2388. // POSSIBILITY OF SUCH DAMAGE.
  2389. // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
  2390. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  2391. // The Regents of the University of California. All rights reserved.
  2392. // (c) UNIX System Laboratories, Inc.
  2393. // All or some portions of this file are derived from material licensed
  2394. // to the University of California by American Telephone and Telegraph
  2395. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2396. // the permission of UNIX System Laboratories, Inc.
  2397. //
  2398. // Redistribution and use in source and binary forms, with or without
  2399. // modification, are permitted provided that the following conditions
  2400. // are met:
  2401. // 1. Redistributions of source code must retain the above copyright
  2402. // notice, this list of conditions and the following disclaimer.
  2403. // 2. Redistributions in binary form must reproduce the above copyright
  2404. // notice, this list of conditions and the following disclaimer in the
  2405. // documentation and/or other materials provided with the distribution.
  2406. // 3. Neither the name of the University nor the names of its contributors
  2407. // may be used to endorse or promote products derived from this software
  2408. // without specific prior written permission.
  2409. //
  2410. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2411. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2412. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2413. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2414. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2415. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2416. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2417. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2418. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2419. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2420. // SUCH DAMAGE.
  2421. //
  2422. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  2423. // $NetBSD: mcontext.h,v 1.19 2018/02/15 15:53:56 kamil Exp $
  2424. // -
  2425. // Copyright (c) 1999 The NetBSD Foundation, Inc.
  2426. // All rights reserved.
  2427. //
  2428. // This code is derived from software contributed to The NetBSD Foundation
  2429. // by Klaus Klein.
  2430. //
  2431. // Redistribution and use in source and binary forms, with or without
  2432. // modification, are permitted provided that the following conditions
  2433. // are met:
  2434. // 1. Redistributions of source code must retain the above copyright
  2435. // notice, this list of conditions and the following disclaimer.
  2436. // 2. Redistributions in binary form must reproduce the above copyright
  2437. // notice, this list of conditions and the following disclaimer in the
  2438. // documentation and/or other materials provided with the distribution.
  2439. //
  2440. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2441. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2442. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2443. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2444. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2445. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2446. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2447. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2448. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2449. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2450. // POSSIBILITY OF SUCH DAMAGE.
  2451. type Ucontext_t = X__ucontext /* ucontext.h:38:27 */
  2452. // uc_flags
  2453. // if your port needs more MD bits, please try to choose bits from _UC_MD
  2454. // first, rather than picking random unused bits.
  2455. //
  2456. // _UC_MD details
  2457. //
  2458. // _UC_TLSBASE Context contains valid pthread private pointer
  2459. // All ports must define this MD flag
  2460. // 0x00040000 hppa, mips
  2461. // 0x00000020 alpha
  2462. // 0x00080000 all other ports
  2463. //
  2464. // _UC_SETSTACK Context uses signal stack
  2465. // 0x00020000 arm
  2466. // [undefined] alpha, powerpc and vax
  2467. // 0x00010000 other ports
  2468. //
  2469. // _UC_CLRSTACK Context does not use signal stack
  2470. // 0x00040000 arm
  2471. // [undefined] alpha, powerpc and vax
  2472. // 0x00020000 other ports
  2473. //
  2474. // _UC_POWERPC_VEC Context contains valid AltiVec context
  2475. // 0x00010000 powerpc only
  2476. //
  2477. // _UC_POWERPC_SPE Context contains valid SPE context
  2478. // 0x00020000 powerpc only
  2479. //
  2480. // _UC_M68K_UC_USER Used by m68k machdep code, but undocumented
  2481. // 0x40000000 m68k only
  2482. //
  2483. // _UC_ARM_VFP Unused
  2484. // 0x00010000 arm only
  2485. //
  2486. // _UC_VM Context contains valid virtual 8086 context
  2487. // 0x00040000 i386, amd64 only
  2488. //
  2489. // _UC_FXSAVE Context contains FPU context in that
  2490. // is in FXSAVE format in XMM space
  2491. // 0x00000020 i386, amd64 only
  2492. // Signal vector "template" used in sigaction call.
  2493. type Sigaction = struct {
  2494. F_sa_u struct{ F_sa_handler uintptr }
  2495. Fsa_mask Sigset_t
  2496. Fsa_flags int32
  2497. F__ccgo_pad1 [4]byte
  2498. } /* signal.h:123:1 */
  2499. // $NetBSD: signal.h,v 1.12 2013/01/02 19:40:23 dsl Exp $
  2500. // Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
  2501. // All rights reserved.
  2502. //
  2503. // Redistribution and use in source and binary forms, with or without
  2504. // modification, are permitted provided that the following conditions
  2505. // are met:
  2506. // 1. Redistributions of source code must retain the above copyright
  2507. // notice, this list of conditions and the following disclaimer.
  2508. // 2. Redistributions in binary form must reproduce the above copyright
  2509. // notice, this list of conditions and the following disclaimer in the
  2510. // documentation and/or other materials provided with the distribution.
  2511. // 3. Neither the name of the University nor the names of its contributors
  2512. // may be used to endorse or promote products derived from this software
  2513. // without specific prior written permission.
  2514. //
  2515. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2516. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2517. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2518. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2519. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2520. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2521. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2522. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2523. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2524. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2525. // SUCH DAMAGE.
  2526. //
  2527. // @(#)signal.h 7.16 (Berkeley) 3/17/91
  2528. // Only valid for SIGCHLD.
  2529. // Flags for sigprocmask():
  2530. type Sig_t = uintptr /* signal.h:172:14 */ // type of signal function
  2531. // Flags used with stack_t/struct sigaltstack.
  2532. // Structure used in sigstack call.
  2533. type Sigstack = struct {
  2534. Fss_sp uintptr
  2535. Fss_onstack int32
  2536. F__ccgo_pad1 [4]byte
  2537. } /* signal.h:198:1 */
  2538. // Macro for converting signal number to a mask suitable for
  2539. // sigblock().
  2540. type Sigevent = struct {
  2541. Fsigev_notify int32
  2542. Fsigev_signo int32
  2543. Fsigev_value struct {
  2544. F__ccgo_pad1 [0]uint64
  2545. Fsival_int int32
  2546. F__ccgo_pad2 [4]byte
  2547. }
  2548. Fsigev_notify_function uintptr
  2549. Fsigev_notify_attributes uintptr
  2550. } /* signal.h:216:1 */
  2551. // $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
  2552. // Copyright (c) 1982, 1986, 1993
  2553. // The Regents of the University of California. All rights reserved.
  2554. //
  2555. // Redistribution and use in source and binary forms, with or without
  2556. // modification, are permitted provided that the following conditions
  2557. // are met:
  2558. // 1. Redistributions of source code must retain the above copyright
  2559. // notice, this list of conditions and the following disclaimer.
  2560. // 2. Redistributions in binary form must reproduce the above copyright
  2561. // notice, this list of conditions and the following disclaimer in the
  2562. // documentation and/or other materials provided with the distribution.
  2563. // 3. Neither the name of the University nor the names of its contributors
  2564. // may be used to endorse or promote products derived from this software
  2565. // without specific prior written permission.
  2566. //
  2567. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2568. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2569. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2570. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2571. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2572. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2573. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2574. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2575. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2576. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2577. // SUCH DAMAGE.
  2578. //
  2579. // @(#)time.h 8.5 (Berkeley) 5/4/95
  2580. //
  2581. // Extracted by Kamil Rytarowski from:
  2582. // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
  2583. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  2584. // -
  2585. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  2586. // All rights reserved.
  2587. //
  2588. // This code is derived from software contributed to The NetBSD Foundation
  2589. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  2590. //
  2591. // Redistribution and use in source and binary forms, with or without
  2592. // modification, are permitted provided that the following conditions
  2593. // are met:
  2594. // 1. Redistributions of source code must retain the above copyright
  2595. // notice, this list of conditions and the following disclaimer.
  2596. // 2. Redistributions in binary form must reproduce the above copyright
  2597. // notice, this list of conditions and the following disclaimer in the
  2598. // documentation and/or other materials provided with the distribution.
  2599. //
  2600. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2601. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2602. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2603. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2604. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2605. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2606. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2607. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2608. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2609. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2610. // POSSIBILITY OF SUCH DAMAGE.
  2611. type Timespec = struct {
  2612. Ftv_sec Time_t
  2613. Ftv_nsec int64
  2614. } /* timespec.h:47:1 */
  2615. var _ int8 /* gen.c:2:13: */