pthread_darwin_amd64.go 150 KB

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