pthread_darwin_arm64.go 151 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068
  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_darwin_arm64.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. MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
  15. MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
  16. MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
  17. MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
  18. MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
  19. MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
  20. MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
  21. MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
  22. MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
  23. MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
  24. MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
  25. MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
  26. MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
  27. MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
  28. MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
  29. MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
  30. MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
  31. MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
  32. MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
  33. MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
  34. MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
  35. MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
  36. MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
  37. MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
  38. MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
  39. MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
  40. MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
  41. MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
  42. MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
  43. MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
  44. MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
  45. MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
  46. MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
  47. MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
  48. PTHREAD_CANCEL_ASYNCHRONOUS = 0x00 // pthread.h:144:1:
  49. PTHREAD_CANCEL_DEFERRED = 0x02 // pthread.h:143:1:
  50. PTHREAD_CANCEL_DISABLE = 0x00 // pthread.h:142:1:
  51. PTHREAD_CANCEL_ENABLE = 0x01 // pthread.h:141:1:
  52. PTHREAD_CREATE_DETACHED = 2 // pthread.h:136:1:
  53. PTHREAD_CREATE_JOINABLE = 1 // pthread.h:135:1:
  54. PTHREAD_EXPLICIT_SCHED = 2 // pthread.h:139:1:
  55. PTHREAD_INHERIT_SCHED = 1 // pthread.h:138:1:
  56. PTHREAD_MUTEX_DEFAULT = 0 // pthread.h:169:1:
  57. PTHREAD_MUTEX_ERRORCHECK = 1 // pthread.h:167:1:
  58. PTHREAD_MUTEX_NORMAL = 0 // pthread.h:166:1:
  59. PTHREAD_MUTEX_POLICY_FAIRSHARE_NP = 1 // pthread.h:174:1:
  60. PTHREAD_MUTEX_POLICY_FIRSTFIT_NP = 3 // pthread.h:175:1:
  61. PTHREAD_MUTEX_RECURSIVE = 2 // pthread.h:168:1:
  62. PTHREAD_PRIO_INHERIT = 1 // pthread.h:160:1:
  63. PTHREAD_PRIO_NONE = 0 // pthread.h:159:1:
  64. PTHREAD_PRIO_PROTECT = 2 // pthread.h:161:1:
  65. PTHREAD_PROCESS_PRIVATE = 2 // pthread.h:154:1:
  66. PTHREAD_PROCESS_SHARED = 1 // pthread.h:153:1:
  67. PTHREAD_SCOPE_PROCESS = 2 // pthread.h:151:1:
  68. PTHREAD_SCOPE_SYSTEM = 1 // pthread.h:150:1:
  69. QOS_MIN_RELATIVE_PRIORITY = -15 // qos.h:153:1:
  70. SCHED_FIFO = 4 // pthread_impl.h:55:1:
  71. SCHED_OTHER = 1 // pthread_impl.h:54:1:
  72. SCHED_RR = 2 // pthread_impl.h:56:1:
  73. TIME_UTC = 1 // time.h:197:1:
  74. X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
  75. X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
  76. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  77. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  78. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  79. X_CLOCK_T = 0 // _clock_t.h:29:1:
  80. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  81. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  82. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  83. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  84. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  85. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  86. X_FORTIFY_SOURCE = 2 // _types.h:65:1:
  87. X_INT16_T = 0 // _int16_t.h:29:1:
  88. X_INT32_T = 0 // _int32_t.h:29:1:
  89. X_INT64_T = 0 // _int64_t.h:29:1:
  90. X_INT8_T = 0 // _int8_t.h:29:1:
  91. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  92. X_LP64 = 1 // <predefined>:1:1:
  93. X_MACHTYPES_H_ = 0 // types.h:44:1:
  94. X_MACH_PORT_T = 0 // _mach_port_t.h:48:1:
  95. X_Nonnull = 0 // cdefs.h:268:1:
  96. X_Null_unspecified = 0 // cdefs.h:271:1:
  97. X_Nullable = 0 // cdefs.h:265:1:
  98. X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
  99. X_PTHREAD_CONDATTR_T = 0 // _pthread_condattr_t.h:29:1:
  100. X_PTHREAD_COND_SIG_init = 0x3CB0B1BB // pthread_impl.h:47:1:
  101. X_PTHREAD_COND_T = 0 // _pthread_cond_t.h:29:1:
  102. X_PTHREAD_ERRORCHECK_MUTEX_SIG_init = 0x32AAABA1 // pthread_impl.h:43:1:
  103. X_PTHREAD_FIRSTFIT_MUTEX_SIG_init = 0x32AAABA3 // pthread_impl.h:45:1:
  104. X_PTHREAD_H = 0 // pthread.h:53:1:
  105. X_PTHREAD_IMPL_H_ = 0 // pthread_impl.h:25:1:
  106. X_PTHREAD_KEY_T = 0 // _pthread_key_t.h:29:1:
  107. X_PTHREAD_MUTEXATTR_T = 0 // _pthread_mutexattr_t.h:29:1:
  108. X_PTHREAD_MUTEX_SIG_init = 0x32AAABA7 // pthread_impl.h:41:1:
  109. X_PTHREAD_MUTEX_T = 0 // _pthread_mutex_t.h:29:1:
  110. X_PTHREAD_ONCE_SIG_init = 0x30B1BCBA // pthread_impl.h:48:1:
  111. X_PTHREAD_ONCE_T = 0 // _pthread_once_t.h:29:1:
  112. X_PTHREAD_QOS_H = 0 // qos.h:25:1:
  113. X_PTHREAD_RECURSIVE_MUTEX_SIG_init = 0x32AAABA2 // pthread_impl.h:44:1:
  114. X_PTHREAD_RWLOCKATTR_T = 0 // _pthread_rwlockattr_t.h:29:1:
  115. X_PTHREAD_RWLOCK_SIG_init = 0x2DA8B3B4 // pthread_impl.h:49:1:
  116. X_PTHREAD_RWLOCK_T = 0 // _pthread_rwlock_t.h:29:1:
  117. X_PTHREAD_T = 0 // _pthread_t.h:29:1:
  118. X_SCHED_H_ = 0 // sched.h:25:1:
  119. X_SIGSET_T = 0 // _sigset_t.h:29:1:
  120. X_SIZE_T = 0 // _size_t.h:29:1:
  121. X_SYS_QOS_H = 0 // qos.h:25:1:
  122. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  123. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  124. X_TIME_H_ = 0 // time.h:64:1:
  125. X_TIME_T = 0 // _time_t.h:29:1:
  126. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  127. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  128. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  129. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  130. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  131. )
  132. // Copyright (c) 2013-2014 Apple Inc. All rights reserved.
  133. //
  134. // @APPLE_LICENSE_HEADER_START@
  135. //
  136. // This file contains Original Code and/or Modifications of Original Code
  137. // as defined in and that are subject to the Apple Public Source License
  138. // Version 2.0 (the 'License'). You may not use this file except in
  139. // compliance with the License. Please obtain a copy of the License at
  140. // http://www.opensource.apple.com/apsl/ and read it before using this
  141. // file.
  142. //
  143. // The Original Code and all software distributed under the License are
  144. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  145. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  146. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  147. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  148. // Please see the License for the specific language governing rights and
  149. // limitations under the License.
  150. //
  151. // @APPLE_LICENSE_HEADER_END@
  152. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  153. //
  154. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  155. //
  156. // This file contains Original Code and/or Modifications of Original Code
  157. // as defined in and that are subject to the Apple Public Source License
  158. // Version 2.0 (the 'License'). You may not use this file except in
  159. // compliance with the License. The rights granted to you under the License
  160. // may not be used to create, or enable the creation or redistribution of,
  161. // unlawful or unlicensed copies of an Apple operating system, or to
  162. // circumvent, violate, or enable the circumvention or violation of, any
  163. // terms of an Apple operating system software license agreement.
  164. //
  165. // Please obtain a copy of the License at
  166. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  167. //
  168. // The Original Code and all software distributed under the License are
  169. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  170. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  171. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  172. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  173. // Please see the License for the specific language governing rights and
  174. // limitations under the License.
  175. //
  176. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  177. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  178. // Copyright (c) 1991, 1993
  179. // The Regents of the University of California. All rights reserved.
  180. //
  181. // This code is derived from software contributed to Berkeley by
  182. // Berkeley Software Design, Inc.
  183. //
  184. // Redistribution and use in source and binary forms, with or without
  185. // modification, are permitted provided that the following conditions
  186. // are met:
  187. // 1. Redistributions of source code must retain the above copyright
  188. // notice, this list of conditions and the following disclaimer.
  189. // 2. Redistributions in binary form must reproduce the above copyright
  190. // notice, this list of conditions and the following disclaimer in the
  191. // documentation and/or other materials provided with the distribution.
  192. // 3. All advertising materials mentioning features or use of this software
  193. // must display the following acknowledgement:
  194. // This product includes software developed by the University of
  195. // California, Berkeley and its contributors.
  196. // 4. Neither the name of the University nor the names of its contributors
  197. // may be used to endorse or promote products derived from this software
  198. // without specific prior written permission.
  199. //
  200. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  201. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  202. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  203. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  204. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  205. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  206. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  207. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  208. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  209. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  210. // SUCH DAMAGE.
  211. //
  212. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  213. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  214. //
  215. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  216. //
  217. // This file contains Original Code and/or Modifications of Original Code
  218. // as defined in and that are subject to the Apple Public Source License
  219. // Version 2.0 (the 'License'). You may not use this file except in
  220. // compliance with the License. The rights granted to you under the License
  221. // may not be used to create, or enable the creation or redistribution of,
  222. // unlawful or unlicensed copies of an Apple operating system, or to
  223. // circumvent, violate, or enable the circumvention or violation of, any
  224. // terms of an Apple operating system software license agreement.
  225. //
  226. // Please obtain a copy of the License at
  227. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  228. //
  229. // The Original Code and all software distributed under the License are
  230. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  231. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  232. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  233. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  234. // Please see the License for the specific language governing rights and
  235. // limitations under the License.
  236. //
  237. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  238. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  239. //
  240. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  241. //
  242. // This file contains Original Code and/or Modifications of Original Code
  243. // as defined in and that are subject to the Apple Public Source License
  244. // Version 2.0 (the 'License'). You may not use this file except in
  245. // compliance with the License. The rights granted to you under the License
  246. // may not be used to create, or enable the creation or redistribution of,
  247. // unlawful or unlicensed copies of an Apple operating system, or to
  248. // circumvent, violate, or enable the circumvention or violation of, any
  249. // terms of an Apple operating system software license agreement.
  250. //
  251. // Please obtain a copy of the License at
  252. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  253. //
  254. // The Original Code and all software distributed under the License are
  255. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  256. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  257. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  258. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  259. // Please see the License for the specific language governing rights and
  260. // limitations under the License.
  261. //
  262. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  263. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  264. //
  265. // @APPLE_LICENSE_HEADER_START@
  266. //
  267. // This file contains Original Code and/or Modifications of Original Code
  268. // as defined in and that are subject to the Apple Public Source License
  269. // Version 2.0 (the 'License'). You may not use this file except in
  270. // compliance with the License. Please obtain a copy of the License at
  271. // http://www.opensource.apple.com/apsl/ and read it before using this
  272. // file.
  273. //
  274. // The Original Code and all software distributed under the License are
  275. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  276. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  277. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  278. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  279. // Please see the License for the specific language governing rights and
  280. // limitations under the License.
  281. //
  282. // @APPLE_LICENSE_HEADER_END@
  283. // Copyright (c) 2013-2014 Apple Inc. All rights reserved.
  284. //
  285. // @APPLE_LICENSE_HEADER_START@
  286. //
  287. // This file contains Original Code and/or Modifications of Original Code
  288. // as defined in and that are subject to the Apple Public Source License
  289. // Version 2.0 (the 'License'). You may not use this file except in
  290. // compliance with the License. Please obtain a copy of the License at
  291. // http://www.opensource.apple.com/apsl/ and read it before using this
  292. // file.
  293. //
  294. // The Original Code and all software distributed under the License are
  295. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  296. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  297. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  298. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  299. // Please see the License for the specific language governing rights and
  300. // limitations under the License.
  301. //
  302. // @APPLE_LICENSE_HEADER_END@
  303. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  304. //
  305. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  306. //
  307. // This file contains Original Code and/or Modifications of Original Code
  308. // as defined in and that are subject to the Apple Public Source License
  309. // Version 2.0 (the 'License'). You may not use this file except in
  310. // compliance with the License. The rights granted to you under the License
  311. // may not be used to create, or enable the creation or redistribution of,
  312. // unlawful or unlicensed copies of an Apple operating system, or to
  313. // circumvent, violate, or enable the circumvention or violation of, any
  314. // terms of an Apple operating system software license agreement.
  315. //
  316. // Please obtain a copy of the License at
  317. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  318. //
  319. // The Original Code and all software distributed under the License are
  320. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  321. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  322. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  323. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  324. // Please see the License for the specific language governing rights and
  325. // limitations under the License.
  326. //
  327. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  328. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  329. // Copyright (c) 1991, 1993
  330. // The Regents of the University of California. All rights reserved.
  331. //
  332. // This code is derived from software contributed to Berkeley by
  333. // Berkeley Software Design, Inc.
  334. //
  335. // Redistribution and use in source and binary forms, with or without
  336. // modification, are permitted provided that the following conditions
  337. // are met:
  338. // 1. Redistributions of source code must retain the above copyright
  339. // notice, this list of conditions and the following disclaimer.
  340. // 2. Redistributions in binary form must reproduce the above copyright
  341. // notice, this list of conditions and the following disclaimer in the
  342. // documentation and/or other materials provided with the distribution.
  343. // 3. All advertising materials mentioning features or use of this software
  344. // must display the following acknowledgement:
  345. // This product includes software developed by the University of
  346. // California, Berkeley and its contributors.
  347. // 4. Neither the name of the University nor the names of its contributors
  348. // may be used to endorse or promote products derived from this software
  349. // without specific prior written permission.
  350. //
  351. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  352. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  353. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  354. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  355. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  356. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  357. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  358. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  359. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  360. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  361. // SUCH DAMAGE.
  362. //
  363. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  364. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  365. //
  366. // @APPLE_LICENSE_HEADER_START@
  367. //
  368. // This file contains Original Code and/or Modifications of Original Code
  369. // as defined in and that are subject to the Apple Public Source License
  370. // Version 2.0 (the 'License'). You may not use this file except in
  371. // compliance with the License. Please obtain a copy of the License at
  372. // http://www.opensource.apple.com/apsl/ and read it before using this
  373. // file.
  374. //
  375. // The Original Code and all software distributed under the License are
  376. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  377. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  378. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  379. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  380. // Please see the License for the specific language governing rights and
  381. // limitations under the License.
  382. //
  383. // @APPLE_LICENSE_HEADER_END@
  384. // !
  385. // @typedef qos_class_t
  386. //
  387. // @abstract
  388. // An abstract thread quality of service (QOS) classification.
  389. //
  390. // @discussion
  391. // Thread quality of service (QOS) classes are ordered abstract representations
  392. // of the nature of work that is expected to be performed by a pthread, dispatch
  393. // queue, or NSOperation. Each class specifies a maximum thread scheduling
  394. // priority for that band (which may be used in combination with a relative
  395. // priority offset within the band), as well as quality of service
  396. // characteristics for timer latency, CPU throughput, I/O throughput, network
  397. // socket traffic management behavior and more.
  398. //
  399. // A best effort is made to allocate available system resources to every QOS
  400. // class. Quality of service degredation only occurs during system resource
  401. // contention, proportionally to the QOS class. That said, QOS classes
  402. // representing user-initiated work attempt to achieve peak throughput while
  403. // QOS classes for other work attempt to achieve peak energy and thermal
  404. // efficiency, even in the absence of contention. Finally, the use of QOS
  405. // classes does not allow threads to supersede any limits that may be applied
  406. // to the overall process.
  407. // !
  408. // @constant QOS_CLASS_USER_INTERACTIVE
  409. // @abstract A QOS class which indicates work performed by this thread
  410. // is interactive with the user.
  411. // @discussion Such work is requested to run at high priority relative to other
  412. // work on the system. Specifying this QOS class is a request to run with
  413. // nearly all available system CPU and I/O bandwidth even under contention.
  414. // This is not an energy-efficient QOS class to use for large tasks. The use of
  415. // this QOS class should be limited to critical interaction with the user such
  416. // as handling events on the main event loop, view drawing, animation, etc.
  417. //
  418. // @constant QOS_CLASS_USER_INITIATED
  419. // @abstract A QOS class which indicates work performed by this thread
  420. // was initiated by the user and that the user is likely waiting for the
  421. // results.
  422. // @discussion Such work is requested to run at a priority below critical user-
  423. // interactive work, but relatively higher than other work on the system. This
  424. // is not an energy-efficient QOS class to use for large tasks. Its use
  425. // should be limited to operations of short enough duration that the user is
  426. // unlikely to switch tasks while waiting for the results. Typical
  427. // user-initiated work will have progress indicated by the display of
  428. // placeholder content or modal user interface.
  429. //
  430. // @constant QOS_CLASS_DEFAULT
  431. // @abstract A default QOS class used by the system in cases where more specific
  432. // QOS class information is not available.
  433. // @discussion Such work is requested to run at a priority below critical user-
  434. // interactive and user-initiated work, but relatively higher than utility and
  435. // background tasks. Threads created by pthread_create() without an attribute
  436. // specifying a QOS class will default to QOS_CLASS_DEFAULT. This QOS class
  437. // value is not intended to be used as a work classification, it should only be
  438. // set when propagating or restoring QOS class values provided by the system.
  439. //
  440. // @constant QOS_CLASS_UTILITY
  441. // @abstract A QOS class which indicates work performed by this thread
  442. // may or may not be initiated by the user and that the user is unlikely to be
  443. // immediately waiting for the results.
  444. // @discussion Such work is requested to run at a priority below critical user-
  445. // interactive and user-initiated work, but relatively higher than low-level
  446. // system maintenance tasks. The use of this QOS class indicates the work
  447. // should be run in an energy and thermally-efficient manner. The progress of
  448. // utility work may or may not be indicated to the user, but the effect of such
  449. // work is user-visible.
  450. //
  451. // @constant QOS_CLASS_BACKGROUND
  452. // @abstract A QOS class which indicates work performed by this thread was not
  453. // initiated by the user and that the user may be unaware of the results.
  454. // @discussion Such work is requested to run at a priority below other work.
  455. // The use of this QOS class indicates the work should be run in the most energy
  456. // and thermally-efficient manner.
  457. //
  458. // @constant QOS_CLASS_UNSPECIFIED
  459. // @abstract A QOS class value which indicates the absence or removal of QOS
  460. // class information.
  461. // @discussion As an API return value, may indicate that threads or pthread
  462. // attributes were configured with legacy API incompatible or in conflict with
  463. // the QOS class system.
  464. const ( /* qos.h:130:1: */
  465. QOS_CLASS_USER_INTERACTIVE = 33
  466. QOS_CLASS_USER_INITIATED = 25
  467. QOS_CLASS_DEFAULT = 21
  468. QOS_CLASS_UTILITY = 17
  469. QOS_CLASS_BACKGROUND = 9
  470. QOS_CLASS_UNSPECIFIED = 0
  471. )
  472. const ( /* time.h:153:1: */
  473. X_CLOCK_REALTIME = 0
  474. X_CLOCK_MONOTONIC = 6
  475. X_CLOCK_MONOTONIC_RAW = 4
  476. X_CLOCK_MONOTONIC_RAW_APPROX = 5
  477. X_CLOCK_UPTIME_RAW = 8
  478. X_CLOCK_UPTIME_RAW_APPROX = 9
  479. X_CLOCK_PROCESS_CPUTIME_ID = 12
  480. X_CLOCK_THREAD_CPUTIME_ID = 16
  481. )
  482. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  483. type Size_t = uint64 /* <builtin>:9:23 */
  484. type Wchar_t = int32 /* <builtin>:15:24 */
  485. type X__int128_t = struct {
  486. Flo int64
  487. Fhi int64
  488. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  489. type X__uint128_t = struct {
  490. Flo uint64
  491. Fhi uint64
  492. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  493. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  494. type X__float128 = float64 /* <builtin>:47:21 */
  495. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  496. // Copyright (c) 2000-2012 Apple Inc. All rights reserved.
  497. //
  498. // @APPLE_LICENSE_HEADER_START@
  499. //
  500. // This file contains Original Code and/or Modifications of Original Code
  501. // as defined in and that are subject to the Apple Public Source License
  502. // Version 2.0 (the 'License'). You may not use this file except in
  503. // compliance with the License. Please obtain a copy of the License at
  504. // http://www.opensource.apple.com/apsl/ and read it before using this
  505. // file.
  506. //
  507. // The Original Code and all software distributed under the License are
  508. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  509. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  510. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  511. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  512. // Please see the License for the specific language governing rights and
  513. // limitations under the License.
  514. //
  515. // @APPLE_LICENSE_HEADER_END@
  516. // Copyright 1996 1995 by Open Software Foundation, Inc. 1997 1996 1995 1994 1993 1992 1991
  517. // All Rights Reserved
  518. //
  519. // Permission to use, copy, modify, and distribute this software and
  520. // its documentation for any purpose and without fee is hereby granted,
  521. // provided that the above copyright notice appears in all copies and
  522. // that both the copyright notice and this permission notice appear in
  523. // supporting documentation.
  524. //
  525. // OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
  526. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  527. // FOR A PARTICULAR PURPOSE.
  528. //
  529. // IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
  530. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  531. // LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
  532. // NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  533. // WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  534. //
  535. // MkLinux
  536. // POSIX Threads - IEEE 1003.1c
  537. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  538. //
  539. // @APPLE_LICENSE_HEADER_START@
  540. //
  541. // This file contains Original Code and/or Modifications of Original Code
  542. // as defined in and that are subject to the Apple Public Source License
  543. // Version 2.0 (the 'License'). You may not use this file except in
  544. // compliance with the License. Please obtain a copy of the License at
  545. // http://www.opensource.apple.com/apsl/ and read it before using this
  546. // file.
  547. //
  548. // The Original Code and all software distributed under the License are
  549. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  550. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  551. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  552. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  553. // Please see the License for the specific language governing rights and
  554. // limitations under the License.
  555. //
  556. // @APPLE_LICENSE_HEADER_END@
  557. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  558. //
  559. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  560. //
  561. // This file contains Original Code and/or Modifications of Original Code
  562. // as defined in and that are subject to the Apple Public Source License
  563. // Version 2.0 (the 'License'). You may not use this file except in
  564. // compliance with the License. The rights granted to you under the License
  565. // may not be used to create, or enable the creation or redistribution of,
  566. // unlawful or unlicensed copies of an Apple operating system, or to
  567. // circumvent, violate, or enable the circumvention or violation of, any
  568. // terms of an Apple operating system software license agreement.
  569. //
  570. // Please obtain a copy of the License at
  571. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  572. //
  573. // The Original Code and all software distributed under the License are
  574. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  575. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  576. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  577. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  578. // Please see the License for the specific language governing rights and
  579. // limitations under the License.
  580. //
  581. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  582. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  583. //
  584. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  585. //
  586. // This file contains Original Code and/or Modifications of Original Code
  587. // as defined in and that are subject to the Apple Public Source License
  588. // Version 2.0 (the 'License'). You may not use this file except in
  589. // compliance with the License. The rights granted to you under the License
  590. // may not be used to create, or enable the creation or redistribution of,
  591. // unlawful or unlicensed copies of an Apple operating system, or to
  592. // circumvent, violate, or enable the circumvention or violation of, any
  593. // terms of an Apple operating system software license agreement.
  594. //
  595. // Please obtain a copy of the License at
  596. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  597. //
  598. // The Original Code and all software distributed under the License are
  599. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  600. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  601. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  602. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  603. // Please see the License for the specific language governing rights and
  604. // limitations under the License.
  605. //
  606. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  607. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  608. // Copyright (c) 1991, 1993
  609. // The Regents of the University of California. All rights reserved.
  610. //
  611. // This code is derived from software contributed to Berkeley by
  612. // Berkeley Software Design, Inc.
  613. //
  614. // Redistribution and use in source and binary forms, with or without
  615. // modification, are permitted provided that the following conditions
  616. // are met:
  617. // 1. Redistributions of source code must retain the above copyright
  618. // notice, this list of conditions and the following disclaimer.
  619. // 2. Redistributions in binary form must reproduce the above copyright
  620. // notice, this list of conditions and the following disclaimer in the
  621. // documentation and/or other materials provided with the distribution.
  622. // 3. All advertising materials mentioning features or use of this software
  623. // must display the following acknowledgement:
  624. // This product includes software developed by the University of
  625. // California, Berkeley and its contributors.
  626. // 4. Neither the name of the University nor the names of its contributors
  627. // may be used to endorse or promote products derived from this software
  628. // without specific prior written permission.
  629. //
  630. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  631. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  632. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  633. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  634. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  635. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  636. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  637. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  638. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  639. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  640. // SUCH DAMAGE.
  641. //
  642. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  643. // This SDK is designed to work with clang and specific versions of
  644. // gcc >= 4.0 with Apple's patch sets
  645. // Compatibility with compilers and environments that don't support compiler
  646. // feature checking function-like macros.
  647. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  648. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  649. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  650. // in between its arguments. __CONCAT can also concatenate double-quoted
  651. // strings produced by the __STRING macro, but this only works with ANSI C.
  652. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  653. // deleted from the program and old programs will want them left alone.
  654. // When using a compiler other than gcc, programs using the ANSI C keywords
  655. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  656. // When using "gcc -traditional", we assume that this is the intent; if
  657. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  658. // __pure2 can be used for functions that are only a function of their scalar
  659. // arguments (meaning they can't dereference pointers).
  660. //
  661. // __stateful_pure can be used for functions that have no side effects,
  662. // but depend on the state of the memory.
  663. // __unused denotes variables and functions that may not be used, preventing
  664. // the compiler from warning about it if not used.
  665. // __used forces variables and functions to be included even if it appears
  666. // to the compiler that they are not used (and would thust be discarded).
  667. // __cold marks code used for debugging or that is rarely taken
  668. // and tells the compiler to optimize for size and outline code.
  669. // __exported denotes symbols that should be exported even when symbols
  670. // are hidden by default.
  671. // __exported_push/_exported_pop are pragmas used to delimit a range of
  672. // symbols that should be exported even when symbols are hidden by default.
  673. // __deprecated causes the compiler to produce a warning when encountering
  674. // code using the deprecated functionality.
  675. // __deprecated_msg() does the same, and compilers that support it will print
  676. // a message along with the deprecation warning.
  677. // This may require turning on such warning with the -Wdeprecated flag.
  678. // __deprecated_enum_msg() should be used on enums, and compilers that support
  679. // it will print the deprecation warning.
  680. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  681. // interfaces in Kernel.framework used by KEXTs.
  682. // __unavailable causes the compiler to error out when encountering
  683. // code using the tagged function
  684. // Delete pseudo-keywords wherever they are not available or needed.
  685. // We use `__restrict' as a way to define the `restrict' type qualifier
  686. // without disturbing older software that is unaware of C99 keywords.
  687. // Compatibility with compilers and environments that don't support the
  688. // nullability feature.
  689. // __disable_tail_calls causes the compiler to not perform tail call
  690. // optimization inside the marked function.
  691. // __not_tail_called causes the compiler to prevent tail call optimization
  692. // on statically bound calls to the function. It has no effect on indirect
  693. // calls. Virtual functions, objective-c methods, and functions marked as
  694. // "always_inline" cannot be marked as __not_tail_called.
  695. // __result_use_check warns callers of a function that not using the function
  696. // return value is a bug, i.e. dismissing malloc() return value results in a
  697. // memory leak.
  698. // __swift_unavailable causes the compiler to mark a symbol as specifically
  699. // unavailable in Swift, regardless of any other availability in C.
  700. // __abortlike is the attribute to put on functions like abort() that are
  701. // typically used to mark assertions. These optimize the codegen
  702. // for outlining while still maintaining debugability.
  703. // Declaring inline functions within headers is error-prone due to differences
  704. // across various versions of the C language and extensions. __header_inline
  705. // can be used to declare inline functions within system headers. In cases
  706. // where you want to force inlining instead of letting the compiler make
  707. // the decision, you can use __header_always_inline.
  708. //
  709. // Be aware that using inline for functions which compilers may also provide
  710. // builtins can behave differently under various compilers. If you intend to
  711. // provide an inline version of such a function, you may want to use a macro
  712. // instead.
  713. //
  714. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  715. // support c99 inline in some cases:
  716. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  717. // Compiler-dependent macros that bracket portions of code where the
  718. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  719. // Compiler-dependent macros to declare that functions take printf-like
  720. // or scanf-like arguments. They are null except for versions of gcc
  721. // that are known to support the features properly. Functions declared
  722. // with these attributes will cause compilation warnings if there is a
  723. // mismatch between the format string and subsequent function parameter
  724. // types.
  725. // Source compatibility only, ID string not emitted in object file
  726. // __alloc_size can be used to label function arguments that represent the
  727. // size of memory that the function allocates and returns. The one-argument
  728. // form labels a single argument that gives the allocation size (where the
  729. // arguments are numbered from 1):
  730. //
  731. // void *malloc(size_t __size) __alloc_size(1);
  732. //
  733. // The two-argument form handles the case where the size is calculated as the
  734. // product of two arguments:
  735. //
  736. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  737. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  738. //
  739. // DEFAULT By default newly complied code will get POSIX APIs plus
  740. // Apple API extensions in scope.
  741. //
  742. // Most users will use this compilation environment to avoid
  743. // behavioral differences between 32 and 64 bit code.
  744. //
  745. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  746. // API extensions in scope.
  747. //
  748. // This is generally equivalent to the Tiger release compilation
  749. // environment, except that it cannot be applied to 64 bit code;
  750. // its use is discouraged.
  751. //
  752. // We expect this environment to be deprecated in the future.
  753. //
  754. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  755. // available APIs to exactly the set of APIs defined by the
  756. // corresponding standard, based on the value defined.
  757. //
  758. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  759. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  760. //
  761. // Apple API extensions are not visible in this environment,
  762. // which can cause Apple specific code to fail to compile,
  763. // or behave incorrectly if prototypes are not in scope or
  764. // warnings about missing prototypes are not enabled or ignored.
  765. //
  766. // In any compilation environment, for correct symbol resolution to occur,
  767. // function prototypes must be in scope. It is recommended that all Apple
  768. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  769. // compiler flags to their projects to be warned when a function is being
  770. // used without a prototype in scope.
  771. // These settings are particular to each product.
  772. // Platform: MacOSX
  773. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  774. // legacy code to use the old symbol, thus maintaining binary compatibility
  775. // while new code can use a standards compliant version of the same function.
  776. //
  777. // __DARWIN_ALIAS is used by itself if the function signature has not
  778. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  779. // if the signature has changed. Because the __LP64__ environment
  780. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  781. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  782. //
  783. // As a special case, when XCode is used to target a specific version of the
  784. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  785. // will be defined by the compiler, with the digits representing major version
  786. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  787. // pre-10.5, and it is the default compilation environment, revert the
  788. // compilation environment to pre-__DARWIN_UNIX03.
  789. // symbol suffixes used for symbol versioning
  790. // symbol versioning macros
  791. // symbol release macros
  792. // Copyright (c) 2010 Apple Inc. All rights reserved.
  793. //
  794. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  795. //
  796. // This file contains Original Code and/or Modifications of Original Code
  797. // as defined in and that are subject to the Apple Public Source License
  798. // Version 2.0 (the 'License'). You may not use this file except in
  799. // compliance with the License. The rights granted to you under the License
  800. // may not be used to create, or enable the creation or redistribution of,
  801. // unlawful or unlicensed copies of an Apple operating system, or to
  802. // circumvent, violate, or enable the circumvention or violation of, any
  803. // terms of an Apple operating system software license agreement.
  804. //
  805. // Please obtain a copy of the License at
  806. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  807. //
  808. // The Original Code and all software distributed under the License are
  809. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  810. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  811. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  812. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  813. // Please see the License for the specific language governing rights and
  814. // limitations under the License.
  815. //
  816. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  817. // POSIX.1 requires that the macros we test be defined before any standard
  818. // header file is included. This permits us to convert values for feature
  819. // testing, as necessary, using only _POSIX_C_SOURCE.
  820. //
  821. // Here's a quick run-down of the versions:
  822. // defined(_POSIX_SOURCE) 1003.1-1988
  823. // _POSIX_C_SOURCE == 1L 1003.1-1990
  824. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  825. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  826. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  827. // and the omnibus ISO/IEC 9945-1: 1996
  828. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  829. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  830. //
  831. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  832. // Specification, defines a feature-test macro which indicates the version of
  833. // that specification, and which subsumes _POSIX_C_SOURCE.
  834. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  835. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  836. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  837. // Deal with all versions of POSIX. The ordering relative to the tests above is
  838. // important.
  839. // POSIX C deprecation macros
  840. // Copyright (c) 2010 Apple Inc. All rights reserved.
  841. //
  842. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  843. //
  844. // This file contains Original Code and/or Modifications of Original Code
  845. // as defined in and that are subject to the Apple Public Source License
  846. // Version 2.0 (the 'License'). You may not use this file except in
  847. // compliance with the License. The rights granted to you under the License
  848. // may not be used to create, or enable the creation or redistribution of,
  849. // unlawful or unlicensed copies of an Apple operating system, or to
  850. // circumvent, violate, or enable the circumvention or violation of, any
  851. // terms of an Apple operating system software license agreement.
  852. //
  853. // Please obtain a copy of the License at
  854. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  855. //
  856. // The Original Code and all software distributed under the License are
  857. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  858. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  859. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  860. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  861. // Please see the License for the specific language governing rights and
  862. // limitations under the License.
  863. //
  864. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  865. // Set a single macro which will always be defined and can be used to determine
  866. // the appropriate namespace. For POSIX, these values will correspond to
  867. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  868. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  869. // If the developer has neither requested a strict language mode nor a version
  870. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  871. // of __DARWIN_C_FULL.
  872. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  873. // c99 still want long longs. While not perfect, we allow long longs for
  874. // g++.
  875. // ****************************************
  876. //
  877. // Public darwin-specific feature macros
  878. //
  879. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  880. // structures modified for 64-bit inodes (like struct stat) will be used.
  881. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  882. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  883. // (and non-zero). There is no struct stat64 either, as the regular
  884. // struct stat will already be the 64-bit version.
  885. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  886. // in 10.5 exists; no pre-10.5 variants are available.
  887. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  888. // are available (the legacy BSD APIs are not available)
  889. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  890. // and specifies the conformance level (3 is SUSv3)
  891. // This macro casts away the qualifier from the variable
  892. //
  893. // Note: use at your own risk, removing qualifiers can result in
  894. // catastrophic run-time failures.
  895. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  896. // used from other compilation units, but not other libraries or executables.
  897. // We intentionally define to nothing pointer attributes which do not have an
  898. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  899. // of the ABI incompatibility that makes the diagnostic preferable.
  900. // Similarly, we intentionally define to nothing the
  901. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  902. // macros because they do not lead to an ABI incompatibility. However, we do not
  903. // define the indexable and unsafe_indexable ones because the diagnostic is
  904. // better than the silent ABI break.
  905. // __unsafe_forge intrinsics are defined as regular C casts.
  906. // decay operates normally; attribute is meaningless without pointer checks.
  907. // Architecture validation for current SDK
  908. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  909. //
  910. // This provides more advanced type checking on compilers supporting
  911. // the proper extensions, even in C.
  912. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  913. //
  914. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  915. //
  916. // This file contains Original Code and/or Modifications of Original Code
  917. // as defined in and that are subject to the Apple Public Source License
  918. // Version 2.0 (the 'License'). You may not use this file except in
  919. // compliance with the License. The rights granted to you under the License
  920. // may not be used to create, or enable the creation or redistribution of,
  921. // unlawful or unlicensed copies of an Apple operating system, or to
  922. // circumvent, violate, or enable the circumvention or violation of, any
  923. // terms of an Apple operating system software license agreement.
  924. //
  925. // Please obtain a copy of the License at
  926. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  927. //
  928. // The Original Code and all software distributed under the License are
  929. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  930. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  931. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  932. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  933. // Please see the License for the specific language governing rights and
  934. // limitations under the License.
  935. //
  936. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  937. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  938. // This header file contains integer types. It's intended to also contain
  939. // flotaing point and other arithmetic types, as needed, later.
  940. type X__int8_t = int8 /* _types.h:15:33 */
  941. type X__uint8_t = uint8 /* _types.h:19:33 */
  942. type X__int16_t = int16 /* _types.h:20:33 */
  943. type X__uint16_t = uint16 /* _types.h:21:33 */
  944. type X__int32_t = int32 /* _types.h:22:33 */
  945. type X__uint32_t = uint32 /* _types.h:23:33 */
  946. type X__int64_t = int64 /* _types.h:24:33 */
  947. type X__uint64_t = uint64 /* _types.h:25:33 */
  948. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  949. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  950. // The rune type below is declared to be an ``int'' instead of the more natural
  951. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  952. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  953. // it looks like 10646 will be a 31 bit standard. This means that if your
  954. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  955. // chosen over a long is that the is*() and to*() routines take ints (says
  956. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  957. // here, you lose a bit of ANSI conformance, but your programs will still
  958. // work.
  959. //
  960. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  961. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  962. // rune_t must be the same type. Also wint_t must be no narrower than
  963. // wchar_t, and should also be able to hold all members of the largest
  964. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  965. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  966. // mbstate_t is an opaque object to keep conversion state, during multibyte
  967. // stream conversions. The content must not be referenced by user programs.
  968. type X__mbstate_t = struct {
  969. F__ccgo_pad1 [0]uint64
  970. F__mbstate8 [128]int8
  971. } /* _types.h:57:3 */
  972. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  973. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  974. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  975. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  976. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  977. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  978. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  979. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  980. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  981. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  982. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  983. // Type definitions; takes common type definitions that must be used
  984. // in multiple header files due to [XSI], removes them from the system
  985. // space, and puts them in the implementation space.
  986. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  987. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  988. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  989. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  990. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  991. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  992. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  993. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  994. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  995. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  996. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  997. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  998. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  999. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  1000. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  1001. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  1002. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  1003. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  1004. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  1005. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  1006. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1007. //
  1008. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1009. //
  1010. // This file contains Original Code and/or Modifications of Original Code
  1011. // as defined in and that are subject to the Apple Public Source License
  1012. // Version 2.0 (the 'License'). You may not use this file except in
  1013. // compliance with the License. The rights granted to you under the License
  1014. // may not be used to create, or enable the creation or redistribution of,
  1015. // unlawful or unlicensed copies of an Apple operating system, or to
  1016. // circumvent, violate, or enable the circumvention or violation of, any
  1017. // terms of an Apple operating system software license agreement.
  1018. //
  1019. // Please obtain a copy of the License at
  1020. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1021. //
  1022. // The Original Code and all software distributed under the License are
  1023. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1024. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1025. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1026. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1027. // Please see the License for the specific language governing rights and
  1028. // limitations under the License.
  1029. //
  1030. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1031. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1032. //
  1033. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1034. //
  1035. // This file contains Original Code and/or Modifications of Original Code
  1036. // as defined in and that are subject to the Apple Public Source License
  1037. // Version 2.0 (the 'License'). You may not use this file except in
  1038. // compliance with the License. The rights granted to you under the License
  1039. // may not be used to create, or enable the creation or redistribution of,
  1040. // unlawful or unlicensed copies of an Apple operating system, or to
  1041. // circumvent, violate, or enable the circumvention or violation of, any
  1042. // terms of an Apple operating system software license agreement.
  1043. //
  1044. // Please obtain a copy of the License at
  1045. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1046. //
  1047. // The Original Code and all software distributed under the License are
  1048. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1049. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1050. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1051. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1052. // Please see the License for the specific language governing rights and
  1053. // limitations under the License.
  1054. //
  1055. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1056. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1057. // Copyright (c) 1991, 1993
  1058. // The Regents of the University of California. All rights reserved.
  1059. //
  1060. // This code is derived from software contributed to Berkeley by
  1061. // Berkeley Software Design, Inc.
  1062. //
  1063. // Redistribution and use in source and binary forms, with or without
  1064. // modification, are permitted provided that the following conditions
  1065. // are met:
  1066. // 1. Redistributions of source code must retain the above copyright
  1067. // notice, this list of conditions and the following disclaimer.
  1068. // 2. Redistributions in binary form must reproduce the above copyright
  1069. // notice, this list of conditions and the following disclaimer in the
  1070. // documentation and/or other materials provided with the distribution.
  1071. // 3. All advertising materials mentioning features or use of this software
  1072. // must display the following acknowledgement:
  1073. // This product includes software developed by the University of
  1074. // California, Berkeley and its contributors.
  1075. // 4. Neither the name of the University nor the names of its contributors
  1076. // may be used to endorse or promote products derived from this software
  1077. // without specific prior written permission.
  1078. //
  1079. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1080. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1081. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1082. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1083. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1084. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1085. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1086. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1087. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1088. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1089. // SUCH DAMAGE.
  1090. //
  1091. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1092. // pthread opaque structures
  1093. type X__darwin_pthread_handler_rec = struct {
  1094. F__routine uintptr
  1095. F__arg uintptr
  1096. F__next uintptr
  1097. } /* _pthread_types.h:57:1 */
  1098. type X_opaque_pthread_attr_t = struct {
  1099. F__sig int64
  1100. F__opaque [56]int8
  1101. } /* _pthread_types.h:63:1 */
  1102. type X_opaque_pthread_cond_t = struct {
  1103. F__sig int64
  1104. F__opaque [40]int8
  1105. } /* _pthread_types.h:68:1 */
  1106. type X_opaque_pthread_condattr_t = struct {
  1107. F__sig int64
  1108. F__opaque [8]int8
  1109. } /* _pthread_types.h:73:1 */
  1110. type X_opaque_pthread_mutex_t = struct {
  1111. F__sig int64
  1112. F__opaque [56]int8
  1113. } /* _pthread_types.h:78:1 */
  1114. type X_opaque_pthread_mutexattr_t = struct {
  1115. F__sig int64
  1116. F__opaque [8]int8
  1117. } /* _pthread_types.h:83:1 */
  1118. type X_opaque_pthread_once_t = struct {
  1119. F__sig int64
  1120. F__opaque [8]int8
  1121. } /* _pthread_types.h:88:1 */
  1122. type X_opaque_pthread_rwlock_t = struct {
  1123. F__sig int64
  1124. F__opaque [192]int8
  1125. } /* _pthread_types.h:93:1 */
  1126. type X_opaque_pthread_rwlockattr_t = struct {
  1127. F__sig int64
  1128. F__opaque [16]int8
  1129. } /* _pthread_types.h:98:1 */
  1130. type X_opaque_pthread_t = struct {
  1131. F__sig int64
  1132. F__cleanup_stack uintptr
  1133. F__opaque [8176]int8
  1134. } /* _pthread_types.h:103:1 */
  1135. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  1136. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  1137. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  1138. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  1139. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  1140. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  1141. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  1142. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  1143. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1144. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  1145. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1146. //
  1147. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1148. //
  1149. // This file contains Original Code and/or Modifications of Original Code
  1150. // as defined in and that are subject to the Apple Public Source License
  1151. // Version 2.0 (the 'License'). You may not use this file except in
  1152. // compliance with the License. The rights granted to you under the License
  1153. // may not be used to create, or enable the creation or redistribution of,
  1154. // unlawful or unlicensed copies of an Apple operating system, or to
  1155. // circumvent, violate, or enable the circumvention or violation of, any
  1156. // terms of an Apple operating system software license agreement.
  1157. //
  1158. // Please obtain a copy of the License at
  1159. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1160. //
  1161. // The Original Code and all software distributed under the License are
  1162. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1163. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1164. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1165. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1166. // Please see the License for the specific language governing rights and
  1167. // limitations under the License.
  1168. //
  1169. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1170. type X__darwin_nl_item = int32 /* _types.h:40:14 */
  1171. type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
  1172. type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  1173. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1174. //
  1175. // @APPLE_LICENSE_HEADER_START@
  1176. //
  1177. // This file contains Original Code and/or Modifications of Original Code
  1178. // as defined in and that are subject to the Apple Public Source License
  1179. // Version 2.0 (the 'License'). You may not use this file except in
  1180. // compliance with the License. Please obtain a copy of the License at
  1181. // http://www.opensource.apple.com/apsl/ and read it before using this
  1182. // file.
  1183. //
  1184. // The Original Code and all software distributed under the License are
  1185. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1186. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1187. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1188. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1189. // Please see the License for the specific language governing rights and
  1190. // limitations under the License.
  1191. //
  1192. // @APPLE_LICENSE_HEADER_END@
  1193. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1194. //
  1195. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1196. //
  1197. // This file contains Original Code and/or Modifications of Original Code
  1198. // as defined in and that are subject to the Apple Public Source License
  1199. // Version 2.0 (the 'License'). You may not use this file except in
  1200. // compliance with the License. The rights granted to you under the License
  1201. // may not be used to create, or enable the creation or redistribution of,
  1202. // unlawful or unlicensed copies of an Apple operating system, or to
  1203. // circumvent, violate, or enable the circumvention or violation of, any
  1204. // terms of an Apple operating system software license agreement.
  1205. //
  1206. // Please obtain a copy of the License at
  1207. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1208. //
  1209. // The Original Code and all software distributed under the License are
  1210. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1211. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1212. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1213. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1214. // Please see the License for the specific language governing rights and
  1215. // limitations under the License.
  1216. //
  1217. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1218. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1219. // Copyright (c) 1991, 1993
  1220. // The Regents of the University of California. All rights reserved.
  1221. //
  1222. // This code is derived from software contributed to Berkeley by
  1223. // Berkeley Software Design, Inc.
  1224. //
  1225. // Redistribution and use in source and binary forms, with or without
  1226. // modification, are permitted provided that the following conditions
  1227. // are met:
  1228. // 1. Redistributions of source code must retain the above copyright
  1229. // notice, this list of conditions and the following disclaimer.
  1230. // 2. Redistributions in binary form must reproduce the above copyright
  1231. // notice, this list of conditions and the following disclaimer in the
  1232. // documentation and/or other materials provided with the distribution.
  1233. // 3. All advertising materials mentioning features or use of this software
  1234. // must display the following acknowledgement:
  1235. // This product includes software developed by the University of
  1236. // California, Berkeley and its contributors.
  1237. // 4. Neither the name of the University nor the names of its contributors
  1238. // may be used to endorse or promote products derived from this software
  1239. // without specific prior written permission.
  1240. //
  1241. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1242. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1243. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1244. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1245. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1246. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1247. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1248. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1249. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1250. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1251. // SUCH DAMAGE.
  1252. //
  1253. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1254. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1255. //
  1256. // @APPLE_LICENSE_HEADER_START@
  1257. //
  1258. // This file contains Original Code and/or Modifications of Original Code
  1259. // as defined in and that are subject to the Apple Public Source License
  1260. // Version 2.0 (the 'License'). You may not use this file except in
  1261. // compliance with the License. Please obtain a copy of the License at
  1262. // http://www.opensource.apple.com/apsl/ and read it before using this
  1263. // file.
  1264. //
  1265. // The Original Code and all software distributed under the License are
  1266. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1267. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1268. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1269. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1270. // Please see the License for the specific language governing rights and
  1271. // limitations under the License.
  1272. //
  1273. // @APPLE_LICENSE_HEADER_END@
  1274. // Internal implementation details
  1275. // This whole header file will disappear, so don't depend on it...
  1276. // [Internal] data structure signatures
  1277. // POSIX scheduling policies
  1278. // Scheduling paramters
  1279. type Sched_param = struct {
  1280. Fsched_priority int32
  1281. F__opaque [4]int8
  1282. } /* sched.h:35:1 */
  1283. // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1284. //
  1285. // @APPLE_LICENSE_HEADER_START@
  1286. //
  1287. // This file contains Original Code and/or Modifications of Original Code
  1288. // as defined in and that are subject to the Apple Public Source License
  1289. // Version 2.0 (the 'License'). You may not use this file except in
  1290. // compliance with the License. Please obtain a copy of the License at
  1291. // http://www.opensource.apple.com/apsl/ and read it before using this
  1292. // file.
  1293. //
  1294. // The Original Code and all software distributed under the License are
  1295. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1296. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1297. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1298. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1299. // Please see the License for the specific language governing rights and
  1300. // limitations under the License.
  1301. //
  1302. // @APPLE_LICENSE_HEADER_END@
  1303. // Copyright (c) 1989, 1993
  1304. // The Regents of the University of California. All rights reserved.
  1305. // (c) UNIX System Laboratories, Inc.
  1306. // All or some portions of this file are derived from material licensed
  1307. // to the University of California by American Telephone and Telegraph
  1308. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1309. // the permission of UNIX System Laboratories, Inc.
  1310. //
  1311. // Redistribution and use in source and binary forms, with or without
  1312. // modification, are permitted provided that the following conditions
  1313. // are met:
  1314. // 1. Redistributions of source code must retain the above copyright
  1315. // notice, this list of conditions and the following disclaimer.
  1316. // 2. Redistributions in binary form must reproduce the above copyright
  1317. // notice, this list of conditions and the following disclaimer in the
  1318. // documentation and/or other materials provided with the distribution.
  1319. // 3. All advertising materials mentioning features or use of this software
  1320. // must display the following acknowledgement:
  1321. // This product includes software developed by the University of
  1322. // California, Berkeley and its contributors.
  1323. // 4. Neither the name of the University nor the names of its contributors
  1324. // may be used to endorse or promote products derived from this software
  1325. // without specific prior written permission.
  1326. //
  1327. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1328. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1329. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1330. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1331. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1332. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1333. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1334. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1335. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1336. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1337. // SUCH DAMAGE.
  1338. //
  1339. // @(#)time.h 8.3 (Berkeley) 1/21/94
  1340. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1341. //
  1342. // @APPLE_LICENSE_HEADER_START@
  1343. //
  1344. // This file contains Original Code and/or Modifications of Original Code
  1345. // as defined in and that are subject to the Apple Public Source License
  1346. // Version 2.0 (the 'License'). You may not use this file except in
  1347. // compliance with the License. Please obtain a copy of the License at
  1348. // http://www.opensource.apple.com/apsl/ and read it before using this
  1349. // file.
  1350. //
  1351. // The Original Code and all software distributed under the License are
  1352. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1353. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1354. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1355. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1356. // Please see the License for the specific language governing rights and
  1357. // limitations under the License.
  1358. //
  1359. // @APPLE_LICENSE_HEADER_END@
  1360. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1361. //
  1362. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1363. //
  1364. // This file contains Original Code and/or Modifications of Original Code
  1365. // as defined in and that are subject to the Apple Public Source License
  1366. // Version 2.0 (the 'License'). You may not use this file except in
  1367. // compliance with the License. The rights granted to you under the License
  1368. // may not be used to create, or enable the creation or redistribution of,
  1369. // unlawful or unlicensed copies of an Apple operating system, or to
  1370. // circumvent, violate, or enable the circumvention or violation of, any
  1371. // terms of an Apple operating system software license agreement.
  1372. //
  1373. // Please obtain a copy of the License at
  1374. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1375. //
  1376. // The Original Code and all software distributed under the License are
  1377. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1378. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1379. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1380. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1381. // Please see the License for the specific language governing rights and
  1382. // limitations under the License.
  1383. //
  1384. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1385. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1386. // Copyright (c) 1991, 1993
  1387. // The Regents of the University of California. All rights reserved.
  1388. //
  1389. // This code is derived from software contributed to Berkeley by
  1390. // Berkeley Software Design, Inc.
  1391. //
  1392. // Redistribution and use in source and binary forms, with or without
  1393. // modification, are permitted provided that the following conditions
  1394. // are met:
  1395. // 1. Redistributions of source code must retain the above copyright
  1396. // notice, this list of conditions and the following disclaimer.
  1397. // 2. Redistributions in binary form must reproduce the above copyright
  1398. // notice, this list of conditions and the following disclaimer in the
  1399. // documentation and/or other materials provided with the distribution.
  1400. // 3. All advertising materials mentioning features or use of this software
  1401. // must display the following acknowledgement:
  1402. // This product includes software developed by the University of
  1403. // California, Berkeley and its contributors.
  1404. // 4. Neither the name of the University nor the names of its contributors
  1405. // may be used to endorse or promote products derived from this software
  1406. // without specific prior written permission.
  1407. //
  1408. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1409. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1410. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1411. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1412. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1413. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1414. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1415. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1416. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1417. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1418. // SUCH DAMAGE.
  1419. //
  1420. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1421. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1422. //
  1423. // @APPLE_LICENSE_HEADER_START@
  1424. //
  1425. // This file contains Original Code and/or Modifications of Original Code
  1426. // as defined in and that are subject to the Apple Public Source License
  1427. // Version 2.0 (the 'License'). You may not use this file except in
  1428. // compliance with the License. Please obtain a copy of the License at
  1429. // http://www.opensource.apple.com/apsl/ and read it before using this
  1430. // file.
  1431. //
  1432. // The Original Code and all software distributed under the License are
  1433. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1434. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1435. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1436. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1437. // Please see the License for the specific language governing rights and
  1438. // limitations under the License.
  1439. //
  1440. // @APPLE_LICENSE_HEADER_END@
  1441. //
  1442. // These macros are for use in OS header files. They enable function prototypes
  1443. // and Objective-C methods to be tagged with the OS version in which they
  1444. // were first available; and, if applicable, the OS version in which they
  1445. // became deprecated.
  1446. //
  1447. // The desktop Mac OS X and iOS each have different version numbers.
  1448. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  1449. // and iOS version numbers. For instance:
  1450. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  1451. // means the function/method was first available on Mac OS X 10.2 on the desktop
  1452. // and first available in iOS 2.0 on the iPhone.
  1453. //
  1454. // If a function is available on one platform, but not the other a _NA (not
  1455. // applicable) parameter is used. For instance:
  1456. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  1457. // means that the function/method was first available on Mac OS X 10.3, and it
  1458. // currently not implemented on the iPhone.
  1459. //
  1460. // At some point, a function/method may be deprecated. That means Apple
  1461. // recommends applications stop using the function, either because there is a
  1462. // better replacement or the functionality is being phased out. Deprecated
  1463. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  1464. // macro which specifies the OS version where the function became available
  1465. // as well as the OS version in which it became deprecated. For instance:
  1466. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  1467. // means that the function/method was introduced in Mac OS X 10.0, then
  1468. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  1469. // has never been available.
  1470. //
  1471. // For these macros to function properly, a program must specify the OS version range
  1472. // it is targeting. The min OS version is specified as an option to the compiler:
  1473. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  1474. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  1475. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  1476. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  1477. //
  1478. // Examples:
  1479. //
  1480. // A function available in Mac OS X 10.5 and later, but not on the phone:
  1481. //
  1482. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  1483. //
  1484. //
  1485. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  1486. //
  1487. // @interface MyClass : NSObject
  1488. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  1489. // @end
  1490. //
  1491. //
  1492. // An enum available on the phone, but not available on Mac OS X:
  1493. //
  1494. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  1495. // enum { myEnum = 1 };
  1496. // #endif
  1497. // Note: this works when targeting the Mac OS X platform because
  1498. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  1499. //
  1500. //
  1501. // An enum with values added in different iPhoneOS versions:
  1502. //
  1503. // enum {
  1504. // myX = 1, // Usable on iPhoneOS 2.1 and later
  1505. // myY = 2, // Usable on iPhoneOS 3.0 and later
  1506. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  1507. // ...
  1508. // Note: you do not want to use #if with enumeration values
  1509. // when a client needs to see all values at compile time
  1510. // and use runtime logic to only use the viable values.
  1511. //
  1512. //
  1513. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  1514. // source base that can be compiled to target a range of OS versions. It is best
  1515. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  1516. // That is because you might get compiled on an old OS that does not define a later
  1517. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  1518. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  1519. // way.
  1520. //
  1521. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  1522. // // code only compiled when targeting Mac OS X and not iPhone
  1523. // // note use of 1050 instead of __MAC_10_5
  1524. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  1525. // // code in here might run on pre-Leopard OS
  1526. // #else
  1527. // // code here can assume Leopard or later
  1528. // #endif
  1529. // #endif
  1530. //
  1531. //
  1532. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  1533. // in an upcoming release. This soft deprecation is an intermediate step before formal
  1534. // deprecation to notify developers about the API before compiler warnings are generated.
  1535. // You can find all places in your code that use soft deprecated API by redefining the
  1536. // value of this macro to your current minimum deployment target, for example:
  1537. // (macOS)
  1538. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  1539. // (iOS)
  1540. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  1541. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  1542. //
  1543. // @APPLE_LICENSE_HEADER_START@
  1544. //
  1545. // This file contains Original Code and/or Modifications of Original Code
  1546. // as defined in and that are subject to the Apple Public Source License
  1547. // Version 2.0 (the 'License'). You may not use this file except in
  1548. // compliance with the License. Please obtain a copy of the License at
  1549. // http://www.opensource.apple.com/apsl/ and read it before using this
  1550. // file.
  1551. //
  1552. // The Original Code and all software distributed under the License are
  1553. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1554. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1555. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1556. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1557. // Please see the License for the specific language governing rights and
  1558. // limitations under the License.
  1559. //
  1560. // @APPLE_LICENSE_HEADER_END@
  1561. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1562. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1563. // Set up standard Mac OS X versions
  1564. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1565. //
  1566. // @APPLE_LICENSE_HEADER_START@
  1567. //
  1568. // This file contains Original Code and/or Modifications of Original Code
  1569. // as defined in and that are subject to the Apple Public Source License
  1570. // Version 2.0 (the 'License'). You may not use this file except in
  1571. // compliance with the License. Please obtain a copy of the License at
  1572. // http://www.opensource.apple.com/apsl/ and read it before using this
  1573. // file.
  1574. //
  1575. // The Original Code and all software distributed under the License are
  1576. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1577. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1578. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1579. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1580. // Please see the License for the specific language governing rights and
  1581. // limitations under the License.
  1582. //
  1583. // @APPLE_LICENSE_HEADER_END@
  1584. //
  1585. // File: AvailabilityInternal.h
  1586. //
  1587. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  1588. //
  1589. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1590. // make sure a default max version is set
  1591. //
  1592. // Macros for defining which versions/platform a given symbol can be used.
  1593. //
  1594. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1595. //
  1596. // Evaluate to nothing for compilers that don't support availability.
  1597. // Swift compiler version
  1598. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  1599. // Example:
  1600. //
  1601. // #if __swift_compiler_version_at_least(800, 2, 20)
  1602. // - (nonnull NSString *)description;
  1603. // #else
  1604. // - (NSString *)description;
  1605. // #endif
  1606. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  1607. // for use to document app extension usage
  1608. // for use marking APIs available info for Mac OSX
  1609. // for use marking APIs available info for iOS
  1610. // for use marking APIs available info for tvOS
  1611. // for use marking APIs available info for Watch OS
  1612. // for use marking APIs unavailable for swift
  1613. //
  1614. // Macros for defining which versions/platform a given symbol can be used.
  1615. //
  1616. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1617. //
  1618. // * Note that these macros are only compatible with clang compilers that
  1619. // * support the following target selection options:
  1620. // *
  1621. // * -mmacosx-version-min
  1622. // * -miphoneos-version-min
  1623. // * -mwatchos-version-min
  1624. // * -mtvos-version-min
  1625. //
  1626. // Evaluate to nothing for compilers that don't support availability.
  1627. // If SPI decorations have not been defined elsewhere, disable them.
  1628. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1629. //
  1630. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1631. //
  1632. // This file contains Original Code and/or Modifications of Original Code
  1633. // as defined in and that are subject to the Apple Public Source License
  1634. // Version 2.0 (the 'License'). You may not use this file except in
  1635. // compliance with the License. The rights granted to you under the License
  1636. // may not be used to create, or enable the creation or redistribution of,
  1637. // unlawful or unlicensed copies of an Apple operating system, or to
  1638. // circumvent, violate, or enable the circumvention or violation of, any
  1639. // terms of an Apple operating system software license agreement.
  1640. //
  1641. // Please obtain a copy of the License at
  1642. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1643. //
  1644. // The Original Code and all software distributed under the License are
  1645. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1646. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1647. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1648. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1649. // Please see the License for the specific language governing rights and
  1650. // limitations under the License.
  1651. //
  1652. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1653. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1654. //
  1655. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1656. //
  1657. // This file contains Original Code and/or Modifications of Original Code
  1658. // as defined in and that are subject to the Apple Public Source License
  1659. // Version 2.0 (the 'License'). You may not use this file except in
  1660. // compliance with the License. The rights granted to you under the License
  1661. // may not be used to create, or enable the creation or redistribution of,
  1662. // unlawful or unlicensed copies of an Apple operating system, or to
  1663. // circumvent, violate, or enable the circumvention or violation of, any
  1664. // terms of an Apple operating system software license agreement.
  1665. //
  1666. // Please obtain a copy of the License at
  1667. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1668. //
  1669. // The Original Code and all software distributed under the License are
  1670. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1671. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1672. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1673. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1674. // Please see the License for the specific language governing rights and
  1675. // limitations under the License.
  1676. //
  1677. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1678. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1679. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1680. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1681. // Copyright (c) 1990, 1993
  1682. // The Regents of the University of California. All rights reserved.
  1683. //
  1684. // Redistribution and use in source and binary forms, with or without
  1685. // modification, are permitted provided that the following conditions
  1686. // are met:
  1687. // 1. Redistributions of source code must retain the above copyright
  1688. // notice, this list of conditions and the following disclaimer.
  1689. // 2. Redistributions in binary form must reproduce the above copyright
  1690. // notice, this list of conditions and the following disclaimer in the
  1691. // documentation and/or other materials provided with the distribution.
  1692. // 3. All advertising materials mentioning features or use of this software
  1693. // must display the following acknowledgement:
  1694. // This product includes software developed by the University of
  1695. // California, Berkeley and its contributors.
  1696. // 4. Neither the name of the University nor the names of its contributors
  1697. // may be used to endorse or promote products derived from this software
  1698. // without specific prior written permission.
  1699. //
  1700. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1701. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1702. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1703. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1704. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1705. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1706. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1707. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1708. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1709. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1710. // SUCH DAMAGE.
  1711. //
  1712. // @(#)types.h 8.3 (Berkeley) 1/5/94
  1713. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1714. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1715. //
  1716. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1717. //
  1718. // This file contains Original Code and/or Modifications of Original Code
  1719. // as defined in and that are subject to the Apple Public Source License
  1720. // Version 2.0 (the 'License'). You may not use this file except in
  1721. // compliance with the License. The rights granted to you under the License
  1722. // may not be used to create, or enable the creation or redistribution of,
  1723. // unlawful or unlicensed copies of an Apple operating system, or to
  1724. // circumvent, violate, or enable the circumvention or violation of, any
  1725. // terms of an Apple operating system software license agreement.
  1726. //
  1727. // Please obtain a copy of the License at
  1728. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1729. //
  1730. // The Original Code and all software distributed under the License are
  1731. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1732. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1733. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1734. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1735. // Please see the License for the specific language governing rights and
  1736. // limitations under the License.
  1737. //
  1738. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1739. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1740. // Copyright (c) 1991, 1993
  1741. // The Regents of the University of California. All rights reserved.
  1742. //
  1743. // This code is derived from software contributed to Berkeley by
  1744. // Berkeley Software Design, Inc.
  1745. //
  1746. // Redistribution and use in source and binary forms, with or without
  1747. // modification, are permitted provided that the following conditions
  1748. // are met:
  1749. // 1. Redistributions of source code must retain the above copyright
  1750. // notice, this list of conditions and the following disclaimer.
  1751. // 2. Redistributions in binary form must reproduce the above copyright
  1752. // notice, this list of conditions and the following disclaimer in the
  1753. // documentation and/or other materials provided with the distribution.
  1754. // 3. All advertising materials mentioning features or use of this software
  1755. // must display the following acknowledgement:
  1756. // This product includes software developed by the University of
  1757. // California, Berkeley and its contributors.
  1758. // 4. Neither the name of the University nor the names of its contributors
  1759. // may be used to endorse or promote products derived from this software
  1760. // without specific prior written permission.
  1761. //
  1762. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1763. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1764. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1765. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1766. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1767. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1768. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1769. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1770. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1771. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1772. // SUCH DAMAGE.
  1773. //
  1774. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1775. // Basic integral types. Omit the typedef if
  1776. // not possible for a machine/compiler combination.
  1777. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1778. //
  1779. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1780. //
  1781. // This file contains Original Code and/or Modifications of Original Code
  1782. // as defined in and that are subject to the Apple Public Source License
  1783. // Version 2.0 (the 'License'). You may not use this file except in
  1784. // compliance with the License. The rights granted to you under the License
  1785. // may not be used to create, or enable the creation or redistribution of,
  1786. // unlawful or unlicensed copies of an Apple operating system, or to
  1787. // circumvent, violate, or enable the circumvention or violation of, any
  1788. // terms of an Apple operating system software license agreement.
  1789. //
  1790. // Please obtain a copy of the License at
  1791. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1792. //
  1793. // The Original Code and all software distributed under the License are
  1794. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1795. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1796. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1797. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1798. // Please see the License for the specific language governing rights and
  1799. // limitations under the License.
  1800. //
  1801. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1802. type Int8_t = int8 /* _int8_t.h:30:31 */
  1803. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1804. //
  1805. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1806. //
  1807. // This file contains Original Code and/or Modifications of Original Code
  1808. // as defined in and that are subject to the Apple Public Source License
  1809. // Version 2.0 (the 'License'). You may not use this file except in
  1810. // compliance with the License. The rights granted to you under the License
  1811. // may not be used to create, or enable the creation or redistribution of,
  1812. // unlawful or unlicensed copies of an Apple operating system, or to
  1813. // circumvent, violate, or enable the circumvention or violation of, any
  1814. // terms of an Apple operating system software license agreement.
  1815. //
  1816. // Please obtain a copy of the License at
  1817. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1818. //
  1819. // The Original Code and all software distributed under the License are
  1820. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1821. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1822. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1823. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1824. // Please see the License for the specific language governing rights and
  1825. // limitations under the License.
  1826. //
  1827. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1828. type Int16_t = int16 /* _int16_t.h:30:33 */
  1829. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1830. //
  1831. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1832. //
  1833. // This file contains Original Code and/or Modifications of Original Code
  1834. // as defined in and that are subject to the Apple Public Source License
  1835. // Version 2.0 (the 'License'). You may not use this file except in
  1836. // compliance with the License. The rights granted to you under the License
  1837. // may not be used to create, or enable the creation or redistribution of,
  1838. // unlawful or unlicensed copies of an Apple operating system, or to
  1839. // circumvent, violate, or enable the circumvention or violation of, any
  1840. // terms of an Apple operating system software license agreement.
  1841. //
  1842. // Please obtain a copy of the License at
  1843. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1844. //
  1845. // The Original Code and all software distributed under the License are
  1846. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1847. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1848. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1849. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1850. // Please see the License for the specific language governing rights and
  1851. // limitations under the License.
  1852. //
  1853. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1854. type Int32_t = int32 /* _int32_t.h:30:33 */
  1855. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1856. //
  1857. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1858. //
  1859. // This file contains Original Code and/or Modifications of Original Code
  1860. // as defined in and that are subject to the Apple Public Source License
  1861. // Version 2.0 (the 'License'). You may not use this file except in
  1862. // compliance with the License. The rights granted to you under the License
  1863. // may not be used to create, or enable the creation or redistribution of,
  1864. // unlawful or unlicensed copies of an Apple operating system, or to
  1865. // circumvent, violate, or enable the circumvention or violation of, any
  1866. // terms of an Apple operating system software license agreement.
  1867. //
  1868. // Please obtain a copy of the License at
  1869. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1870. //
  1871. // The Original Code and all software distributed under the License are
  1872. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1873. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1874. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1875. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1876. // Please see the License for the specific language governing rights and
  1877. // limitations under the License.
  1878. //
  1879. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1880. type Int64_t = int64 /* _int64_t.h:30:33 */
  1881. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1882. //
  1883. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1884. //
  1885. // This file contains Original Code and/or Modifications of Original Code
  1886. // as defined in and that are subject to the Apple Public Source License
  1887. // Version 2.0 (the 'License'). You may not use this file except in
  1888. // compliance with the License. The rights granted to you under the License
  1889. // may not be used to create, or enable the creation or redistribution of,
  1890. // unlawful or unlicensed copies of an Apple operating system, or to
  1891. // circumvent, violate, or enable the circumvention or violation of, any
  1892. // terms of an Apple operating system software license agreement.
  1893. //
  1894. // Please obtain a copy of the License at
  1895. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1896. //
  1897. // The Original Code and all software distributed under the License are
  1898. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1899. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1900. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1901. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1902. // Please see the License for the specific language governing rights and
  1903. // limitations under the License.
  1904. //
  1905. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1906. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1907. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1908. //
  1909. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1910. //
  1911. // This file contains Original Code and/or Modifications of Original Code
  1912. // as defined in and that are subject to the Apple Public Source License
  1913. // Version 2.0 (the 'License'). You may not use this file except in
  1914. // compliance with the License. The rights granted to you under the License
  1915. // may not be used to create, or enable the creation or redistribution of,
  1916. // unlawful or unlicensed copies of an Apple operating system, or to
  1917. // circumvent, violate, or enable the circumvention or violation of, any
  1918. // terms of an Apple operating system software license agreement.
  1919. //
  1920. // Please obtain a copy of the License at
  1921. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1922. //
  1923. // The Original Code and all software distributed under the License are
  1924. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1925. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1926. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1927. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1928. // Please see the License for the specific language governing rights and
  1929. // limitations under the License.
  1930. //
  1931. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1932. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1933. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1934. //
  1935. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1936. //
  1937. // This file contains Original Code and/or Modifications of Original Code
  1938. // as defined in and that are subject to the Apple Public Source License
  1939. // Version 2.0 (the 'License'). You may not use this file except in
  1940. // compliance with the License. The rights granted to you under the License
  1941. // may not be used to create, or enable the creation or redistribution of,
  1942. // unlawful or unlicensed copies of an Apple operating system, or to
  1943. // circumvent, violate, or enable the circumvention or violation of, any
  1944. // terms of an Apple operating system software license agreement.
  1945. //
  1946. // Please obtain a copy of the License at
  1947. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1948. //
  1949. // The Original Code and all software distributed under the License are
  1950. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1951. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1952. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1953. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1954. // Please see the License for the specific language governing rights and
  1955. // limitations under the License.
  1956. //
  1957. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1958. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1959. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1960. //
  1961. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1962. //
  1963. // This file contains Original Code and/or Modifications of Original Code
  1964. // as defined in and that are subject to the Apple Public Source License
  1965. // Version 2.0 (the 'License'). You may not use this file except in
  1966. // compliance with the License. The rights granted to you under the License
  1967. // may not be used to create, or enable the creation or redistribution of,
  1968. // unlawful or unlicensed copies of an Apple operating system, or to
  1969. // circumvent, violate, or enable the circumvention or violation of, any
  1970. // terms of an Apple operating system software license agreement.
  1971. //
  1972. // Please obtain a copy of the License at
  1973. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1974. //
  1975. // The Original Code and all software distributed under the License are
  1976. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1977. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1978. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1979. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1980. // Please see the License for the specific language governing rights and
  1981. // limitations under the License.
  1982. //
  1983. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1984. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1985. type Register_t = Int64_t /* types.h:66:33 */
  1986. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1987. //
  1988. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1989. //
  1990. // This file contains Original Code and/or Modifications of Original Code
  1991. // as defined in and that are subject to the Apple Public Source License
  1992. // Version 2.0 (the 'License'). You may not use this file except in
  1993. // compliance with the License. The rights granted to you under the License
  1994. // may not be used to create, or enable the creation or redistribution of,
  1995. // unlawful or unlicensed copies of an Apple operating system, or to
  1996. // circumvent, violate, or enable the circumvention or violation of, any
  1997. // terms of an Apple operating system software license agreement.
  1998. //
  1999. // Please obtain a copy of the License at
  2000. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2001. //
  2002. // The Original Code and all software distributed under the License are
  2003. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2004. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2005. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2006. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2007. // Please see the License for the specific language governing rights and
  2008. // limitations under the License.
  2009. //
  2010. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2011. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2012. //
  2013. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2014. //
  2015. // This file contains Original Code and/or Modifications of Original Code
  2016. // as defined in and that are subject to the Apple Public Source License
  2017. // Version 2.0 (the 'License'). You may not use this file except in
  2018. // compliance with the License. The rights granted to you under the License
  2019. // may not be used to create, or enable the creation or redistribution of,
  2020. // unlawful or unlicensed copies of an Apple operating system, or to
  2021. // circumvent, violate, or enable the circumvention or violation of, any
  2022. // terms of an Apple operating system software license agreement.
  2023. //
  2024. // Please obtain a copy of the License at
  2025. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2026. //
  2027. // The Original Code and all software distributed under the License are
  2028. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2029. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2030. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2031. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2032. // Please see the License for the specific language governing rights and
  2033. // limitations under the License.
  2034. //
  2035. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2036. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2037. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  2038. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2039. //
  2040. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2041. //
  2042. // This file contains Original Code and/or Modifications of Original Code
  2043. // as defined in and that are subject to the Apple Public Source License
  2044. // Version 2.0 (the 'License'). You may not use this file except in
  2045. // compliance with the License. The rights granted to you under the License
  2046. // may not be used to create, or enable the creation or redistribution of,
  2047. // unlawful or unlicensed copies of an Apple operating system, or to
  2048. // circumvent, violate, or enable the circumvention or violation of, any
  2049. // terms of an Apple operating system software license agreement.
  2050. //
  2051. // Please obtain a copy of the License at
  2052. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2053. //
  2054. // The Original Code and all software distributed under the License are
  2055. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2056. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2057. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2058. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2059. // Please see the License for the specific language governing rights and
  2060. // limitations under the License.
  2061. //
  2062. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2063. type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  2064. // These types are used for reserving the largest possible size.
  2065. type User_addr_t = U_int64_t /* types.h:77:33 */
  2066. type User_size_t = U_int64_t /* types.h:78:33 */
  2067. type User_ssize_t = Int64_t /* types.h:79:33 */
  2068. type User_long_t = Int64_t /* types.h:80:33 */
  2069. type User_ulong_t = U_int64_t /* types.h:81:33 */
  2070. type User_time_t = Int64_t /* types.h:82:33 */
  2071. type User_off_t = Int64_t /* types.h:83:33 */
  2072. // This defines the size of syscall arguments after copying into the kernel:
  2073. type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  2074. type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  2075. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2076. //
  2077. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2078. //
  2079. // This file contains Original Code and/or Modifications of Original Code
  2080. // as defined in and that are subject to the Apple Public Source License
  2081. // Version 2.0 (the 'License'). You may not use this file except in
  2082. // compliance with the License. The rights granted to you under the License
  2083. // may not be used to create, or enable the creation or redistribution of,
  2084. // unlawful or unlicensed copies of an Apple operating system, or to
  2085. // circumvent, violate, or enable the circumvention or violation of, any
  2086. // terms of an Apple operating system software license agreement.
  2087. //
  2088. // Please obtain a copy of the License at
  2089. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2090. //
  2091. // The Original Code and all software distributed under the License are
  2092. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2093. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2094. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2095. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2096. // Please see the License for the specific language governing rights and
  2097. // limitations under the License.
  2098. //
  2099. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2100. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2101. //
  2102. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2103. //
  2104. // This file contains Original Code and/or Modifications of Original Code
  2105. // as defined in and that are subject to the Apple Public Source License
  2106. // Version 2.0 (the 'License'). You may not use this file except in
  2107. // compliance with the License. The rights granted to you under the License
  2108. // may not be used to create, or enable the creation or redistribution of,
  2109. // unlawful or unlicensed copies of an Apple operating system, or to
  2110. // circumvent, violate, or enable the circumvention or violation of, any
  2111. // terms of an Apple operating system software license agreement.
  2112. //
  2113. // Please obtain a copy of the License at
  2114. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2115. //
  2116. // The Original Code and all software distributed under the License are
  2117. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2118. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2119. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2120. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2121. // Please see the License for the specific language governing rights and
  2122. // limitations under the License.
  2123. //
  2124. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2125. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2126. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2127. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2128. //
  2129. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2130. //
  2131. // This file contains Original Code and/or Modifications of Original Code
  2132. // as defined in and that are subject to the Apple Public Source License
  2133. // Version 2.0 (the 'License'). You may not use this file except in
  2134. // compliance with the License. The rights granted to you under the License
  2135. // may not be used to create, or enable the creation or redistribution of,
  2136. // unlawful or unlicensed copies of an Apple operating system, or to
  2137. // circumvent, violate, or enable the circumvention or violation of, any
  2138. // terms of an Apple operating system software license agreement.
  2139. //
  2140. // Please obtain a copy of the License at
  2141. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2142. //
  2143. // The Original Code and all software distributed under the License are
  2144. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2145. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2146. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2147. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2148. // Please see the License for the specific language governing rights and
  2149. // limitations under the License.
  2150. //
  2151. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2152. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2153. //
  2154. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2155. //
  2156. // This file contains Original Code and/or Modifications of Original Code
  2157. // as defined in and that are subject to the Apple Public Source License
  2158. // Version 2.0 (the 'License'). You may not use this file except in
  2159. // compliance with the License. The rights granted to you under the License
  2160. // may not be used to create, or enable the creation or redistribution of,
  2161. // unlawful or unlicensed copies of an Apple operating system, or to
  2162. // circumvent, violate, or enable the circumvention or violation of, any
  2163. // terms of an Apple operating system software license agreement.
  2164. //
  2165. // Please obtain a copy of the License at
  2166. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2167. //
  2168. // The Original Code and all software distributed under the License are
  2169. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2170. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2171. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2172. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2173. // Please see the License for the specific language governing rights and
  2174. // limitations under the License.
  2175. //
  2176. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2177. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2178. type Timespec = struct {
  2179. Ftv_sec X__darwin_time_t
  2180. Ftv_nsec int64
  2181. } /* _timespec.h:33:1 */
  2182. type Tm = struct {
  2183. Ftm_sec int32
  2184. Ftm_min int32
  2185. Ftm_hour int32
  2186. Ftm_mday int32
  2187. Ftm_mon int32
  2188. Ftm_year int32
  2189. Ftm_wday int32
  2190. Ftm_yday int32
  2191. Ftm_isdst int32
  2192. F__ccgo_pad1 [4]byte
  2193. Ftm_gmtoff int64
  2194. Ftm_zone uintptr
  2195. } /* time.h:75:1 */
  2196. type Clockid_t = uint32 /* time.h:172:3 */
  2197. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2198. //
  2199. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2200. //
  2201. // This file contains Original Code and/or Modifications of Original Code
  2202. // as defined in and that are subject to the Apple Public Source License
  2203. // Version 2.0 (the 'License'). You may not use this file except in
  2204. // compliance with the License. The rights granted to you under the License
  2205. // may not be used to create, or enable the creation or redistribution of,
  2206. // unlawful or unlicensed copies of an Apple operating system, or to
  2207. // circumvent, violate, or enable the circumvention or violation of, any
  2208. // terms of an Apple operating system software license agreement.
  2209. //
  2210. // Please obtain a copy of the License at
  2211. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2212. //
  2213. // The Original Code and all software distributed under the License are
  2214. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2215. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2216. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2217. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2218. // Please see the License for the specific language governing rights and
  2219. // limitations under the License.
  2220. //
  2221. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2222. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2223. //
  2224. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2225. //
  2226. // This file contains Original Code and/or Modifications of Original Code
  2227. // as defined in and that are subject to the Apple Public Source License
  2228. // Version 2.0 (the 'License'). You may not use this file except in
  2229. // compliance with the License. The rights granted to you under the License
  2230. // may not be used to create, or enable the creation or redistribution of,
  2231. // unlawful or unlicensed copies of an Apple operating system, or to
  2232. // circumvent, violate, or enable the circumvention or violation of, any
  2233. // terms of an Apple operating system software license agreement.
  2234. //
  2235. // Please obtain a copy of the License at
  2236. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2237. //
  2238. // The Original Code and all software distributed under the License are
  2239. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2240. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2241. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2242. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2243. // Please see the License for the specific language governing rights and
  2244. // limitations under the License.
  2245. //
  2246. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2247. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2248. //
  2249. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2250. //
  2251. // This file contains Original Code and/or Modifications of Original Code
  2252. // as defined in and that are subject to the Apple Public Source License
  2253. // Version 2.0 (the 'License'). You may not use this file except in
  2254. // compliance with the License. The rights granted to you under the License
  2255. // may not be used to create, or enable the creation or redistribution of,
  2256. // unlawful or unlicensed copies of an Apple operating system, or to
  2257. // circumvent, violate, or enable the circumvention or violation of, any
  2258. // terms of an Apple operating system software license agreement.
  2259. //
  2260. // Please obtain a copy of the License at
  2261. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2262. //
  2263. // The Original Code and all software distributed under the License are
  2264. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2265. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2266. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2267. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2268. // Please see the License for the specific language governing rights and
  2269. // limitations under the License.
  2270. //
  2271. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2272. type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  2273. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2274. //
  2275. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2276. //
  2277. // This file contains Original Code and/or Modifications of Original Code
  2278. // as defined in and that are subject to the Apple Public Source License
  2279. // Version 2.0 (the 'License'). You may not use this file except in
  2280. // compliance with the License. The rights granted to you under the License
  2281. // may not be used to create, or enable the creation or redistribution of,
  2282. // unlawful or unlicensed copies of an Apple operating system, or to
  2283. // circumvent, violate, or enable the circumvention or violation of, any
  2284. // terms of an Apple operating system software license agreement.
  2285. //
  2286. // Please obtain a copy of the License at
  2287. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2288. //
  2289. // The Original Code and all software distributed under the License are
  2290. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2291. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2292. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2293. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2294. // Please see the License for the specific language governing rights and
  2295. // limitations under the License.
  2296. //
  2297. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2298. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2299. //
  2300. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2301. //
  2302. // This file contains Original Code and/or Modifications of Original Code
  2303. // as defined in and that are subject to the Apple Public Source License
  2304. // Version 2.0 (the 'License'). You may not use this file except in
  2305. // compliance with the License. The rights granted to you under the License
  2306. // may not be used to create, or enable the creation or redistribution of,
  2307. // unlawful or unlicensed copies of an Apple operating system, or to
  2308. // circumvent, violate, or enable the circumvention or violation of, any
  2309. // terms of an Apple operating system software license agreement.
  2310. //
  2311. // Please obtain a copy of the License at
  2312. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2313. //
  2314. // The Original Code and all software distributed under the License are
  2315. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2316. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2317. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2318. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2319. // Please see the License for the specific language governing rights and
  2320. // limitations under the License.
  2321. //
  2322. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2323. type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  2324. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2325. //
  2326. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2327. //
  2328. // This file contains Original Code and/or Modifications of Original Code
  2329. // as defined in and that are subject to the Apple Public Source License
  2330. // Version 2.0 (the 'License'). You may not use this file except in
  2331. // compliance with the License. The rights granted to you under the License
  2332. // may not be used to create, or enable the creation or redistribution of,
  2333. // unlawful or unlicensed copies of an Apple operating system, or to
  2334. // circumvent, violate, or enable the circumvention or violation of, any
  2335. // terms of an Apple operating system software license agreement.
  2336. //
  2337. // Please obtain a copy of the License at
  2338. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2339. //
  2340. // The Original Code and all software distributed under the License are
  2341. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2342. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2343. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2344. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2345. // Please see the License for the specific language governing rights and
  2346. // limitations under the License.
  2347. //
  2348. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2349. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2350. //
  2351. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2352. //
  2353. // This file contains Original Code and/or Modifications of Original Code
  2354. // as defined in and that are subject to the Apple Public Source License
  2355. // Version 2.0 (the 'License'). You may not use this file except in
  2356. // compliance with the License. The rights granted to you under the License
  2357. // may not be used to create, or enable the creation or redistribution of,
  2358. // unlawful or unlicensed copies of an Apple operating system, or to
  2359. // circumvent, violate, or enable the circumvention or violation of, any
  2360. // terms of an Apple operating system software license agreement.
  2361. //
  2362. // Please obtain a copy of the License at
  2363. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2364. //
  2365. // The Original Code and all software distributed under the License are
  2366. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2367. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2368. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2369. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2370. // Please see the License for the specific language governing rights and
  2371. // limitations under the License.
  2372. //
  2373. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2374. type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  2375. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2376. //
  2377. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2378. //
  2379. // This file contains Original Code and/or Modifications of Original Code
  2380. // as defined in and that are subject to the Apple Public Source License
  2381. // Version 2.0 (the 'License'). You may not use this file except in
  2382. // compliance with the License. The rights granted to you under the License
  2383. // may not be used to create, or enable the creation or redistribution of,
  2384. // unlawful or unlicensed copies of an Apple operating system, or to
  2385. // circumvent, violate, or enable the circumvention or violation of, any
  2386. // terms of an Apple operating system software license agreement.
  2387. //
  2388. // Please obtain a copy of the License at
  2389. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2390. //
  2391. // The Original Code and all software distributed under the License are
  2392. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2393. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2394. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2395. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2396. // Please see the License for the specific language governing rights and
  2397. // limitations under the License.
  2398. //
  2399. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2400. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2401. //
  2402. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2403. //
  2404. // This file contains Original Code and/or Modifications of Original Code
  2405. // as defined in and that are subject to the Apple Public Source License
  2406. // Version 2.0 (the 'License'). You may not use this file except in
  2407. // compliance with the License. The rights granted to you under the License
  2408. // may not be used to create, or enable the creation or redistribution of,
  2409. // unlawful or unlicensed copies of an Apple operating system, or to
  2410. // circumvent, violate, or enable the circumvention or violation of, any
  2411. // terms of an Apple operating system software license agreement.
  2412. //
  2413. // Please obtain a copy of the License at
  2414. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2415. //
  2416. // The Original Code and all software distributed under the License are
  2417. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2418. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2419. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2420. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2421. // Please see the License for the specific language governing rights and
  2422. // limitations under the License.
  2423. //
  2424. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2425. type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  2426. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2427. //
  2428. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2429. //
  2430. // This file contains Original Code and/or Modifications of Original Code
  2431. // as defined in and that are subject to the Apple Public Source License
  2432. // Version 2.0 (the 'License'). You may not use this file except in
  2433. // compliance with the License. The rights granted to you under the License
  2434. // may not be used to create, or enable the creation or redistribution of,
  2435. // unlawful or unlicensed copies of an Apple operating system, or to
  2436. // circumvent, violate, or enable the circumvention or violation of, any
  2437. // terms of an Apple operating system software license agreement.
  2438. //
  2439. // Please obtain a copy of the License at
  2440. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2441. //
  2442. // The Original Code and all software distributed under the License are
  2443. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2444. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2445. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2446. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2447. // Please see the License for the specific language governing rights and
  2448. // limitations under the License.
  2449. //
  2450. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2451. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2452. //
  2453. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2454. //
  2455. // This file contains Original Code and/or Modifications of Original Code
  2456. // as defined in and that are subject to the Apple Public Source License
  2457. // Version 2.0 (the 'License'). You may not use this file except in
  2458. // compliance with the License. The rights granted to you under the License
  2459. // may not be used to create, or enable the creation or redistribution of,
  2460. // unlawful or unlicensed copies of an Apple operating system, or to
  2461. // circumvent, violate, or enable the circumvention or violation of, any
  2462. // terms of an Apple operating system software license agreement.
  2463. //
  2464. // Please obtain a copy of the License at
  2465. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2466. //
  2467. // The Original Code and all software distributed under the License are
  2468. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2469. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2470. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2471. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2472. // Please see the License for the specific language governing rights and
  2473. // limitations under the License.
  2474. //
  2475. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2476. type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  2477. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2478. //
  2479. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2480. //
  2481. // This file contains Original Code and/or Modifications of Original Code
  2482. // as defined in and that are subject to the Apple Public Source License
  2483. // Version 2.0 (the 'License'). You may not use this file except in
  2484. // compliance with the License. The rights granted to you under the License
  2485. // may not be used to create, or enable the creation or redistribution of,
  2486. // unlawful or unlicensed copies of an Apple operating system, or to
  2487. // circumvent, violate, or enable the circumvention or violation of, any
  2488. // terms of an Apple operating system software license agreement.
  2489. //
  2490. // Please obtain a copy of the License at
  2491. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2492. //
  2493. // The Original Code and all software distributed under the License are
  2494. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2495. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2496. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2497. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2498. // Please see the License for the specific language governing rights and
  2499. // limitations under the License.
  2500. //
  2501. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2502. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2503. //
  2504. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2505. //
  2506. // This file contains Original Code and/or Modifications of Original Code
  2507. // as defined in and that are subject to the Apple Public Source License
  2508. // Version 2.0 (the 'License'). You may not use this file except in
  2509. // compliance with the License. The rights granted to you under the License
  2510. // may not be used to create, or enable the creation or redistribution of,
  2511. // unlawful or unlicensed copies of an Apple operating system, or to
  2512. // circumvent, violate, or enable the circumvention or violation of, any
  2513. // terms of an Apple operating system software license agreement.
  2514. //
  2515. // Please obtain a copy of the License at
  2516. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2517. //
  2518. // The Original Code and all software distributed under the License are
  2519. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2520. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2521. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2522. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2523. // Please see the License for the specific language governing rights and
  2524. // limitations under the License.
  2525. //
  2526. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2527. type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  2528. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2529. //
  2530. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2531. //
  2532. // This file contains Original Code and/or Modifications of Original Code
  2533. // as defined in and that are subject to the Apple Public Source License
  2534. // Version 2.0 (the 'License'). You may not use this file except in
  2535. // compliance with the License. The rights granted to you under the License
  2536. // may not be used to create, or enable the creation or redistribution of,
  2537. // unlawful or unlicensed copies of an Apple operating system, or to
  2538. // circumvent, violate, or enable the circumvention or violation of, any
  2539. // terms of an Apple operating system software license agreement.
  2540. //
  2541. // Please obtain a copy of the License at
  2542. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2543. //
  2544. // The Original Code and all software distributed under the License are
  2545. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2546. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2547. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2548. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2549. // Please see the License for the specific language governing rights and
  2550. // limitations under the License.
  2551. //
  2552. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2553. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2554. //
  2555. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2556. //
  2557. // This file contains Original Code and/or Modifications of Original Code
  2558. // as defined in and that are subject to the Apple Public Source License
  2559. // Version 2.0 (the 'License'). You may not use this file except in
  2560. // compliance with the License. The rights granted to you under the License
  2561. // may not be used to create, or enable the creation or redistribution of,
  2562. // unlawful or unlicensed copies of an Apple operating system, or to
  2563. // circumvent, violate, or enable the circumvention or violation of, any
  2564. // terms of an Apple operating system software license agreement.
  2565. //
  2566. // Please obtain a copy of the License at
  2567. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2568. //
  2569. // The Original Code and all software distributed under the License are
  2570. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2571. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2572. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2573. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2574. // Please see the License for the specific language governing rights and
  2575. // limitations under the License.
  2576. //
  2577. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2578. type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  2579. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2580. //
  2581. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2582. //
  2583. // This file contains Original Code and/or Modifications of Original Code
  2584. // as defined in and that are subject to the Apple Public Source License
  2585. // Version 2.0 (the 'License'). You may not use this file except in
  2586. // compliance with the License. The rights granted to you under the License
  2587. // may not be used to create, or enable the creation or redistribution of,
  2588. // unlawful or unlicensed copies of an Apple operating system, or to
  2589. // circumvent, violate, or enable the circumvention or violation of, any
  2590. // terms of an Apple operating system software license agreement.
  2591. //
  2592. // Please obtain a copy of the License at
  2593. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2594. //
  2595. // The Original Code and all software distributed under the License are
  2596. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2597. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2598. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2599. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2600. // Please see the License for the specific language governing rights and
  2601. // limitations under the License.
  2602. //
  2603. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2604. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2605. //
  2606. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2607. //
  2608. // This file contains Original Code and/or Modifications of Original Code
  2609. // as defined in and that are subject to the Apple Public Source License
  2610. // Version 2.0 (the 'License'). You may not use this file except in
  2611. // compliance with the License. The rights granted to you under the License
  2612. // may not be used to create, or enable the creation or redistribution of,
  2613. // unlawful or unlicensed copies of an Apple operating system, or to
  2614. // circumvent, violate, or enable the circumvention or violation of, any
  2615. // terms of an Apple operating system software license agreement.
  2616. //
  2617. // Please obtain a copy of the License at
  2618. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2619. //
  2620. // The Original Code and all software distributed under the License are
  2621. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2622. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2623. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2624. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2625. // Please see the License for the specific language governing rights and
  2626. // limitations under the License.
  2627. //
  2628. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2629. type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  2630. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2631. //
  2632. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2633. //
  2634. // This file contains Original Code and/or Modifications of Original Code
  2635. // as defined in and that are subject to the Apple Public Source License
  2636. // Version 2.0 (the 'License'). You may not use this file except in
  2637. // compliance with the License. The rights granted to you under the License
  2638. // may not be used to create, or enable the creation or redistribution of,
  2639. // unlawful or unlicensed copies of an Apple operating system, or to
  2640. // circumvent, violate, or enable the circumvention or violation of, any
  2641. // terms of an Apple operating system software license agreement.
  2642. //
  2643. // Please obtain a copy of the License at
  2644. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2645. //
  2646. // The Original Code and all software distributed under the License are
  2647. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2648. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2649. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2650. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2651. // Please see the License for the specific language governing rights and
  2652. // limitations under the License.
  2653. //
  2654. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2655. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2656. //
  2657. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2658. //
  2659. // This file contains Original Code and/or Modifications of Original Code
  2660. // as defined in and that are subject to the Apple Public Source License
  2661. // Version 2.0 (the 'License'). You may not use this file except in
  2662. // compliance with the License. The rights granted to you under the License
  2663. // may not be used to create, or enable the creation or redistribution of,
  2664. // unlawful or unlicensed copies of an Apple operating system, or to
  2665. // circumvent, violate, or enable the circumvention or violation of, any
  2666. // terms of an Apple operating system software license agreement.
  2667. //
  2668. // Please obtain a copy of the License at
  2669. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2670. //
  2671. // The Original Code and all software distributed under the License are
  2672. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2673. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2674. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2675. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2676. // Please see the License for the specific language governing rights and
  2677. // limitations under the License.
  2678. //
  2679. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2680. type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  2681. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2682. //
  2683. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2684. //
  2685. // This file contains Original Code and/or Modifications of Original Code
  2686. // as defined in and that are subject to the Apple Public Source License
  2687. // Version 2.0 (the 'License'). You may not use this file except in
  2688. // compliance with the License. The rights granted to you under the License
  2689. // may not be used to create, or enable the creation or redistribution of,
  2690. // unlawful or unlicensed copies of an Apple operating system, or to
  2691. // circumvent, violate, or enable the circumvention or violation of, any
  2692. // terms of an Apple operating system software license agreement.
  2693. //
  2694. // Please obtain a copy of the License at
  2695. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2696. //
  2697. // The Original Code and all software distributed under the License are
  2698. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2699. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2700. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2701. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2702. // Please see the License for the specific language governing rights and
  2703. // limitations under the License.
  2704. //
  2705. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2706. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2707. //
  2708. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2709. //
  2710. // This file contains Original Code and/or Modifications of Original Code
  2711. // as defined in and that are subject to the Apple Public Source License
  2712. // Version 2.0 (the 'License'). You may not use this file except in
  2713. // compliance with the License. The rights granted to you under the License
  2714. // may not be used to create, or enable the creation or redistribution of,
  2715. // unlawful or unlicensed copies of an Apple operating system, or to
  2716. // circumvent, violate, or enable the circumvention or violation of, any
  2717. // terms of an Apple operating system software license agreement.
  2718. //
  2719. // Please obtain a copy of the License at
  2720. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2721. //
  2722. // The Original Code and all software distributed under the License are
  2723. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2724. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2725. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2726. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2727. // Please see the License for the specific language governing rights and
  2728. // limitations under the License.
  2729. //
  2730. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2731. type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  2732. type Qos_class_t = uint32 /* qos.h:130:1 */
  2733. // !
  2734. // @typedef pthread_override_t
  2735. //
  2736. // @abstract
  2737. // An opaque object representing a QOS class override of a thread.
  2738. //
  2739. // @discussion
  2740. // A QOS class override of a target thread expresses that an item of pending
  2741. // work classified with a specific QOS class and relative priority depends on
  2742. // the completion of the work currently being executed by the thread (e.g. due
  2743. // to ordering requirements).
  2744. //
  2745. // While overrides are in effect, the target thread will execute at the maximum
  2746. // QOS class and relative priority of all overrides and of the QOS class
  2747. // requested by the thread itself.
  2748. //
  2749. // A QOS class override does not modify the target thread's requested QOS class
  2750. // value and the effect of an override is not visible to the qos_class_self()
  2751. // and pthread_get_qos_class_np() interfaces.
  2752. type Pthread_override_t = uintptr /* qos.h:211:34 */
  2753. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2754. //
  2755. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2756. //
  2757. // This file contains Original Code and/or Modifications of Original Code
  2758. // as defined in and that are subject to the Apple Public Source License
  2759. // Version 2.0 (the 'License'). You may not use this file except in
  2760. // compliance with the License. The rights granted to you under the License
  2761. // may not be used to create, or enable the creation or redistribution of,
  2762. // unlawful or unlicensed copies of an Apple operating system, or to
  2763. // circumvent, violate, or enable the circumvention or violation of, any
  2764. // terms of an Apple operating system software license agreement.
  2765. //
  2766. // Please obtain a copy of the License at
  2767. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2768. //
  2769. // The Original Code and all software distributed under the License are
  2770. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2771. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2772. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2773. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2774. // Please see the License for the specific language governing rights and
  2775. // limitations under the License.
  2776. //
  2777. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2778. // mach_port_t - a named port right
  2779. //
  2780. // In user-space, "rights" are represented by the name of the
  2781. // right in the Mach port namespace. Even so, this type is
  2782. // presented as a unique one to more clearly denote the presence
  2783. // of a right coming along with the name.
  2784. //
  2785. // Often, various rights for a port held in a single name space
  2786. // will coalesce and are, therefore, be identified by a single name
  2787. // [this is the case for send and receive rights]. But not
  2788. // always [send-once rights currently get a unique name for
  2789. // each right].
  2790. //
  2791. // This definition of mach_port_t is only for user-space.
  2792. //
  2793. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2794. //
  2795. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2796. //
  2797. // This file contains Original Code and/or Modifications of Original Code
  2798. // as defined in and that are subject to the Apple Public Source License
  2799. // Version 2.0 (the 'License'). You may not use this file except in
  2800. // compliance with the License. The rights granted to you under the License
  2801. // may not be used to create, or enable the creation or redistribution of,
  2802. // unlawful or unlicensed copies of an Apple operating system, or to
  2803. // circumvent, violate, or enable the circumvention or violation of, any
  2804. // terms of an Apple operating system software license agreement.
  2805. //
  2806. // Please obtain a copy of the License at
  2807. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2808. //
  2809. // The Original Code and all software distributed under the License are
  2810. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2811. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2812. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2813. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2814. // Please see the License for the specific language governing rights and
  2815. // limitations under the License.
  2816. //
  2817. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2818. type Mach_port_t = X__darwin_mach_port_t /* _mach_port_t.h:50:30 */
  2819. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2820. //
  2821. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2822. //
  2823. // This file contains Original Code and/or Modifications of Original Code
  2824. // as defined in and that are subject to the Apple Public Source License
  2825. // Version 2.0 (the 'License'). You may not use this file except in
  2826. // compliance with the License. The rights granted to you under the License
  2827. // may not be used to create, or enable the creation or redistribution of,
  2828. // unlawful or unlicensed copies of an Apple operating system, or to
  2829. // circumvent, violate, or enable the circumvention or violation of, any
  2830. // terms of an Apple operating system software license agreement.
  2831. //
  2832. // Please obtain a copy of the License at
  2833. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2834. //
  2835. // The Original Code and all software distributed under the License are
  2836. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2837. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2838. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2839. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2840. // Please see the License for the specific language governing rights and
  2841. // limitations under the License.
  2842. //
  2843. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2844. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2845. //
  2846. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2847. //
  2848. // This file contains Original Code and/or Modifications of Original Code
  2849. // as defined in and that are subject to the Apple Public Source License
  2850. // Version 2.0 (the 'License'). You may not use this file except in
  2851. // compliance with the License. The rights granted to you under the License
  2852. // may not be used to create, or enable the creation or redistribution of,
  2853. // unlawful or unlicensed copies of an Apple operating system, or to
  2854. // circumvent, violate, or enable the circumvention or violation of, any
  2855. // terms of an Apple operating system software license agreement.
  2856. //
  2857. // Please obtain a copy of the License at
  2858. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2859. //
  2860. // The Original Code and all software distributed under the License are
  2861. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2862. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2863. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2864. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2865. // Please see the License for the specific language governing rights and
  2866. // limitations under the License.
  2867. //
  2868. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2869. type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  2870. // !
  2871. // @typedef pthread_jit_write_callback_t
  2872. // The type of a function that can be supplied to {@link
  2873. // pthread_jit_write_with_callback_np} to write to the MAP_JIT region while it
  2874. // is writeable.
  2875. //
  2876. // @param ctx
  2877. // A pointer to context that will be passed through to the callback function.
  2878. //
  2879. // @result
  2880. // A result code to be returned to the caller of @{link
  2881. // pthread_jit_write_with_callback_np}. The system does not interpret/act on
  2882. // the value of this result.
  2883. type Pthread_jit_write_callback_t = uintptr /* pthread.h:581:13 */
  2884. var _ int8 /* gen.c:2:13: */