pthread_netbsd_arm.go 129 KB

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