stdlib_darwin_arm64.go 218 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430
  1. // Code generated by 'ccgo stdlib/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 stdlib/stdlib_darwin_arm64.go -pkgname stdlib', DO NOT EDIT.
  2. package stdlib
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. BIG_ENDIAN = 4321 // endian.h:72:1:
  15. BUS_ADRALN = 1 // signal.h:241:1:
  16. BUS_ADRERR = 2 // signal.h:242:1:
  17. BUS_NOOP = 0 // signal.h:239:1:
  18. BUS_OBJERR = 3 // signal.h:243:1:
  19. BYTE_ORDER = 1234 // endian.h:75:1:
  20. CLD_CONTINUED = 6 // signal.h:258:1:
  21. CLD_DUMPED = 3 // signal.h:255:1:
  22. CLD_EXITED = 1 // signal.h:253:1:
  23. CLD_KILLED = 2 // signal.h:254:1:
  24. CLD_NOOP = 0 // signal.h:251:1:
  25. CLD_STOPPED = 5 // signal.h:257:1:
  26. CLD_TRAPPED = 4 // signal.h:256:1:
  27. CPUMON_MAKE_FATAL = 0x1000 // resource.h:439:1:
  28. EXIT_FAILURE = 1 // stdlib.h:102:1:
  29. EXIT_SUCCESS = 0 // stdlib.h:103:1:
  30. FOOTPRINT_INTERVAL_RESET = 0x1 // resource.h:444:1:
  31. FPE_FLTDIV = 1 // signal.h:221:1:
  32. FPE_FLTINV = 5 // signal.h:225:1:
  33. FPE_FLTOVF = 2 // signal.h:222:1:
  34. FPE_FLTRES = 4 // signal.h:224:1:
  35. FPE_FLTSUB = 6 // signal.h:226:1:
  36. FPE_FLTUND = 3 // signal.h:223:1:
  37. FPE_INTDIV = 7 // signal.h:227:1:
  38. FPE_INTOVF = 8 // signal.h:228:1:
  39. FPE_NOOP = 0 // signal.h:219:1:
  40. ILL_BADSTK = 8 // signal.h:215:1:
  41. ILL_COPROC = 7 // signal.h:214:1:
  42. ILL_ILLADR = 5 // signal.h:212:1:
  43. ILL_ILLOPC = 1 // signal.h:208:1:
  44. ILL_ILLOPN = 4 // signal.h:211:1:
  45. ILL_ILLTRP = 2 // signal.h:209:1:
  46. ILL_NOOP = 0 // signal.h:206:1:
  47. ILL_PRVOPC = 3 // signal.h:210:1:
  48. ILL_PRVREG = 6 // signal.h:213:1:
  49. INT16_MAX = 32767 // stdint.h:599:1:
  50. INT16_MIN = -32768 // stdint.h:600:1:
  51. INT32_MAX = 2147483647 // stdint.h:555:1:
  52. INT32_MIN = -2147483648 // stdint.h:556:1:
  53. INT64_MAX = 9223372036854775807 // stdint.h:461:1:
  54. INT64_MIN = -9223372036854775808 // stdint.h:462:1:
  55. INT8_MAX = 127 // stdint.h:621:1:
  56. INT8_MIN = -128 // stdint.h:622:1:
  57. INTMAX_MAX = 9223372036854775807 // stdint.h:663:1:
  58. INTMAX_MIN = -9223372036854775808 // stdint.h:662:1:
  59. INTPTR_MAX = 9223372036854775807 // stdint.h:649:1:
  60. INTPTR_MIN = -9223372036854775808 // stdint.h:648:1:
  61. INT_FAST16_MAX = 32767 // stdint.h:615:1:
  62. INT_FAST16_MIN = -32768 // stdint.h:614:1:
  63. INT_FAST32_MAX = 2147483647 // stdint.h:574:1:
  64. INT_FAST32_MIN = -2147483648 // stdint.h:573:1:
  65. INT_FAST64_MAX = 9223372036854775807 // stdint.h:483:1:
  66. INT_FAST64_MIN = -9223372036854775808 // stdint.h:482:1:
  67. INT_FAST8_MAX = 127 // stdint.h:634:1:
  68. INT_FAST8_MIN = -128 // stdint.h:633:1:
  69. INT_LEAST16_MAX = 32767 // stdint.h:612:1:
  70. INT_LEAST16_MIN = -32768 // stdint.h:611:1:
  71. INT_LEAST32_MAX = 2147483647 // stdint.h:571:1:
  72. INT_LEAST32_MIN = -2147483648 // stdint.h:570:1:
  73. INT_LEAST64_MAX = 9223372036854775807 // stdint.h:480:1:
  74. INT_LEAST64_MIN = -9223372036854775808 // stdint.h:479:1:
  75. INT_LEAST8_MAX = 127 // stdint.h:631:1:
  76. INT_LEAST8_MIN = -128 // stdint.h:630:1:
  77. IOPOL_APPLICATION = 5 // resource.h:478:1:
  78. IOPOL_ATIME_UPDATES_DEFAULT = 0 // resource.h:482:1:
  79. IOPOL_ATIME_UPDATES_OFF = 1 // resource.h:483:1:
  80. IOPOL_DEFAULT = 0 // resource.h:470:1:
  81. IOPOL_IMPORTANT = 1 // resource.h:471:1:
  82. IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT = 0 // resource.h:485:1:
  83. IOPOL_MATERIALIZE_DATALESS_FILES_OFF = 1 // resource.h:486:1:
  84. IOPOL_MATERIALIZE_DATALESS_FILES_ON = 2 // resource.h:487:1:
  85. IOPOL_NORMAL = 1 // resource.h:479:1:
  86. IOPOL_PASSIVE = 2 // resource.h:472:1:
  87. IOPOL_SCOPE_DARWIN_BG = 2 // resource.h:467:1:
  88. IOPOL_SCOPE_PROCESS = 0 // resource.h:465:1:
  89. IOPOL_SCOPE_THREAD = 1 // resource.h:466:1:
  90. IOPOL_STANDARD = 5 // resource.h:475:1:
  91. IOPOL_THROTTLE = 3 // resource.h:473:1:
  92. IOPOL_TYPE_DISK = 0 // resource.h:454:1:
  93. IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES = 9 // resource.h:462:1:
  94. IOPOL_TYPE_VFS_ATIME_UPDATES = 2 // resource.h:455:1:
  95. IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION = 6 // resource.h:459:1:
  96. IOPOL_TYPE_VFS_IGNORE_PERMISSIONS = 7 // resource.h:460:1:
  97. IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3 // resource.h:456:1:
  98. IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE = 8 // resource.h:461:1:
  99. IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4 // resource.h:457:1:
  100. IOPOL_TYPE_VFS_TRIGGER_RESOLVE = 5 // resource.h:458:1:
  101. IOPOL_UTILITY = 4 // resource.h:474:1:
  102. IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0 // resource.h:504:1:
  103. IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1 // resource.h:505:1:
  104. IOPOL_VFS_CONTENT_PROTECTION_DEFAULT = 0 // resource.h:495:1:
  105. IOPOL_VFS_CONTENT_PROTECTION_IGNORE = 1 // resource.h:496:1:
  106. IOPOL_VFS_IGNORE_PERMISSIONS_OFF = 0 // resource.h:498:1:
  107. IOPOL_VFS_IGNORE_PERMISSIONS_ON = 1 // resource.h:499:1:
  108. IOPOL_VFS_SKIP_MTIME_UPDATE_OFF = 0 // resource.h:501:1:
  109. IOPOL_VFS_SKIP_MTIME_UPDATE_ON = 1 // resource.h:502:1:
  110. IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME = 1 // resource.h:490:1:
  111. IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT = 0 // resource.h:489:1:
  112. IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT = 0 // resource.h:492:1:
  113. IOPOL_VFS_TRIGGER_RESOLVE_OFF = 1 // resource.h:493:1:
  114. LITTLE_ENDIAN = 1234 // endian.h:71:1:
  115. MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
  116. MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
  117. MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
  118. MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
  119. MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
  120. MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
  121. MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
  122. MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
  123. MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
  124. MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
  125. MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
  126. MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
  127. MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
  128. MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
  129. MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
  130. MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
  131. MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
  132. MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
  133. MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
  134. MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
  135. MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
  136. MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
  137. MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
  138. MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
  139. MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
  140. MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
  141. MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
  142. MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
  143. MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
  144. MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
  145. MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
  146. MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
  147. MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
  148. MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
  149. MINSIGSTKSZ = 32768 // signal.h:340:1:
  150. NSIG = 32 // signal.h:79:1:
  151. PDP_ENDIAN = 3412 // endian.h:73:1:
  152. POLL_ERR = 4 // signal.h:264:1:
  153. POLL_HUP = 6 // signal.h:266:1:
  154. POLL_IN = 1 // signal.h:261:1:
  155. POLL_MSG = 3 // signal.h:263:1:
  156. POLL_OUT = 2 // signal.h:262:1:
  157. POLL_PRI = 5 // signal.h:265:1:
  158. PRIO_DARWIN_BG = 0x1000 // resource.h:120:1:
  159. PRIO_DARWIN_NONUI = 0x1001 // resource.h:126:1:
  160. PRIO_DARWIN_PROCESS = 4 // resource.h:106:1:
  161. PRIO_DARWIN_THREAD = 3 // resource.h:105:1:
  162. PRIO_MAX = 20 // resource.h:113:1:
  163. PRIO_MIN = -20 // resource.h:112:1:
  164. PRIO_PGRP = 1 // resource.h:101:1:
  165. PRIO_PROCESS = 0 // resource.h:100:1:
  166. PRIO_USER = 2 // resource.h:102:1:
  167. PTRDIFF_MAX = 9223372036854775807 // stdint.h:652:1:
  168. PTRDIFF_MIN = -9223372036854775808 // stdint.h:651:1:
  169. RAND_MAX = 0x7fffffff // stdlib.h:105:1:
  170. RLIMIT_AS = 5 // resource.h:395:1:
  171. RLIMIT_CORE = 4 // resource.h:394:1:
  172. RLIMIT_CPU = 0 // resource.h:390:1:
  173. RLIMIT_CPU_USAGE_MONITOR = 0x2 // resource.h:423:1:
  174. RLIMIT_DATA = 2 // resource.h:392:1:
  175. RLIMIT_FOOTPRINT_INTERVAL = 0x4 // resource.h:425:1:
  176. RLIMIT_FSIZE = 1 // resource.h:391:1:
  177. RLIMIT_MEMLOCK = 6 // resource.h:398:1:
  178. RLIMIT_NOFILE = 8 // resource.h:401:1:
  179. RLIMIT_NPROC = 7 // resource.h:399:1:
  180. RLIMIT_RSS = 5 // resource.h:397:1:
  181. RLIMIT_STACK = 3 // resource.h:393:1:
  182. RLIMIT_THREAD_CPULIMITS = 0x3 // resource.h:424:1:
  183. RLIMIT_WAKEUPS_MONITOR = 0x1 // resource.h:422:1:
  184. RLIM_NLIMITS = 9 // resource.h:403:1:
  185. RSIZE_MAX = 9223372036854775807 // stdint.h:658:1:
  186. RUSAGE_CHILDREN = -1 // resource.h:141:1:
  187. RUSAGE_INFO_CURRENT = 5 // resource.h:192:1:
  188. RUSAGE_INFO_V0 = 0 // resource.h:186:1:
  189. RUSAGE_INFO_V1 = 1 // resource.h:187:1:
  190. RUSAGE_INFO_V2 = 2 // resource.h:188:1:
  191. RUSAGE_INFO_V3 = 3 // resource.h:189:1:
  192. RUSAGE_INFO_V4 = 4 // resource.h:190:1:
  193. RUSAGE_INFO_V5 = 5 // resource.h:191:1:
  194. RUSAGE_SELF = 0 // resource.h:140:1:
  195. RU_PROC_RUNS_RESLIDE = 0x00000001 // resource.h:197:1:
  196. SA_64REGSET = 0x0200 // signal.h:308:1:
  197. SA_NOCLDSTOP = 0x0008 // signal.h:301:1:
  198. SA_NOCLDWAIT = 0x0020 // signal.h:303:1:
  199. SA_NODEFER = 0x0010 // signal.h:302:1:
  200. SA_ONSTACK = 0x0001 // signal.h:298:1:
  201. SA_RESETHAND = 0x0004 // signal.h:300:1:
  202. SA_RESTART = 0x0002 // signal.h:299:1:
  203. SA_SIGINFO = 0x0040 // signal.h:304:1:
  204. SA_USERSPACE_MASK = 127 // signal.h:314:1:
  205. SA_USERTRAMP = 0x0100 // signal.h:306:1:
  206. SEGV_ACCERR = 2 // signal.h:235:1:
  207. SEGV_MAPERR = 1 // signal.h:234:1:
  208. SEGV_NOOP = 0 // signal.h:232:1:
  209. SIGABRT = 6 // signal.h:89:1:
  210. SIGALRM = 14 // signal.h:102:1:
  211. SIGBUS = 10 // signal.h:98:1:
  212. SIGCHLD = 20 // signal.h:108:1:
  213. SIGCONT = 19 // signal.h:107:1:
  214. SIGEMT = 7 // signal.h:94:1:
  215. SIGEV_NONE = 0 // signal.h:164:1:
  216. SIGEV_SIGNAL = 1 // signal.h:165:1:
  217. SIGEV_THREAD = 3 // signal.h:166:1:
  218. SIGFPE = 8 // signal.h:96:1:
  219. SIGHUP = 1 // signal.h:84:1:
  220. SIGILL = 4 // signal.h:87:1:
  221. SIGINFO = 29 // signal.h:120:1:
  222. SIGINT = 2 // signal.h:85:1:
  223. SIGIO = 23 // signal.h:112:1:
  224. SIGIOT = 6 // signal.h:93:1:
  225. SIGKILL = 9 // signal.h:97:1:
  226. SIGPIPE = 13 // signal.h:101:1:
  227. SIGPROF = 27 // signal.h:117:1:
  228. SIGQUIT = 3 // signal.h:86:1:
  229. SIGSEGV = 11 // signal.h:99:1:
  230. SIGSTKSZ = 131072 // signal.h:341:1:
  231. SIGSTOP = 17 // signal.h:105:1:
  232. SIGSYS = 12 // signal.h:100:1:
  233. SIGTERM = 15 // signal.h:103:1:
  234. SIGTRAP = 5 // signal.h:88:1:
  235. SIGTSTP = 18 // signal.h:106:1:
  236. SIGTTIN = 21 // signal.h:109:1:
  237. SIGTTOU = 22 // signal.h:110:1:
  238. SIGURG = 16 // signal.h:104:1:
  239. SIGUSR1 = 30 // signal.h:122:1:
  240. SIGUSR2 = 31 // signal.h:123:1:
  241. SIGVTALRM = 26 // signal.h:116:1:
  242. SIGWINCH = 28 // signal.h:119:1:
  243. SIGXCPU = 24 // signal.h:114:1:
  244. SIGXFSZ = 25 // signal.h:115:1:
  245. SIG_ATOMIC_MAX = 2147483647 // stdint.h:668:1:
  246. SIG_ATOMIC_MIN = -2147483648 // stdint.h:667:1:
  247. SIG_BLOCK = 1 // signal.h:319:1:
  248. SIG_SETMASK = 3 // signal.h:321:1:
  249. SIG_UNBLOCK = 2 // signal.h:320:1:
  250. SIZE_MAX = 18446744073709551615 // stdint.h:653:1:
  251. SI_ASYNCIO = 0x10004 // signal.h:327:1:
  252. SI_MESGQ = 0x10005 // signal.h:328:1:
  253. SI_QUEUE = 0x10002 // signal.h:325:1:
  254. SI_TIMER = 0x10003 // signal.h:326:1:
  255. SI_USER = 0x10001 // signal.h:324:1:
  256. SS_DISABLE = 0x0004 // signal.h:339:1:
  257. SS_ONSTACK = 0x0001 // signal.h:338:1:
  258. SV_INTERRUPT = 2 // signal.h:355:1:
  259. SV_NOCLDSTOP = 8 // signal.h:358:1:
  260. SV_NODEFER = 16 // signal.h:357:1:
  261. SV_ONSTACK = 1 // signal.h:354:1:
  262. SV_RESETHAND = 4 // signal.h:356:1:
  263. SV_SIGINFO = 64 // signal.h:359:1:
  264. TRAP_BRKPT = 1 // signal.h:246:1:
  265. TRAP_TRACE = 2 // signal.h:247:1:
  266. UINT16_MAX = 65535 // stdint.h:601:1:
  267. UINT32_MAX = 4294967295 // stdint.h:557:1:
  268. UINT64_MAX = 18446744073709551615 // stdint.h:463:1:
  269. UINT8_MAX = 255 // stdint.h:623:1:
  270. UINTMAX_MAX = 18446744073709551615 // stdint.h:664:1:
  271. UINTPTR_MAX = 18446744073709551615 // stdint.h:650:1:
  272. UINT_FAST16_MAX = 65535 // stdint.h:616:1:
  273. UINT_FAST32_MAX = 4294967295 // stdint.h:575:1:
  274. UINT_FAST64_MAX = 18446744073709551615 // stdint.h:484:1:
  275. UINT_FAST8_MAX = 255 // stdint.h:635:1:
  276. UINT_LEAST16_MAX = 65535 // stdint.h:613:1:
  277. UINT_LEAST32_MAX = 4294967295 // stdint.h:572:1:
  278. UINT_LEAST64_MAX = 18446744073709551615 // stdint.h:481:1:
  279. UINT_LEAST8_MAX = 255 // stdint.h:632:1:
  280. WAIT_ANY = -1 // wait.h:183:1:
  281. WAIT_MYPGRP = 0 // wait.h:184:1:
  282. WAKEMON_DISABLE = 0x02 // resource.h:431:1:
  283. WAKEMON_ENABLE = 0x01 // resource.h:430:1:
  284. WAKEMON_GET_PARAMS = 0x04 // resource.h:432:1:
  285. WAKEMON_MAKE_FATAL = 0x10 // resource.h:434:1:
  286. WAKEMON_SET_DEFAULTS = 0x08 // resource.h:433:1:
  287. WCHAR_MAX = 2147483647 // stdint.h:678:1:
  288. WCHAR_MIN = -2147483648 // stdint.h:682:1:
  289. WCONTINUED = 0x00000010 // wait.h:173:1:
  290. WCOREFLAG = 0200 // wait.h:132:1:
  291. WEXITED = 0x00000004 // wait.h:168:1:
  292. WINT_MAX = 2147483647 // stdint.h:674:1:
  293. WINT_MIN = -2147483648 // stdint.h:673:1:
  294. WNOHANG = 0x00000001 // wait.h:121:1:
  295. WNOWAIT = 0x00000020 // wait.h:174:1:
  296. WSTOPPED = 0x00000008 // wait.h:171:1:
  297. WUNTRACED = 0x00000002 // wait.h:122:1:
  298. X_ALLOCA_H_ = 0 // alloca.h:25:1:
  299. X_ARM_ARCH_H = 0 // arch.h:29:1:
  300. X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
  301. X_ARM_SIGNAL_ = 1 // signal.h:10:1:
  302. X_ARM__ENDIAN_H_ = 0 // endian.h:43:1:
  303. X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
  304. X_BSD_MACHINE_ENDIAN_H_ = 0 // endian.h:32:1:
  305. X_BSD_MACHINE_SIGNAL_H_ = 0 // signal.h:29:1:
  306. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  307. X_BSD_MACHINE__MCONTEXT_H_ = 0 // _mcontext.h:29:1:
  308. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  309. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  310. X_CT_RUNE_T = 0 // _ct_rune_t.h:30:1:
  311. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  312. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  313. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  314. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  315. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  316. X_DEV_T = 0 // _dev_t.h:29:1:
  317. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  318. X_FORTIFY_SOURCE = 2 // _types.h:65:1:
  319. X_ID_T = 0 // _id_t.h:29:1:
  320. X_INT16_T = 0 // _int16_t.h:29:1:
  321. X_INT32_T = 0 // _int32_t.h:29:1:
  322. X_INT64_T = 0 // _int64_t.h:29:1:
  323. X_INT8_T = 0 // _int8_t.h:29:1:
  324. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  325. X_LP64 = 1 // <predefined>:1:1:
  326. X_MACHTYPES_H_ = 0 // types.h:44:1:
  327. X_MACH_ARM__STRUCTS_H_ = 0 // _structs.h:32:1:
  328. X_MACH_MACHINE__STRUCTS_H_ = 0 // _structs.h:30:1:
  329. X_MALLOC_UNDERSCORE_MALLOC_H_ = 0 // _malloc.h:25:1:
  330. X_MCONTEXT_T = 0 // _mcontext.h:83:1:
  331. X_MODE_T = 0 // _mode_t.h:29:1:
  332. X_Nonnull = 0 // cdefs.h:268:1:
  333. X_Null_unspecified = 0 // cdefs.h:271:1:
  334. X_Nullable = 0 // cdefs.h:265:1:
  335. X_OS_OSBYTEORDERARM_H = 0 // OSByteOrder.h:6:1:
  336. X_OS__OSBYTEORDER_H = 0 // _OSByteOrder.h:30:1:
  337. X_PID_T = 0 // _pid_t.h:29:1:
  338. X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
  339. X_QUAD_HIGHWORD = 1 // endian.h:56:1:
  340. X_QUAD_LOWWORD = 0 // endian.h:57:1:
  341. X_RLIMIT_POSIX_FLAG = 0x1000 // resource.h:405:1:
  342. X_RUNE_T = 0 // _rune_t.h:29:1:
  343. X_SIGSET_T = 0 // _sigset_t.h:29:1:
  344. X_SIZE_T = 0 // _size_t.h:29:1:
  345. X_STDLIB_H_ = 0 // stdlib.h:59:1:
  346. X_SYS_RESOURCE_H_ = 0 // resource.h:65:1:
  347. X_SYS_SIGNAL_H_ = 0 // signal.h:70:1:
  348. X_SYS_WAIT_H_ = 0 // wait.h:65:1:
  349. X_SYS__ENDIAN_H_ = 0 // _endian.h:91:1:
  350. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  351. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  352. X_UID_T = 0 // _uid_t.h:29:1:
  353. X_UINT32_T = 0 // _uint32_t.h:30:1:
  354. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  355. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  356. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  357. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  358. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  359. X_WCHAR_T = 0 // _wchar_t.h:32:1:
  360. X_WSTOPPED = 0177 // wait.h:137:1:
  361. )
  362. // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  363. //
  364. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  365. //
  366. // This file contains Original Code and/or Modifications of Original Code
  367. // as defined in and that are subject to the Apple Public Source License
  368. // Version 2.0 (the 'License'). You may not use this file except in
  369. // compliance with the License. The rights granted to you under the License
  370. // may not be used to create, or enable the creation or redistribution of,
  371. // unlawful or unlicensed copies of an Apple operating system, or to
  372. // circumvent, violate, or enable the circumvention or violation of, any
  373. // terms of an Apple operating system software license agreement.
  374. //
  375. // Please obtain a copy of the License at
  376. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  377. //
  378. // The Original Code and all software distributed under the License are
  379. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  380. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  381. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  382. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  383. // Please see the License for the specific language governing rights and
  384. // limitations under the License.
  385. //
  386. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  387. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  388. // Copyright (c) 1982, 1986, 1989, 1993, 1994
  389. // The Regents of the University of California. All rights reserved.
  390. //
  391. // Redistribution and use in source and binary forms, with or without
  392. // modification, are permitted provided that the following conditions
  393. // are met:
  394. // 1. Redistributions of source code must retain the above copyright
  395. // notice, this list of conditions and the following disclaimer.
  396. // 2. Redistributions in binary form must reproduce the above copyright
  397. // notice, this list of conditions and the following disclaimer in the
  398. // documentation and/or other materials provided with the distribution.
  399. // 3. All advertising materials mentioning features or use of this software
  400. // must display the following acknowledgement:
  401. // This product includes software developed by the University of
  402. // California, Berkeley and its contributors.
  403. // 4. Neither the name of the University nor the names of its contributors
  404. // may be used to endorse or promote products derived from this software
  405. // without specific prior written permission.
  406. //
  407. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  408. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  409. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  410. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  411. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  412. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  413. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  414. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  415. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  416. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  417. // SUCH DAMAGE.
  418. //
  419. // @(#)wait.h 8.2 (Berkeley) 7/10/94
  420. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  421. //
  422. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  423. //
  424. // This file contains Original Code and/or Modifications of Original Code
  425. // as defined in and that are subject to the Apple Public Source License
  426. // Version 2.0 (the 'License'). You may not use this file except in
  427. // compliance with the License. The rights granted to you under the License
  428. // may not be used to create, or enable the creation or redistribution of,
  429. // unlawful or unlicensed copies of an Apple operating system, or to
  430. // circumvent, violate, or enable the circumvention or violation of, any
  431. // terms of an Apple operating system software license agreement.
  432. //
  433. // Please obtain a copy of the License at
  434. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  435. //
  436. // The Original Code and all software distributed under the License are
  437. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  438. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  439. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  440. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  441. // Please see the License for the specific language governing rights and
  442. // limitations under the License.
  443. //
  444. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  445. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  446. // Copyright (c) 1991, 1993
  447. // The Regents of the University of California. All rights reserved.
  448. //
  449. // This code is derived from software contributed to Berkeley by
  450. // Berkeley Software Design, Inc.
  451. //
  452. // Redistribution and use in source and binary forms, with or without
  453. // modification, are permitted provided that the following conditions
  454. // are met:
  455. // 1. Redistributions of source code must retain the above copyright
  456. // notice, this list of conditions and the following disclaimer.
  457. // 2. Redistributions in binary form must reproduce the above copyright
  458. // notice, this list of conditions and the following disclaimer in the
  459. // documentation and/or other materials provided with the distribution.
  460. // 3. All advertising materials mentioning features or use of this software
  461. // must display the following acknowledgement:
  462. // This product includes software developed by the University of
  463. // California, Berkeley and its contributors.
  464. // 4. Neither the name of the University nor the names of its contributors
  465. // may be used to endorse or promote products derived from this software
  466. // without specific prior written permission.
  467. //
  468. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  469. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  470. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  471. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  472. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  473. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  474. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  475. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  476. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  477. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  478. // SUCH DAMAGE.
  479. //
  480. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  481. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  482. //
  483. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  484. //
  485. // This file contains Original Code and/or Modifications of Original Code
  486. // as defined in and that are subject to the Apple Public Source License
  487. // Version 2.0 (the 'License'). You may not use this file except in
  488. // compliance with the License. The rights granted to you under the License
  489. // may not be used to create, or enable the creation or redistribution of,
  490. // unlawful or unlicensed copies of an Apple operating system, or to
  491. // circumvent, violate, or enable the circumvention or violation of, any
  492. // terms of an Apple operating system software license agreement.
  493. //
  494. // Please obtain a copy of the License at
  495. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  496. //
  497. // The Original Code and all software distributed under the License are
  498. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  499. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  500. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  501. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  502. // Please see the License for the specific language governing rights and
  503. // limitations under the License.
  504. //
  505. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  506. // This file holds definitions relevent to the wait4 system call
  507. // and the alternate interfaces that use it (wait, wait3, waitpid).
  508. // [XSI] The type idtype_t shall be defined as an enumeration type whose
  509. // possible values shall include at least P_ALL, P_PID, and P_PGID.
  510. const ( /* wait.h:79:1: */
  511. P_ALL = 0
  512. P_PID = 1
  513. P_PGID = 2
  514. )
  515. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  516. type Size_t = uint64 /* <builtin>:9:23 */
  517. type Wchar_t = int32 /* <builtin>:15:24 */
  518. type X__int128_t = struct {
  519. Flo int64
  520. Fhi int64
  521. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  522. type X__uint128_t = struct {
  523. Flo uint64
  524. Fhi uint64
  525. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  526. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  527. type X__float128 = float64 /* <builtin>:47:21 */
  528. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  529. // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
  530. //
  531. // @APPLE_LICENSE_HEADER_START@
  532. //
  533. // This file contains Original Code and/or Modifications of Original Code
  534. // as defined in and that are subject to the Apple Public Source License
  535. // Version 2.0 (the 'License'). You may not use this file except in
  536. // compliance with the License. Please obtain a copy of the License at
  537. // http://www.opensource.apple.com/apsl/ and read it before using this
  538. // file.
  539. //
  540. // The Original Code and all software distributed under the License are
  541. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  542. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  543. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  544. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  545. // Please see the License for the specific language governing rights and
  546. // limitations under the License.
  547. //
  548. // @APPLE_LICENSE_HEADER_END@
  549. // -
  550. // Copyright (c) 1990, 1993
  551. // The Regents of the University of California. All rights reserved.
  552. //
  553. // Redistribution and use in source and binary forms, with or without
  554. // modification, are permitted provided that the following conditions
  555. // are met:
  556. // 1. Redistributions of source code must retain the above copyright
  557. // notice, this list of conditions and the following disclaimer.
  558. // 2. Redistributions in binary form must reproduce the above copyright
  559. // notice, this list of conditions and the following disclaimer in the
  560. // documentation and/or other materials provided with the distribution.
  561. // 3. All advertising materials mentioning features or use of this software
  562. // must display the following acknowledgement:
  563. // This product includes software developed by the University of
  564. // California, Berkeley and its contributors.
  565. // 4. Neither the name of the University nor the names of its contributors
  566. // may be used to endorse or promote products derived from this software
  567. // without specific prior written permission.
  568. //
  569. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  570. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  571. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  572. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  573. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  574. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  575. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  576. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  577. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  578. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  579. // SUCH DAMAGE.
  580. //
  581. // @(#)stdlib.h 8.5 (Berkeley) 5/19/95
  582. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  583. //
  584. // @APPLE_LICENSE_HEADER_START@
  585. //
  586. // This file contains Original Code and/or Modifications of Original Code
  587. // as defined in and that are subject to the Apple Public Source License
  588. // Version 2.0 (the 'License'). You may not use this file except in
  589. // compliance with the License. Please obtain a copy of the License at
  590. // http://www.opensource.apple.com/apsl/ and read it before using this
  591. // file.
  592. //
  593. // The Original Code and all software distributed under the License are
  594. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  595. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  596. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  597. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  598. // Please see the License for the specific language governing rights and
  599. // limitations under the License.
  600. //
  601. // @APPLE_LICENSE_HEADER_END@
  602. //
  603. // These macros are for use in OS header files. They enable function prototypes
  604. // and Objective-C methods to be tagged with the OS version in which they
  605. // were first available; and, if applicable, the OS version in which they
  606. // became deprecated.
  607. //
  608. // The desktop Mac OS X and iOS each have different version numbers.
  609. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  610. // and iOS version numbers. For instance:
  611. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  612. // means the function/method was first available on Mac OS X 10.2 on the desktop
  613. // and first available in iOS 2.0 on the iPhone.
  614. //
  615. // If a function is available on one platform, but not the other a _NA (not
  616. // applicable) parameter is used. For instance:
  617. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  618. // means that the function/method was first available on Mac OS X 10.3, and it
  619. // currently not implemented on the iPhone.
  620. //
  621. // At some point, a function/method may be deprecated. That means Apple
  622. // recommends applications stop using the function, either because there is a
  623. // better replacement or the functionality is being phased out. Deprecated
  624. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  625. // macro which specifies the OS version where the function became available
  626. // as well as the OS version in which it became deprecated. For instance:
  627. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  628. // means that the function/method was introduced in Mac OS X 10.0, then
  629. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  630. // has never been available.
  631. //
  632. // For these macros to function properly, a program must specify the OS version range
  633. // it is targeting. The min OS version is specified as an option to the compiler:
  634. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  635. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  636. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  637. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  638. //
  639. // Examples:
  640. //
  641. // A function available in Mac OS X 10.5 and later, but not on the phone:
  642. //
  643. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  644. //
  645. //
  646. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  647. //
  648. // @interface MyClass : NSObject
  649. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  650. // @end
  651. //
  652. //
  653. // An enum available on the phone, but not available on Mac OS X:
  654. //
  655. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  656. // enum { myEnum = 1 };
  657. // #endif
  658. // Note: this works when targeting the Mac OS X platform because
  659. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  660. //
  661. //
  662. // An enum with values added in different iPhoneOS versions:
  663. //
  664. // enum {
  665. // myX = 1, // Usable on iPhoneOS 2.1 and later
  666. // myY = 2, // Usable on iPhoneOS 3.0 and later
  667. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  668. // ...
  669. // Note: you do not want to use #if with enumeration values
  670. // when a client needs to see all values at compile time
  671. // and use runtime logic to only use the viable values.
  672. //
  673. //
  674. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  675. // source base that can be compiled to target a range of OS versions. It is best
  676. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  677. // That is because you might get compiled on an old OS that does not define a later
  678. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  679. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  680. // way.
  681. //
  682. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  683. // // code only compiled when targeting Mac OS X and not iPhone
  684. // // note use of 1050 instead of __MAC_10_5
  685. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  686. // // code in here might run on pre-Leopard OS
  687. // #else
  688. // // code here can assume Leopard or later
  689. // #endif
  690. // #endif
  691. //
  692. //
  693. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  694. // in an upcoming release. This soft deprecation is an intermediate step before formal
  695. // deprecation to notify developers about the API before compiler warnings are generated.
  696. // You can find all places in your code that use soft deprecated API by redefining the
  697. // value of this macro to your current minimum deployment target, for example:
  698. // (macOS)
  699. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  700. // (iOS)
  701. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  702. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  703. //
  704. // @APPLE_LICENSE_HEADER_START@
  705. //
  706. // This file contains Original Code and/or Modifications of Original Code
  707. // as defined in and that are subject to the Apple Public Source License
  708. // Version 2.0 (the 'License'). You may not use this file except in
  709. // compliance with the License. Please obtain a copy of the License at
  710. // http://www.opensource.apple.com/apsl/ and read it before using this
  711. // file.
  712. //
  713. // The Original Code and all software distributed under the License are
  714. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  715. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  716. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  717. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  718. // Please see the License for the specific language governing rights and
  719. // limitations under the License.
  720. //
  721. // @APPLE_LICENSE_HEADER_END@
  722. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  723. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  724. // Set up standard Mac OS X versions
  725. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  726. //
  727. // @APPLE_LICENSE_HEADER_START@
  728. //
  729. // This file contains Original Code and/or Modifications of Original Code
  730. // as defined in and that are subject to the Apple Public Source License
  731. // Version 2.0 (the 'License'). You may not use this file except in
  732. // compliance with the License. Please obtain a copy of the License at
  733. // http://www.opensource.apple.com/apsl/ and read it before using this
  734. // file.
  735. //
  736. // The Original Code and all software distributed under the License are
  737. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  738. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  739. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  740. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  741. // Please see the License for the specific language governing rights and
  742. // limitations under the License.
  743. //
  744. // @APPLE_LICENSE_HEADER_END@
  745. //
  746. // File: AvailabilityInternal.h
  747. //
  748. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  749. //
  750. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  751. // make sure a default max version is set
  752. //
  753. // Macros for defining which versions/platform a given symbol can be used.
  754. //
  755. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  756. //
  757. // Evaluate to nothing for compilers that don't support clang language extensions.
  758. // Swift compiler version
  759. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  760. // Example:
  761. //
  762. // #if __swift_compiler_version_at_least(800, 2, 20)
  763. // - (nonnull NSString *)description;
  764. // #else
  765. // - (NSString *)description;
  766. // #endif
  767. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  768. // for use to document app extension usage
  769. // for use marking APIs available info for Mac OSX
  770. // for use marking APIs available info for iOS
  771. // for use marking APIs available info for tvOS
  772. // for use marking APIs available info for Watch OS
  773. // for use marking APIs unavailable for swift
  774. //
  775. // Macros for defining which versions/platform a given symbol can be used.
  776. //
  777. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  778. //
  779. // * Note that these macros are only compatible with clang compilers that
  780. // * support the following target selection options:
  781. // *
  782. // * -mmacosx-version-min
  783. // * -miphoneos-version-min
  784. // * -mwatchos-version-min
  785. // * -mtvos-version-min
  786. //
  787. // Evaluate to nothing for compilers that don't support clang language extensions.
  788. // If SPI decorations have not been defined elsewhere, disable them.
  789. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  790. //
  791. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  792. //
  793. // This file contains Original Code and/or Modifications of Original Code
  794. // as defined in and that are subject to the Apple Public Source License
  795. // Version 2.0 (the 'License'). You may not use this file except in
  796. // compliance with the License. The rights granted to you under the License
  797. // may not be used to create, or enable the creation or redistribution of,
  798. // unlawful or unlicensed copies of an Apple operating system, or to
  799. // circumvent, violate, or enable the circumvention or violation of, any
  800. // terms of an Apple operating system software license agreement.
  801. //
  802. // Please obtain a copy of the License at
  803. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  804. //
  805. // The Original Code and all software distributed under the License are
  806. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  807. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  808. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  809. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  810. // Please see the License for the specific language governing rights and
  811. // limitations under the License.
  812. //
  813. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  814. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  815. // Copyright (c) 1991, 1993
  816. // The Regents of the University of California. All rights reserved.
  817. //
  818. // This code is derived from software contributed to Berkeley by
  819. // Berkeley Software Design, Inc.
  820. //
  821. // Redistribution and use in source and binary forms, with or without
  822. // modification, are permitted provided that the following conditions
  823. // are met:
  824. // 1. Redistributions of source code must retain the above copyright
  825. // notice, this list of conditions and the following disclaimer.
  826. // 2. Redistributions in binary form must reproduce the above copyright
  827. // notice, this list of conditions and the following disclaimer in the
  828. // documentation and/or other materials provided with the distribution.
  829. // 3. All advertising materials mentioning features or use of this software
  830. // must display the following acknowledgement:
  831. // This product includes software developed by the University of
  832. // California, Berkeley and its contributors.
  833. // 4. Neither the name of the University nor the names of its contributors
  834. // may be used to endorse or promote products derived from this software
  835. // without specific prior written permission.
  836. //
  837. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  838. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  839. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  840. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  841. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  842. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  843. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  844. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  845. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  846. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  847. // SUCH DAMAGE.
  848. //
  849. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  850. // This SDK is designed to work with clang and specific versions of
  851. // gcc >= 4.0 with Apple's patch sets
  852. // Compatibility with compilers and environments that don't support compiler
  853. // feature checking function-like macros.
  854. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  855. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  856. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  857. // in between its arguments. __CONCAT can also concatenate double-quoted
  858. // strings produced by the __STRING macro, but this only works with ANSI C.
  859. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  860. // deleted from the program and old programs will want them left alone.
  861. // When using a compiler other than gcc, programs using the ANSI C keywords
  862. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  863. // When using "gcc -traditional", we assume that this is the intent; if
  864. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  865. // __pure2 can be used for functions that are only a function of their scalar
  866. // arguments (meaning they can't dereference pointers).
  867. //
  868. // __stateful_pure can be used for functions that have no side effects,
  869. // but depend on the state of the memory.
  870. // __unused denotes variables and functions that may not be used, preventing
  871. // the compiler from warning about it if not used.
  872. // __used forces variables and functions to be included even if it appears
  873. // to the compiler that they are not used (and would thust be discarded).
  874. // __cold marks code used for debugging or that is rarely taken
  875. // and tells the compiler to optimize for size and outline code.
  876. // __exported denotes symbols that should be exported even when symbols
  877. // are hidden by default.
  878. // __exported_push/_exported_pop are pragmas used to delimit a range of
  879. // symbols that should be exported even when symbols are hidden by default.
  880. // __deprecated causes the compiler to produce a warning when encountering
  881. // code using the deprecated functionality.
  882. // __deprecated_msg() does the same, and compilers that support it will print
  883. // a message along with the deprecation warning.
  884. // This may require turning on such warning with the -Wdeprecated flag.
  885. // __deprecated_enum_msg() should be used on enums, and compilers that support
  886. // it will print the deprecation warning.
  887. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  888. // interfaces in Kernel.framework used by KEXTs.
  889. // __unavailable causes the compiler to error out when encountering
  890. // code using the tagged function
  891. // Delete pseudo-keywords wherever they are not available or needed.
  892. // We use `__restrict' as a way to define the `restrict' type qualifier
  893. // without disturbing older software that is unaware of C99 keywords.
  894. // Compatibility with compilers and environments that don't support the
  895. // nullability feature.
  896. // __disable_tail_calls causes the compiler to not perform tail call
  897. // optimization inside the marked function.
  898. // __not_tail_called causes the compiler to prevent tail call optimization
  899. // on statically bound calls to the function. It has no effect on indirect
  900. // calls. Virtual functions, objective-c methods, and functions marked as
  901. // "always_inline" cannot be marked as __not_tail_called.
  902. // __result_use_check warns callers of a function that not using the function
  903. // return value is a bug, i.e. dismissing malloc() return value results in a
  904. // memory leak.
  905. // __swift_unavailable causes the compiler to mark a symbol as specifically
  906. // unavailable in Swift, regardless of any other availability in C.
  907. // __abortlike is the attribute to put on functions like abort() that are
  908. // typically used to mark assertions. These optimize the codegen
  909. // for outlining while still maintaining debugability.
  910. // Declaring inline functions within headers is error-prone due to differences
  911. // across various versions of the C language and extensions. __header_inline
  912. // can be used to declare inline functions within system headers. In cases
  913. // where you want to force inlining instead of letting the compiler make
  914. // the decision, you can use __header_always_inline.
  915. //
  916. // Be aware that using inline for functions which compilers may also provide
  917. // builtins can behave differently under various compilers. If you intend to
  918. // provide an inline version of such a function, you may want to use a macro
  919. // instead.
  920. //
  921. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  922. // support c99 inline in some cases:
  923. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  924. // Compiler-dependent macros that bracket portions of code where the
  925. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  926. // Compiler-dependent macros to declare that functions take printf-like
  927. // or scanf-like arguments. They are null except for versions of gcc
  928. // that are known to support the features properly. Functions declared
  929. // with these attributes will cause compilation warnings if there is a
  930. // mismatch between the format string and subsequent function parameter
  931. // types.
  932. // Source compatibility only, ID string not emitted in object file
  933. // __alloc_size can be used to label function arguments that represent the
  934. // size of memory that the function allocates and returns. The one-argument
  935. // form labels a single argument that gives the allocation size (where the
  936. // arguments are numbered from 1):
  937. //
  938. // void *malloc(size_t __size) __alloc_size(1);
  939. //
  940. // The two-argument form handles the case where the size is calculated as the
  941. // product of two arguments:
  942. //
  943. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  944. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  945. //
  946. // DEFAULT By default newly complied code will get POSIX APIs plus
  947. // Apple API extensions in scope.
  948. //
  949. // Most users will use this compilation environment to avoid
  950. // behavioral differences between 32 and 64 bit code.
  951. //
  952. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  953. // API extensions in scope.
  954. //
  955. // This is generally equivalent to the Tiger release compilation
  956. // environment, except that it cannot be applied to 64 bit code;
  957. // its use is discouraged.
  958. //
  959. // We expect this environment to be deprecated in the future.
  960. //
  961. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  962. // available APIs to exactly the set of APIs defined by the
  963. // corresponding standard, based on the value defined.
  964. //
  965. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  966. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  967. //
  968. // Apple API extensions are not visible in this environment,
  969. // which can cause Apple specific code to fail to compile,
  970. // or behave incorrectly if prototypes are not in scope or
  971. // warnings about missing prototypes are not enabled or ignored.
  972. //
  973. // In any compilation environment, for correct symbol resolution to occur,
  974. // function prototypes must be in scope. It is recommended that all Apple
  975. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  976. // compiler flags to their projects to be warned when a function is being
  977. // used without a prototype in scope.
  978. // These settings are particular to each product.
  979. // Platform: MacOSX
  980. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  981. // legacy code to use the old symbol, thus maintaining binary compatibility
  982. // while new code can use a standards compliant version of the same function.
  983. //
  984. // __DARWIN_ALIAS is used by itself if the function signature has not
  985. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  986. // if the signature has changed. Because the __LP64__ environment
  987. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  988. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  989. //
  990. // As a special case, when XCode is used to target a specific version of the
  991. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  992. // will be defined by the compiler, with the digits representing major version
  993. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  994. // pre-10.5, and it is the default compilation environment, revert the
  995. // compilation environment to pre-__DARWIN_UNIX03.
  996. // symbol suffixes used for symbol versioning
  997. // symbol versioning macros
  998. // symbol release macros
  999. // Copyright (c) 2010 Apple Inc. All rights reserved.
  1000. //
  1001. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1002. //
  1003. // This file contains Original Code and/or Modifications of Original Code
  1004. // as defined in and that are subject to the Apple Public Source License
  1005. // Version 2.0 (the 'License'). You may not use this file except in
  1006. // compliance with the License. The rights granted to you under the License
  1007. // may not be used to create, or enable the creation or redistribution of,
  1008. // unlawful or unlicensed copies of an Apple operating system, or to
  1009. // circumvent, violate, or enable the circumvention or violation of, any
  1010. // terms of an Apple operating system software license agreement.
  1011. //
  1012. // Please obtain a copy of the License at
  1013. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1014. //
  1015. // The Original Code and all software distributed under the License are
  1016. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1017. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1018. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1019. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1020. // Please see the License for the specific language governing rights and
  1021. // limitations under the License.
  1022. //
  1023. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1024. // POSIX.1 requires that the macros we test be defined before any standard
  1025. // header file is included. This permits us to convert values for feature
  1026. // testing, as necessary, using only _POSIX_C_SOURCE.
  1027. //
  1028. // Here's a quick run-down of the versions:
  1029. // defined(_POSIX_SOURCE) 1003.1-1988
  1030. // _POSIX_C_SOURCE == 1L 1003.1-1990
  1031. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  1032. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  1033. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  1034. // and the omnibus ISO/IEC 9945-1: 1996
  1035. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  1036. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  1037. //
  1038. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  1039. // Specification, defines a feature-test macro which indicates the version of
  1040. // that specification, and which subsumes _POSIX_C_SOURCE.
  1041. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  1042. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  1043. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  1044. // Deal with all versions of POSIX. The ordering relative to the tests above is
  1045. // important.
  1046. // POSIX C deprecation macros
  1047. // Copyright (c) 2010 Apple Inc. All rights reserved.
  1048. //
  1049. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1050. //
  1051. // This file contains Original Code and/or Modifications of Original Code
  1052. // as defined in and that are subject to the Apple Public Source License
  1053. // Version 2.0 (the 'License'). You may not use this file except in
  1054. // compliance with the License. The rights granted to you under the License
  1055. // may not be used to create, or enable the creation or redistribution of,
  1056. // unlawful or unlicensed copies of an Apple operating system, or to
  1057. // circumvent, violate, or enable the circumvention or violation of, any
  1058. // terms of an Apple operating system software license agreement.
  1059. //
  1060. // Please obtain a copy of the License at
  1061. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1062. //
  1063. // The Original Code and all software distributed under the License are
  1064. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1065. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1066. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1067. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1068. // Please see the License for the specific language governing rights and
  1069. // limitations under the License.
  1070. //
  1071. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1072. // Set a single macro which will always be defined and can be used to determine
  1073. // the appropriate namespace. For POSIX, these values will correspond to
  1074. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  1075. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  1076. // If the developer has neither requested a strict language mode nor a version
  1077. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  1078. // of __DARWIN_C_FULL.
  1079. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  1080. // c99 still want long longs. While not perfect, we allow long longs for
  1081. // g++.
  1082. // ****************************************
  1083. //
  1084. // Public darwin-specific feature macros
  1085. //
  1086. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  1087. // structures modified for 64-bit inodes (like struct stat) will be used.
  1088. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  1089. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  1090. // (and non-zero). There is no struct stat64 either, as the regular
  1091. // struct stat will already be the 64-bit version.
  1092. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  1093. // in 10.5 exists; no pre-10.5 variants are available.
  1094. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  1095. // are available (the legacy BSD APIs are not available)
  1096. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  1097. // and specifies the conformance level (3 is SUSv3)
  1098. // This macro casts away the qualifier from the variable
  1099. //
  1100. // Note: use at your own risk, removing qualifiers can result in
  1101. // catastrophic run-time failures.
  1102. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  1103. // used from other compilation units, but not other libraries or executables.
  1104. // We intentionally define to nothing pointer attributes which do not have an
  1105. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  1106. // of the ABI incompatibility that makes the diagnostic preferable.
  1107. // Similarly, we intentionally define to nothing the
  1108. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  1109. // macros because they do not lead to an ABI incompatibility. However, we do not
  1110. // define the indexable and unsafe_indexable ones because the diagnostic is
  1111. // better than the silent ABI break.
  1112. // __unsafe_forge intrinsics are defined as regular C casts.
  1113. // decay operates normally; attribute is meaningless without pointer checks.
  1114. // Architecture validation for current SDK
  1115. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  1116. //
  1117. // This provides more advanced type checking on compilers supporting
  1118. // the proper extensions, even in C.
  1119. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1120. //
  1121. // @APPLE_LICENSE_HEADER_START@
  1122. //
  1123. // This file contains Original Code and/or Modifications of Original Code
  1124. // as defined in and that are subject to the Apple Public Source License
  1125. // Version 2.0 (the 'License'). You may not use this file except in
  1126. // compliance with the License. Please obtain a copy of the License at
  1127. // http://www.opensource.apple.com/apsl/ and read it before using this
  1128. // file.
  1129. //
  1130. // The Original Code and all software distributed under the License are
  1131. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1132. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1133. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1134. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1135. // Please see the License for the specific language governing rights and
  1136. // limitations under the License.
  1137. //
  1138. // @APPLE_LICENSE_HEADER_END@
  1139. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1140. //
  1141. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1142. //
  1143. // This file contains Original Code and/or Modifications of Original Code
  1144. // as defined in and that are subject to the Apple Public Source License
  1145. // Version 2.0 (the 'License'). You may not use this file except in
  1146. // compliance with the License. The rights granted to you under the License
  1147. // may not be used to create, or enable the creation or redistribution of,
  1148. // unlawful or unlicensed copies of an Apple operating system, or to
  1149. // circumvent, violate, or enable the circumvention or violation of, any
  1150. // terms of an Apple operating system software license agreement.
  1151. //
  1152. // Please obtain a copy of the License at
  1153. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1154. //
  1155. // The Original Code and all software distributed under the License are
  1156. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1157. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1158. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1159. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1160. // Please see the License for the specific language governing rights and
  1161. // limitations under the License.
  1162. //
  1163. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1164. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1165. //
  1166. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1167. //
  1168. // This file contains Original Code and/or Modifications of Original Code
  1169. // as defined in and that are subject to the Apple Public Source License
  1170. // Version 2.0 (the 'License'). You may not use this file except in
  1171. // compliance with the License. The rights granted to you under the License
  1172. // may not be used to create, or enable the creation or redistribution of,
  1173. // unlawful or unlicensed copies of an Apple operating system, or to
  1174. // circumvent, violate, or enable the circumvention or violation of, any
  1175. // terms of an Apple operating system software license agreement.
  1176. //
  1177. // Please obtain a copy of the License at
  1178. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1179. //
  1180. // The Original Code and all software distributed under the License are
  1181. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1182. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1183. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1184. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1185. // Please see the License for the specific language governing rights and
  1186. // limitations under the License.
  1187. //
  1188. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1189. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1190. // Copyright (c) 1991, 1993
  1191. // The Regents of the University of California. All rights reserved.
  1192. //
  1193. // This code is derived from software contributed to Berkeley by
  1194. // Berkeley Software Design, Inc.
  1195. //
  1196. // Redistribution and use in source and binary forms, with or without
  1197. // modification, are permitted provided that the following conditions
  1198. // are met:
  1199. // 1. Redistributions of source code must retain the above copyright
  1200. // notice, this list of conditions and the following disclaimer.
  1201. // 2. Redistributions in binary form must reproduce the above copyright
  1202. // notice, this list of conditions and the following disclaimer in the
  1203. // documentation and/or other materials provided with the distribution.
  1204. // 3. All advertising materials mentioning features or use of this software
  1205. // must display the following acknowledgement:
  1206. // This product includes software developed by the University of
  1207. // California, Berkeley and its contributors.
  1208. // 4. Neither the name of the University nor the names of its contributors
  1209. // may be used to endorse or promote products derived from this software
  1210. // without specific prior written permission.
  1211. //
  1212. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1213. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1214. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1215. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1216. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1217. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1218. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1219. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1220. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1221. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1222. // SUCH DAMAGE.
  1223. //
  1224. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1225. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1226. //
  1227. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1228. //
  1229. // This file contains Original Code and/or Modifications of Original Code
  1230. // as defined in and that are subject to the Apple Public Source License
  1231. // Version 2.0 (the 'License'). You may not use this file except in
  1232. // compliance with the License. The rights granted to you under the License
  1233. // may not be used to create, or enable the creation or redistribution of,
  1234. // unlawful or unlicensed copies of an Apple operating system, or to
  1235. // circumvent, violate, or enable the circumvention or violation of, any
  1236. // terms of an Apple operating system software license agreement.
  1237. //
  1238. // Please obtain a copy of the License at
  1239. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1240. //
  1241. // The Original Code and all software distributed under the License are
  1242. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1243. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1244. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1245. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1246. // Please see the License for the specific language governing rights and
  1247. // limitations under the License.
  1248. //
  1249. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1250. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1251. // This header file contains integer types. It's intended to also contain
  1252. // flotaing point and other arithmetic types, as needed, later.
  1253. type X__int8_t = int8 /* _types.h:15:33 */
  1254. type X__uint8_t = uint8 /* _types.h:19:33 */
  1255. type X__int16_t = int16 /* _types.h:20:33 */
  1256. type X__uint16_t = uint16 /* _types.h:21:33 */
  1257. type X__int32_t = int32 /* _types.h:22:33 */
  1258. type X__uint32_t = uint32 /* _types.h:23:33 */
  1259. type X__int64_t = int64 /* _types.h:24:33 */
  1260. type X__uint64_t = uint64 /* _types.h:25:33 */
  1261. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  1262. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  1263. // The rune type below is declared to be an ``int'' instead of the more natural
  1264. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  1265. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  1266. // it looks like 10646 will be a 31 bit standard. This means that if your
  1267. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  1268. // chosen over a long is that the is*() and to*() routines take ints (says
  1269. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  1270. // here, you lose a bit of ANSI conformance, but your programs will still
  1271. // work.
  1272. //
  1273. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  1274. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  1275. // rune_t must be the same type. Also wint_t must be no narrower than
  1276. // wchar_t, and should also be able to hold all members of the largest
  1277. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  1278. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  1279. // mbstate_t is an opaque object to keep conversion state, during multibyte
  1280. // stream conversions. The content must not be referenced by user programs.
  1281. type X__mbstate_t = struct {
  1282. F__ccgo_pad1 [0]uint64
  1283. F__mbstate8 [128]int8
  1284. } /* _types.h:57:3 */
  1285. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  1286. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  1287. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  1288. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  1289. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  1290. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  1291. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  1292. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  1293. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  1294. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  1295. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  1296. // Type definitions; takes common type definitions that must be used
  1297. // in multiple header files due to [XSI], removes them from the system
  1298. // space, and puts them in the implementation space.
  1299. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  1300. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  1301. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  1302. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1303. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1304. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  1305. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1306. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1307. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  1308. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  1309. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1310. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  1311. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  1312. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  1313. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  1314. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  1315. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  1316. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  1317. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  1318. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  1319. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1320. //
  1321. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1322. //
  1323. // This file contains Original Code and/or Modifications of Original Code
  1324. // as defined in and that are subject to the Apple Public Source License
  1325. // Version 2.0 (the 'License'). You may not use this file except in
  1326. // compliance with the License. The rights granted to you under the License
  1327. // may not be used to create, or enable the creation or redistribution of,
  1328. // unlawful or unlicensed copies of an Apple operating system, or to
  1329. // circumvent, violate, or enable the circumvention or violation of, any
  1330. // terms of an Apple operating system software license agreement.
  1331. //
  1332. // Please obtain a copy of the License at
  1333. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1334. //
  1335. // The Original Code and all software distributed under the License are
  1336. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1337. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1338. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1339. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1340. // Please see the License for the specific language governing rights and
  1341. // limitations under the License.
  1342. //
  1343. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1344. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1345. //
  1346. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1347. //
  1348. // This file contains Original Code and/or Modifications of Original Code
  1349. // as defined in and that are subject to the Apple Public Source License
  1350. // Version 2.0 (the 'License'). You may not use this file except in
  1351. // compliance with the License. The rights granted to you under the License
  1352. // may not be used to create, or enable the creation or redistribution of,
  1353. // unlawful or unlicensed copies of an Apple operating system, or to
  1354. // circumvent, violate, or enable the circumvention or violation of, any
  1355. // terms of an Apple operating system software license agreement.
  1356. //
  1357. // Please obtain a copy of the License at
  1358. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1359. //
  1360. // The Original Code and all software distributed under the License are
  1361. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1362. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1363. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1364. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1365. // Please see the License for the specific language governing rights and
  1366. // limitations under the License.
  1367. //
  1368. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1369. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1370. // Copyright (c) 1991, 1993
  1371. // The Regents of the University of California. All rights reserved.
  1372. //
  1373. // This code is derived from software contributed to Berkeley by
  1374. // Berkeley Software Design, Inc.
  1375. //
  1376. // Redistribution and use in source and binary forms, with or without
  1377. // modification, are permitted provided that the following conditions
  1378. // are met:
  1379. // 1. Redistributions of source code must retain the above copyright
  1380. // notice, this list of conditions and the following disclaimer.
  1381. // 2. Redistributions in binary form must reproduce the above copyright
  1382. // notice, this list of conditions and the following disclaimer in the
  1383. // documentation and/or other materials provided with the distribution.
  1384. // 3. All advertising materials mentioning features or use of this software
  1385. // must display the following acknowledgement:
  1386. // This product includes software developed by the University of
  1387. // California, Berkeley and its contributors.
  1388. // 4. Neither the name of the University nor the names of its contributors
  1389. // may be used to endorse or promote products derived from this software
  1390. // without specific prior written permission.
  1391. //
  1392. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1393. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1394. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1395. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1396. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1397. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1398. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1399. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1400. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1401. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1402. // SUCH DAMAGE.
  1403. //
  1404. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1405. // pthread opaque structures
  1406. type X__darwin_pthread_handler_rec = struct {
  1407. F__routine uintptr
  1408. F__arg uintptr
  1409. F__next uintptr
  1410. } /* _pthread_types.h:57:1 */
  1411. type X_opaque_pthread_attr_t = struct {
  1412. F__sig int64
  1413. F__opaque [56]int8
  1414. } /* _pthread_types.h:63:1 */
  1415. type X_opaque_pthread_cond_t = struct {
  1416. F__sig int64
  1417. F__opaque [40]int8
  1418. } /* _pthread_types.h:68:1 */
  1419. type X_opaque_pthread_condattr_t = struct {
  1420. F__sig int64
  1421. F__opaque [8]int8
  1422. } /* _pthread_types.h:73:1 */
  1423. type X_opaque_pthread_mutex_t = struct {
  1424. F__sig int64
  1425. F__opaque [56]int8
  1426. } /* _pthread_types.h:78:1 */
  1427. type X_opaque_pthread_mutexattr_t = struct {
  1428. F__sig int64
  1429. F__opaque [8]int8
  1430. } /* _pthread_types.h:83:1 */
  1431. type X_opaque_pthread_once_t = struct {
  1432. F__sig int64
  1433. F__opaque [8]int8
  1434. } /* _pthread_types.h:88:1 */
  1435. type X_opaque_pthread_rwlock_t = struct {
  1436. F__sig int64
  1437. F__opaque [192]int8
  1438. } /* _pthread_types.h:93:1 */
  1439. type X_opaque_pthread_rwlockattr_t = struct {
  1440. F__sig int64
  1441. F__opaque [16]int8
  1442. } /* _pthread_types.h:98:1 */
  1443. type X_opaque_pthread_t = struct {
  1444. F__sig int64
  1445. F__cleanup_stack uintptr
  1446. F__opaque [8176]int8
  1447. } /* _pthread_types.h:103:1 */
  1448. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  1449. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  1450. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  1451. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  1452. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  1453. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  1454. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  1455. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  1456. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1457. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  1458. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1459. //
  1460. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1461. //
  1462. // This file contains Original Code and/or Modifications of Original Code
  1463. // as defined in and that are subject to the Apple Public Source License
  1464. // Version 2.0 (the 'License'). You may not use this file except in
  1465. // compliance with the License. The rights granted to you under the License
  1466. // may not be used to create, or enable the creation or redistribution of,
  1467. // unlawful or unlicensed copies of an Apple operating system, or to
  1468. // circumvent, violate, or enable the circumvention or violation of, any
  1469. // terms of an Apple operating system software license agreement.
  1470. //
  1471. // Please obtain a copy of the License at
  1472. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1473. //
  1474. // The Original Code and all software distributed under the License are
  1475. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1476. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1477. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1478. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1479. // Please see the License for the specific language governing rights and
  1480. // limitations under the License.
  1481. //
  1482. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1483. type X__darwin_nl_item = int32 /* _types.h:40:14 */
  1484. type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
  1485. type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  1486. // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1487. //
  1488. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1489. //
  1490. // This file contains Original Code and/or Modifications of Original Code
  1491. // as defined in and that are subject to the Apple Public Source License
  1492. // Version 2.0 (the 'License'). You may not use this file except in
  1493. // compliance with the License. The rights granted to you under the License
  1494. // may not be used to create, or enable the creation or redistribution of,
  1495. // unlawful or unlicensed copies of an Apple operating system, or to
  1496. // circumvent, violate, or enable the circumvention or violation of, any
  1497. // terms of an Apple operating system software license agreement.
  1498. //
  1499. // Please obtain a copy of the License at
  1500. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1501. //
  1502. // The Original Code and all software distributed under the License are
  1503. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1504. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1505. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1506. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1507. // Please see the License for the specific language governing rights and
  1508. // limitations under the License.
  1509. //
  1510. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1511. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  1512. // Copyright (c) 1982, 1986, 1989, 1993, 1994
  1513. // The Regents of the University of California. All rights reserved.
  1514. //
  1515. // Redistribution and use in source and binary forms, with or without
  1516. // modification, are permitted provided that the following conditions
  1517. // are met:
  1518. // 1. Redistributions of source code must retain the above copyright
  1519. // notice, this list of conditions and the following disclaimer.
  1520. // 2. Redistributions in binary form must reproduce the above copyright
  1521. // notice, this list of conditions and the following disclaimer in the
  1522. // documentation and/or other materials provided with the distribution.
  1523. // 3. All advertising materials mentioning features or use of this software
  1524. // must display the following acknowledgement:
  1525. // This product includes software developed by the University of
  1526. // California, Berkeley and its contributors.
  1527. // 4. Neither the name of the University nor the names of its contributors
  1528. // may be used to endorse or promote products derived from this software
  1529. // without specific prior written permission.
  1530. //
  1531. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1532. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1533. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1534. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1535. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1536. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1537. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1538. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1539. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1540. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1541. // SUCH DAMAGE.
  1542. //
  1543. // @(#)wait.h 8.2 (Berkeley) 7/10/94
  1544. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1545. //
  1546. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1547. //
  1548. // This file contains Original Code and/or Modifications of Original Code
  1549. // as defined in and that are subject to the Apple Public Source License
  1550. // Version 2.0 (the 'License'). You may not use this file except in
  1551. // compliance with the License. The rights granted to you under the License
  1552. // may not be used to create, or enable the creation or redistribution of,
  1553. // unlawful or unlicensed copies of an Apple operating system, or to
  1554. // circumvent, violate, or enable the circumvention or violation of, any
  1555. // terms of an Apple operating system software license agreement.
  1556. //
  1557. // Please obtain a copy of the License at
  1558. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1559. //
  1560. // The Original Code and all software distributed under the License are
  1561. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1562. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1563. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1564. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1565. // Please see the License for the specific language governing rights and
  1566. // limitations under the License.
  1567. //
  1568. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1569. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1570. // Copyright (c) 1991, 1993
  1571. // The Regents of the University of California. All rights reserved.
  1572. //
  1573. // This code is derived from software contributed to Berkeley by
  1574. // Berkeley Software Design, Inc.
  1575. //
  1576. // Redistribution and use in source and binary forms, with or without
  1577. // modification, are permitted provided that the following conditions
  1578. // are met:
  1579. // 1. Redistributions of source code must retain the above copyright
  1580. // notice, this list of conditions and the following disclaimer.
  1581. // 2. Redistributions in binary form must reproduce the above copyright
  1582. // notice, this list of conditions and the following disclaimer in the
  1583. // documentation and/or other materials provided with the distribution.
  1584. // 3. All advertising materials mentioning features or use of this software
  1585. // must display the following acknowledgement:
  1586. // This product includes software developed by the University of
  1587. // California, Berkeley and its contributors.
  1588. // 4. Neither the name of the University nor the names of its contributors
  1589. // may be used to endorse or promote products derived from this software
  1590. // without specific prior written permission.
  1591. //
  1592. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1593. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1594. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1595. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1596. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1597. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1598. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1599. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1600. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1601. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1602. // SUCH DAMAGE.
  1603. //
  1604. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1605. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1606. //
  1607. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1608. //
  1609. // This file contains Original Code and/or Modifications of Original Code
  1610. // as defined in and that are subject to the Apple Public Source License
  1611. // Version 2.0 (the 'License'). You may not use this file except in
  1612. // compliance with the License. The rights granted to you under the License
  1613. // may not be used to create, or enable the creation or redistribution of,
  1614. // unlawful or unlicensed copies of an Apple operating system, or to
  1615. // circumvent, violate, or enable the circumvention or violation of, any
  1616. // terms of an Apple operating system software license agreement.
  1617. //
  1618. // Please obtain a copy of the License at
  1619. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1620. //
  1621. // The Original Code and all software distributed under the License are
  1622. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1623. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1624. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1625. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1626. // Please see the License for the specific language governing rights and
  1627. // limitations under the License.
  1628. //
  1629. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1630. // This file holds definitions relevent to the wait4 system call
  1631. // and the alternate interfaces that use it (wait, wait3, waitpid).
  1632. // [XSI] The type idtype_t shall be defined as an enumeration type whose
  1633. // possible values shall include at least P_ALL, P_PID, and P_PGID.
  1634. type Idtype_t = uint32 /* wait.h:83:3 */
  1635. // [XSI] The id_t and pid_t types shall be defined as described
  1636. // in <sys/types.h>
  1637. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1638. //
  1639. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1640. //
  1641. // This file contains Original Code and/or Modifications of Original Code
  1642. // as defined in and that are subject to the Apple Public Source License
  1643. // Version 2.0 (the 'License'). You may not use this file except in
  1644. // compliance with the License. The rights granted to you under the License
  1645. // may not be used to create, or enable the creation or redistribution of,
  1646. // unlawful or unlicensed copies of an Apple operating system, or to
  1647. // circumvent, violate, or enable the circumvention or violation of, any
  1648. // terms of an Apple operating system software license agreement.
  1649. //
  1650. // Please obtain a copy of the License at
  1651. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1652. //
  1653. // The Original Code and all software distributed under the License are
  1654. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1655. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1656. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1657. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1658. // Please see the License for the specific language governing rights and
  1659. // limitations under the License.
  1660. //
  1661. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1662. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1663. //
  1664. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1665. //
  1666. // This file contains Original Code and/or Modifications of Original Code
  1667. // as defined in and that are subject to the Apple Public Source License
  1668. // Version 2.0 (the 'License'). You may not use this file except in
  1669. // compliance with the License. The rights granted to you under the License
  1670. // may not be used to create, or enable the creation or redistribution of,
  1671. // unlawful or unlicensed copies of an Apple operating system, or to
  1672. // circumvent, violate, or enable the circumvention or violation of, any
  1673. // terms of an Apple operating system software license agreement.
  1674. //
  1675. // Please obtain a copy of the License at
  1676. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1677. //
  1678. // The Original Code and all software distributed under the License are
  1679. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1680. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1681. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1682. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1683. // Please see the License for the specific language governing rights and
  1684. // limitations under the License.
  1685. //
  1686. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1687. type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  1688. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1689. //
  1690. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1691. //
  1692. // This file contains Original Code and/or Modifications of Original Code
  1693. // as defined in and that are subject to the Apple Public Source License
  1694. // Version 2.0 (the 'License'). You may not use this file except in
  1695. // compliance with the License. The rights granted to you under the License
  1696. // may not be used to create, or enable the creation or redistribution of,
  1697. // unlawful or unlicensed copies of an Apple operating system, or to
  1698. // circumvent, violate, or enable the circumvention or violation of, any
  1699. // terms of an Apple operating system software license agreement.
  1700. //
  1701. // Please obtain a copy of the License at
  1702. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1703. //
  1704. // The Original Code and all software distributed under the License are
  1705. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1706. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1707. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1708. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1709. // Please see the License for the specific language governing rights and
  1710. // limitations under the License.
  1711. //
  1712. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1713. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1714. //
  1715. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1716. //
  1717. // This file contains Original Code and/or Modifications of Original Code
  1718. // as defined in and that are subject to the Apple Public Source License
  1719. // Version 2.0 (the 'License'). You may not use this file except in
  1720. // compliance with the License. The rights granted to you under the License
  1721. // may not be used to create, or enable the creation or redistribution of,
  1722. // unlawful or unlicensed copies of an Apple operating system, or to
  1723. // circumvent, violate, or enable the circumvention or violation of, any
  1724. // terms of an Apple operating system software license agreement.
  1725. //
  1726. // Please obtain a copy of the License at
  1727. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1728. //
  1729. // The Original Code and all software distributed under the License are
  1730. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1731. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1732. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1733. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1734. // Please see the License for the specific language governing rights and
  1735. // limitations under the License.
  1736. //
  1737. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1738. type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  1739. // [XSI] The siginfo_t type shall be defined as described in <signal.h>
  1740. // [XSI] The rusage structure shall be defined as described in <sys/resource.h>
  1741. // [XSI] Inclusion of the <sys/wait.h> header may also make visible all
  1742. // symbols from <signal.h> and <sys/resource.h>
  1743. //
  1744. // NOTE: This requirement is currently being satisfied by the direct
  1745. // inclusion of <sys/signal.h> and <sys/resource.h>, below.
  1746. //
  1747. // Software should not depend on the exposure of anything other
  1748. // than the types siginfo_t and struct rusage as a result of
  1749. // this inclusion. If you depend on any types or manifest
  1750. // values othe than siginfo_t and struct rusage from either of
  1751. // those files, you should explicitly include them yourself, as
  1752. // well, or in future releases your stware may not compile
  1753. // without modification.
  1754. // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
  1755. //
  1756. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1757. //
  1758. // This file contains Original Code and/or Modifications of Original Code
  1759. // as defined in and that are subject to the Apple Public Source License
  1760. // Version 2.0 (the 'License'). You may not use this file except in
  1761. // compliance with the License. The rights granted to you under the License
  1762. // may not be used to create, or enable the creation or redistribution of,
  1763. // unlawful or unlicensed copies of an Apple operating system, or to
  1764. // circumvent, violate, or enable the circumvention or violation of, any
  1765. // terms of an Apple operating system software license agreement.
  1766. //
  1767. // Please obtain a copy of the License at
  1768. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1769. //
  1770. // The Original Code and all software distributed under the License are
  1771. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1772. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1773. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1774. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1775. // Please see the License for the specific language governing rights and
  1776. // limitations under the License.
  1777. //
  1778. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1779. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  1780. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1781. // The Regents of the University of California. All rights reserved.
  1782. // (c) UNIX System Laboratories, Inc.
  1783. // All or some portions of this file are derived from material licensed
  1784. // to the University of California by American Telephone and Telegraph
  1785. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1786. // the permission of UNIX System Laboratories, Inc.
  1787. //
  1788. // Redistribution and use in source and binary forms, with or without
  1789. // modification, are permitted provided that the following conditions
  1790. // are met:
  1791. // 1. Redistributions of source code must retain the above copyright
  1792. // notice, this list of conditions and the following disclaimer.
  1793. // 2. Redistributions in binary form must reproduce the above copyright
  1794. // notice, this list of conditions and the following disclaimer in the
  1795. // documentation and/or other materials provided with the distribution.
  1796. // 3. All advertising materials mentioning features or use of this software
  1797. // must display the following acknowledgement:
  1798. // This product includes software developed by the University of
  1799. // California, Berkeley and its contributors.
  1800. // 4. Neither the name of the University nor the names of its contributors
  1801. // may be used to endorse or promote products derived from this software
  1802. // without specific prior written permission.
  1803. //
  1804. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1805. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1806. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1807. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1808. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1809. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1810. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1811. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1812. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1813. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1814. // SUCH DAMAGE.
  1815. //
  1816. // @(#)signal.h 8.2 (Berkeley) 1/21/94
  1817. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1818. //
  1819. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1820. //
  1821. // This file contains Original Code and/or Modifications of Original Code
  1822. // as defined in and that are subject to the Apple Public Source License
  1823. // Version 2.0 (the 'License'). You may not use this file except in
  1824. // compliance with the License. The rights granted to you under the License
  1825. // may not be used to create, or enable the creation or redistribution of,
  1826. // unlawful or unlicensed copies of an Apple operating system, or to
  1827. // circumvent, violate, or enable the circumvention or violation of, any
  1828. // terms of an Apple operating system software license agreement.
  1829. //
  1830. // Please obtain a copy of the License at
  1831. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1832. //
  1833. // The Original Code and all software distributed under the License are
  1834. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1835. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1836. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1837. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1838. // Please see the License for the specific language governing rights and
  1839. // limitations under the License.
  1840. //
  1841. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1842. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1843. // Copyright (c) 1991, 1993
  1844. // The Regents of the University of California. All rights reserved.
  1845. //
  1846. // This code is derived from software contributed to Berkeley by
  1847. // Berkeley Software Design, Inc.
  1848. //
  1849. // Redistribution and use in source and binary forms, with or without
  1850. // modification, are permitted provided that the following conditions
  1851. // are met:
  1852. // 1. Redistributions of source code must retain the above copyright
  1853. // notice, this list of conditions and the following disclaimer.
  1854. // 2. Redistributions in binary form must reproduce the above copyright
  1855. // notice, this list of conditions and the following disclaimer in the
  1856. // documentation and/or other materials provided with the distribution.
  1857. // 3. All advertising materials mentioning features or use of this software
  1858. // must display the following acknowledgement:
  1859. // This product includes software developed by the University of
  1860. // California, Berkeley and its contributors.
  1861. // 4. Neither the name of the University nor the names of its contributors
  1862. // may be used to endorse or promote products derived from this software
  1863. // without specific prior written permission.
  1864. //
  1865. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1866. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1867. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1868. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1869. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1870. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1871. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1872. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1873. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1874. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1875. // SUCH DAMAGE.
  1876. //
  1877. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1878. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  1879. //
  1880. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1881. //
  1882. // This file contains Original Code and/or Modifications of Original Code
  1883. // as defined in and that are subject to the Apple Public Source License
  1884. // Version 2.0 (the 'License'). You may not use this file except in
  1885. // compliance with the License. The rights granted to you under the License
  1886. // may not be used to create, or enable the creation or redistribution of,
  1887. // unlawful or unlicensed copies of an Apple operating system, or to
  1888. // circumvent, violate, or enable the circumvention or violation of, any
  1889. // terms of an Apple operating system software license agreement.
  1890. //
  1891. // Please obtain a copy of the License at
  1892. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1893. //
  1894. // The Original Code and all software distributed under the License are
  1895. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1896. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1897. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1898. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1899. // Please see the License for the specific language governing rights and
  1900. // limitations under the License.
  1901. //
  1902. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1903. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1904. //
  1905. // @APPLE_LICENSE_HEADER_START@
  1906. //
  1907. // This file contains Original Code and/or Modifications of Original Code
  1908. // as defined in and that are subject to the Apple Public Source License
  1909. // Version 2.0 (the 'License'). You may not use this file except in
  1910. // compliance with the License. Please obtain a copy of the License at
  1911. // http://www.opensource.apple.com/apsl/ and read it before using this
  1912. // 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_LICENSE_HEADER_END@
  1923. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1924. //
  1925. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1926. //
  1927. // This file contains Original Code and/or Modifications of Original Code
  1928. // as defined in and that are subject to the Apple Public Source License
  1929. // Version 2.0 (the 'License'). You may not use this file except in
  1930. // compliance with the License. The rights granted to you under the License
  1931. // may not be used to create, or enable the creation or redistribution of,
  1932. // unlawful or unlicensed copies of an Apple operating system, or to
  1933. // circumvent, violate, or enable the circumvention or violation of, any
  1934. // terms of an Apple operating system software license agreement.
  1935. //
  1936. // Please obtain a copy of the License at
  1937. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1938. //
  1939. // The Original Code and all software distributed under the License are
  1940. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1941. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1942. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1943. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1944. // Please see the License for the specific language governing rights and
  1945. // limitations under the License.
  1946. //
  1947. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1948. // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
  1949. // Copyright (c) 1992 NeXT Computer, Inc.
  1950. //
  1951. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1952. //
  1953. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1954. //
  1955. // This file contains Original Code and/or Modifications of Original Code
  1956. // as defined in and that are subject to the Apple Public Source License
  1957. // Version 2.0 (the 'License'). You may not use this file except in
  1958. // compliance with the License. The rights granted to you under the License
  1959. // may not be used to create, or enable the creation or redistribution of,
  1960. // unlawful or unlicensed copies of an Apple operating system, or to
  1961. // circumvent, violate, or enable the circumvention or violation of, any
  1962. // terms of an Apple operating system software license agreement.
  1963. //
  1964. // Please obtain a copy of the License at
  1965. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1966. //
  1967. // The Original Code and all software distributed under the License are
  1968. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1969. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1970. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1971. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1972. // Please see the License for the specific language governing rights and
  1973. // limitations under the License.
  1974. //
  1975. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1976. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1977. // Copyright (c) 1991, 1993
  1978. // The Regents of the University of California. All rights reserved.
  1979. //
  1980. // This code is derived from software contributed to Berkeley by
  1981. // Berkeley Software Design, Inc.
  1982. //
  1983. // Redistribution and use in source and binary forms, with or without
  1984. // modification, are permitted provided that the following conditions
  1985. // are met:
  1986. // 1. Redistributions of source code must retain the above copyright
  1987. // notice, this list of conditions and the following disclaimer.
  1988. // 2. Redistributions in binary form must reproduce the above copyright
  1989. // notice, this list of conditions and the following disclaimer in the
  1990. // documentation and/or other materials provided with the distribution.
  1991. // 3. All advertising materials mentioning features or use of this software
  1992. // must display the following acknowledgement:
  1993. // This product includes software developed by the University of
  1994. // California, Berkeley and its contributors.
  1995. // 4. Neither the name of the University nor the names of its contributors
  1996. // may be used to endorse or promote products derived from this software
  1997. // without specific prior written permission.
  1998. //
  1999. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2000. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2001. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2002. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2003. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2004. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2005. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2006. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2007. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2008. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2009. // SUCH DAMAGE.
  2010. //
  2011. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2012. type Sig_atomic_t = int32 /* signal.h:17:13 */
  2013. // Language spec sez we must list exactly one parameter, even though we
  2014. // actually supply three. Ugh!
  2015. // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
  2016. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2017. //
  2018. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2019. //
  2020. // This file contains Original Code and/or Modifications of Original Code
  2021. // as defined in and that are subject to the Apple Public Source License
  2022. // Version 2.0 (the 'License'). You may not use this file except in
  2023. // compliance with the License. The rights granted to you under the License
  2024. // may not be used to create, or enable the creation or redistribution of,
  2025. // unlawful or unlicensed copies of an Apple operating system, or to
  2026. // circumvent, violate, or enable the circumvention or violation of, any
  2027. // terms of an Apple operating system software license agreement.
  2028. //
  2029. // Please obtain a copy of the License at
  2030. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2031. //
  2032. // The Original Code and all software distributed under the License are
  2033. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2034. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2035. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2036. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2037. // Please see the License for the specific language governing rights and
  2038. // limitations under the License.
  2039. //
  2040. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2041. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2042. //
  2043. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2044. //
  2045. // This file contains Original Code and/or Modifications of Original Code
  2046. // as defined in and that are subject to the Apple Public Source License
  2047. // Version 2.0 (the 'License'). You may not use this file except in
  2048. // compliance with the License. The rights granted to you under the License
  2049. // may not be used to create, or enable the creation or redistribution of,
  2050. // unlawful or unlicensed copies of an Apple operating system, or to
  2051. // circumvent, violate, or enable the circumvention or violation of, any
  2052. // terms of an Apple operating system software license agreement.
  2053. //
  2054. // Please obtain a copy of the License at
  2055. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2056. //
  2057. // The Original Code and all software distributed under the License are
  2058. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2059. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2060. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2061. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2062. // Please see the License for the specific language governing rights and
  2063. // limitations under the License.
  2064. //
  2065. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2066. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2067. //
  2068. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2069. //
  2070. // This file contains Original Code and/or Modifications of Original Code
  2071. // as defined in and that are subject to the Apple Public Source License
  2072. // Version 2.0 (the 'License'). You may not use this file except in
  2073. // compliance with the License. The rights granted to you under the License
  2074. // may not be used to create, or enable the creation or redistribution of,
  2075. // unlawful or unlicensed copies of an Apple operating system, or to
  2076. // circumvent, violate, or enable the circumvention or violation of, any
  2077. // terms of an Apple operating system software license agreement.
  2078. //
  2079. // Please obtain a copy of the License at
  2080. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2081. //
  2082. // The Original Code and all software distributed under the License are
  2083. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2084. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2085. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2086. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2087. // Please see the License for the specific language governing rights and
  2088. // limitations under the License.
  2089. //
  2090. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2091. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2092. //
  2093. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2094. //
  2095. // This file contains Original Code and/or Modifications of Original Code
  2096. // as defined in and that are subject to the Apple Public Source License
  2097. // Version 2.0 (the 'License'). You may not use this file except in
  2098. // compliance with the License. The rights granted to you under the License
  2099. // may not be used to create, or enable the creation or redistribution of,
  2100. // unlawful or unlicensed copies of an Apple operating system, or to
  2101. // circumvent, violate, or enable the circumvention or violation of, any
  2102. // terms of an Apple operating system software license agreement.
  2103. //
  2104. // Please obtain a copy of the License at
  2105. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2106. //
  2107. // The Original Code and all software distributed under the License are
  2108. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2109. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2110. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2111. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2112. // Please see the License for the specific language governing rights and
  2113. // limitations under the License.
  2114. //
  2115. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2116. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2117. // Copyright (c) 1991, 1993
  2118. // The Regents of the University of California. All rights reserved.
  2119. //
  2120. // This code is derived from software contributed to Berkeley by
  2121. // Berkeley Software Design, Inc.
  2122. //
  2123. // Redistribution and use in source and binary forms, with or without
  2124. // modification, are permitted provided that the following conditions
  2125. // are met:
  2126. // 1. Redistributions of source code must retain the above copyright
  2127. // notice, this list of conditions and the following disclaimer.
  2128. // 2. Redistributions in binary form must reproduce the above copyright
  2129. // notice, this list of conditions and the following disclaimer in the
  2130. // documentation and/or other materials provided with the distribution.
  2131. // 3. All advertising materials mentioning features or use of this software
  2132. // must display the following acknowledgement:
  2133. // This product includes software developed by the University of
  2134. // California, Berkeley and its contributors.
  2135. // 4. Neither the name of the University nor the names of its contributors
  2136. // may be used to endorse or promote products derived from this software
  2137. // without specific prior written permission.
  2138. //
  2139. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2140. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2141. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2142. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2143. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2144. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2145. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2146. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2147. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2148. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2149. // SUCH DAMAGE.
  2150. //
  2151. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2152. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  2153. //
  2154. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2155. //
  2156. // This file contains Original Code and/or Modifications of Original Code
  2157. // as defined in and that are subject to the Apple Public Source License
  2158. // Version 2.0 (the 'License'). You may not use this file except in
  2159. // compliance with the License. The rights granted to you under the License
  2160. // may not be used to create, or enable the creation or redistribution of,
  2161. // unlawful or unlicensed copies of an Apple operating system, or to
  2162. // circumvent, violate, or enable the circumvention or violation of, any
  2163. // terms of an Apple operating system software license agreement.
  2164. //
  2165. // Please obtain a copy of the License at
  2166. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2167. //
  2168. // The Original Code and all software distributed under the License are
  2169. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2170. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2171. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2172. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2173. // Please see the License for the specific language governing rights and
  2174. // limitations under the License.
  2175. //
  2176. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2177. // Copyright (c) 2017 Apple Inc. All rights reserved.
  2178. //
  2179. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2180. //
  2181. // This file contains Original Code and/or Modifications of Original Code
  2182. // as defined in and that are subject to the Apple Public Source License
  2183. // Version 2.0 (the 'License'). You may not use this file except in
  2184. // compliance with the License. The rights granted to you under the License
  2185. // may not be used to create, or enable the creation or redistribution of,
  2186. // unlawful or unlicensed copies of an Apple operating system, or to
  2187. // circumvent, violate, or enable the circumvention or violation of, any
  2188. // terms of an Apple operating system software license agreement.
  2189. //
  2190. // Please obtain a copy of the License at
  2191. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2192. //
  2193. // The Original Code and all software distributed under the License are
  2194. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2195. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2196. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2197. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2198. // Please see the License for the specific language governing rights and
  2199. // limitations under the License.
  2200. //
  2201. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2202. // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  2203. //
  2204. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2205. //
  2206. // This file contains Original Code and/or Modifications of Original Code
  2207. // as defined in and that are subject to the Apple Public Source License
  2208. // Version 2.0 (the 'License'). You may not use this file except in
  2209. // compliance with the License. The rights granted to you under the License
  2210. // may not be used to create, or enable the creation or redistribution of,
  2211. // unlawful or unlicensed copies of an Apple operating system, or to
  2212. // circumvent, violate, or enable the circumvention or violation of, any
  2213. // terms of an Apple operating system software license agreement.
  2214. //
  2215. // Please obtain a copy of the License at
  2216. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2217. //
  2218. // The Original Code and all software distributed under the License are
  2219. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2220. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2221. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2222. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2223. // Please see the License for the specific language governing rights and
  2224. // limitations under the License.
  2225. //
  2226. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2227. // @OSF_COPYRIGHT@
  2228. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2229. //
  2230. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2231. //
  2232. // This file contains Original Code and/or Modifications of Original Code
  2233. // as defined in and that are subject to the Apple Public Source License
  2234. // Version 2.0 (the 'License'). You may not use this file except in
  2235. // compliance with the License. The rights granted to you under the License
  2236. // may not be used to create, or enable the creation or redistribution of,
  2237. // unlawful or unlicensed copies of an Apple operating system, or to
  2238. // circumvent, violate, or enable the circumvention or violation of, any
  2239. // terms of an Apple operating system software license agreement.
  2240. //
  2241. // Please obtain a copy of the License at
  2242. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2243. //
  2244. // The Original Code and all software distributed under the License are
  2245. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2246. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2247. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2248. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2249. // Please see the License for the specific language governing rights and
  2250. // limitations under the License.
  2251. //
  2252. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2253. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2254. // Copyright (c) 1991, 1993
  2255. // The Regents of the University of California. All rights reserved.
  2256. //
  2257. // This code is derived from software contributed to Berkeley by
  2258. // Berkeley Software Design, Inc.
  2259. //
  2260. // Redistribution and use in source and binary forms, with or without
  2261. // modification, are permitted provided that the following conditions
  2262. // are met:
  2263. // 1. Redistributions of source code must retain the above copyright
  2264. // notice, this list of conditions and the following disclaimer.
  2265. // 2. Redistributions in binary form must reproduce the above copyright
  2266. // notice, this list of conditions and the following disclaimer in the
  2267. // documentation and/or other materials provided with the distribution.
  2268. // 3. All advertising materials mentioning features or use of this software
  2269. // must display the following acknowledgement:
  2270. // This product includes software developed by the University of
  2271. // California, Berkeley and its contributors.
  2272. // 4. Neither the name of the University nor the names of its contributors
  2273. // may be used to endorse or promote products derived from this software
  2274. // without specific prior written permission.
  2275. //
  2276. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2277. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2278. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2279. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2280. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2281. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2282. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2283. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2284. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2285. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2286. // SUCH DAMAGE.
  2287. //
  2288. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2289. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2290. //
  2291. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2292. //
  2293. // This file contains Original Code and/or Modifications of Original Code
  2294. // as defined in and that are subject to the Apple Public Source License
  2295. // Version 2.0 (the 'License'). You may not use this file except in
  2296. // compliance with the License. The rights granted to you under the License
  2297. // may not be used to create, or enable the creation or redistribution of,
  2298. // unlawful or unlicensed copies of an Apple operating system, or to
  2299. // circumvent, violate, or enable the circumvention or violation of, any
  2300. // terms of an Apple operating system software license agreement.
  2301. //
  2302. // Please obtain a copy of the License at
  2303. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2304. //
  2305. // The Original Code and all software distributed under the License are
  2306. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2307. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2308. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2309. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2310. // Please see the License for the specific language governing rights and
  2311. // limitations under the License.
  2312. //
  2313. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2314. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2315. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  2316. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2317. // Copyright (c) 1990, 1993
  2318. // The Regents of the University of California. All rights reserved.
  2319. //
  2320. // Redistribution and use in source and binary forms, with or without
  2321. // modification, are permitted provided that the following conditions
  2322. // are met:
  2323. // 1. Redistributions of source code must retain the above copyright
  2324. // notice, this list of conditions and the following disclaimer.
  2325. // 2. Redistributions in binary form must reproduce the above copyright
  2326. // notice, this list of conditions and the following disclaimer in the
  2327. // documentation and/or other materials provided with the distribution.
  2328. // 3. All advertising materials mentioning features or use of this software
  2329. // must display the following acknowledgement:
  2330. // This product includes software developed by the University of
  2331. // California, Berkeley and its contributors.
  2332. // 4. Neither the name of the University nor the names of its contributors
  2333. // may be used to endorse or promote products derived from this software
  2334. // without specific prior written permission.
  2335. //
  2336. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2337. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2338. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2339. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2340. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2341. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2342. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2343. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2344. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2345. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2346. // SUCH DAMAGE.
  2347. //
  2348. // @(#)types.h 8.3 (Berkeley) 1/5/94
  2349. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2350. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2351. //
  2352. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2353. //
  2354. // This file contains Original Code and/or Modifications of Original Code
  2355. // as defined in and that are subject to the Apple Public Source License
  2356. // Version 2.0 (the 'License'). You may not use this file except in
  2357. // compliance with the License. The rights granted to you under the License
  2358. // may not be used to create, or enable the creation or redistribution of,
  2359. // unlawful or unlicensed copies of an Apple operating system, or to
  2360. // circumvent, violate, or enable the circumvention or violation of, any
  2361. // terms of an Apple operating system software license agreement.
  2362. //
  2363. // Please obtain a copy of the License at
  2364. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2365. //
  2366. // The Original Code and all software distributed under the License are
  2367. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2368. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2369. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2370. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2371. // Please see the License for the specific language governing rights and
  2372. // limitations under the License.
  2373. //
  2374. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2375. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2376. // Copyright (c) 1991, 1993
  2377. // The Regents of the University of California. All rights reserved.
  2378. //
  2379. // This code is derived from software contributed to Berkeley by
  2380. // Berkeley Software Design, Inc.
  2381. //
  2382. // Redistribution and use in source and binary forms, with or without
  2383. // modification, are permitted provided that the following conditions
  2384. // are met:
  2385. // 1. Redistributions of source code must retain the above copyright
  2386. // notice, this list of conditions and the following disclaimer.
  2387. // 2. Redistributions in binary form must reproduce the above copyright
  2388. // notice, this list of conditions and the following disclaimer in the
  2389. // documentation and/or other materials provided with the distribution.
  2390. // 3. All advertising materials mentioning features or use of this software
  2391. // must display the following acknowledgement:
  2392. // This product includes software developed by the University of
  2393. // California, Berkeley and its contributors.
  2394. // 4. Neither the name of the University nor the names of its contributors
  2395. // may be used to endorse or promote products derived from this software
  2396. // without specific prior written permission.
  2397. //
  2398. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2399. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2400. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2401. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2402. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2403. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2404. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2405. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2406. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2407. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2408. // SUCH DAMAGE.
  2409. //
  2410. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2411. // Basic integral types. Omit the typedef if
  2412. // not possible for a machine/compiler combination.
  2413. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2414. //
  2415. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2416. //
  2417. // This file contains Original Code and/or Modifications of Original Code
  2418. // as defined in and that are subject to the Apple Public Source License
  2419. // Version 2.0 (the 'License'). You may not use this file except in
  2420. // compliance with the License. The rights granted to you under the License
  2421. // may not be used to create, or enable the creation or redistribution of,
  2422. // unlawful or unlicensed copies of an Apple operating system, or to
  2423. // circumvent, violate, or enable the circumvention or violation of, any
  2424. // terms of an Apple operating system software license agreement.
  2425. //
  2426. // Please obtain a copy of the License at
  2427. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2428. //
  2429. // The Original Code and all software distributed under the License are
  2430. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2431. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2432. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2433. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2434. // Please see the License for the specific language governing rights and
  2435. // limitations under the License.
  2436. //
  2437. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2438. type Int8_t = int8 /* _int8_t.h:30:31 */
  2439. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2440. //
  2441. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2442. //
  2443. // This file contains Original Code and/or Modifications of Original Code
  2444. // as defined in and that are subject to the Apple Public Source License
  2445. // Version 2.0 (the 'License'). You may not use this file except in
  2446. // compliance with the License. The rights granted to you under the License
  2447. // may not be used to create, or enable the creation or redistribution of,
  2448. // unlawful or unlicensed copies of an Apple operating system, or to
  2449. // circumvent, violate, or enable the circumvention or violation of, any
  2450. // terms of an Apple operating system software license agreement.
  2451. //
  2452. // Please obtain a copy of the License at
  2453. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2454. //
  2455. // The Original Code and all software distributed under the License are
  2456. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2457. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2458. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2459. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2460. // Please see the License for the specific language governing rights and
  2461. // limitations under the License.
  2462. //
  2463. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2464. type Int16_t = int16 /* _int16_t.h:30:33 */
  2465. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2466. //
  2467. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2468. //
  2469. // This file contains Original Code and/or Modifications of Original Code
  2470. // as defined in and that are subject to the Apple Public Source License
  2471. // Version 2.0 (the 'License'). You may not use this file except in
  2472. // compliance with the License. The rights granted to you under the License
  2473. // may not be used to create, or enable the creation or redistribution of,
  2474. // unlawful or unlicensed copies of an Apple operating system, or to
  2475. // circumvent, violate, or enable the circumvention or violation of, any
  2476. // terms of an Apple operating system software license agreement.
  2477. //
  2478. // Please obtain a copy of the License at
  2479. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2480. //
  2481. // The Original Code and all software distributed under the License are
  2482. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2483. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2484. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2485. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2486. // Please see the License for the specific language governing rights and
  2487. // limitations under the License.
  2488. //
  2489. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2490. type Int32_t = int32 /* _int32_t.h:30:33 */
  2491. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2492. //
  2493. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2494. //
  2495. // This file contains Original Code and/or Modifications of Original Code
  2496. // as defined in and that are subject to the Apple Public Source License
  2497. // Version 2.0 (the 'License'). You may not use this file except in
  2498. // compliance with the License. The rights granted to you under the License
  2499. // may not be used to create, or enable the creation or redistribution of,
  2500. // unlawful or unlicensed copies of an Apple operating system, or to
  2501. // circumvent, violate, or enable the circumvention or violation of, any
  2502. // terms of an Apple operating system software license agreement.
  2503. //
  2504. // Please obtain a copy of the License at
  2505. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2506. //
  2507. // The Original Code and all software distributed under the License are
  2508. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2509. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2510. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2511. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2512. // Please see the License for the specific language governing rights and
  2513. // limitations under the License.
  2514. //
  2515. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2516. type Int64_t = int64 /* _int64_t.h:30:33 */
  2517. // Copyright (c) 2016 Apple Inc. All rights reserved.
  2518. //
  2519. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2520. //
  2521. // This file contains Original Code and/or Modifications of Original Code
  2522. // as defined in and that are subject to the Apple Public Source License
  2523. // Version 2.0 (the 'License'). You may not use this file except in
  2524. // compliance with the License. The rights granted to you under the License
  2525. // may not be used to create, or enable the creation or redistribution of,
  2526. // unlawful or unlicensed copies of an Apple operating system, or to
  2527. // circumvent, violate, or enable the circumvention or violation of, any
  2528. // terms of an Apple operating system software license agreement.
  2529. //
  2530. // Please obtain a copy of the License at
  2531. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2532. //
  2533. // The Original Code and all software distributed under the License are
  2534. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2535. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2536. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2537. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2538. // Please see the License for the specific language governing rights and
  2539. // limitations under the License.
  2540. //
  2541. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2542. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  2543. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2544. //
  2545. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2546. //
  2547. // This file contains Original Code and/or Modifications of Original Code
  2548. // as defined in and that are subject to the Apple Public Source License
  2549. // Version 2.0 (the 'License'). You may not use this file except in
  2550. // compliance with the License. The rights granted to you under the License
  2551. // may not be used to create, or enable the creation or redistribution of,
  2552. // unlawful or unlicensed copies of an Apple operating system, or to
  2553. // circumvent, violate, or enable the circumvention or violation of, any
  2554. // terms of an Apple operating system software license agreement.
  2555. //
  2556. // Please obtain a copy of the License at
  2557. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2558. //
  2559. // The Original Code and all software distributed under the License are
  2560. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2561. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2562. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2563. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2564. // Please see the License for the specific language governing rights and
  2565. // limitations under the License.
  2566. //
  2567. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2568. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  2569. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2570. //
  2571. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2572. //
  2573. // This file contains Original Code and/or Modifications of Original Code
  2574. // as defined in and that are subject to the Apple Public Source License
  2575. // Version 2.0 (the 'License'). You may not use this file except in
  2576. // compliance with the License. The rights granted to you under the License
  2577. // may not be used to create, or enable the creation or redistribution of,
  2578. // unlawful or unlicensed copies of an Apple operating system, or to
  2579. // circumvent, violate, or enable the circumvention or violation of, any
  2580. // terms of an Apple operating system software license agreement.
  2581. //
  2582. // Please obtain a copy of the License at
  2583. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2584. //
  2585. // The Original Code and all software distributed under the License are
  2586. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2587. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2588. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2589. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2590. // Please see the License for the specific language governing rights and
  2591. // limitations under the License.
  2592. //
  2593. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2594. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  2595. // Copyright (c) 2012 Apple Inc. All rights reserved.
  2596. //
  2597. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2598. //
  2599. // This file contains Original Code and/or Modifications of Original Code
  2600. // as defined in and that are subject to the Apple Public Source License
  2601. // Version 2.0 (the 'License'). You may not use this file except in
  2602. // compliance with the License. The rights granted to you under the License
  2603. // may not be used to create, or enable the creation or redistribution of,
  2604. // unlawful or unlicensed copies of an Apple operating system, or to
  2605. // circumvent, violate, or enable the circumvention or violation of, any
  2606. // terms of an Apple operating system software license agreement.
  2607. //
  2608. // Please obtain a copy of the License at
  2609. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2610. //
  2611. // The Original Code and all software distributed under the License are
  2612. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2613. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2614. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2615. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2616. // Please see the License for the specific language governing rights and
  2617. // limitations under the License.
  2618. //
  2619. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2620. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  2621. type Register_t = Int64_t /* types.h:66:33 */
  2622. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2623. //
  2624. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2625. //
  2626. // This file contains Original Code and/or Modifications of Original Code
  2627. // as defined in and that are subject to the Apple Public Source License
  2628. // Version 2.0 (the 'License'). You may not use this file except in
  2629. // compliance with the License. The rights granted to you under the License
  2630. // may not be used to create, or enable the creation or redistribution of,
  2631. // unlawful or unlicensed copies of an Apple operating system, or to
  2632. // circumvent, violate, or enable the circumvention or violation of, any
  2633. // terms of an Apple operating system software license agreement.
  2634. //
  2635. // Please obtain a copy of the License at
  2636. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2637. //
  2638. // The Original Code and all software distributed under the License are
  2639. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2640. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2641. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2642. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2643. // Please see the License for the specific language governing rights and
  2644. // limitations under the License.
  2645. //
  2646. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2647. // Copyright (c) 2000-2007 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 1995 NeXT Computer, Inc. All rights reserved.
  2673. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  2674. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2675. //
  2676. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2677. //
  2678. // This file contains Original Code and/or Modifications of Original Code
  2679. // as defined in and that are subject to the Apple Public Source License
  2680. // Version 2.0 (the 'License'). You may not use this file except in
  2681. // compliance with the License. The rights granted to you under the License
  2682. // may not be used to create, or enable the creation or redistribution of,
  2683. // unlawful or unlicensed copies of an Apple operating system, or to
  2684. // circumvent, violate, or enable the circumvention or violation of, any
  2685. // terms of an Apple operating system software license agreement.
  2686. //
  2687. // Please obtain a copy of the License at
  2688. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2689. //
  2690. // The Original Code and all software distributed under the License are
  2691. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2692. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2693. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2694. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2695. // Please see the License for the specific language governing rights and
  2696. // limitations under the License.
  2697. //
  2698. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2699. type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  2700. // These types are used for reserving the largest possible size.
  2701. type User_addr_t = U_int64_t /* types.h:77:33 */
  2702. type User_size_t = U_int64_t /* types.h:78:33 */
  2703. type User_ssize_t = Int64_t /* types.h:79:33 */
  2704. type User_long_t = Int64_t /* types.h:80:33 */
  2705. type User_ulong_t = U_int64_t /* types.h:81:33 */
  2706. type User_time_t = Int64_t /* types.h:82:33 */
  2707. type User_off_t = Int64_t /* types.h:83:33 */
  2708. // This defines the size of syscall arguments after copying into the kernel:
  2709. type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  2710. type X__darwin_arm_exception_state = struct {
  2711. F__exception X__uint32_t
  2712. F__fsr X__uint32_t
  2713. F__far X__uint32_t
  2714. } /* _structs.h:41:1 */
  2715. type X__darwin_arm_exception_state64 = struct {
  2716. F__far X__uint64_t
  2717. F__esr X__uint32_t
  2718. F__exception X__uint32_t
  2719. } /* _structs.h:59:1 */
  2720. type X__darwin_arm_thread_state = struct {
  2721. F__r [13]X__uint32_t
  2722. F__sp X__uint32_t
  2723. F__lr X__uint32_t
  2724. F__pc X__uint32_t
  2725. F__cpsr X__uint32_t
  2726. } /* _structs.h:77:1 */
  2727. // By default, the pointer fields in the arm_thread_state64_t structure are
  2728. // opaque on the arm64e architecture and require the use of accessor macros.
  2729. // This mode can also be enabled on the arm64 architecture by building with
  2730. // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
  2731. type X__darwin_arm_thread_state64 = struct {
  2732. F__x [29]X__uint64_t
  2733. F__fp X__uint64_t
  2734. F__lr X__uint64_t
  2735. F__sp X__uint64_t
  2736. F__pc X__uint64_t
  2737. F__cpsr X__uint32_t
  2738. F__pad X__uint32_t
  2739. } /* _structs.h:136:1 */
  2740. // Accessor macros for arm_thread_state64_t pointer fields
  2741. // Return pc field of arm_thread_state64_t as a data pointer value
  2742. // Return pc field of arm_thread_state64_t as a function pointer
  2743. // Set pc field of arm_thread_state64_t to a function pointer
  2744. // Return lr field of arm_thread_state64_t as a data pointer value
  2745. // Return lr field of arm_thread_state64_t as a function pointer
  2746. // Set lr field of arm_thread_state64_t to a function pointer
  2747. // Return sp field of arm_thread_state64_t as a data pointer value
  2748. // Set sp field of arm_thread_state64_t to a data pointer value
  2749. // Return fp field of arm_thread_state64_t as a data pointer value
  2750. // Set fp field of arm_thread_state64_t to a data pointer value
  2751. // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
  2752. type X__darwin_arm_vfp_state = struct {
  2753. F__r [64]X__uint32_t
  2754. F__fpscr X__uint32_t
  2755. } /* _structs.h:433:1 */
  2756. type X__darwin_arm_neon_state64 = struct {
  2757. F__v [32]X__uint128_t
  2758. F__fpsr X__uint32_t
  2759. F__fpcr X__uint32_t
  2760. } /* _structs.h:452:1 */
  2761. type X__darwin_arm_neon_state = struct {
  2762. F__v [16]X__uint128_t
  2763. F__fpsr X__uint32_t
  2764. F__fpcr X__uint32_t
  2765. } /* _structs.h:459:1 */
  2766. type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:523:1 */
  2767. // Debug State
  2768. // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
  2769. type X__arm_legacy_debug_state = struct {
  2770. F__bvr [16]X__uint32_t
  2771. F__bcr [16]X__uint32_t
  2772. F__wvr [16]X__uint32_t
  2773. F__wcr [16]X__uint32_t
  2774. } /* _structs.h:560:1 */
  2775. type X__darwin_arm_debug_state32 = struct {
  2776. F__bvr [16]X__uint32_t
  2777. F__bcr [16]X__uint32_t
  2778. F__wvr [16]X__uint32_t
  2779. F__wcr [16]X__uint32_t
  2780. F__mdscr_el1 X__uint64_t
  2781. } /* _structs.h:583:1 */
  2782. type X__darwin_arm_debug_state64 = struct {
  2783. F__bvr [16]X__uint64_t
  2784. F__bcr [16]X__uint64_t
  2785. F__wvr [16]X__uint64_t
  2786. F__wcr [16]X__uint64_t
  2787. F__mdscr_el1 X__uint64_t
  2788. } /* _structs.h:593:1 */
  2789. type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:625:1 */
  2790. type X__darwin_mcontext32 = struct {
  2791. F__es struct {
  2792. F__exception X__uint32_t
  2793. F__fsr X__uint32_t
  2794. F__far X__uint32_t
  2795. }
  2796. F__ss struct {
  2797. F__r [13]X__uint32_t
  2798. F__sp X__uint32_t
  2799. F__lr X__uint32_t
  2800. F__pc X__uint32_t
  2801. F__cpsr X__uint32_t
  2802. }
  2803. F__fs struct {
  2804. F__r [64]X__uint32_t
  2805. F__fpscr X__uint32_t
  2806. }
  2807. } /* _mcontext.h:41:1 */
  2808. type X__darwin_mcontext64 = struct {
  2809. F__es struct {
  2810. F__far X__uint64_t
  2811. F__esr X__uint32_t
  2812. F__exception X__uint32_t
  2813. }
  2814. F__ss struct {
  2815. F__x [29]X__uint64_t
  2816. F__fp X__uint64_t
  2817. F__lr X__uint64_t
  2818. F__sp X__uint64_t
  2819. F__pc X__uint64_t
  2820. F__cpsr X__uint32_t
  2821. F__pad X__uint32_t
  2822. }
  2823. F__ns struct {
  2824. F__v [32]X__uint128_t
  2825. F__fpsr X__uint32_t
  2826. F__fpcr X__uint32_t
  2827. }
  2828. } /* _mcontext.h:64:1 */
  2829. type Mcontext_t = uintptr /* _mcontext.h:85:33 */
  2830. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2831. //
  2832. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2833. //
  2834. // This file contains Original Code and/or Modifications of Original Code
  2835. // as defined in and that are subject to the Apple Public Source License
  2836. // Version 2.0 (the 'License'). You may not use this file except in
  2837. // compliance with the License. The rights granted to you under the License
  2838. // may not be used to create, or enable the creation or redistribution of,
  2839. // unlawful or unlicensed copies of an Apple operating system, or to
  2840. // circumvent, violate, or enable the circumvention or violation of, any
  2841. // terms of an Apple operating system software license agreement.
  2842. //
  2843. // Please obtain a copy of the License at
  2844. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2845. //
  2846. // The Original Code and all software distributed under the License are
  2847. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2848. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2849. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2850. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2851. // Please see the License for the specific language governing rights and
  2852. // limitations under the License.
  2853. //
  2854. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2855. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2856. //
  2857. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2858. //
  2859. // This file contains Original Code and/or Modifications of Original Code
  2860. // as defined in and that are subject to the Apple Public Source License
  2861. // Version 2.0 (the 'License'). You may not use this file except in
  2862. // compliance with the License. The rights granted to you under the License
  2863. // may not be used to create, or enable the creation or redistribution of,
  2864. // unlawful or unlicensed copies of an Apple operating system, or to
  2865. // circumvent, violate, or enable the circumvention or violation of, any
  2866. // terms of an Apple operating system software license agreement.
  2867. //
  2868. // Please obtain a copy of the License at
  2869. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2870. //
  2871. // The Original Code and all software distributed under the License are
  2872. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2873. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2874. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2875. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2876. // Please see the License for the specific language governing rights and
  2877. // limitations under the License.
  2878. //
  2879. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2880. type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  2881. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2882. //
  2883. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2884. //
  2885. // This file contains Original Code and/or Modifications of Original Code
  2886. // as defined in and that are subject to the Apple Public Source License
  2887. // Version 2.0 (the 'License'). You may not use this file except in
  2888. // compliance with the License. The rights granted to you under the License
  2889. // may not be used to create, or enable the creation or redistribution of,
  2890. // unlawful or unlicensed copies of an Apple operating system, or to
  2891. // circumvent, violate, or enable the circumvention or violation of, any
  2892. // terms of an Apple operating system software license agreement.
  2893. //
  2894. // Please obtain a copy of the License at
  2895. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2896. //
  2897. // The Original Code and all software distributed under the License are
  2898. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2899. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2900. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2901. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2902. // Please see the License for the specific language governing rights and
  2903. // limitations under the License.
  2904. //
  2905. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2906. // Structure used in sigaltstack call.
  2907. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2908. //
  2909. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2910. //
  2911. // This file contains Original Code and/or Modifications of Original Code
  2912. // as defined in and that are subject to the Apple Public Source License
  2913. // Version 2.0 (the 'License'). You may not use this file except in
  2914. // compliance with the License. The rights granted to you under the License
  2915. // may not be used to create, or enable the creation or redistribution of,
  2916. // unlawful or unlicensed copies of an Apple operating system, or to
  2917. // circumvent, violate, or enable the circumvention or violation of, any
  2918. // terms of an Apple operating system software license agreement.
  2919. //
  2920. // Please obtain a copy of the License at
  2921. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2922. //
  2923. // The Original Code and all software distributed under the License are
  2924. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2925. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2926. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2927. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2928. // Please see the License for the specific language governing rights and
  2929. // limitations under the License.
  2930. //
  2931. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2932. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2933. // Copyright (c) 1991, 1993
  2934. // The Regents of the University of California. All rights reserved.
  2935. //
  2936. // This code is derived from software contributed to Berkeley by
  2937. // Berkeley Software Design, Inc.
  2938. //
  2939. // Redistribution and use in source and binary forms, with or without
  2940. // modification, are permitted provided that the following conditions
  2941. // are met:
  2942. // 1. Redistributions of source code must retain the above copyright
  2943. // notice, this list of conditions and the following disclaimer.
  2944. // 2. Redistributions in binary form must reproduce the above copyright
  2945. // notice, this list of conditions and the following disclaimer in the
  2946. // documentation and/or other materials provided with the distribution.
  2947. // 3. All advertising materials mentioning features or use of this software
  2948. // must display the following acknowledgement:
  2949. // This product includes software developed by the University of
  2950. // California, Berkeley and its contributors.
  2951. // 4. Neither the name of the University nor the names of its contributors
  2952. // may be used to endorse or promote products derived from this software
  2953. // without specific prior written permission.
  2954. //
  2955. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2956. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2957. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2958. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2959. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2960. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2961. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2962. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2963. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2964. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2965. // SUCH DAMAGE.
  2966. //
  2967. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2968. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2969. //
  2970. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2971. //
  2972. // This file contains Original Code and/or Modifications of Original Code
  2973. // as defined in and that are subject to the Apple Public Source License
  2974. // Version 2.0 (the 'License'). You may not use this file except in
  2975. // compliance with the License. The rights granted to you under the License
  2976. // may not be used to create, or enable the creation or redistribution of,
  2977. // unlawful or unlicensed copies of an Apple operating system, or to
  2978. // circumvent, violate, or enable the circumvention or violation of, any
  2979. // terms of an Apple operating system software license agreement.
  2980. //
  2981. // Please obtain a copy of the License at
  2982. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2983. //
  2984. // The Original Code and all software distributed under the License are
  2985. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2986. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2987. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2988. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2989. // Please see the License for the specific language governing rights and
  2990. // limitations under the License.
  2991. //
  2992. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2993. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2994. type X__darwin_sigaltstack = struct {
  2995. Fss_sp uintptr
  2996. Fss_size X__darwin_size_t
  2997. Fss_flags int32
  2998. F__ccgo_pad1 [4]byte
  2999. } /* _sigaltstack.h:42:1 */
  3000. type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
  3001. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3002. //
  3003. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3004. //
  3005. // This file contains Original Code and/or Modifications of Original Code
  3006. // as defined in and that are subject to the Apple Public Source License
  3007. // Version 2.0 (the 'License'). You may not use this file except in
  3008. // compliance with the License. The rights granted to you under the License
  3009. // may not be used to create, or enable the creation or redistribution of,
  3010. // unlawful or unlicensed copies of an Apple operating system, or to
  3011. // circumvent, violate, or enable the circumvention or violation of, any
  3012. // terms of an Apple operating system software license agreement.
  3013. //
  3014. // Please obtain a copy of the License at
  3015. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3016. //
  3017. // The Original Code and all software distributed under the License are
  3018. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3019. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3020. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3021. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3022. // Please see the License for the specific language governing rights and
  3023. // limitations under the License.
  3024. //
  3025. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3026. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3027. //
  3028. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3029. //
  3030. // This file contains Original Code and/or Modifications of Original Code
  3031. // as defined in and that are subject to the Apple Public Source License
  3032. // Version 2.0 (the 'License'). You may not use this file except in
  3033. // compliance with the License. The rights granted to you under the License
  3034. // may not be used to create, or enable the creation or redistribution of,
  3035. // unlawful or unlicensed copies of an Apple operating system, or to
  3036. // circumvent, violate, or enable the circumvention or violation of, any
  3037. // terms of an Apple operating system software license agreement.
  3038. //
  3039. // Please obtain a copy of the License at
  3040. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3041. //
  3042. // The Original Code and all software distributed under the License are
  3043. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3044. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3045. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3046. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3047. // Please see the License for the specific language governing rights and
  3048. // limitations under the License.
  3049. //
  3050. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3051. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3052. // Copyright (c) 1991, 1993
  3053. // The Regents of the University of California. All rights reserved.
  3054. //
  3055. // This code is derived from software contributed to Berkeley by
  3056. // Berkeley Software Design, Inc.
  3057. //
  3058. // Redistribution and use in source and binary forms, with or without
  3059. // modification, are permitted provided that the following conditions
  3060. // are met:
  3061. // 1. Redistributions of source code must retain the above copyright
  3062. // notice, this list of conditions and the following disclaimer.
  3063. // 2. Redistributions in binary form must reproduce the above copyright
  3064. // notice, this list of conditions and the following disclaimer in the
  3065. // documentation and/or other materials provided with the distribution.
  3066. // 3. All advertising materials mentioning features or use of this software
  3067. // must display the following acknowledgement:
  3068. // This product includes software developed by the University of
  3069. // California, Berkeley and its contributors.
  3070. // 4. Neither the name of the University nor the names of its contributors
  3071. // may be used to endorse or promote products derived from this software
  3072. // without specific prior written permission.
  3073. //
  3074. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3075. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3076. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3077. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3078. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3079. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3080. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3081. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3082. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3083. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3084. // SUCH DAMAGE.
  3085. //
  3086. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  3087. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3088. //
  3089. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3090. //
  3091. // This file contains Original Code and/or Modifications of Original Code
  3092. // as defined in and that are subject to the Apple Public Source License
  3093. // Version 2.0 (the 'License'). You may not use this file except in
  3094. // compliance with the License. The rights granted to you under the License
  3095. // may not be used to create, or enable the creation or redistribution of,
  3096. // unlawful or unlicensed copies of an Apple operating system, or to
  3097. // circumvent, violate, or enable the circumvention or violation of, any
  3098. // terms of an Apple operating system software license agreement.
  3099. //
  3100. // Please obtain a copy of the License at
  3101. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3102. //
  3103. // The Original Code and all software distributed under the License are
  3104. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3105. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3106. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3107. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3108. // Please see the License for the specific language governing rights and
  3109. // limitations under the License.
  3110. //
  3111. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3112. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3113. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3114. //
  3115. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3116. //
  3117. // This file contains Original Code and/or Modifications of Original Code
  3118. // as defined in and that are subject to the Apple Public Source License
  3119. // Version 2.0 (the 'License'). You may not use this file except in
  3120. // compliance with the License. The rights granted to you under the License
  3121. // may not be used to create, or enable the creation or redistribution of,
  3122. // unlawful or unlicensed copies of an Apple operating system, or to
  3123. // circumvent, violate, or enable the circumvention or violation of, any
  3124. // terms of an Apple operating system software license agreement.
  3125. //
  3126. // Please obtain a copy of the License at
  3127. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3128. //
  3129. // The Original Code and all software distributed under the License are
  3130. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3131. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3132. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3133. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3134. // Please see the License for the specific language governing rights and
  3135. // limitations under the License.
  3136. //
  3137. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3138. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3139. //
  3140. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3141. //
  3142. // This file contains Original Code and/or Modifications of Original Code
  3143. // as defined in and that are subject to the Apple Public Source License
  3144. // Version 2.0 (the 'License'). You may not use this file except in
  3145. // compliance with the License. The rights granted to you under the License
  3146. // may not be used to create, or enable the creation or redistribution of,
  3147. // unlawful or unlicensed copies of an Apple operating system, or to
  3148. // circumvent, violate, or enable the circumvention or violation of, any
  3149. // terms of an Apple operating system software license agreement.
  3150. //
  3151. // Please obtain a copy of the License at
  3152. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3153. //
  3154. // The Original Code and all software distributed under the License are
  3155. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3156. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3157. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3158. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3159. // Please see the License for the specific language governing rights and
  3160. // limitations under the License.
  3161. //
  3162. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3163. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3164. //
  3165. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3166. //
  3167. // This file contains Original Code and/or Modifications of Original Code
  3168. // as defined in and that are subject to the Apple Public Source License
  3169. // Version 2.0 (the 'License'). You may not use this file except in
  3170. // compliance with the License. The rights granted to you under the License
  3171. // may not be used to create, or enable the creation or redistribution of,
  3172. // unlawful or unlicensed copies of an Apple operating system, or to
  3173. // circumvent, violate, or enable the circumvention or violation of, any
  3174. // terms of an Apple operating system software license agreement.
  3175. //
  3176. // Please obtain a copy of the License at
  3177. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3178. //
  3179. // The Original Code and all software distributed under the License are
  3180. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3181. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3182. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3183. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3184. // Please see the License for the specific language governing rights and
  3185. // limitations under the License.
  3186. //
  3187. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3188. // Structure used in sigaltstack call.
  3189. type X__darwin_ucontext = struct {
  3190. Fuc_onstack int32
  3191. Fuc_sigmask X__darwin_sigset_t
  3192. Fuc_stack struct {
  3193. Fss_sp uintptr
  3194. Fss_size X__darwin_size_t
  3195. Fss_flags int32
  3196. F__ccgo_pad1 [4]byte
  3197. }
  3198. Fuc_link uintptr
  3199. Fuc_mcsize X__darwin_size_t
  3200. Fuc_mcontext uintptr
  3201. } /* _ucontext.h:43:1 */
  3202. // user context
  3203. type Ucontext_t = X__darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
  3204. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3205. //
  3206. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3207. //
  3208. // This file contains Original Code and/or Modifications of Original Code
  3209. // as defined in and that are subject to the Apple Public Source License
  3210. // Version 2.0 (the 'License'). You may not use this file except in
  3211. // compliance with the License. The rights granted to you under the License
  3212. // may not be used to create, or enable the creation or redistribution of,
  3213. // unlawful or unlicensed copies of an Apple operating system, or to
  3214. // circumvent, violate, or enable the circumvention or violation of, any
  3215. // terms of an Apple operating system software license agreement.
  3216. //
  3217. // Please obtain a copy of the License at
  3218. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3219. //
  3220. // The Original Code and all software distributed under the License are
  3221. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3222. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3223. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3224. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3225. // Please see the License for the specific language governing rights and
  3226. // limitations under the License.
  3227. //
  3228. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3229. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3230. //
  3231. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3232. //
  3233. // This file contains Original Code and/or Modifications of Original Code
  3234. // as defined in and that are subject to the Apple Public Source License
  3235. // Version 2.0 (the 'License'). You may not use this file except in
  3236. // compliance with the License. The rights granted to you under the License
  3237. // may not be used to create, or enable the creation or redistribution of,
  3238. // unlawful or unlicensed copies of an Apple operating system, or to
  3239. // circumvent, violate, or enable the circumvention or violation of, any
  3240. // terms of an Apple operating system software license agreement.
  3241. //
  3242. // Please obtain a copy of the License at
  3243. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3244. //
  3245. // The Original Code and all software distributed under the License are
  3246. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3247. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3248. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3249. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3250. // Please see the License for the specific language governing rights and
  3251. // limitations under the License.
  3252. //
  3253. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3254. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3255. //
  3256. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3257. //
  3258. // This file contains Original Code and/or Modifications of Original Code
  3259. // as defined in and that are subject to the Apple Public Source License
  3260. // Version 2.0 (the 'License'). You may not use this file except in
  3261. // compliance with the License. The rights granted to you under the License
  3262. // may not be used to create, or enable the creation or redistribution of,
  3263. // unlawful or unlicensed copies of an Apple operating system, or to
  3264. // circumvent, violate, or enable the circumvention or violation of, any
  3265. // terms of an Apple operating system software license agreement.
  3266. //
  3267. // Please obtain a copy of the License at
  3268. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3269. //
  3270. // The Original Code and all software distributed under the License are
  3271. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3272. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3273. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3274. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3275. // Please see the License for the specific language governing rights and
  3276. // limitations under the License.
  3277. //
  3278. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3279. type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  3280. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3281. //
  3282. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3283. //
  3284. // This file contains Original Code and/or Modifications of Original Code
  3285. // as defined in and that are subject to the Apple Public Source License
  3286. // Version 2.0 (the 'License'). You may not use this file except in
  3287. // compliance with the License. The rights granted to you under the License
  3288. // may not be used to create, or enable the creation or redistribution of,
  3289. // unlawful or unlicensed copies of an Apple operating system, or to
  3290. // circumvent, violate, or enable the circumvention or violation of, any
  3291. // terms of an Apple operating system software license agreement.
  3292. //
  3293. // Please obtain a copy of the License at
  3294. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3295. //
  3296. // The Original Code and all software distributed under the License are
  3297. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3298. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3299. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3300. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3301. // Please see the License for the specific language governing rights and
  3302. // limitations under the License.
  3303. //
  3304. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3305. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3306. //
  3307. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3308. //
  3309. // This file contains Original Code and/or Modifications of Original Code
  3310. // as defined in and that are subject to the Apple Public Source License
  3311. // Version 2.0 (the 'License'). You may not use this file except in
  3312. // compliance with the License. The rights granted to you under the License
  3313. // may not be used to create, or enable the creation or redistribution of,
  3314. // unlawful or unlicensed copies of an Apple operating system, or to
  3315. // circumvent, violate, or enable the circumvention or violation of, any
  3316. // terms of an Apple operating system software license agreement.
  3317. //
  3318. // Please obtain a copy of the License at
  3319. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3320. //
  3321. // The Original Code and all software distributed under the License are
  3322. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3323. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3324. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3325. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3326. // Please see the License for the specific language governing rights and
  3327. // limitations under the License.
  3328. //
  3329. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3330. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  3331. type Sigval = struct {
  3332. F__ccgo_pad1 [0]uint64
  3333. Fsival_int int32
  3334. F__ccgo_pad2 [4]byte
  3335. } /* signal.h:158:1 */
  3336. type Sigevent = struct {
  3337. Fsigev_notify int32
  3338. Fsigev_signo int32
  3339. Fsigev_value struct {
  3340. F__ccgo_pad1 [0]uint64
  3341. Fsival_int int32
  3342. F__ccgo_pad2 [4]byte
  3343. }
  3344. Fsigev_notify_function uintptr
  3345. Fsigev_notify_attributes uintptr
  3346. } /* signal.h:168:1 */
  3347. type X__siginfo = struct {
  3348. Fsi_signo int32
  3349. Fsi_errno int32
  3350. Fsi_code int32
  3351. Fsi_pid Pid_t
  3352. Fsi_uid Uid_t
  3353. Fsi_status int32
  3354. Fsi_addr uintptr
  3355. Fsi_value struct {
  3356. F__ccgo_pad1 [0]uint64
  3357. Fsival_int int32
  3358. F__ccgo_pad2 [4]byte
  3359. }
  3360. Fsi_band int64
  3361. F__pad [7]uint64
  3362. } /* signal.h:177:9 */
  3363. type Siginfo_t = X__siginfo /* signal.h:188:3 */
  3364. // When the signal is SIGILL or SIGFPE, si_addr contains the address of
  3365. // the faulting instruction.
  3366. // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
  3367. // the faulting memory reference. Although for x86 there are cases of SIGSEGV
  3368. // for which si_addr cannot be determined and is NULL.
  3369. // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
  3370. // si_status contains the exit value or signal and
  3371. // si_uid contains the real user ID of the process that sent the signal.
  3372. // Values for si_code
  3373. // Codes for SIGILL
  3374. // Codes for SIGFPE
  3375. // Codes for SIGSEGV
  3376. // Codes for SIGBUS
  3377. // Codes for SIGTRAP
  3378. // Codes for SIGCHLD
  3379. // Codes for SIGPOLL
  3380. // union for signal handlers
  3381. type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */
  3382. // Signal vector template for Kernel user boundary
  3383. type X__sigaction = struct {
  3384. F__sigaction_u struct{ F__sa_handler uintptr }
  3385. Fsa_tramp uintptr
  3386. Fsa_mask Sigset_t
  3387. Fsa_flags int32
  3388. } /* signal.h:276:1 */
  3389. // Signal vector "template" used in sigaction call.
  3390. type Sigaction = struct {
  3391. F__sigaction_u struct{ F__sa_handler uintptr }
  3392. Fsa_mask Sigset_t
  3393. Fsa_flags int32
  3394. } /* signal.h:286:1 */
  3395. // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
  3396. // This will provide 64bit register set in a 32bit user address space
  3397. // the following are the only bits we support from user space, the
  3398. // rest are for kernel use only.
  3399. // Flags for sigprocmask:
  3400. // POSIX 1003.1b required values.
  3401. type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function
  3402. // Structure used in sigaltstack call.
  3403. // 4.3 compatibility:
  3404. // Signal vector "template" used in sigvec call.
  3405. type Sigvec = struct {
  3406. Fsv_handler uintptr
  3407. Fsv_mask int32
  3408. Fsv_flags int32
  3409. } /* signal.h:348:1 */
  3410. // Structure used in sigstack call.
  3411. type Sigstack = struct {
  3412. Fss_sp uintptr
  3413. Fss_onstack int32
  3414. F__ccgo_pad1 [4]byte
  3415. } /* signal.h:367:1 */
  3416. type Uint64_t = uint64 /* stdint.h:98:25 */
  3417. type Int_least64_t = Int64_t /* stdint.h:110:25 */
  3418. type Uint_least64_t = Uint64_t /* stdint.h:111:26 */
  3419. type Int_fast64_t = Int64_t /* stdint.h:112:25 */
  3420. type Uint_fast64_t = Uint64_t /* stdint.h:113:26 */
  3421. type Uint32_t = uint32 /* stdint.h:172:25 */
  3422. type Int_least32_t = Int32_t /* stdint.h:184:25 */
  3423. type Uint_least32_t = Uint32_t /* stdint.h:185:26 */
  3424. type Int_fast32_t = Int32_t /* stdint.h:186:25 */
  3425. type Uint_fast32_t = Uint32_t /* stdint.h:187:26 */
  3426. type Uint16_t = uint16 /* stdint.h:207:25 */
  3427. type Int_least16_t = Int16_t /* stdint.h:215:25 */
  3428. type Uint_least16_t = Uint16_t /* stdint.h:216:26 */
  3429. type Int_fast16_t = Int16_t /* stdint.h:217:25 */
  3430. type Uint_fast16_t = Uint16_t /* stdint.h:218:26 */
  3431. type Uint8_t = uint8 /* stdint.h:226:24 */
  3432. type Int_least8_t = Int8_t /* stdint.h:232:24 */
  3433. type Uint_least8_t = Uint8_t /* stdint.h:233:25 */
  3434. type Int_fast8_t = Int8_t /* stdint.h:234:24 */
  3435. type Uint_fast8_t = Uint8_t /* stdint.h:235:25 */
  3436. // prevent glibc sys/types.h from defining conflicting types
  3437. // C99 7.18.1.4 Integer types capable of holding object pointers.
  3438. // C99 7.18.1.5 Greatest-width integer types.
  3439. type Intmax_t = int64 /* stdint.h:262:26 */
  3440. type Uintmax_t = uint64 /* stdint.h:263:26 */
  3441. // C99 7.18.4 Macros for minimum-width integer constants.
  3442. //
  3443. // The standard requires that integer constant macros be defined for all the
  3444. // minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width
  3445. // types are required, the corresponding integer constant macros are defined
  3446. // here. This implementation also defines minimum-width types for every other
  3447. // integer width that the target implements, so corresponding macros are
  3448. // defined below, too.
  3449. //
  3450. // These macros are defined using the same successive-shrinking approach as
  3451. // the type definitions above. It is likewise important that macros are defined
  3452. // in order of decending width.
  3453. //
  3454. // Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the
  3455. // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
  3456. // C99 7.18.2.1 Limits of exact-width integer types.
  3457. // C99 7.18.2.2 Limits of minimum-width integer types.
  3458. // C99 7.18.2.3 Limits of fastest minimum-width integer types.
  3459. //
  3460. // The presence of limit macros are completely optional in C99. This
  3461. // implementation defines limits for all of the types (exact- and
  3462. // minimum-width) that it defines above, using the limits of the minimum-width
  3463. // type for any types that do not have exact-width representations.
  3464. //
  3465. // As in the type definitions, this section takes an approach of
  3466. // successive-shrinking to determine which limits to use for the standard (8,
  3467. // 16, 32, 64) bit widths when they don't have exact representations. It is
  3468. // therefore important that the definitions be kept in order of decending
  3469. // widths.
  3470. //
  3471. // Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the
  3472. // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
  3473. // Some utility macros
  3474. // C99 7.18.2.4 Limits of integer types capable of holding object pointers.
  3475. // C99 7.18.3 Limits of other integer types.
  3476. // ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__
  3477. // is enabled.
  3478. // C99 7.18.2.5 Limits of greatest-width integer types.
  3479. // C99 7.18.3 Limits of other integer types.
  3480. // 7.18.4.2 Macros for greatest-width integer constants.
  3481. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3482. //
  3483. // @APPLE_LICENSE_HEADER_START@
  3484. //
  3485. // This file contains Original Code and/or Modifications of Original Code
  3486. // as defined in and that are subject to the Apple Public Source License
  3487. // Version 2.0 (the 'License'). You may not use this file except in
  3488. // compliance with the License. Please obtain a copy of the License at
  3489. // http://www.opensource.apple.com/apsl/ and read it before using this
  3490. // file.
  3491. //
  3492. // The Original Code and all software distributed under the License are
  3493. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3494. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3495. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3496. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3497. // Please see the License for the specific language governing rights and
  3498. // limitations under the License.
  3499. //
  3500. // @APPLE_LICENSE_HEADER_END@
  3501. // [XSI] The timeval structure shall be defined as described in
  3502. // <sys/time.h>
  3503. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3504. //
  3505. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3506. //
  3507. // This file contains Original Code and/or Modifications of Original Code
  3508. // as defined in and that are subject to the Apple Public Source License
  3509. // Version 2.0 (the 'License'). You may not use this file except in
  3510. // compliance with the License. The rights granted to you under the License
  3511. // may not be used to create, or enable the creation or redistribution of,
  3512. // unlawful or unlicensed copies of an Apple operating system, or to
  3513. // circumvent, violate, or enable the circumvention or violation of, any
  3514. // terms of an Apple operating system software license agreement.
  3515. //
  3516. // Please obtain a copy of the License at
  3517. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3518. //
  3519. // The Original Code and all software distributed under the License are
  3520. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3521. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3522. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3523. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3524. // Please see the License for the specific language governing rights and
  3525. // limitations under the License.
  3526. //
  3527. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3528. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3529. //
  3530. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3531. //
  3532. // This file contains Original Code and/or Modifications of Original Code
  3533. // as defined in and that are subject to the Apple Public Source License
  3534. // Version 2.0 (the 'License'). You may not use this file except in
  3535. // compliance with the License. The rights granted to you under the License
  3536. // may not be used to create, or enable the creation or redistribution of,
  3537. // unlawful or unlicensed copies of an Apple operating system, or to
  3538. // circumvent, violate, or enable the circumvention or violation of, any
  3539. // terms of an Apple operating system software license agreement.
  3540. //
  3541. // Please obtain a copy of the License at
  3542. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3543. //
  3544. // The Original Code and all software distributed under the License are
  3545. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3546. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3547. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3548. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3549. // Please see the License for the specific language governing rights and
  3550. // limitations under the License.
  3551. //
  3552. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3553. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3554. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3555. //
  3556. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3557. //
  3558. // This file contains Original Code and/or Modifications of Original Code
  3559. // as defined in and that are subject to the Apple Public Source License
  3560. // Version 2.0 (the 'License'). You may not use this file except in
  3561. // compliance with the License. The rights granted to you under the License
  3562. // may not be used to create, or enable the creation or redistribution of,
  3563. // unlawful or unlicensed copies of an Apple operating system, or to
  3564. // circumvent, violate, or enable the circumvention or violation of, any
  3565. // terms of an Apple operating system software license agreement.
  3566. //
  3567. // Please obtain a copy of the License at
  3568. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3569. //
  3570. // The Original Code and all software distributed under the License are
  3571. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3572. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3573. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3574. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3575. // Please see the License for the specific language governing rights and
  3576. // limitations under the License.
  3577. //
  3578. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3579. type Timeval = struct {
  3580. Ftv_sec X__darwin_time_t
  3581. Ftv_usec X__darwin_suseconds_t
  3582. F__ccgo_pad1 [4]byte
  3583. } /* _timeval.h:34:1 */
  3584. // The id_t type shall be defined as described in <sys/types.h>
  3585. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3586. //
  3587. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3588. //
  3589. // This file contains Original Code and/or Modifications of Original Code
  3590. // as defined in and that are subject to the Apple Public Source License
  3591. // Version 2.0 (the 'License'). You may not use this file except in
  3592. // compliance with the License. The rights granted to you under the License
  3593. // may not be used to create, or enable the creation or redistribution of,
  3594. // unlawful or unlicensed copies of an Apple operating system, or to
  3595. // circumvent, violate, or enable the circumvention or violation of, any
  3596. // terms of an Apple operating system software license agreement.
  3597. //
  3598. // Please obtain a copy of the License at
  3599. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3600. //
  3601. // The Original Code and all software distributed under the License are
  3602. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3603. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3604. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3605. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3606. // Please see the License for the specific language governing rights and
  3607. // limitations under the License.
  3608. //
  3609. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3610. // Resource limit type (low 63 bits, excluding the sign bit)
  3611. type Rlim_t = X__uint64_t /* resource.h:89:25 */
  3612. // ****
  3613. //
  3614. // PRIORITY
  3615. // Possible values of the first parameter to getpriority()/setpriority(),
  3616. // used to indicate the type of the second parameter.
  3617. // Range limitations for the value of the third parameter to setpriority().
  3618. // use PRIO_DARWIN_BG to set the current thread into "background" state
  3619. // which lowers CPU, disk IO, and networking priorites until thread terminates
  3620. // or "background" state is revoked
  3621. // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
  3622. // the GPU. (deprecated)
  3623. // ****
  3624. //
  3625. // RESOURCE USAGE
  3626. // Possible values of the first parameter to getrusage(), used to indicate
  3627. // the scope of the information to be returned.
  3628. // A structure representing an accounting of resource utilization. The
  3629. // address of an instance of this structure is the second parameter to
  3630. // getrusage().
  3631. //
  3632. // Note: All values other than ru_utime and ru_stime are implementaiton
  3633. //
  3634. // defined and subject to change in a future release. Their use
  3635. // is discouraged for standards compliant programs.
  3636. type Rusage = struct {
  3637. Fru_utime struct {
  3638. Ftv_sec X__darwin_time_t
  3639. Ftv_usec X__darwin_suseconds_t
  3640. F__ccgo_pad1 [4]byte
  3641. }
  3642. Fru_stime struct {
  3643. Ftv_sec X__darwin_time_t
  3644. Ftv_usec X__darwin_suseconds_t
  3645. F__ccgo_pad1 [4]byte
  3646. }
  3647. Fru_maxrss int64
  3648. Fru_ixrss int64
  3649. Fru_idrss int64
  3650. Fru_isrss int64
  3651. Fru_minflt int64
  3652. Fru_majflt int64
  3653. Fru_nswap int64
  3654. Fru_inblock int64
  3655. Fru_oublock int64
  3656. Fru_msgsnd int64
  3657. Fru_msgrcv int64
  3658. Fru_nsignals int64
  3659. Fru_nvcsw int64
  3660. Fru_nivcsw int64
  3661. } /* resource.h:152:1 */
  3662. // Flavors for proc_pid_rusage().
  3663. // Flags for RUSAGE_INFO_V5
  3664. type Rusage_info_t = uintptr /* resource.h:199:14 */
  3665. type Rusage_info_v0 = struct {
  3666. Fri_uuid [16]Uint8_t
  3667. Fri_user_time Uint64_t
  3668. Fri_system_time Uint64_t
  3669. Fri_pkg_idle_wkups Uint64_t
  3670. Fri_interrupt_wkups Uint64_t
  3671. Fri_pageins Uint64_t
  3672. Fri_wired_size Uint64_t
  3673. Fri_resident_size Uint64_t
  3674. Fri_phys_footprint Uint64_t
  3675. Fri_proc_start_abstime Uint64_t
  3676. Fri_proc_exit_abstime Uint64_t
  3677. } /* resource.h:201:1 */
  3678. type Rusage_info_v1 = struct {
  3679. Fri_uuid [16]Uint8_t
  3680. Fri_user_time Uint64_t
  3681. Fri_system_time Uint64_t
  3682. Fri_pkg_idle_wkups Uint64_t
  3683. Fri_interrupt_wkups Uint64_t
  3684. Fri_pageins Uint64_t
  3685. Fri_wired_size Uint64_t
  3686. Fri_resident_size Uint64_t
  3687. Fri_phys_footprint Uint64_t
  3688. Fri_proc_start_abstime Uint64_t
  3689. Fri_proc_exit_abstime Uint64_t
  3690. Fri_child_user_time Uint64_t
  3691. Fri_child_system_time Uint64_t
  3692. Fri_child_pkg_idle_wkups Uint64_t
  3693. Fri_child_interrupt_wkups Uint64_t
  3694. Fri_child_pageins Uint64_t
  3695. Fri_child_elapsed_abstime Uint64_t
  3696. } /* resource.h:215:1 */
  3697. type Rusage_info_v2 = struct {
  3698. Fri_uuid [16]Uint8_t
  3699. Fri_user_time Uint64_t
  3700. Fri_system_time Uint64_t
  3701. Fri_pkg_idle_wkups Uint64_t
  3702. Fri_interrupt_wkups Uint64_t
  3703. Fri_pageins Uint64_t
  3704. Fri_wired_size Uint64_t
  3705. Fri_resident_size Uint64_t
  3706. Fri_phys_footprint Uint64_t
  3707. Fri_proc_start_abstime Uint64_t
  3708. Fri_proc_exit_abstime Uint64_t
  3709. Fri_child_user_time Uint64_t
  3710. Fri_child_system_time Uint64_t
  3711. Fri_child_pkg_idle_wkups Uint64_t
  3712. Fri_child_interrupt_wkups Uint64_t
  3713. Fri_child_pageins Uint64_t
  3714. Fri_child_elapsed_abstime Uint64_t
  3715. Fri_diskio_bytesread Uint64_t
  3716. Fri_diskio_byteswritten Uint64_t
  3717. } /* resource.h:235:1 */
  3718. type Rusage_info_v3 = struct {
  3719. Fri_uuid [16]Uint8_t
  3720. Fri_user_time Uint64_t
  3721. Fri_system_time Uint64_t
  3722. Fri_pkg_idle_wkups Uint64_t
  3723. Fri_interrupt_wkups Uint64_t
  3724. Fri_pageins Uint64_t
  3725. Fri_wired_size Uint64_t
  3726. Fri_resident_size Uint64_t
  3727. Fri_phys_footprint Uint64_t
  3728. Fri_proc_start_abstime Uint64_t
  3729. Fri_proc_exit_abstime Uint64_t
  3730. Fri_child_user_time Uint64_t
  3731. Fri_child_system_time Uint64_t
  3732. Fri_child_pkg_idle_wkups Uint64_t
  3733. Fri_child_interrupt_wkups Uint64_t
  3734. Fri_child_pageins Uint64_t
  3735. Fri_child_elapsed_abstime Uint64_t
  3736. Fri_diskio_bytesread Uint64_t
  3737. Fri_diskio_byteswritten Uint64_t
  3738. Fri_cpu_time_qos_default Uint64_t
  3739. Fri_cpu_time_qos_maintenance Uint64_t
  3740. Fri_cpu_time_qos_background Uint64_t
  3741. Fri_cpu_time_qos_utility Uint64_t
  3742. Fri_cpu_time_qos_legacy Uint64_t
  3743. Fri_cpu_time_qos_user_initiated Uint64_t
  3744. Fri_cpu_time_qos_user_interactive Uint64_t
  3745. Fri_billed_system_time Uint64_t
  3746. Fri_serviced_system_time Uint64_t
  3747. } /* resource.h:257:1 */
  3748. type Rusage_info_v4 = struct {
  3749. Fri_uuid [16]Uint8_t
  3750. Fri_user_time Uint64_t
  3751. Fri_system_time Uint64_t
  3752. Fri_pkg_idle_wkups Uint64_t
  3753. Fri_interrupt_wkups Uint64_t
  3754. Fri_pageins Uint64_t
  3755. Fri_wired_size Uint64_t
  3756. Fri_resident_size Uint64_t
  3757. Fri_phys_footprint Uint64_t
  3758. Fri_proc_start_abstime Uint64_t
  3759. Fri_proc_exit_abstime Uint64_t
  3760. Fri_child_user_time Uint64_t
  3761. Fri_child_system_time Uint64_t
  3762. Fri_child_pkg_idle_wkups Uint64_t
  3763. Fri_child_interrupt_wkups Uint64_t
  3764. Fri_child_pageins Uint64_t
  3765. Fri_child_elapsed_abstime Uint64_t
  3766. Fri_diskio_bytesread Uint64_t
  3767. Fri_diskio_byteswritten Uint64_t
  3768. Fri_cpu_time_qos_default Uint64_t
  3769. Fri_cpu_time_qos_maintenance Uint64_t
  3770. Fri_cpu_time_qos_background Uint64_t
  3771. Fri_cpu_time_qos_utility Uint64_t
  3772. Fri_cpu_time_qos_legacy Uint64_t
  3773. Fri_cpu_time_qos_user_initiated Uint64_t
  3774. Fri_cpu_time_qos_user_interactive Uint64_t
  3775. Fri_billed_system_time Uint64_t
  3776. Fri_serviced_system_time Uint64_t
  3777. Fri_logical_writes Uint64_t
  3778. Fri_lifetime_max_phys_footprint Uint64_t
  3779. Fri_instructions Uint64_t
  3780. Fri_cycles Uint64_t
  3781. Fri_billed_energy Uint64_t
  3782. Fri_serviced_energy Uint64_t
  3783. Fri_interval_max_phys_footprint Uint64_t
  3784. Fri_runnable_time Uint64_t
  3785. } /* resource.h:288:1 */
  3786. type Rusage_info_v5 = struct {
  3787. Fri_uuid [16]Uint8_t
  3788. Fri_user_time Uint64_t
  3789. Fri_system_time Uint64_t
  3790. Fri_pkg_idle_wkups Uint64_t
  3791. Fri_interrupt_wkups Uint64_t
  3792. Fri_pageins Uint64_t
  3793. Fri_wired_size Uint64_t
  3794. Fri_resident_size Uint64_t
  3795. Fri_phys_footprint Uint64_t
  3796. Fri_proc_start_abstime Uint64_t
  3797. Fri_proc_exit_abstime Uint64_t
  3798. Fri_child_user_time Uint64_t
  3799. Fri_child_system_time Uint64_t
  3800. Fri_child_pkg_idle_wkups Uint64_t
  3801. Fri_child_interrupt_wkups Uint64_t
  3802. Fri_child_pageins Uint64_t
  3803. Fri_child_elapsed_abstime Uint64_t
  3804. Fri_diskio_bytesread Uint64_t
  3805. Fri_diskio_byteswritten Uint64_t
  3806. Fri_cpu_time_qos_default Uint64_t
  3807. Fri_cpu_time_qos_maintenance Uint64_t
  3808. Fri_cpu_time_qos_background Uint64_t
  3809. Fri_cpu_time_qos_utility Uint64_t
  3810. Fri_cpu_time_qos_legacy Uint64_t
  3811. Fri_cpu_time_qos_user_initiated Uint64_t
  3812. Fri_cpu_time_qos_user_interactive Uint64_t
  3813. Fri_billed_system_time Uint64_t
  3814. Fri_serviced_system_time Uint64_t
  3815. Fri_logical_writes Uint64_t
  3816. Fri_lifetime_max_phys_footprint Uint64_t
  3817. Fri_instructions Uint64_t
  3818. Fri_cycles Uint64_t
  3819. Fri_billed_energy Uint64_t
  3820. Fri_serviced_energy Uint64_t
  3821. Fri_interval_max_phys_footprint Uint64_t
  3822. Fri_runnable_time Uint64_t
  3823. Fri_flags Uint64_t
  3824. } /* resource.h:327:1 */
  3825. type Rusage_info_current = Rusage_info_v5 /* resource.h:367:31 */
  3826. // ****
  3827. //
  3828. // RESOURCE LIMITS
  3829. // Symbolic constants for resource limits; since all limits are representable
  3830. // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
  3831. // RLIM_INFINITY.
  3832. // Possible values of the first parameter to getrlimit()/setrlimit(), to
  3833. // indicate for which resource the operation is being performed.
  3834. // A structure representing a resource limit. The address of an instance
  3835. // of this structure is the second parameter to getrlimit()/setrlimit().
  3836. type Rlimit = struct {
  3837. Frlim_cur Rlim_t
  3838. Frlim_max Rlim_t
  3839. } /* resource.h:411:1 */
  3840. // proc_rlimit_control()
  3841. //
  3842. // Resource limit flavors
  3843. // Flags for wakeups monitor control.
  3844. // Flags for CPU usage monitor control.
  3845. // Flags for memory footprint interval tracking.
  3846. type Proc_rlimit_control_wakeupmon = struct {
  3847. Fwm_flags Uint32_t
  3848. Fwm_rate Int32_t
  3849. } /* resource.h:446:1 */
  3850. // Functions for byte reversed loads.
  3851. type X_OSUnalignedU16 = struct{ F__val Uint16_t } /* OSByteOrder.h:64:1 */
  3852. type X_OSUnalignedU32 = struct{ F__val Uint32_t } /* OSByteOrder.h:68:1 */
  3853. type X_OSUnalignedU64 = struct{ F__val Uint64_t } /* OSByteOrder.h:72:1 */
  3854. // Deprecated:
  3855. // Structure of the information in the status word returned by wait4.
  3856. // If w_stopval==_WSTOPPED, then the second structure describes
  3857. // the information returned, else the first.
  3858. type Wait = struct{ Fw_status int32 } /* wait.h:194:1 */
  3859. // built-in for gcc
  3860. // built-in for gcc 3
  3861. // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
  3862. // _GCC_SIZE_T
  3863. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3864. //
  3865. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3866. //
  3867. // This file contains Original Code and/or Modifications of Original Code
  3868. // as defined in and that are subject to the Apple Public Source License
  3869. // Version 2.0 (the 'License'). You may not use this file except in
  3870. // compliance with the License. The rights granted to you under the License
  3871. // may not be used to create, or enable the creation or redistribution of,
  3872. // unlawful or unlicensed copies of an Apple operating system, or to
  3873. // circumvent, violate, or enable the circumvention or violation of, any
  3874. // terms of an Apple operating system software license agreement.
  3875. //
  3876. // Please obtain a copy of the License at
  3877. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3878. //
  3879. // The Original Code and all software distributed under the License are
  3880. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3881. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3882. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3883. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3884. // Please see the License for the specific language governing rights and
  3885. // limitations under the License.
  3886. //
  3887. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3888. // Copyright (c) 2012 Apple Inc. All rights reserved.
  3889. //
  3890. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3891. //
  3892. // This file contains Original Code and/or Modifications of Original Code
  3893. // as defined in and that are subject to the Apple Public Source License
  3894. // Version 2.0 (the 'License'). You may not use this file except in
  3895. // compliance with the License. The rights granted to you under the License
  3896. // may not be used to create, or enable the creation or redistribution of,
  3897. // unlawful or unlicensed copies of an Apple operating system, or to
  3898. // circumvent, violate, or enable the circumvention or violation of, any
  3899. // terms of an Apple operating system software license agreement.
  3900. //
  3901. // Please obtain a copy of the License at
  3902. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3903. //
  3904. // The Original Code and all software distributed under the License are
  3905. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3906. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3907. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3908. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3909. // Please see the License for the specific language governing rights and
  3910. // limitations under the License.
  3911. //
  3912. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3913. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3914. //
  3915. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3916. //
  3917. // This file contains Original Code and/or Modifications of Original Code
  3918. // as defined in and that are subject to the Apple Public Source License
  3919. // Version 2.0 (the 'License'). You may not use this file except in
  3920. // compliance with the License. The rights granted to you under the License
  3921. // may not be used to create, or enable the creation or redistribution of,
  3922. // unlawful or unlicensed copies of an Apple operating system, or to
  3923. // circumvent, violate, or enable the circumvention or violation of, any
  3924. // terms of an Apple operating system software license agreement.
  3925. //
  3926. // Please obtain a copy of the License at
  3927. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3928. //
  3929. // The Original Code and all software distributed under the License are
  3930. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3931. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3932. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3933. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3934. // Please see the License for the specific language governing rights and
  3935. // limitations under the License.
  3936. //
  3937. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3938. type Ct_rune_t = X__darwin_ct_rune_t /* _ct_rune_t.h:32:28 */
  3939. // Copyright (c) 2012 Apple Inc. All rights reserved.
  3940. //
  3941. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3942. //
  3943. // This file contains Original Code and/or Modifications of Original Code
  3944. // as defined in and that are subject to the Apple Public Source License
  3945. // Version 2.0 (the 'License'). You may not use this file except in
  3946. // compliance with the License. The rights granted to you under the License
  3947. // may not be used to create, or enable the creation or redistribution of,
  3948. // unlawful or unlicensed copies of an Apple operating system, or to
  3949. // circumvent, violate, or enable the circumvention or violation of, any
  3950. // terms of an Apple operating system software license agreement.
  3951. //
  3952. // Please obtain a copy of the License at
  3953. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3954. //
  3955. // The Original Code and all software distributed under the License are
  3956. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3957. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3958. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3959. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3960. // Please see the License for the specific language governing rights and
  3961. // limitations under the License.
  3962. //
  3963. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3964. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3965. //
  3966. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3967. //
  3968. // This file contains Original Code and/or Modifications of Original Code
  3969. // as defined in and that are subject to the Apple Public Source License
  3970. // Version 2.0 (the 'License'). You may not use this file except in
  3971. // compliance with the License. The rights granted to you under the License
  3972. // may not be used to create, or enable the creation or redistribution of,
  3973. // unlawful or unlicensed copies of an Apple operating system, or to
  3974. // circumvent, violate, or enable the circumvention or violation of, any
  3975. // terms of an Apple operating system software license agreement.
  3976. //
  3977. // Please obtain a copy of the License at
  3978. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3979. //
  3980. // The Original Code and all software distributed under the License are
  3981. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3982. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3983. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3984. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3985. // Please see the License for the specific language governing rights and
  3986. // limitations under the License.
  3987. //
  3988. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3989. type Rune_t = X__darwin_rune_t /* _rune_t.h:31:25 */
  3990. type Div_t = struct {
  3991. Fquot int32
  3992. Frem int32
  3993. } /* stdlib.h:86:3 */
  3994. type Ldiv_t = struct {
  3995. Fquot int64
  3996. Frem int64
  3997. } /* stdlib.h:91:3 */
  3998. type Lldiv_t = struct {
  3999. Fquot int64
  4000. Frem int64
  4001. } /* stdlib.h:97:3 */
  4002. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4003. //
  4004. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4005. //
  4006. // This file contains Original Code and/or Modifications of Original Code
  4007. // as defined in and that are subject to the Apple Public Source License
  4008. // Version 2.0 (the 'License'). You may not use this file except in
  4009. // compliance with the License. The rights granted to you under the License
  4010. // may not be used to create, or enable the creation or redistribution of,
  4011. // unlawful or unlicensed copies of an Apple operating system, or to
  4012. // circumvent, violate, or enable the circumvention or violation of, any
  4013. // terms of an Apple operating system software license agreement.
  4014. //
  4015. // Please obtain a copy of the License at
  4016. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4017. //
  4018. // The Original Code and all software distributed under the License are
  4019. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4020. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4021. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4022. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4023. // Please see the License for the specific language governing rights and
  4024. // limitations under the License.
  4025. //
  4026. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4027. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4028. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4029. //
  4030. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4031. //
  4032. // This file contains Original Code and/or Modifications of Original Code
  4033. // as defined in and that are subject to the Apple Public Source License
  4034. // Version 2.0 (the 'License'). You may not use this file except in
  4035. // compliance with the License. The rights granted to you under the License
  4036. // may not be used to create, or enable the creation or redistribution of,
  4037. // unlawful or unlicensed copies of an Apple operating system, or to
  4038. // circumvent, violate, or enable the circumvention or violation of, any
  4039. // terms of an Apple operating system software license agreement.
  4040. //
  4041. // Please obtain a copy of the License at
  4042. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4043. //
  4044. // The Original Code and all software distributed under the License are
  4045. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4046. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4047. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4048. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4049. // Please see the License for the specific language governing rights and
  4050. // limitations under the License.
  4051. //
  4052. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4053. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4054. //
  4055. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4056. //
  4057. // This file contains Original Code and/or Modifications of Original Code
  4058. // as defined in and that are subject to the Apple Public Source License
  4059. // Version 2.0 (the 'License'). You may not use this file except in
  4060. // compliance with the License. The rights granted to you under the License
  4061. // may not be used to create, or enable the creation or redistribution of,
  4062. // unlawful or unlicensed copies of an Apple operating system, or to
  4063. // circumvent, violate, or enable the circumvention or violation of, any
  4064. // terms of an Apple operating system software license agreement.
  4065. //
  4066. // Please obtain a copy of the License at
  4067. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4068. //
  4069. // The Original Code and all software distributed under the License are
  4070. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4071. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4072. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4073. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4074. // Please see the License for the specific language governing rights and
  4075. // limitations under the License.
  4076. //
  4077. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4078. type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  4079. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4080. //
  4081. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4082. //
  4083. // This file contains Original Code and/or Modifications of Original Code
  4084. // as defined in and that are subject to the Apple Public Source License
  4085. // Version 2.0 (the 'License'). You may not use this file except in
  4086. // compliance with the License. The rights granted to you under the License
  4087. // may not be used to create, or enable the creation or redistribution of,
  4088. // unlawful or unlicensed copies of an Apple operating system, or to
  4089. // circumvent, violate, or enable the circumvention or violation of, any
  4090. // terms of an Apple operating system software license agreement.
  4091. //
  4092. // Please obtain a copy of the License at
  4093. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4094. //
  4095. // The Original Code and all software distributed under the License are
  4096. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4097. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4098. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4099. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4100. // Please see the License for the specific language governing rights and
  4101. // limitations under the License.
  4102. //
  4103. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4104. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4105. //
  4106. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4107. //
  4108. // This file contains Original Code and/or Modifications of Original Code
  4109. // as defined in and that are subject to the Apple Public Source License
  4110. // Version 2.0 (the 'License'). You may not use this file except in
  4111. // compliance with the License. The rights granted to you under the License
  4112. // may not be used to create, or enable the creation or redistribution of,
  4113. // unlawful or unlicensed copies of an Apple operating system, or to
  4114. // circumvent, violate, or enable the circumvention or violation of, any
  4115. // terms of an Apple operating system software license agreement.
  4116. //
  4117. // Please obtain a copy of the License at
  4118. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4119. //
  4120. // The Original Code and all software distributed under the License are
  4121. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4122. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4123. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4124. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4125. // Please see the License for the specific language governing rights and
  4126. // limitations under the License.
  4127. //
  4128. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4129. type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */ // getsubopt(3) external variable
  4130. // valloc is now declared in _malloc.h
  4131. // Poison the following routines if -fshort-wchar is set
  4132. var _ int8 /* gen.c:2:13: */