signal_netbsd_arm.go 133 KB

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