fts_netbsd_arm.go 123 KB

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