stat_netbsd_arm.go 110 KB

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