fts_netbsd_amd64.go 124 KB

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