socket_darwin_amd64.go 251 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022
  1. // Code generated by 'ccgo sys/socket/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_darwin_amd64.go -pkgname socket', DO NOT EDIT.
  2. package socket
  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. AF_APPLETALK = 16 // socket.h:375:1:
  15. AF_CCITT = 10 // socket.h:369:1:
  16. AF_CHAOS = 5 // socket.h:363:1:
  17. AF_CNT = 21 // socket.h:380:1:
  18. AF_COIP = 20 // socket.h:379:1:
  19. AF_DATAKIT = 9 // socket.h:368:1:
  20. AF_DECnet = 12 // socket.h:371:1:
  21. AF_DLI = 13 // socket.h:372:1:
  22. AF_E164 = 28 // socket.h:387:1:
  23. AF_ECMA = 8 // socket.h:367:1:
  24. AF_HYLINK = 15 // socket.h:374:1:
  25. AF_IEEE80211 = 37 // socket.h:399:1:
  26. AF_IMPLINK = 3 // socket.h:361:1:
  27. AF_INET = 2 // socket.h:359:1:
  28. AF_INET6 = 30 // socket.h:390:1:
  29. AF_IPX = 23 // socket.h:382:1:
  30. AF_ISDN = 28 // socket.h:386:1:
  31. AF_ISO = 7 // socket.h:365:1:
  32. AF_LAT = 14 // socket.h:373:1:
  33. AF_LINK = 18 // socket.h:377:1:
  34. AF_LOCAL = 1 // socket.h:357:1:
  35. AF_MAX = 40 // socket.h:401:1:
  36. AF_NATM = 31 // socket.h:392:1:
  37. AF_NDRV = 27 // socket.h:385:1:
  38. AF_NETBIOS = 33 // socket.h:394:1:
  39. AF_NS = 6 // socket.h:364:1:
  40. AF_OSI = 7 // socket.h:366:1:
  41. AF_PPP = 34 // socket.h:395:1:
  42. AF_PUP = 4 // socket.h:362:1:
  43. AF_RESERVED_36 = 36 // socket.h:398:1:
  44. AF_ROUTE = 17 // socket.h:376:1:
  45. AF_SIP = 24 // socket.h:383:1:
  46. AF_SNA = 11 // socket.h:370:1:
  47. AF_SYSTEM = 32 // socket.h:393:1:
  48. AF_UNIX = 1 // socket.h:355:1:
  49. AF_UNSPEC = 0 // socket.h:354:1:
  50. AF_UTUN = 38 // socket.h:400:1:
  51. BIG_ENDIAN = 4321 // endian.h:94:1:
  52. BYTE_ORDER = 1234 // endian.h:97:1:
  53. CONNECT_DATA_AUTHENTICATED = 0x4 // socket.h:300:1:
  54. CONNECT_DATA_IDEMPOTENT = 0x2 // socket.h:299:1:
  55. CONNECT_RESUME_ON_READ_WRITE = 0x1 // socket.h:298:1:
  56. FD_SETSIZE = 1024 // _fd_setsize.h:29:1:
  57. KEV_DL_ADDMULTI = 7 // net_kev.h:61:1:
  58. KEV_DL_AWDL_RESTRICTED = 26 // net_kev.h:80:1:
  59. KEV_DL_AWDL_UNRESTRICTED = 27 // net_kev.h:81:1:
  60. KEV_DL_DELMULTI = 8 // net_kev.h:62:1:
  61. KEV_DL_IFCAP_CHANGED = 19 // net_kev.h:73:1:
  62. KEV_DL_IFDELEGATE_CHANGED = 25 // net_kev.h:79:1:
  63. KEV_DL_IF_ATTACHED = 9 // net_kev.h:63:1:
  64. KEV_DL_IF_DETACHED = 11 // net_kev.h:65:1:
  65. KEV_DL_IF_DETACHING = 10 // net_kev.h:64:1:
  66. KEV_DL_IF_IDLE_ROUTE_REFCNT = 18 // net_kev.h:72:1:
  67. KEV_DL_ISSUES = 24 // net_kev.h:78:1:
  68. KEV_DL_LINK_ADDRESS_CHANGED = 16 // net_kev.h:70:1:
  69. KEV_DL_LINK_OFF = 12 // net_kev.h:66:1:
  70. KEV_DL_LINK_ON = 13 // net_kev.h:67:1:
  71. KEV_DL_LINK_QUALITY_METRIC_CHANGED = 20 // net_kev.h:74:1:
  72. KEV_DL_LOW_POWER_MODE_CHANGED = 30 // net_kev.h:84:1:
  73. KEV_DL_MASTER_ELECTED = 23 // net_kev.h:77:1:
  74. KEV_DL_NODE_ABSENCE = 22 // net_kev.h:76:1:
  75. KEV_DL_NODE_PRESENCE = 21 // net_kev.h:75:1:
  76. KEV_DL_PROTO_ATTACHED = 14 // net_kev.h:68:1:
  77. KEV_DL_PROTO_DETACHED = 15 // net_kev.h:69:1:
  78. KEV_DL_QOS_MODE_CHANGED = 29 // net_kev.h:83:1:
  79. KEV_DL_RRC_STATE_CHANGED = 28 // net_kev.h:82:1:
  80. KEV_DL_SIFFLAGS = 1 // net_kev.h:55:1:
  81. KEV_DL_SIFGENERIC = 6 // net_kev.h:60:1:
  82. KEV_DL_SIFMEDIA = 5 // net_kev.h:59:1:
  83. KEV_DL_SIFMETRICS = 2 // net_kev.h:56:1:
  84. KEV_DL_SIFMTU = 3 // net_kev.h:57:1:
  85. KEV_DL_SIFPHYS = 4 // net_kev.h:58:1:
  86. KEV_DL_SUBCLASS = 2 // net_kev.h:50:1:
  87. KEV_DL_WAKEFLAGS_CHANGED = 17 // net_kev.h:71:1:
  88. KEV_INET6_ADDR_DELETED = 3 // net_kev.h:91:1:
  89. KEV_INET6_CHANGED_ADDR = 2 // net_kev.h:90:1:
  90. KEV_INET6_DEFROUTER = 6 // net_kev.h:94:1:
  91. KEV_INET6_NEW_LL_ADDR = 4 // net_kev.h:92:1:
  92. KEV_INET6_NEW_RTADV_ADDR = 5 // net_kev.h:93:1:
  93. KEV_INET6_NEW_USER_ADDR = 1 // net_kev.h:89:1:
  94. KEV_INET6_REQUEST_NAT64_PREFIX = 7 // net_kev.h:95:1:
  95. KEV_INET6_SUBCLASS = 6 // net_kev.h:87:1:
  96. KEV_INET_ADDR_DELETED = 3 // net_kev.h:39:1:
  97. KEV_INET_ARPCOLLISION = 7 // net_kev.h:43:1:
  98. KEV_INET_ARPRTRALIVE = 10 // net_kev.h:48:1:
  99. KEV_INET_ARPRTRFAILURE = 9 // net_kev.h:47:1:
  100. KEV_INET_CHANGED_ADDR = 2 // net_kev.h:38:1:
  101. KEV_INET_NEW_ADDR = 1 // net_kev.h:37:1:
  102. KEV_INET_PORTINUSE = 8 // net_kev.h:45:1:
  103. KEV_INET_SIFBRDADDR = 5 // net_kev.h:41:1:
  104. KEV_INET_SIFDSTADDR = 4 // net_kev.h:40:1:
  105. KEV_INET_SIFNETMASK = 6 // net_kev.h:42:1:
  106. KEV_INET_SUBCLASS = 1 // net_kev.h:35:1:
  107. LITTLE_ENDIAN = 1234 // endian.h:93:1:
  108. MSG_CTRUNC = 0x20 // socket.h:563:1:
  109. MSG_DONTROUTE = 0x4 // socket.h:560:1:
  110. MSG_DONTWAIT = 0x80 // socket.h:566:1:
  111. MSG_EOF = 0x100 // socket.h:567:1:
  112. MSG_EOR = 0x8 // socket.h:561:1:
  113. MSG_FLUSH = 0x400 // socket.h:572:1:
  114. MSG_HAVEMORE = 0x2000 // socket.h:575:1:
  115. MSG_HOLD = 0x800 // socket.h:573:1:
  116. MSG_NEEDSA = 0x10000 // socket.h:578:1:
  117. MSG_OOB = 0x1 // socket.h:558:1:
  118. MSG_PEEK = 0x2 // socket.h:559:1:
  119. MSG_RCVMORE = 0x4000 // socket.h:576:1:
  120. MSG_SEND = 0x1000 // socket.h:574:1:
  121. MSG_TRUNC = 0x10 // socket.h:562:1:
  122. MSG_WAITALL = 0x40 // socket.h:564:1:
  123. MSG_WAITSTREAM = 0x200 // socket.h:570:1:
  124. NBBY = 8 // types.h:186:1:
  125. NETSVC_MRKNG_LVL_L2 = 1 // socket.h:283:1:
  126. NETSVC_MRKNG_LVL_L3L2_ALL = 2 // socket.h:284:1:
  127. NETSVC_MRKNG_LVL_L3L2_BK = 3 // socket.h:285:1:
  128. NETSVC_MRKNG_UNKNOWN = 0 // socket.h:282:1:
  129. NET_MAXID = 40 // socket.h:506:1:
  130. NET_RT_DUMP = 1 // socket.h:519:1:
  131. NET_RT_DUMP2 = 7 // socket.h:525:1:
  132. NET_RT_FLAGS = 2 // socket.h:520:1:
  133. NET_RT_FLAGS_PRIV = 10 // socket.h:530:1:
  134. NET_RT_IFLIST = 3 // socket.h:521:1:
  135. NET_RT_IFLIST2 = 6 // socket.h:524:1:
  136. NET_RT_MAXID = 11 // socket.h:531:1:
  137. NET_RT_STAT = 4 // socket.h:522:1:
  138. NET_RT_TRASH = 5 // socket.h:523:1:
  139. NET_SERVICE_TYPE_AV = 6 // socket.h:276:1:
  140. NET_SERVICE_TYPE_BE = 0 // socket.h:270:1:
  141. NET_SERVICE_TYPE_BK = 1 // socket.h:271:1:
  142. NET_SERVICE_TYPE_OAM = 7 // socket.h:277:1:
  143. NET_SERVICE_TYPE_RD = 8 // socket.h:278:1:
  144. NET_SERVICE_TYPE_RV = 5 // socket.h:275:1:
  145. NET_SERVICE_TYPE_SIG = 2 // socket.h:272:1:
  146. NET_SERVICE_TYPE_VI = 3 // socket.h:273:1:
  147. NET_SERVICE_TYPE_VO = 4 // socket.h:274:1:
  148. PDP_ENDIAN = 3412 // endian.h:95:1:
  149. PF_APPLETALK = 16 // socket.h:469:1:
  150. PF_CCITT = 10 // socket.h:463:1:
  151. PF_CHAOS = 5 // socket.h:457:1:
  152. PF_CNT = 21 // socket.h:474:1:
  153. PF_COIP = 20 // socket.h:473:1:
  154. PF_DATAKIT = 9 // socket.h:462:1:
  155. PF_DECnet = 12 // socket.h:465:1:
  156. PF_DLI = 13 // socket.h:466:1:
  157. PF_ECMA = 8 // socket.h:461:1:
  158. PF_HYLINK = 15 // socket.h:468:1:
  159. PF_IMPLINK = 3 // socket.h:455:1:
  160. PF_INET = 2 // socket.h:454:1:
  161. PF_INET6 = 30 // socket.h:482:1:
  162. PF_IPX = 23 // socket.h:476:1:
  163. PF_ISDN = 28 // socket.h:480:1:
  164. PF_ISO = 7 // socket.h:459:1:
  165. PF_KEY = 29 // socket.h:481:1:
  166. PF_LAT = 14 // socket.h:467:1:
  167. PF_LINK = 18 // socket.h:471:1:
  168. PF_LOCAL = 1 // socket.h:452:1:
  169. PF_MAX = 40 // socket.h:489:1:
  170. PF_NATM = 31 // socket.h:483:1:
  171. PF_NDRV = 27 // socket.h:479:1:
  172. PF_NETBIOS = 33 // socket.h:485:1:
  173. PF_NS = 6 // socket.h:458:1:
  174. PF_OSI = 7 // socket.h:460:1:
  175. PF_PIP = 25 // socket.h:478:1:
  176. PF_PPP = 34 // socket.h:486:1:
  177. PF_PUP = 4 // socket.h:456:1:
  178. PF_RESERVED_36 = 36 // socket.h:487:1:
  179. PF_ROUTE = 17 // socket.h:470:1:
  180. PF_RTIP = 22 // socket.h:477:1:
  181. PF_SIP = 24 // socket.h:475:1:
  182. PF_SNA = 11 // socket.h:464:1:
  183. PF_SYSTEM = 32 // socket.h:484:1:
  184. PF_UNIX = 1 // socket.h:453:1:
  185. PF_UNSPEC = 0 // socket.h:451:1:
  186. PF_UTUN = 38 // socket.h:488:1:
  187. PF_XTP = 19 // socket.h:472:1:
  188. SAE_ASSOCID_ANY = 0 // socket.h:290:1:
  189. SAE_CONNID_ANY = 0 // socket.h:294:1:
  190. SCM_CREDS = 0x03 // socket.h:661:1:
  191. SCM_RIGHTS = 0x01 // socket.h:658:1:
  192. SCM_TIMESTAMP = 0x02 // socket.h:660:1:
  193. SCM_TIMESTAMP_MONOTONIC = 0x04 // socket.h:662:1:
  194. SHUT_RD = 0 // socket.h:670:1:
  195. SHUT_RDWR = 2 // socket.h:672:1:
  196. SHUT_WR = 1 // socket.h:671:1:
  197. SOCK_DGRAM = 2 // socket.h:112:1:
  198. SOCK_MAXADDRLEN = 255 // socket.h:414:1:
  199. SOCK_RAW = 3 // socket.h:113:1:
  200. SOCK_RDM = 4 // socket.h:115:1:
  201. SOCK_SEQPACKET = 5 // socket.h:117:1:
  202. SOCK_STREAM = 1 // socket.h:111:1:
  203. SOL_SOCKET = 0xffff // socket.h:348:1:
  204. SOMAXCONN = 128 // socket.h:540:1:
  205. SONPX_SETOPTSHUT = 0x000000001 // socket.h:338:1:
  206. SO_ACCEPTCONN = 0x0002 // socket.h:123:1:
  207. SO_BROADCAST = 0x0020 // socket.h:127:1:
  208. SO_DEBUG = 0x0001 // socket.h:122:1:
  209. SO_DONTROUTE = 0x0010 // socket.h:126:1:
  210. SO_DONTTRUNC = 0x2000 // socket.h:142:1:
  211. SO_ERROR = 0x1007 // socket.h:160:1:
  212. SO_KEEPALIVE = 0x0008 // socket.h:125:1:
  213. SO_LABEL = 0x1010 // socket.h:163:1:
  214. SO_LINGER = 0x0080 // socket.h:130:1:
  215. SO_LINGER_SEC = 0x1080 // socket.h:176:1:
  216. SO_NETSVC_MARKING_LEVEL = 0x1119 // socket.h:185:1:
  217. SO_NET_SERVICE_TYPE = 0x1116 // socket.h:182:1:
  218. SO_NKE = 0x1021 // socket.h:167:1:
  219. SO_NOADDRERR = 0x1023 // socket.h:169:1:
  220. SO_NOSIGPIPE = 0x1022 // socket.h:168:1:
  221. SO_NOTIFYCONFLICT = 0x1026 // socket.h:173:1:
  222. SO_NP_EXTENSIONS = 0x1083 // socket.h:178:1:
  223. SO_NREAD = 0x1020 // socket.h:166:1:
  224. SO_NUMRCVPKT = 0x1112 // socket.h:181:1:
  225. SO_NWRITE = 0x1024 // socket.h:170:1:
  226. SO_OOBINLINE = 0x0100 // socket.h:134:1:
  227. SO_PEERLABEL = 0x1011 // socket.h:164:1:
  228. SO_RANDOMPORT = 0x1082 // socket.h:177:1:
  229. SO_RCVBUF = 0x1002 // socket.h:155:1:
  230. SO_RCVLOWAT = 0x1004 // socket.h:157:1:
  231. SO_RCVTIMEO = 0x1006 // socket.h:159:1:
  232. SO_REUSEADDR = 0x0004 // socket.h:124:1:
  233. SO_REUSEPORT = 0x0200 // socket.h:136:1:
  234. SO_REUSESHAREUID = 0x1025 // socket.h:171:1:
  235. SO_SNDBUF = 0x1001 // socket.h:154:1:
  236. SO_SNDLOWAT = 0x1003 // socket.h:156:1:
  237. SO_SNDTIMEO = 0x1005 // socket.h:158:1:
  238. SO_TIMESTAMP = 0x0400 // socket.h:137:1:
  239. SO_TIMESTAMP_MONOTONIC = 0x0800 // socket.h:138:1:
  240. SO_TYPE = 0x1008 // socket.h:161:1:
  241. SO_UPCALLCLOSEWAIT = 0x1027 // socket.h:174:1:
  242. SO_USELOOPBACK = 0x0040 // socket.h:129:1:
  243. SO_WANTMORE = 0x4000 // socket.h:144:1:
  244. SO_WANTOOBFLAG = 0x8000 // socket.h:145:1:
  245. X_BLKCNT_T = 0 // _blkcnt_t.h:29:1:
  246. X_BLKSIZE_T = 0 // _blksize_t.h:29:1:
  247. X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1:
  248. X_BSD_MACHINE_ENDIAN_H_ = 0 // endian.h:32:1:
  249. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  250. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  251. X_CADDR_T = 0 // _caddr_t.h:29:1:
  252. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  253. X_CLOCK_T = 0 // _clock_t.h:29:1:
  254. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
  255. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
  256. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
  257. X_DEV_T = 0 // _dev_t.h:29:1:
  258. X_ERRNO_T = 0 // _errno_t.h:29:1:
  259. X_FD_SET = 0 // _fd_def.h:29:1:
  260. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  261. X_FSBLKCNT_T = 0 // _fsblkcnt_t.h:29:1:
  262. X_FSFILCNT_T = 0 // _fsfilcnt_t.h:29:1:
  263. X_GID_T = 0 // _gid_t.h:29:1:
  264. X_I386__ENDIAN_H_ = 0 // endian.h:67:1:
  265. X_I386__PARAM_H_ = 0 // _param.h:30:1:
  266. X_ID_T = 0 // _id_t.h:29:1:
  267. X_INO64_T = 0 // _ino64_t.h:29:1:
  268. X_INO_T = 0 // _ino_t.h:29:1:
  269. X_INT16_T = 0 // _int16_t.h:29:1:
  270. X_INT32_T = 0 // _int32_t.h:29:1:
  271. X_INT64_T = 0 // _int64_t.h:29:1:
  272. X_INT8_T = 0 // _int8_t.h:29:1:
  273. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  274. X_IN_ADDR_T = 0 // _in_addr_t.h:29:1:
  275. X_IN_PORT_T = 0 // _in_port_t.h:29:1:
  276. X_KEY_T = 0 // _key_t.h:29:1:
  277. X_LP64 = 1 // <predefined>:1:1:
  278. X_MACHTYPES_H_ = 0 // types.h:67:1:
  279. X_MODE_T = 0 // _mode_t.h:29:1:
  280. X_NET_NETKEV_H_ = 0 // net_kev.h:30:1:
  281. X_NLINK_T = 0 // _nlink_t.h:29:1:
  282. X_Nonnull = 0 // cdefs.h:243:1:
  283. X_Null_unspecified = 0 // cdefs.h:246:1:
  284. X_Nullable = 0 // cdefs.h:240:1:
  285. X_OFF_T = 0 // _off_t.h:29:1:
  286. X_OS__OSBYTEORDERI386_H = 0 // _OSByteOrder.h:30:1:
  287. X_OS__OSBYTEORDER_H = 0 // _OSByteOrder.h:30:1:
  288. X_PID_T = 0 // _pid_t.h:29:1:
  289. X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
  290. X_PTHREAD_CONDATTR_T = 0 // _pthread_condattr_t.h:29:1:
  291. X_PTHREAD_COND_T = 0 // _pthread_cond_t.h:29:1:
  292. X_PTHREAD_KEY_T = 0 // _pthread_key_t.h:29:1:
  293. X_PTHREAD_MUTEXATTR_T = 0 // _pthread_mutexattr_t.h:29:1:
  294. X_PTHREAD_MUTEX_T = 0 // _pthread_mutex_t.h:29:1:
  295. X_PTHREAD_ONCE_T = 0 // _pthread_once_t.h:29:1:
  296. X_PTHREAD_RWLOCKATTR_T = 0 // _pthread_rwlockattr_t.h:29:1:
  297. X_PTHREAD_RWLOCK_T = 0 // _pthread_rwlock_t.h:29:1:
  298. X_PTHREAD_T = 0 // _pthread_t.h:29:1:
  299. X_QUAD_HIGHWORD = 1 // endian.h:78:1:
  300. X_QUAD_LOWWORD = 0 // endian.h:79:1:
  301. X_RSIZE_T = 0 // _rsize_t.h:29:1:
  302. X_SA_FAMILY_T = 0 // _sa_family_t.h:29:1:
  303. X_SIZE_T = 0 // _size_t.h:29:1:
  304. X_SOCKLEN_T = 0 // _socklen_t.h:29:1:
  305. X_SSIZE_T = 0 // _ssize_t.h:29:1:
  306. X_SS_MAXSIZE = 128 // socket.h:429:1:
  307. X_STRUCT_IOVEC = 0 // _iovec_t.h:29:1:
  308. X_SUSECONDS_T = 0 // _suseconds_t.h:29:1:
  309. X_SYS_SOCKET_H_ = 0 // socket.h:73:1:
  310. X_SYS_TYPES_H_ = 0 // types.h:70:1:
  311. X_SYS__ENDIAN_H_ = 0 // _endian.h:91:1:
  312. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  313. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  314. X_TIME_T = 0 // _time_t.h:29:1:
  315. X_UID_T = 0 // _uid_t.h:29:1:
  316. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  317. X_USECONDS_T = 0 // _useconds_t.h:29:1:
  318. X_U_CHAR = 0 // _u_char.h:29:1:
  319. X_U_INT = 0 // _u_int.h:29:1:
  320. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  321. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  322. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  323. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  324. X_U_LONG = 0 // types.h:89:1:
  325. X_U_SHORT = 0 // _u_short.h:29:1:
  326. Pseudo_AF_HDRCMPLT = 35 // socket.h:396:1:
  327. Pseudo_AF_KEY = 29 // socket.h:388:1:
  328. Pseudo_AF_PIP = 25 // socket.h:384:1:
  329. Pseudo_AF_RTIP = 22 // socket.h:381:1:
  330. Pseudo_AF_XTP = 19 // socket.h:378:1:
  331. )
  332. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  333. type Size_t = uint64 /* <builtin>:9:23 */
  334. type Wchar_t = int32 /* <builtin>:15:24 */
  335. type X__int128_t = struct {
  336. Flo int64
  337. Fhi int64
  338. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  339. type X__uint128_t = struct {
  340. Flo uint64
  341. Fhi uint64
  342. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  343. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  344. type X__float128 = float64 /* <builtin>:47:21 */
  345. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  346. // Copyright (c) 2000-2019 Apple Inc. All rights reserved.
  347. //
  348. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  349. //
  350. // This file contains Original Code and/or Modifications of Original Code
  351. // as defined in and that are subject to the Apple Public Source License
  352. // Version 2.0 (the 'License'). You may not use this file except in
  353. // compliance with the License. The rights granted to you under the License
  354. // may not be used to create, or enable the creation or redistribution of,
  355. // unlawful or unlicensed copies of an Apple operating system, or to
  356. // circumvent, violate, or enable the circumvention or violation of, any
  357. // terms of an Apple operating system software license agreement.
  358. //
  359. // Please obtain a copy of the License at
  360. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  361. //
  362. // The Original Code and all software distributed under the License are
  363. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  364. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  365. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  366. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  367. // Please see the License for the specific language governing rights and
  368. // limitations under the License.
  369. //
  370. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  371. // Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved
  372. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  373. // Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
  374. // The Regents of the University of California. All rights reserved.
  375. //
  376. // Redistribution and use in source and binary forms, with or without
  377. // modification, are permitted provided that the following conditions
  378. // are met:
  379. // 1. Redistributions of source code must retain the above copyright
  380. // notice, this list of conditions and the following disclaimer.
  381. // 2. Redistributions in binary form must reproduce the above copyright
  382. // notice, this list of conditions and the following disclaimer in the
  383. // documentation and/or other materials provided with the distribution.
  384. // 3. All advertising materials mentioning features or use of this software
  385. // must display the following acknowledgement:
  386. // This product includes software developed by the University of
  387. // California, Berkeley and its contributors.
  388. // 4. Neither the name of the University nor the names of its contributors
  389. // may be used to endorse or promote products derived from this software
  390. // without specific prior written permission.
  391. //
  392. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  393. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  394. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  395. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  396. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  397. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  398. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  399. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  400. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  401. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  402. // SUCH DAMAGE.
  403. //
  404. // @(#)socket.h 8.4 (Berkeley) 2/21/94
  405. // $FreeBSD: src/sys/sys/socket.h,v 1.39.2.7 2001/07/03 11:02:01 ume Exp $
  406. // NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
  407. // support for mandatory and extensible security protections. This notice
  408. // is included in support of clause 2.2 (b) of the Apple Public License,
  409. // Version 2.0.
  410. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  411. //
  412. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  413. //
  414. // This file contains Original Code and/or Modifications of Original Code
  415. // as defined in and that are subject to the Apple Public Source License
  416. // Version 2.0 (the 'License'). You may not use this file except in
  417. // compliance with the License. The rights granted to you under the License
  418. // may not be used to create, or enable the creation or redistribution of,
  419. // unlawful or unlicensed copies of an Apple operating system, or to
  420. // circumvent, violate, or enable the circumvention or violation of, any
  421. // terms of an Apple operating system software license agreement.
  422. //
  423. // Please obtain a copy of the License at
  424. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  425. //
  426. // The Original Code and all software distributed under the License are
  427. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  428. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  429. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  430. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  431. // Please see the License for the specific language governing rights and
  432. // limitations under the License.
  433. //
  434. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  435. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  436. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  437. // The Regents of the University of California. All rights reserved.
  438. // (c) UNIX System Laboratories, Inc.
  439. // All or some portions of this file are derived from material licensed
  440. // to the University of California by American Telephone and Telegraph
  441. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  442. // the permission of UNIX System Laboratories, Inc.
  443. //
  444. // Redistribution and use in source and binary forms, with or without
  445. // modification, are permitted provided that the following conditions
  446. // are met:
  447. // 1. Redistributions of source code must retain the above copyright
  448. // notice, this list of conditions and the following disclaimer.
  449. // 2. Redistributions in binary form must reproduce the above copyright
  450. // notice, this list of conditions and the following disclaimer in the
  451. // documentation and/or other materials provided with the distribution.
  452. // 3. All advertising materials mentioning features or use of this software
  453. // must display the following acknowledgement:
  454. // This product includes software developed by the University of
  455. // California, Berkeley and its contributors.
  456. // 4. Neither the name of the University nor the names of its contributors
  457. // may be used to endorse or promote products derived from this software
  458. // without specific prior written permission.
  459. //
  460. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  461. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  462. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  463. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  464. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  465. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  466. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  467. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  468. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  469. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  470. // SUCH DAMAGE.
  471. //
  472. // @(#)types.h 8.4 (Berkeley) 1/21/94
  473. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  474. //
  475. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  476. //
  477. // This file contains Original Code and/or Modifications of Original Code
  478. // as defined in and that are subject to the Apple Public Source License
  479. // Version 2.0 (the 'License'). You may not use this file except in
  480. // compliance with the License. The rights granted to you under the License
  481. // may not be used to create, or enable the creation or redistribution of,
  482. // unlawful or unlicensed copies of an Apple operating system, or to
  483. // circumvent, violate, or enable the circumvention or violation of, any
  484. // terms of an Apple operating system software license agreement.
  485. //
  486. // Please obtain a copy of the License at
  487. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  488. //
  489. // The Original Code and all software distributed under the License are
  490. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  491. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  492. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  493. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  494. // Please see the License for the specific language governing rights and
  495. // limitations under the License.
  496. //
  497. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  498. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  499. //
  500. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  501. //
  502. // This file contains Original Code and/or Modifications of Original Code
  503. // as defined in and that are subject to the Apple Public Source License
  504. // Version 2.0 (the 'License'). You may not use this file except in
  505. // compliance with the License. The rights granted to you under the License
  506. // may not be used to create, or enable the creation or redistribution of,
  507. // unlawful or unlicensed copies of an Apple operating system, or to
  508. // circumvent, violate, or enable the circumvention or violation of, any
  509. // terms of an Apple operating system software license agreement.
  510. //
  511. // Please obtain a copy of the License at
  512. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  513. //
  514. // The Original Code and all software distributed under the License are
  515. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  516. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  517. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  518. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  519. // Please see the License for the specific language governing rights and
  520. // limitations under the License.
  521. //
  522. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  523. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  524. // Copyright (c) 1991, 1993
  525. // The Regents of the University of California. All rights reserved.
  526. //
  527. // This code is derived from software contributed to Berkeley by
  528. // Berkeley Software Design, Inc.
  529. //
  530. // Redistribution and use in source and binary forms, with or without
  531. // modification, are permitted provided that the following conditions
  532. // are met:
  533. // 1. Redistributions of source code must retain the above copyright
  534. // notice, this list of conditions and the following disclaimer.
  535. // 2. Redistributions in binary form must reproduce the above copyright
  536. // notice, this list of conditions and the following disclaimer in the
  537. // documentation and/or other materials provided with the distribution.
  538. // 3. All advertising materials mentioning features or use of this software
  539. // must display the following acknowledgement:
  540. // This product includes software developed by the University of
  541. // California, Berkeley and its contributors.
  542. // 4. Neither the name of the University nor the names of its contributors
  543. // may be used to endorse or promote products derived from this software
  544. // without specific prior written permission.
  545. //
  546. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  547. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  548. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  549. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  550. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  551. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  552. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  553. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  554. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  555. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  556. // SUCH DAMAGE.
  557. //
  558. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  559. // This SDK is designed to work with clang and specific versions of
  560. // gcc >= 4.0 with Apple's patch sets
  561. // Compatibility with compilers and environments that don't support compiler
  562. // feature checking function-like macros.
  563. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  564. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  565. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  566. // in between its arguments. __CONCAT can also concatenate double-quoted
  567. // strings produced by the __STRING macro, but this only works with ANSI C.
  568. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  569. // deleted from the program and old programs will want them left alone.
  570. // When using a compiler other than gcc, programs using the ANSI C keywords
  571. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  572. // When using "gcc -traditional", we assume that this is the intent; if
  573. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  574. // __unused denotes variables and functions that may not be used, preventing
  575. // the compiler from warning about it if not used.
  576. // __used forces variables and functions to be included even if it appears
  577. // to the compiler that they are not used (and would thust be discarded).
  578. // __cold marks code used for debugging or that is rarely taken
  579. // and tells the compiler to optimize for size and outline code.
  580. // __deprecated causes the compiler to produce a warning when encountering
  581. // code using the deprecated functionality.
  582. // __deprecated_msg() does the same, and compilers that support it will print
  583. // a message along with the deprecation warning.
  584. // This may require turning on such warning with the -Wdeprecated flag.
  585. // __deprecated_enum_msg() should be used on enums, and compilers that support
  586. // it will print the deprecation warning.
  587. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  588. // interfaces in Kernel.framework used by KEXTs.
  589. // __unavailable causes the compiler to error out when encountering
  590. // code using the tagged function of variable.
  591. // Delete pseudo-keywords wherever they are not available or needed.
  592. // We use `__restrict' as a way to define the `restrict' type qualifier
  593. // without disturbing older software that is unaware of C99 keywords.
  594. // Compatibility with compilers and environments that don't support the
  595. // nullability feature.
  596. // __disable_tail_calls causes the compiler to not perform tail call
  597. // optimization inside the marked function.
  598. // __not_tail_called causes the compiler to prevent tail call optimization
  599. // on statically bound calls to the function. It has no effect on indirect
  600. // calls. Virtual functions, objective-c methods, and functions marked as
  601. // "always_inline" cannot be marked as __not_tail_called.
  602. // __result_use_check warns callers of a function that not using the function
  603. // return value is a bug, i.e. dismissing malloc() return value results in a
  604. // memory leak.
  605. // __swift_unavailable causes the compiler to mark a symbol as specifically
  606. // unavailable in Swift, regardless of any other availability in C.
  607. // __abortlike is the attribute to put on functions like abort() that are
  608. // typically used to mark assertions. These optimize the codegen
  609. // for outlining while still maintaining debugability.
  610. // Declaring inline functions within headers is error-prone due to differences
  611. // across various versions of the C language and extensions. __header_inline
  612. // can be used to declare inline functions within system headers. In cases
  613. // where you want to force inlining instead of letting the compiler make
  614. // the decision, you can use __header_always_inline.
  615. //
  616. // Be aware that using inline for functions which compilers may also provide
  617. // builtins can behave differently under various compilers. If you intend to
  618. // provide an inline version of such a function, you may want to use a macro
  619. // instead.
  620. //
  621. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  622. // support c99 inline in some cases:
  623. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  624. // Compiler-dependent macros that bracket portions of code where the
  625. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  626. // Compiler-dependent macros to declare that functions take printf-like
  627. // or scanf-like arguments. They are null except for versions of gcc
  628. // that are known to support the features properly. Functions declared
  629. // with these attributes will cause compilation warnings if there is a
  630. // mismatch between the format string and subsequent function parameter
  631. // types.
  632. // Source compatibility only, ID string not emitted in object file
  633. // __alloc_size can be used to label function arguments that represent the
  634. // size of memory that the function allocates and returns. The one-argument
  635. // form labels a single argument that gives the allocation size (where the
  636. // arguments are numbered from 1):
  637. //
  638. // void *malloc(size_t __size) __alloc_size(1);
  639. //
  640. // The two-argument form handles the case where the size is calculated as the
  641. // product of two arguments:
  642. //
  643. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  644. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  645. //
  646. // DEFAULT By default newly complied code will get POSIX APIs plus
  647. // Apple API extensions in scope.
  648. //
  649. // Most users will use this compilation environment to avoid
  650. // behavioral differences between 32 and 64 bit code.
  651. //
  652. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  653. // API extensions in scope.
  654. //
  655. // This is generally equivalent to the Tiger release compilation
  656. // environment, except that it cannot be applied to 64 bit code;
  657. // its use is discouraged.
  658. //
  659. // We expect this environment to be deprecated in the future.
  660. //
  661. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  662. // available APIs to exactly the set of APIs defined by the
  663. // corresponding standard, based on the value defined.
  664. //
  665. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  666. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  667. //
  668. // Apple API extensions are not visible in this environment,
  669. // which can cause Apple specific code to fail to compile,
  670. // or behave incorrectly if prototypes are not in scope or
  671. // warnings about missing prototypes are not enabled or ignored.
  672. //
  673. // In any compilation environment, for correct symbol resolution to occur,
  674. // function prototypes must be in scope. It is recommended that all Apple
  675. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  676. // compiler flags to their projects to be warned when a function is being
  677. // used without a prototype in scope.
  678. // These settings are particular to each product.
  679. // Platform: MacOSX
  680. // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
  681. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  682. // legacy code to use the old symbol, thus maintaining binary compatibility
  683. // while new code can use a standards compliant version of the same function.
  684. //
  685. // __DARWIN_ALIAS is used by itself if the function signature has not
  686. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  687. // if the signature has changed. Because the __LP64__ environment
  688. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  689. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  690. //
  691. // As a special case, when XCode is used to target a specific version of the
  692. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  693. // will be defined by the compiler, with the digits representing major version
  694. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  695. // pre-10.5, and it is the default compilation environment, revert the
  696. // compilation environment to pre-__DARWIN_UNIX03.
  697. // symbol suffixes used for symbol versioning
  698. // symbol versioning macros
  699. // symbol release macros
  700. // Copyright (c) 2010 Apple Inc. All rights reserved.
  701. //
  702. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  703. //
  704. // This file contains Original Code and/or Modifications of Original Code
  705. // as defined in and that are subject to the Apple Public Source License
  706. // Version 2.0 (the 'License'). You may not use this file except in
  707. // compliance with the License. The rights granted to you under the License
  708. // may not be used to create, or enable the creation or redistribution of,
  709. // unlawful or unlicensed copies of an Apple operating system, or to
  710. // circumvent, violate, or enable the circumvention or violation of, any
  711. // terms of an Apple operating system software license agreement.
  712. //
  713. // Please obtain a copy of the License at
  714. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  715. //
  716. // The Original Code and all software distributed under the License are
  717. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  718. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  719. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  720. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  721. // Please see the License for the specific language governing rights and
  722. // limitations under the License.
  723. //
  724. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  725. // POSIX.1 requires that the macros we test be defined before any standard
  726. // header file is included. This permits us to convert values for feature
  727. // testing, as necessary, using only _POSIX_C_SOURCE.
  728. //
  729. // Here's a quick run-down of the versions:
  730. // defined(_POSIX_SOURCE) 1003.1-1988
  731. // _POSIX_C_SOURCE == 1L 1003.1-1990
  732. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  733. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  734. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  735. // and the omnibus ISO/IEC 9945-1: 1996
  736. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  737. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  738. //
  739. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  740. // Specification, defines a feature-test macro which indicates the version of
  741. // that specification, and which subsumes _POSIX_C_SOURCE.
  742. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  743. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  744. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  745. // Deal with all versions of POSIX. The ordering relative to the tests above is
  746. // important.
  747. // POSIX C deprecation macros
  748. // Copyright (c) 2010 Apple Inc. All rights reserved.
  749. //
  750. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  751. //
  752. // This file contains Original Code and/or Modifications of Original Code
  753. // as defined in and that are subject to the Apple Public Source License
  754. // Version 2.0 (the 'License'). You may not use this file except in
  755. // compliance with the License. The rights granted to you under the License
  756. // may not be used to create, or enable the creation or redistribution of,
  757. // unlawful or unlicensed copies of an Apple operating system, or to
  758. // circumvent, violate, or enable the circumvention or violation of, any
  759. // terms of an Apple operating system software license agreement.
  760. //
  761. // Please obtain a copy of the License at
  762. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  763. //
  764. // The Original Code and all software distributed under the License are
  765. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  766. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  767. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  768. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  769. // Please see the License for the specific language governing rights and
  770. // limitations under the License.
  771. //
  772. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  773. // Set a single macro which will always be defined and can be used to determine
  774. // the appropriate namespace. For POSIX, these values will correspond to
  775. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  776. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  777. // If the developer has neither requested a strict language mode nor a version
  778. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  779. // of __DARWIN_C_FULL.
  780. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  781. // c99 still want long longs. While not perfect, we allow long longs for
  782. // g++.
  783. // ****************************************
  784. //
  785. // Public darwin-specific feature macros
  786. //
  787. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  788. // structures modified for 64-bit inodes (like struct stat) will be used.
  789. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  790. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  791. // (and non-zero). There is no struct stat64 either, as the regular
  792. // struct stat will already be the 64-bit version.
  793. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  794. // in 10.5 exists; no pre-10.5 variants are available.
  795. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  796. // are available (the legacy BSD APIs are not available)
  797. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  798. // and specifies the conformance level (3 is SUSv3)
  799. // This macro casts away the qualifier from the variable
  800. //
  801. // Note: use at your own risk, removing qualifiers can result in
  802. // catastrophic run-time failures.
  803. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  804. // used from other compilation units, but not other libraries or executables.
  805. // Architecture validation for current SDK
  806. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  807. //
  808. // This provides more advanced type checking on compilers supporting
  809. // the proper extensions, even in C.
  810. // Machine type dependent parameters.
  811. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  812. //
  813. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  814. //
  815. // This file contains Original Code and/or Modifications of Original Code
  816. // as defined in and that are subject to the Apple Public Source License
  817. // Version 2.0 (the 'License'). You may not use this file except in
  818. // compliance with the License. The rights granted to you under the License
  819. // may not be used to create, or enable the creation or redistribution of,
  820. // unlawful or unlicensed copies of an Apple operating system, or to
  821. // circumvent, violate, or enable the circumvention or violation of, any
  822. // terms of an Apple operating system software license agreement.
  823. //
  824. // Please obtain a copy of the License at
  825. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  826. //
  827. // The Original Code and all software distributed under the License are
  828. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  829. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  830. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  831. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  832. // Please see the License for the specific language governing rights and
  833. // limitations under the License.
  834. //
  835. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  836. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  837. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  838. //
  839. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  840. //
  841. // This file contains Original Code and/or Modifications of Original Code
  842. // as defined in and that are subject to the Apple Public Source License
  843. // Version 2.0 (the 'License'). You may not use this file except in
  844. // compliance with the License. The rights granted to you under the License
  845. // may not be used to create, or enable the creation or redistribution of,
  846. // unlawful or unlicensed copies of an Apple operating system, or to
  847. // circumvent, violate, or enable the circumvention or violation of, any
  848. // terms of an Apple operating system software license agreement.
  849. //
  850. // Please obtain a copy of the License at
  851. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  852. //
  853. // The Original Code and all software distributed under the License are
  854. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  855. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  856. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  857. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  858. // Please see the License for the specific language governing rights and
  859. // limitations under the License.
  860. //
  861. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  862. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  863. // Copyright (c) 1990, 1993
  864. // The Regents of the University of California. All rights reserved.
  865. //
  866. // Redistribution and use in source and binary forms, with or without
  867. // modification, are permitted provided that the following conditions
  868. // are met:
  869. // 1. Redistributions of source code must retain the above copyright
  870. // notice, this list of conditions and the following disclaimer.
  871. // 2. Redistributions in binary form must reproduce the above copyright
  872. // notice, this list of conditions and the following disclaimer in the
  873. // documentation and/or other materials provided with the distribution.
  874. // 3. All advertising materials mentioning features or use of this software
  875. // must display the following acknowledgement:
  876. // This product includes software developed by the University of
  877. // California, Berkeley and its contributors.
  878. // 4. Neither the name of the University nor the names of its contributors
  879. // may be used to endorse or promote products derived from this software
  880. // without specific prior written permission.
  881. //
  882. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  883. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  884. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  885. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  886. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  887. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  888. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  889. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  890. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  891. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  892. // SUCH DAMAGE.
  893. //
  894. // @(#)types.h 8.3 (Berkeley) 1/5/94
  895. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  896. //
  897. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  898. //
  899. // This file contains Original Code and/or Modifications of Original Code
  900. // as defined in and that are subject to the Apple Public Source License
  901. // Version 2.0 (the 'License'). You may not use this file except in
  902. // compliance with the License. The rights granted to you under the License
  903. // may not be used to create, or enable the creation or redistribution of,
  904. // unlawful or unlicensed copies of an Apple operating system, or to
  905. // circumvent, violate, or enable the circumvention or violation of, any
  906. // terms of an Apple operating system software license agreement.
  907. //
  908. // Please obtain a copy of the License at
  909. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  910. //
  911. // The Original Code and all software distributed under the License are
  912. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  913. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  914. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  915. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  916. // Please see the License for the specific language governing rights and
  917. // limitations under the License.
  918. //
  919. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  920. // This header file contains integer types. It's intended to also contain
  921. // flotaing point and other arithmetic types, as needed, later.
  922. type X__int8_t = int8 /* _types.h:37:33 */
  923. type X__uint8_t = uint8 /* _types.h:41:33 */
  924. type X__int16_t = int16 /* _types.h:42:33 */
  925. type X__uint16_t = uint16 /* _types.h:43:33 */
  926. type X__int32_t = int32 /* _types.h:44:33 */
  927. type X__uint32_t = uint32 /* _types.h:45:33 */
  928. type X__int64_t = int64 /* _types.h:46:33 */
  929. type X__uint64_t = uint64 /* _types.h:47:33 */
  930. type X__darwin_intptr_t = int64 /* _types.h:49:33 */
  931. type X__darwin_natural_t = uint32 /* _types.h:50:33 */
  932. // The rune type below is declared to be an ``int'' instead of the more natural
  933. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  934. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  935. // it looks like 10646 will be a 31 bit standard. This means that if your
  936. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  937. // chosen over a long is that the is*() and to*() routines take ints (says
  938. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  939. // here, you lose a bit of ANSI conformance, but your programs will still
  940. // work.
  941. //
  942. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  943. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  944. // rune_t must be the same type. Also wint_t must be no narrower than
  945. // wchar_t, and should also be able to hold all members of the largest
  946. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  947. type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
  948. // mbstate_t is an opaque object to keep conversion state, during multibyte
  949. // stream conversions. The content must not be referenced by user programs.
  950. type X__mbstate_t = struct {
  951. F__ccgo_pad1 [0]uint64
  952. F__mbstate8 [128]int8
  953. } /* _types.h:79:3 */
  954. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
  955. type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2
  956. type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()
  957. type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list
  958. type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t
  959. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t
  960. type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t
  961. type X__darwin_clock_t = uint64 /* _types.h:117:33 */ // clock()
  962. type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh)
  963. type X__darwin_ssize_t = int64 /* _types.h:119:33 */ // byte count or error
  964. type X__darwin_time_t = int64 /* _types.h:120:33 */ // time()
  965. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  966. //
  967. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  968. //
  969. // This file contains Original Code and/or Modifications of Original Code
  970. // as defined in and that are subject to the Apple Public Source License
  971. // Version 2.0 (the 'License'). You may not use this file except in
  972. // compliance with the License. The rights granted to you under the License
  973. // may not be used to create, or enable the creation or redistribution of,
  974. // unlawful or unlicensed copies of an Apple operating system, or to
  975. // circumvent, violate, or enable the circumvention or violation of, any
  976. // terms of an Apple operating system software license agreement.
  977. //
  978. // Please obtain a copy of the License at
  979. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  980. //
  981. // The Original Code and all software distributed under the License are
  982. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  983. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  984. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  985. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  986. // Please see the License for the specific language governing rights and
  987. // limitations under the License.
  988. //
  989. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  990. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  991. // Copyright (c) 1991, 1993
  992. // The Regents of the University of California. All rights reserved.
  993. //
  994. // This code is derived from software contributed to Berkeley by
  995. // Berkeley Software Design, Inc.
  996. //
  997. // Redistribution and use in source and binary forms, with or without
  998. // modification, are permitted provided that the following conditions
  999. // are met:
  1000. // 1. Redistributions of source code must retain the above copyright
  1001. // notice, this list of conditions and the following disclaimer.
  1002. // 2. Redistributions in binary form must reproduce the above copyright
  1003. // notice, this list of conditions and the following disclaimer in the
  1004. // documentation and/or other materials provided with the distribution.
  1005. // 3. All advertising materials mentioning features or use of this software
  1006. // must display the following acknowledgement:
  1007. // This product includes software developed by the University of
  1008. // California, Berkeley and its contributors.
  1009. // 4. Neither the name of the University nor the names of its contributors
  1010. // may be used to endorse or promote products derived from this software
  1011. // without specific prior written permission.
  1012. //
  1013. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1014. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1015. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1016. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1017. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1018. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1019. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1020. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1021. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1022. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1023. // SUCH DAMAGE.
  1024. //
  1025. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1026. // Basic integral types. Omit the typedef if
  1027. // not possible for a machine/compiler combination.
  1028. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1029. //
  1030. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1031. //
  1032. // This file contains Original Code and/or Modifications of Original Code
  1033. // as defined in and that are subject to the Apple Public Source License
  1034. // Version 2.0 (the 'License'). You may not use this file except in
  1035. // compliance with the License. The rights granted to you under the License
  1036. // may not be used to create, or enable the creation or redistribution of,
  1037. // unlawful or unlicensed copies of an Apple operating system, or to
  1038. // circumvent, violate, or enable the circumvention or violation of, any
  1039. // terms of an Apple operating system software license agreement.
  1040. //
  1041. // Please obtain a copy of the License at
  1042. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1043. //
  1044. // The Original Code and all software distributed under the License are
  1045. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1046. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1047. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1048. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1049. // Please see the License for the specific language governing rights and
  1050. // limitations under the License.
  1051. //
  1052. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1053. type Int8_t = int8 /* _int8_t.h:30:33 */
  1054. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1055. //
  1056. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1057. //
  1058. // This file contains Original Code and/or Modifications of Original Code
  1059. // as defined in and that are subject to the Apple Public Source License
  1060. // Version 2.0 (the 'License'). You may not use this file except in
  1061. // compliance with the License. The rights granted to you under the License
  1062. // may not be used to create, or enable the creation or redistribution of,
  1063. // unlawful or unlicensed copies of an Apple operating system, or to
  1064. // circumvent, violate, or enable the circumvention or violation of, any
  1065. // terms of an Apple operating system software license agreement.
  1066. //
  1067. // Please obtain a copy of the License at
  1068. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1069. //
  1070. // The Original Code and all software distributed under the License are
  1071. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1072. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1073. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1074. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1075. // Please see the License for the specific language governing rights and
  1076. // limitations under the License.
  1077. //
  1078. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1079. type Int16_t = int16 /* _int16_t.h:30:33 */
  1080. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1081. //
  1082. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1083. //
  1084. // This file contains Original Code and/or Modifications of Original Code
  1085. // as defined in and that are subject to the Apple Public Source License
  1086. // Version 2.0 (the 'License'). You may not use this file except in
  1087. // compliance with the License. The rights granted to you under the License
  1088. // may not be used to create, or enable the creation or redistribution of,
  1089. // unlawful or unlicensed copies of an Apple operating system, or to
  1090. // circumvent, violate, or enable the circumvention or violation of, any
  1091. // terms of an Apple operating system software license agreement.
  1092. //
  1093. // Please obtain a copy of the License at
  1094. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1095. //
  1096. // The Original Code and all software distributed under the License are
  1097. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1098. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1099. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1100. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1101. // Please see the License for the specific language governing rights and
  1102. // limitations under the License.
  1103. //
  1104. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1105. type Int32_t = int32 /* _int32_t.h:30:33 */
  1106. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1107. //
  1108. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1109. //
  1110. // This file contains Original Code and/or Modifications of Original Code
  1111. // as defined in and that are subject to the Apple Public Source License
  1112. // Version 2.0 (the 'License'). You may not use this file except in
  1113. // compliance with the License. The rights granted to you under the License
  1114. // may not be used to create, or enable the creation or redistribution of,
  1115. // unlawful or unlicensed copies of an Apple operating system, or to
  1116. // circumvent, violate, or enable the circumvention or violation of, any
  1117. // terms of an Apple operating system software license agreement.
  1118. //
  1119. // Please obtain a copy of the License at
  1120. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1121. //
  1122. // The Original Code and all software distributed under the License are
  1123. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1124. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1125. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1126. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1127. // Please see the License for the specific language governing rights and
  1128. // limitations under the License.
  1129. //
  1130. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1131. type Int64_t = int64 /* _int64_t.h:30:33 */
  1132. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1133. //
  1134. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1135. //
  1136. // This file contains Original Code and/or Modifications of Original Code
  1137. // as defined in and that are subject to the Apple Public Source License
  1138. // Version 2.0 (the 'License'). You may not use this file except in
  1139. // compliance with the License. The rights granted to you under the License
  1140. // may not be used to create, or enable the creation or redistribution of,
  1141. // unlawful or unlicensed copies of an Apple operating system, or to
  1142. // circumvent, violate, or enable the circumvention or violation of, any
  1143. // terms of an Apple operating system software license agreement.
  1144. //
  1145. // Please obtain a copy of the License at
  1146. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1147. //
  1148. // The Original Code and all software distributed under the License are
  1149. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1150. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1151. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1152. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1153. // Please see the License for the specific language governing rights and
  1154. // limitations under the License.
  1155. //
  1156. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1157. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1158. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1159. //
  1160. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1161. //
  1162. // This file contains Original Code and/or Modifications of Original Code
  1163. // as defined in and that are subject to the Apple Public Source License
  1164. // Version 2.0 (the 'License'). You may not use this file except in
  1165. // compliance with the License. The rights granted to you under the License
  1166. // may not be used to create, or enable the creation or redistribution of,
  1167. // unlawful or unlicensed copies of an Apple operating system, or to
  1168. // circumvent, violate, or enable the circumvention or violation of, any
  1169. // terms of an Apple operating system software license agreement.
  1170. //
  1171. // Please obtain a copy of the License at
  1172. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1173. //
  1174. // The Original Code and all software distributed under the License are
  1175. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1176. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1177. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1178. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1179. // Please see the License for the specific language governing rights and
  1180. // limitations under the License.
  1181. //
  1182. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1183. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1184. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1185. //
  1186. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1187. //
  1188. // This file contains Original Code and/or Modifications of Original Code
  1189. // as defined in and that are subject to the Apple Public Source License
  1190. // Version 2.0 (the 'License'). You may not use this file except in
  1191. // compliance with the License. The rights granted to you under the License
  1192. // may not be used to create, or enable the creation or redistribution of,
  1193. // unlawful or unlicensed copies of an Apple operating system, or to
  1194. // circumvent, violate, or enable the circumvention or violation of, any
  1195. // terms of an Apple operating system software license agreement.
  1196. //
  1197. // Please obtain a copy of the License at
  1198. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1199. //
  1200. // The Original Code and all software distributed under the License are
  1201. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1202. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1203. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1204. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1205. // Please see the License for the specific language governing rights and
  1206. // limitations under the License.
  1207. //
  1208. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1209. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1210. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1211. //
  1212. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1213. //
  1214. // This file contains Original Code and/or Modifications of Original Code
  1215. // as defined in and that are subject to the Apple Public Source License
  1216. // Version 2.0 (the 'License'). You may not use this file except in
  1217. // compliance with the License. The rights granted to you under the License
  1218. // may not be used to create, or enable the creation or redistribution of,
  1219. // unlawful or unlicensed copies of an Apple operating system, or to
  1220. // circumvent, violate, or enable the circumvention or violation of, any
  1221. // terms of an Apple operating system software license agreement.
  1222. //
  1223. // Please obtain a copy of the License at
  1224. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1225. //
  1226. // The Original Code and all software distributed under the License are
  1227. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1228. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1229. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1230. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1231. // Please see the License for the specific language governing rights and
  1232. // limitations under the License.
  1233. //
  1234. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1235. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1236. type Register_t = Int64_t /* types.h:87:33 */
  1237. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1238. //
  1239. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1240. //
  1241. // This file contains Original Code and/or Modifications of Original Code
  1242. // as defined in and that are subject to the Apple Public Source License
  1243. // Version 2.0 (the 'License'). You may not use this file except in
  1244. // compliance with the License. The rights granted to you under the License
  1245. // may not be used to create, or enable the creation or redistribution of,
  1246. // unlawful or unlicensed copies of an Apple operating system, or to
  1247. // circumvent, violate, or enable the circumvention or violation of, any
  1248. // terms of an Apple operating system software license agreement.
  1249. //
  1250. // Please obtain a copy of the License at
  1251. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1252. //
  1253. // The Original Code and all software distributed under the License are
  1254. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1255. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1256. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1257. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1258. // Please see the License for the specific language governing rights and
  1259. // limitations under the License.
  1260. //
  1261. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1262. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1263. //
  1264. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1265. //
  1266. // This file contains Original Code and/or Modifications of Original Code
  1267. // as defined in and that are subject to the Apple Public Source License
  1268. // Version 2.0 (the 'License'). You may not use this file except in
  1269. // compliance with the License. The rights granted to you under the License
  1270. // may not be used to create, or enable the creation or redistribution of,
  1271. // unlawful or unlicensed copies of an Apple operating system, or to
  1272. // circumvent, violate, or enable the circumvention or violation of, any
  1273. // terms of an Apple operating system software license agreement.
  1274. //
  1275. // Please obtain a copy of the License at
  1276. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1277. //
  1278. // The Original Code and all software distributed under the License are
  1279. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1280. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1281. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1282. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1283. // Please see the License for the specific language governing rights and
  1284. // limitations under the License.
  1285. //
  1286. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1287. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1288. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1289. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1290. //
  1291. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1292. //
  1293. // This file contains Original Code and/or Modifications of Original Code
  1294. // as defined in and that are subject to the Apple Public Source License
  1295. // Version 2.0 (the 'License'). You may not use this file except in
  1296. // compliance with the License. The rights granted to you under the License
  1297. // may not be used to create, or enable the creation or redistribution of,
  1298. // unlawful or unlicensed copies of an Apple operating system, or to
  1299. // circumvent, violate, or enable the circumvention or violation of, any
  1300. // terms of an Apple operating system software license agreement.
  1301. //
  1302. // Please obtain a copy of the License at
  1303. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1304. //
  1305. // The Original Code and all software distributed under the License are
  1306. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1307. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1308. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1309. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1310. // Please see the License for the specific language governing rights and
  1311. // limitations under the License.
  1312. //
  1313. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1314. type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
  1315. // These types are used for reserving the largest possible size.
  1316. type User_addr_t = U_int64_t /* types.h:97:33 */
  1317. type User_size_t = U_int64_t /* types.h:98:33 */
  1318. type User_ssize_t = Int64_t /* types.h:99:33 */
  1319. type User_long_t = Int64_t /* types.h:100:33 */
  1320. type User_ulong_t = U_int64_t /* types.h:101:33 */
  1321. type User_time_t = Int64_t /* types.h:102:33 */
  1322. type User_off_t = Int64_t /* types.h:103:33 */
  1323. // This defines the size of syscall arguments after copying into the kernel:
  1324. type Syscall_arg_t = U_int64_t /* types.h:111:33 */
  1325. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1326. //
  1327. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1328. //
  1329. // This file contains Original Code and/or Modifications of Original Code
  1330. // as defined in and that are subject to the Apple Public Source License
  1331. // Version 2.0 (the 'License'). You may not use this file except in
  1332. // compliance with the License. The rights granted to you under the License
  1333. // may not be used to create, or enable the creation or redistribution of,
  1334. // unlawful or unlicensed copies of an Apple operating system, or to
  1335. // circumvent, violate, or enable the circumvention or violation of, any
  1336. // terms of an Apple operating system software license agreement.
  1337. //
  1338. // Please obtain a copy of the License at
  1339. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1340. //
  1341. // The Original Code and all software distributed under the License are
  1342. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1343. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1344. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1345. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1346. // Please see the License for the specific language governing rights and
  1347. // limitations under the License.
  1348. //
  1349. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1350. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1351. //
  1352. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1353. //
  1354. // This file contains Original Code and/or Modifications of Original Code
  1355. // as defined in and that are subject to the Apple Public Source License
  1356. // Version 2.0 (the 'License'). You may not use this file except in
  1357. // compliance with the License. The rights granted to you under the License
  1358. // may not be used to create, or enable the creation or redistribution of,
  1359. // unlawful or unlicensed copies of an Apple operating system, or to
  1360. // circumvent, violate, or enable the circumvention or violation of, any
  1361. // terms of an Apple operating system software license agreement.
  1362. //
  1363. // Please obtain a copy of the License at
  1364. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1365. //
  1366. // The Original Code and all software distributed under the License are
  1367. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1368. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1369. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1370. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1371. // Please see the License for the specific language governing rights and
  1372. // limitations under the License.
  1373. //
  1374. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1375. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1376. // Copyright (c) 1991, 1993
  1377. // The Regents of the University of California. All rights reserved.
  1378. //
  1379. // This code is derived from software contributed to Berkeley by
  1380. // Berkeley Software Design, Inc.
  1381. //
  1382. // Redistribution and use in source and binary forms, with or without
  1383. // modification, are permitted provided that the following conditions
  1384. // are met:
  1385. // 1. Redistributions of source code must retain the above copyright
  1386. // notice, this list of conditions and the following disclaimer.
  1387. // 2. Redistributions in binary form must reproduce the above copyright
  1388. // notice, this list of conditions and the following disclaimer in the
  1389. // documentation and/or other materials provided with the distribution.
  1390. // 3. All advertising materials mentioning features or use of this software
  1391. // must display the following acknowledgement:
  1392. // This product includes software developed by the University of
  1393. // California, Berkeley and its contributors.
  1394. // 4. Neither the name of the University nor the names of its contributors
  1395. // may be used to endorse or promote products derived from this software
  1396. // without specific prior written permission.
  1397. //
  1398. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1399. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1400. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1401. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1402. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1403. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1404. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1405. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1406. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1407. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1408. // SUCH DAMAGE.
  1409. //
  1410. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1411. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1412. //
  1413. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1414. //
  1415. // This file contains Original Code and/or Modifications of Original Code
  1416. // as defined in and that are subject to the Apple Public Source License
  1417. // Version 2.0 (the 'License'). You may not use this file except in
  1418. // compliance with the License. The rights granted to you under the License
  1419. // may not be used to create, or enable the creation or redistribution of,
  1420. // unlawful or unlicensed copies of an Apple operating system, or to
  1421. // circumvent, violate, or enable the circumvention or violation of, any
  1422. // terms of an Apple operating system software license agreement.
  1423. //
  1424. // Please obtain a copy of the License at
  1425. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1426. //
  1427. // The Original Code and all software distributed under the License are
  1428. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1429. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1430. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1431. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1432. // Please see the License for the specific language governing rights and
  1433. // limitations under the License.
  1434. //
  1435. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1436. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1437. //
  1438. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1439. //
  1440. // This file contains Original Code and/or Modifications of Original Code
  1441. // as defined in and that are subject to the Apple Public Source License
  1442. // Version 2.0 (the 'License'). You may not use this file except in
  1443. // compliance with the License. The rights granted to you under the License
  1444. // may not be used to create, or enable the creation or redistribution of,
  1445. // unlawful or unlicensed copies of an Apple operating system, or to
  1446. // circumvent, violate, or enable the circumvention or violation of, any
  1447. // terms of an Apple operating system software license agreement.
  1448. //
  1449. // Please obtain a copy of the License at
  1450. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1451. //
  1452. // The Original Code and all software distributed under the License are
  1453. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1454. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1455. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1456. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1457. // Please see the License for the specific language governing rights and
  1458. // limitations under the License.
  1459. //
  1460. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1461. // Type definitions; takes common type definitions that must be used
  1462. // in multiple header files due to [XSI], removes them from the system
  1463. // space, and puts them in the implementation space.
  1464. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  1465. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  1466. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  1467. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1468. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1469. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  1470. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1471. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1472. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  1473. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  1474. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1475. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  1476. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  1477. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  1478. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  1479. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  1480. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  1481. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  1482. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  1483. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  1484. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1485. //
  1486. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1487. //
  1488. // This file contains Original Code and/or Modifications of Original Code
  1489. // as defined in and that are subject to the Apple Public Source License
  1490. // Version 2.0 (the 'License'). You may not use this file except in
  1491. // compliance with the License. The rights granted to you under the License
  1492. // may not be used to create, or enable the creation or redistribution of,
  1493. // unlawful or unlicensed copies of an Apple operating system, or to
  1494. // circumvent, violate, or enable the circumvention or violation of, any
  1495. // terms of an Apple operating system software license agreement.
  1496. //
  1497. // Please obtain a copy of the License at
  1498. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1499. //
  1500. // The Original Code and all software distributed under the License are
  1501. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1502. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1503. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1504. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1505. // Please see the License for the specific language governing rights and
  1506. // limitations under the License.
  1507. //
  1508. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1509. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1510. //
  1511. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1512. //
  1513. // This file contains Original Code and/or Modifications of Original Code
  1514. // as defined in and that are subject to the Apple Public Source License
  1515. // Version 2.0 (the 'License'). You may not use this file except in
  1516. // compliance with the License. The rights granted to you under the License
  1517. // may not be used to create, or enable the creation or redistribution of,
  1518. // unlawful or unlicensed copies of an Apple operating system, or to
  1519. // circumvent, violate, or enable the circumvention or violation of, any
  1520. // terms of an Apple operating system software license agreement.
  1521. //
  1522. // Please obtain a copy of the License at
  1523. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1524. //
  1525. // The Original Code and all software distributed under the License are
  1526. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1527. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1528. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1529. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1530. // Please see the License for the specific language governing rights and
  1531. // limitations under the License.
  1532. //
  1533. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1534. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1535. // Copyright (c) 1991, 1993
  1536. // The Regents of the University of California. All rights reserved.
  1537. //
  1538. // This code is derived from software contributed to Berkeley by
  1539. // Berkeley Software Design, Inc.
  1540. //
  1541. // Redistribution and use in source and binary forms, with or without
  1542. // modification, are permitted provided that the following conditions
  1543. // are met:
  1544. // 1. Redistributions of source code must retain the above copyright
  1545. // notice, this list of conditions and the following disclaimer.
  1546. // 2. Redistributions in binary form must reproduce the above copyright
  1547. // notice, this list of conditions and the following disclaimer in the
  1548. // documentation and/or other materials provided with the distribution.
  1549. // 3. All advertising materials mentioning features or use of this software
  1550. // must display the following acknowledgement:
  1551. // This product includes software developed by the University of
  1552. // California, Berkeley and its contributors.
  1553. // 4. Neither the name of the University nor the names of its contributors
  1554. // may be used to endorse or promote products derived from this software
  1555. // without specific prior written permission.
  1556. //
  1557. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1558. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1559. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1560. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1561. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1562. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1563. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1564. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1565. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1566. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1567. // SUCH DAMAGE.
  1568. //
  1569. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1570. // pthread opaque structures
  1571. type X__darwin_pthread_handler_rec = struct {
  1572. F__routine uintptr
  1573. F__arg uintptr
  1574. F__next uintptr
  1575. } /* _pthread_types.h:57:1 */
  1576. type X_opaque_pthread_attr_t = struct {
  1577. F__sig int64
  1578. F__opaque [56]int8
  1579. } /* _pthread_types.h:63:1 */
  1580. type X_opaque_pthread_cond_t = struct {
  1581. F__sig int64
  1582. F__opaque [40]int8
  1583. } /* _pthread_types.h:68:1 */
  1584. type X_opaque_pthread_condattr_t = struct {
  1585. F__sig int64
  1586. F__opaque [8]int8
  1587. } /* _pthread_types.h:73:1 */
  1588. type X_opaque_pthread_mutex_t = struct {
  1589. F__sig int64
  1590. F__opaque [56]int8
  1591. } /* _pthread_types.h:78:1 */
  1592. type X_opaque_pthread_mutexattr_t = struct {
  1593. F__sig int64
  1594. F__opaque [8]int8
  1595. } /* _pthread_types.h:83:1 */
  1596. type X_opaque_pthread_once_t = struct {
  1597. F__sig int64
  1598. F__opaque [8]int8
  1599. } /* _pthread_types.h:88:1 */
  1600. type X_opaque_pthread_rwlock_t = struct {
  1601. F__sig int64
  1602. F__opaque [192]int8
  1603. } /* _pthread_types.h:93:1 */
  1604. type X_opaque_pthread_rwlockattr_t = struct {
  1605. F__sig int64
  1606. F__opaque [16]int8
  1607. } /* _pthread_types.h:98:1 */
  1608. type X_opaque_pthread_t = struct {
  1609. F__sig int64
  1610. F__cleanup_stack uintptr
  1611. F__opaque [8176]int8
  1612. } /* _pthread_types.h:103:1 */
  1613. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  1614. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  1615. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  1616. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  1617. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  1618. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  1619. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  1620. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  1621. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1622. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  1623. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1624. //
  1625. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1626. //
  1627. // This file contains Original Code and/or Modifications of Original Code
  1628. // as defined in and that are subject to the Apple Public Source License
  1629. // Version 2.0 (the 'License'). You may not use this file except in
  1630. // compliance with the License. The rights granted to you under the License
  1631. // may not be used to create, or enable the creation or redistribution of,
  1632. // unlawful or unlicensed copies of an Apple operating system, or to
  1633. // circumvent, violate, or enable the circumvention or violation of, any
  1634. // terms of an Apple operating system software license agreement.
  1635. //
  1636. // Please obtain a copy of the License at
  1637. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1638. //
  1639. // The Original Code and all software distributed under the License are
  1640. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1641. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1642. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1643. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1644. // Please see the License for the specific language governing rights and
  1645. // limitations under the License.
  1646. //
  1647. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1648. type U_char = uint8 /* _u_char.h:30:25 */
  1649. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1650. //
  1651. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1652. //
  1653. // This file contains Original Code and/or Modifications of Original Code
  1654. // as defined in and that are subject to the Apple Public Source License
  1655. // Version 2.0 (the 'License'). You may not use this file except in
  1656. // compliance with the License. The rights granted to you under the License
  1657. // may not be used to create, or enable the creation or redistribution of,
  1658. // unlawful or unlicensed copies of an Apple operating system, or to
  1659. // circumvent, violate, or enable the circumvention or violation of, any
  1660. // terms of an Apple operating system software license agreement.
  1661. //
  1662. // Please obtain a copy of the License at
  1663. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1664. //
  1665. // The Original Code and all software distributed under the License are
  1666. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1667. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1668. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1669. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1670. // Please see the License for the specific language governing rights and
  1671. // limitations under the License.
  1672. //
  1673. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1674. type U_short = uint16 /* _u_short.h:30:25 */
  1675. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1676. //
  1677. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1678. //
  1679. // This file contains Original Code and/or Modifications of Original Code
  1680. // as defined in and that are subject to the Apple Public Source License
  1681. // Version 2.0 (the 'License'). You may not use this file except in
  1682. // compliance with the License. The rights granted to you under the License
  1683. // may not be used to create, or enable the creation or redistribution of,
  1684. // unlawful or unlicensed copies of an Apple operating system, or to
  1685. // circumvent, violate, or enable the circumvention or violation of, any
  1686. // terms of an Apple operating system software license agreement.
  1687. //
  1688. // Please obtain a copy of the License at
  1689. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1690. //
  1691. // The Original Code and all software distributed under the License are
  1692. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1693. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1694. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1695. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1696. // Please see the License for the specific language governing rights and
  1697. // limitations under the License.
  1698. //
  1699. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1700. type U_int = uint32 /* _u_int.h:30:25 */
  1701. type U_long = uint64 /* types.h:88:33 */
  1702. type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  1703. type Uint = uint32 /* types.h:92:33 */ // Sys V compatibility
  1704. type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  1705. type Quad_t = Int64_t /* types.h:96:33 */
  1706. type Qaddr_t = uintptr /* types.h:97:16 */
  1707. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1708. //
  1709. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1710. //
  1711. // This file contains Original Code and/or Modifications of Original Code
  1712. // as defined in and that are subject to the Apple Public Source License
  1713. // Version 2.0 (the 'License'). You may not use this file except in
  1714. // compliance with the License. The rights granted to you under the License
  1715. // may not be used to create, or enable the creation or redistribution of,
  1716. // unlawful or unlicensed copies of an Apple operating system, or to
  1717. // circumvent, violate, or enable the circumvention or violation of, any
  1718. // terms of an Apple operating system software license agreement.
  1719. //
  1720. // Please obtain a copy of the License at
  1721. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1722. //
  1723. // The Original Code and all software distributed under the License are
  1724. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1725. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1726. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1727. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1728. // Please see the License for the specific language governing rights and
  1729. // limitations under the License.
  1730. //
  1731. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1732. type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  1733. type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
  1734. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1735. //
  1736. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1737. //
  1738. // This file contains Original Code and/or Modifications of Original Code
  1739. // as defined in and that are subject to the Apple Public Source License
  1740. // Version 2.0 (the 'License'). You may not use this file except in
  1741. // compliance with the License. The rights granted to you under the License
  1742. // may not be used to create, or enable the creation or redistribution of,
  1743. // unlawful or unlicensed copies of an Apple operating system, or to
  1744. // circumvent, violate, or enable the circumvention or violation of, any
  1745. // terms of an Apple operating system software license agreement.
  1746. //
  1747. // Please obtain a copy of the License at
  1748. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1749. //
  1750. // The Original Code and all software distributed under the License are
  1751. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1752. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1753. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1754. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1755. // Please see the License for the specific language governing rights and
  1756. // limitations under the License.
  1757. //
  1758. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1759. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1760. //
  1761. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1762. //
  1763. // This file contains Original Code and/or Modifications of Original Code
  1764. // as defined in and that are subject to the Apple Public Source License
  1765. // Version 2.0 (the 'License'). You may not use this file except in
  1766. // compliance with the License. The rights granted to you under the License
  1767. // may not be used to create, or enable the creation or redistribution of,
  1768. // unlawful or unlicensed copies of an Apple operating system, or to
  1769. // circumvent, violate, or enable the circumvention or violation of, any
  1770. // terms of an Apple operating system software license agreement.
  1771. //
  1772. // Please obtain a copy of the License at
  1773. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1774. //
  1775. // The Original Code and all software distributed under the License are
  1776. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1777. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1778. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1779. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1780. // Please see the License for the specific language governing rights and
  1781. // limitations under the License.
  1782. //
  1783. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1784. type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  1785. type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  1786. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1787. //
  1788. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1789. //
  1790. // This file contains Original Code and/or Modifications of Original Code
  1791. // as defined in and that are subject to the Apple Public Source License
  1792. // Version 2.0 (the 'License'). You may not use this file except in
  1793. // compliance with the License. The rights granted to you under the License
  1794. // may not be used to create, or enable the creation or redistribution of,
  1795. // unlawful or unlicensed copies of an Apple operating system, or to
  1796. // circumvent, violate, or enable the circumvention or violation of, any
  1797. // terms of an Apple operating system software license agreement.
  1798. //
  1799. // Please obtain a copy of the License at
  1800. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1801. //
  1802. // The Original Code and all software distributed under the License are
  1803. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1804. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1805. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1806. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1807. // Please see the License for the specific language governing rights and
  1808. // limitations under the License.
  1809. //
  1810. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1811. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1812. //
  1813. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1814. //
  1815. // This file contains Original Code and/or Modifications of Original Code
  1816. // as defined in and that are subject to the Apple Public Source License
  1817. // Version 2.0 (the 'License'). You may not use this file except in
  1818. // compliance with the License. The rights granted to you under the License
  1819. // may not be used to create, or enable the creation or redistribution of,
  1820. // unlawful or unlicensed copies of an Apple operating system, or to
  1821. // circumvent, violate, or enable the circumvention or violation of, any
  1822. // terms of an Apple operating system software license agreement.
  1823. //
  1824. // Please obtain a copy of the License at
  1825. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1826. //
  1827. // The Original Code and all software distributed under the License are
  1828. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1829. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1830. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1831. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1832. // Please see the License for the specific language governing rights and
  1833. // limitations under the License.
  1834. //
  1835. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1836. type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  1837. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1838. //
  1839. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1840. //
  1841. // This file contains Original Code and/or Modifications of Original Code
  1842. // as defined in and that are subject to the Apple Public Source License
  1843. // Version 2.0 (the 'License'). You may not use this file except in
  1844. // compliance with the License. The rights granted to you under the License
  1845. // may not be used to create, or enable the creation or redistribution of,
  1846. // unlawful or unlicensed copies of an Apple operating system, or to
  1847. // circumvent, violate, or enable the circumvention or violation of, any
  1848. // terms of an Apple operating system software license agreement.
  1849. //
  1850. // Please obtain a copy of the License at
  1851. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1852. //
  1853. // The Original Code and all software distributed under the License are
  1854. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1855. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1856. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1857. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1858. // Please see the License for the specific language governing rights and
  1859. // limitations under the License.
  1860. //
  1861. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1862. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1863. //
  1864. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1865. //
  1866. // This file contains Original Code and/or Modifications of Original Code
  1867. // as defined in and that are subject to the Apple Public Source License
  1868. // Version 2.0 (the 'License'). You may not use this file except in
  1869. // compliance with the License. The rights granted to you under the License
  1870. // may not be used to create, or enable the creation or redistribution of,
  1871. // unlawful or unlicensed copies of an Apple operating system, or to
  1872. // circumvent, violate, or enable the circumvention or violation of, any
  1873. // terms of an Apple operating system software license agreement.
  1874. //
  1875. // Please obtain a copy of the License at
  1876. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1877. //
  1878. // The Original Code and all software distributed under the License are
  1879. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1880. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1881. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1882. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1883. // Please see the License for the specific language governing rights and
  1884. // limitations under the License.
  1885. //
  1886. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1887. type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  1888. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1889. //
  1890. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1891. //
  1892. // This file contains Original Code and/or Modifications of Original Code
  1893. // as defined in and that are subject to the Apple Public Source License
  1894. // Version 2.0 (the 'License'). You may not use this file except in
  1895. // compliance with the License. The rights granted to you under the License
  1896. // may not be used to create, or enable the creation or redistribution of,
  1897. // unlawful or unlicensed copies of an Apple operating system, or to
  1898. // circumvent, violate, or enable the circumvention or violation of, any
  1899. // terms of an Apple operating system software license agreement.
  1900. //
  1901. // Please obtain a copy of the License at
  1902. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1903. //
  1904. // The Original Code and all software distributed under the License are
  1905. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1906. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1907. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1908. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1909. // Please see the License for the specific language governing rights and
  1910. // limitations under the License.
  1911. //
  1912. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1913. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1914. //
  1915. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1916. //
  1917. // This file contains Original Code and/or Modifications of Original Code
  1918. // as defined in and that are subject to the Apple Public Source License
  1919. // Version 2.0 (the 'License'). You may not use this file except in
  1920. // compliance with the License. The rights granted to you under the License
  1921. // may not be used to create, or enable the creation or redistribution of,
  1922. // unlawful or unlicensed copies of an Apple operating system, or to
  1923. // circumvent, violate, or enable the circumvention or violation of, any
  1924. // terms of an Apple operating system software license agreement.
  1925. //
  1926. // Please obtain a copy of the License at
  1927. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1928. //
  1929. // The Original Code and all software distributed under the License are
  1930. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1931. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1932. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1933. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1934. // Please see the License for the specific language governing rights and
  1935. // limitations under the License.
  1936. //
  1937. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1938. type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  1939. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1940. //
  1941. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1942. //
  1943. // This file contains Original Code and/or Modifications of Original Code
  1944. // as defined in and that are subject to the Apple Public Source License
  1945. // Version 2.0 (the 'License'). You may not use this file except in
  1946. // compliance with the License. The rights granted to you under the License
  1947. // may not be used to create, or enable the creation or redistribution of,
  1948. // unlawful or unlicensed copies of an Apple operating system, or to
  1949. // circumvent, violate, or enable the circumvention or violation of, any
  1950. // terms of an Apple operating system software license agreement.
  1951. //
  1952. // Please obtain a copy of the License at
  1953. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1954. //
  1955. // The Original Code and all software distributed under the License are
  1956. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1957. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1958. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1959. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1960. // Please see the License for the specific language governing rights and
  1961. // limitations under the License.
  1962. //
  1963. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1964. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1965. //
  1966. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1967. //
  1968. // This file contains Original Code and/or Modifications of Original Code
  1969. // as defined in and that are subject to the Apple Public Source License
  1970. // Version 2.0 (the 'License'). You may not use this file except in
  1971. // compliance with the License. The rights granted to you under the License
  1972. // may not be used to create, or enable the creation or redistribution of,
  1973. // unlawful or unlicensed copies of an Apple operating system, or to
  1974. // circumvent, violate, or enable the circumvention or violation of, any
  1975. // terms of an Apple operating system software license agreement.
  1976. //
  1977. // Please obtain a copy of the License at
  1978. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1979. //
  1980. // The Original Code and all software distributed under the License are
  1981. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1982. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1983. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1984. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1985. // Please see the License for the specific language governing rights and
  1986. // limitations under the License.
  1987. //
  1988. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1989. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1990. type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  1991. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1992. //
  1993. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1994. //
  1995. // This file contains Original Code and/or Modifications of Original Code
  1996. // as defined in and that are subject to the Apple Public Source License
  1997. // Version 2.0 (the 'License'). You may not use this file except in
  1998. // compliance with the License. The rights granted to you under the License
  1999. // may not be used to create, or enable the creation or redistribution of,
  2000. // unlawful or unlicensed copies of an Apple operating system, or to
  2001. // circumvent, violate, or enable the circumvention or violation of, any
  2002. // terms of an Apple operating system software license agreement.
  2003. //
  2004. // Please obtain a copy of the License at
  2005. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2006. //
  2007. // The Original Code and all software distributed under the License are
  2008. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2009. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2010. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2011. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2012. // Please see the License for the specific language governing rights and
  2013. // limitations under the License.
  2014. //
  2015. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2016. // Copyright (c) 2000-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 1995 NeXT Computer, Inc. All rights reserved.
  2042. type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  2043. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2044. //
  2045. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2046. //
  2047. // This file contains Original Code and/or Modifications of Original Code
  2048. // as defined in and that are subject to the Apple Public Source License
  2049. // Version 2.0 (the 'License'). You may not use this file except in
  2050. // compliance with the License. The rights granted to you under the License
  2051. // may not be used to create, or enable the creation or redistribution of,
  2052. // unlawful or unlicensed copies of an Apple operating system, or to
  2053. // circumvent, violate, or enable the circumvention or violation of, any
  2054. // terms of an Apple operating system software license agreement.
  2055. //
  2056. // Please obtain a copy of the License at
  2057. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2058. //
  2059. // The Original Code and all software distributed under the License are
  2060. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2061. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2062. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2063. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2064. // Please see the License for the specific language governing rights and
  2065. // limitations under the License.
  2066. //
  2067. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2068. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2069. //
  2070. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2071. //
  2072. // This file contains Original Code and/or Modifications of Original Code
  2073. // as defined in and that are subject to the Apple Public Source License
  2074. // Version 2.0 (the 'License'). You may not use this file except in
  2075. // compliance with the License. The rights granted to you under the License
  2076. // may not be used to create, or enable the creation or redistribution of,
  2077. // unlawful or unlicensed copies of an Apple operating system, or to
  2078. // circumvent, violate, or enable the circumvention or violation of, any
  2079. // terms of an Apple operating system software license agreement.
  2080. //
  2081. // Please obtain a copy of the License at
  2082. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2083. //
  2084. // The Original Code and all software distributed under the License are
  2085. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2086. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2087. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2088. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2089. // Please see the License for the specific language governing rights and
  2090. // limitations under the License.
  2091. //
  2092. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2093. type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  2094. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2095. //
  2096. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2097. //
  2098. // This file contains Original Code and/or Modifications of Original Code
  2099. // as defined in and that are subject to the Apple Public Source License
  2100. // Version 2.0 (the 'License'). You may not use this file except in
  2101. // compliance with the License. The rights granted to you under the License
  2102. // may not be used to create, or enable the creation or redistribution of,
  2103. // unlawful or unlicensed copies of an Apple operating system, or to
  2104. // circumvent, violate, or enable the circumvention or violation of, any
  2105. // terms of an Apple operating system software license agreement.
  2106. //
  2107. // Please obtain a copy of the License at
  2108. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2109. //
  2110. // The Original Code and all software distributed under the License are
  2111. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2112. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2113. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2114. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2115. // Please see the License for the specific language governing rights and
  2116. // limitations under the License.
  2117. //
  2118. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2119. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2120. //
  2121. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2122. //
  2123. // This file contains Original Code and/or Modifications of Original Code
  2124. // as defined in and that are subject to the Apple Public Source License
  2125. // Version 2.0 (the 'License'). You may not use this file except in
  2126. // compliance with the License. The rights granted to you under the License
  2127. // may not be used to create, or enable the creation or redistribution of,
  2128. // unlawful or unlicensed copies of an Apple operating system, or to
  2129. // circumvent, violate, or enable the circumvention or violation of, any
  2130. // terms of an Apple operating system software license agreement.
  2131. //
  2132. // Please obtain a copy of the License at
  2133. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2134. //
  2135. // The Original Code and all software distributed under the License are
  2136. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2137. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2138. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2139. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2140. // Please see the License for the specific language governing rights and
  2141. // limitations under the License.
  2142. //
  2143. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2144. type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  2145. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2146. //
  2147. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2148. //
  2149. // This file contains Original Code and/or Modifications of Original Code
  2150. // as defined in and that are subject to the Apple Public Source License
  2151. // Version 2.0 (the 'License'). You may not use this file except in
  2152. // compliance with the License. The rights granted to you under the License
  2153. // may not be used to create, or enable the creation or redistribution of,
  2154. // unlawful or unlicensed copies of an Apple operating system, or to
  2155. // circumvent, violate, or enable the circumvention or violation of, any
  2156. // terms of an Apple operating system software license agreement.
  2157. //
  2158. // Please obtain a copy of the License at
  2159. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2160. //
  2161. // The Original Code and all software distributed under the License are
  2162. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2163. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2164. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2165. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2166. // Please see the License for the specific language governing rights and
  2167. // limitations under the License.
  2168. //
  2169. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2170. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2171. //
  2172. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2173. //
  2174. // This file contains Original Code and/or Modifications of Original Code
  2175. // as defined in and that are subject to the Apple Public Source License
  2176. // Version 2.0 (the 'License'). You may not use this file except in
  2177. // compliance with the License. The rights granted to you under the License
  2178. // may not be used to create, or enable the creation or redistribution of,
  2179. // unlawful or unlicensed copies of an Apple operating system, or to
  2180. // circumvent, violate, or enable the circumvention or violation of, any
  2181. // terms of an Apple operating system software license agreement.
  2182. //
  2183. // Please obtain a copy of the License at
  2184. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2185. //
  2186. // The Original Code and all software distributed under the License are
  2187. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2188. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2189. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2190. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2191. // Please see the License for the specific language governing rights and
  2192. // limitations under the License.
  2193. //
  2194. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2195. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2196. type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  2197. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2198. //
  2199. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2200. //
  2201. // This file contains Original Code and/or Modifications of Original Code
  2202. // as defined in and that are subject to the Apple Public Source License
  2203. // Version 2.0 (the 'License'). You may not use this file except in
  2204. // compliance with the License. The rights granted to you under the License
  2205. // may not be used to create, or enable the creation or redistribution of,
  2206. // unlawful or unlicensed copies of an Apple operating system, or to
  2207. // circumvent, violate, or enable the circumvention or violation of, any
  2208. // terms of an Apple operating system software license agreement.
  2209. //
  2210. // Please obtain a copy of the License at
  2211. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2212. //
  2213. // The Original Code and all software distributed under the License are
  2214. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2215. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2216. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2217. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2218. // Please see the License for the specific language governing rights and
  2219. // limitations under the License.
  2220. //
  2221. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2222. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2223. //
  2224. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2225. //
  2226. // This file contains Original Code and/or Modifications of Original Code
  2227. // as defined in and that are subject to the Apple Public Source License
  2228. // Version 2.0 (the 'License'). You may not use this file except in
  2229. // compliance with the License. The rights granted to you under the License
  2230. // may not be used to create, or enable the creation or redistribution of,
  2231. // unlawful or unlicensed copies of an Apple operating system, or to
  2232. // circumvent, violate, or enable the circumvention or violation of, any
  2233. // terms of an Apple operating system software license agreement.
  2234. //
  2235. // Please obtain a copy of the License at
  2236. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2237. //
  2238. // The Original Code and all software distributed under the License are
  2239. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2240. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2241. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2242. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2243. // Please see the License for the specific language governing rights and
  2244. // limitations under the License.
  2245. //
  2246. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2247. type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  2248. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2249. //
  2250. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2251. //
  2252. // This file contains Original Code and/or Modifications of Original Code
  2253. // as defined in and that are subject to the Apple Public Source License
  2254. // Version 2.0 (the 'License'). You may not use this file except in
  2255. // compliance with the License. The rights granted to you under the License
  2256. // may not be used to create, or enable the creation or redistribution of,
  2257. // unlawful or unlicensed copies of an Apple operating system, or to
  2258. // circumvent, violate, or enable the circumvention or violation of, any
  2259. // terms of an Apple operating system software license agreement.
  2260. //
  2261. // Please obtain a copy of the License at
  2262. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2263. //
  2264. // The Original Code and all software distributed under the License are
  2265. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2266. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2267. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2268. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2269. // Please see the License for the specific language governing rights and
  2270. // limitations under the License.
  2271. //
  2272. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2273. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2274. //
  2275. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2276. //
  2277. // This file contains Original Code and/or Modifications of Original Code
  2278. // as defined in and that are subject to the Apple Public Source License
  2279. // Version 2.0 (the 'License'). You may not use this file except in
  2280. // compliance with the License. The rights granted to you under the License
  2281. // may not be used to create, or enable the creation or redistribution of,
  2282. // unlawful or unlicensed copies of an Apple operating system, or to
  2283. // circumvent, violate, or enable the circumvention or violation of, any
  2284. // terms of an Apple operating system software license agreement.
  2285. //
  2286. // Please obtain a copy of the License at
  2287. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2288. //
  2289. // The Original Code and all software distributed under the License are
  2290. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2291. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2292. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2293. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2294. // Please see the License for the specific language governing rights and
  2295. // limitations under the License.
  2296. //
  2297. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2298. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2299. type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  2300. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2301. //
  2302. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2303. //
  2304. // This file contains Original Code and/or Modifications of Original Code
  2305. // as defined in and that are subject to the Apple Public Source License
  2306. // Version 2.0 (the 'License'). You may not use this file except in
  2307. // compliance with the License. The rights granted to you under the License
  2308. // may not be used to create, or enable the creation or redistribution of,
  2309. // unlawful or unlicensed copies of an Apple operating system, or to
  2310. // circumvent, violate, or enable the circumvention or violation of, any
  2311. // terms of an Apple operating system software license agreement.
  2312. //
  2313. // Please obtain a copy of the License at
  2314. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2315. //
  2316. // The Original Code and all software distributed under the License are
  2317. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2318. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2319. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2320. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2321. // Please see the License for the specific language governing rights and
  2322. // limitations under the License.
  2323. //
  2324. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2325. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2326. //
  2327. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2328. //
  2329. // This file contains Original Code and/or Modifications of Original Code
  2330. // as defined in and that are subject to the Apple Public Source License
  2331. // Version 2.0 (the 'License'). You may not use this file except in
  2332. // compliance with the License. The rights granted to you under the License
  2333. // may not be used to create, or enable the creation or redistribution of,
  2334. // unlawful or unlicensed copies of an Apple operating system, or to
  2335. // circumvent, violate, or enable the circumvention or violation of, any
  2336. // terms of an Apple operating system software license agreement.
  2337. //
  2338. // Please obtain a copy of the License at
  2339. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2340. //
  2341. // The Original Code and all software distributed under the License are
  2342. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2343. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2344. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2345. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2346. // Please see the License for the specific language governing rights and
  2347. // limitations under the License.
  2348. //
  2349. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2350. type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  2351. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2352. //
  2353. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2354. //
  2355. // This file contains Original Code and/or Modifications of Original Code
  2356. // as defined in and that are subject to the Apple Public Source License
  2357. // Version 2.0 (the 'License'). You may not use this file except in
  2358. // compliance with the License. The rights granted to you under the License
  2359. // may not be used to create, or enable the creation or redistribution of,
  2360. // unlawful or unlicensed copies of an Apple operating system, or to
  2361. // circumvent, violate, or enable the circumvention or violation of, any
  2362. // terms of an Apple operating system software license agreement.
  2363. //
  2364. // Please obtain a copy of the License at
  2365. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2366. //
  2367. // The Original Code and all software distributed under the License are
  2368. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2369. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2370. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2371. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2372. // Please see the License for the specific language governing rights and
  2373. // limitations under the License.
  2374. //
  2375. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2376. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2377. //
  2378. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2379. //
  2380. // This file contains Original Code and/or Modifications of Original Code
  2381. // as defined in and that are subject to the Apple Public Source License
  2382. // Version 2.0 (the 'License'). You may not use this file except in
  2383. // compliance with the License. The rights granted to you under the License
  2384. // may not be used to create, or enable the creation or redistribution of,
  2385. // unlawful or unlicensed copies of an Apple operating system, or to
  2386. // circumvent, violate, or enable the circumvention or violation of, any
  2387. // terms of an Apple operating system software license agreement.
  2388. //
  2389. // Please obtain a copy of the License at
  2390. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2391. //
  2392. // The Original Code and all software distributed under the License are
  2393. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2394. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2395. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2396. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2397. // Please see the License for the specific language governing rights and
  2398. // limitations under the License.
  2399. //
  2400. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2401. type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  2402. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2403. //
  2404. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2405. //
  2406. // This file contains Original Code and/or Modifications of Original Code
  2407. // as defined in and that are subject to the Apple Public Source License
  2408. // Version 2.0 (the 'License'). You may not use this file except in
  2409. // compliance with the License. The rights granted to you under the License
  2410. // may not be used to create, or enable the creation or redistribution of,
  2411. // unlawful or unlicensed copies of an Apple operating system, or to
  2412. // circumvent, violate, or enable the circumvention or violation of, any
  2413. // terms of an Apple operating system software license agreement.
  2414. //
  2415. // Please obtain a copy of the License at
  2416. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2417. //
  2418. // The Original Code and all software distributed under the License are
  2419. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2420. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2421. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2422. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2423. // Please see the License for the specific language governing rights and
  2424. // limitations under the License.
  2425. //
  2426. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2427. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2428. //
  2429. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2430. //
  2431. // This file contains Original Code and/or Modifications of Original Code
  2432. // as defined in and that are subject to the Apple Public Source License
  2433. // Version 2.0 (the 'License'). You may not use this file except in
  2434. // compliance with the License. The rights granted to you under the License
  2435. // may not be used to create, or enable the creation or redistribution of,
  2436. // unlawful or unlicensed copies of an Apple operating system, or to
  2437. // circumvent, violate, or enable the circumvention or violation of, any
  2438. // terms of an Apple operating system software license agreement.
  2439. //
  2440. // Please obtain a copy of the License at
  2441. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2442. //
  2443. // The Original Code and all software distributed under the License are
  2444. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2445. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2446. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2447. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2448. // Please see the License for the specific language governing rights and
  2449. // limitations under the License.
  2450. //
  2451. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2452. type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  2453. type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  2454. type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
  2455. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2456. //
  2457. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2458. //
  2459. // This file contains Original Code and/or Modifications of Original Code
  2460. // as defined in and that are subject to the Apple Public Source License
  2461. // Version 2.0 (the 'License'). You may not use this file except in
  2462. // compliance with the License. The rights granted to you under the License
  2463. // may not be used to create, or enable the creation or redistribution of,
  2464. // unlawful or unlicensed copies of an Apple operating system, or to
  2465. // circumvent, violate, or enable the circumvention or violation of, any
  2466. // terms of an Apple operating system software license agreement.
  2467. //
  2468. // Please obtain a copy of the License at
  2469. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2470. //
  2471. // The Original Code and all software distributed under the License are
  2472. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2473. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2474. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2475. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2476. // Please see the License for the specific language governing rights and
  2477. // limitations under the License.
  2478. //
  2479. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2480. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2481. //
  2482. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2483. //
  2484. // This file contains Original Code and/or Modifications of Original Code
  2485. // as defined in and that are subject to the Apple Public Source License
  2486. // Version 2.0 (the 'License'). You may not use this file except in
  2487. // compliance with the License. The rights granted to you under the License
  2488. // may not be used to create, or enable the creation or redistribution of,
  2489. // unlawful or unlicensed copies of an Apple operating system, or to
  2490. // circumvent, violate, or enable the circumvention or violation of, any
  2491. // terms of an Apple operating system software license agreement.
  2492. //
  2493. // Please obtain a copy of the License at
  2494. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2495. //
  2496. // The Original Code and all software distributed under the License are
  2497. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2498. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2499. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2500. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2501. // Please see the License for the specific language governing rights and
  2502. // limitations under the License.
  2503. //
  2504. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2505. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  2506. // Major, minor numbers, dev_t's.
  2507. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2508. //
  2509. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2510. //
  2511. // This file contains Original Code and/or Modifications of Original Code
  2512. // as defined in and that are subject to the Apple Public Source License
  2513. // Version 2.0 (the 'License'). You may not use this file except in
  2514. // compliance with the License. The rights granted to you under the License
  2515. // may not be used to create, or enable the creation or redistribution of,
  2516. // unlawful or unlicensed copies of an Apple operating system, or to
  2517. // circumvent, violate, or enable the circumvention or violation of, any
  2518. // terms of an Apple operating system software license agreement.
  2519. //
  2520. // Please obtain a copy of the License at
  2521. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2522. //
  2523. // The Original Code and all software distributed under the License are
  2524. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2525. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2526. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2527. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2528. // Please see the License for the specific language governing rights and
  2529. // limitations under the License.
  2530. //
  2531. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2532. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2533. //
  2534. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2535. //
  2536. // This file contains Original Code and/or Modifications of Original Code
  2537. // as defined in and that are subject to the Apple Public Source License
  2538. // Version 2.0 (the 'License'). You may not use this file except in
  2539. // compliance with the License. The rights granted to you under the License
  2540. // may not be used to create, or enable the creation or redistribution of,
  2541. // unlawful or unlicensed copies of an Apple operating system, or to
  2542. // circumvent, violate, or enable the circumvention or violation of, any
  2543. // terms of an Apple operating system software license agreement.
  2544. //
  2545. // Please obtain a copy of the License at
  2546. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2547. //
  2548. // The Original Code and all software distributed under the License are
  2549. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2550. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2551. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2552. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2553. // Please see the License for the specific language governing rights and
  2554. // limitations under the License.
  2555. //
  2556. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2557. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2558. type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  2559. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2560. //
  2561. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2562. //
  2563. // This file contains Original Code and/or Modifications of Original Code
  2564. // as defined in and that are subject to the Apple Public Source License
  2565. // Version 2.0 (the 'License'). You may not use this file except in
  2566. // compliance with the License. The rights granted to you under the License
  2567. // may not be used to create, or enable the creation or redistribution of,
  2568. // unlawful or unlicensed copies of an Apple operating system, or to
  2569. // circumvent, violate, or enable the circumvention or violation of, any
  2570. // terms of an Apple operating system software license agreement.
  2571. //
  2572. // Please obtain a copy of the License at
  2573. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2574. //
  2575. // The Original Code and all software distributed under the License are
  2576. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2577. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2578. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2579. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2580. // Please see the License for the specific language governing rights and
  2581. // limitations under the License.
  2582. //
  2583. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2584. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2585. //
  2586. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2587. //
  2588. // This file contains Original Code and/or Modifications of Original Code
  2589. // as defined in and that are subject to the Apple Public Source License
  2590. // Version 2.0 (the 'License'). You may not use this file except in
  2591. // compliance with the License. The rights granted to you under the License
  2592. // may not be used to create, or enable the creation or redistribution of,
  2593. // unlawful or unlicensed copies of an Apple operating system, or to
  2594. // circumvent, violate, or enable the circumvention or violation of, any
  2595. // terms of an Apple operating system software license agreement.
  2596. //
  2597. // Please obtain a copy of the License at
  2598. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2599. //
  2600. // The Original Code and all software distributed under the License are
  2601. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2602. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2603. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2604. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2605. // Please see the License for the specific language governing rights and
  2606. // limitations under the License.
  2607. //
  2608. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2609. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2610. type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  2611. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2612. //
  2613. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2614. //
  2615. // This file contains Original Code and/or Modifications of Original Code
  2616. // as defined in and that are subject to the Apple Public Source License
  2617. // Version 2.0 (the 'License'). You may not use this file except in
  2618. // compliance with the License. The rights granted to you under the License
  2619. // may not be used to create, or enable the creation or redistribution of,
  2620. // unlawful or unlicensed copies of an Apple operating system, or to
  2621. // circumvent, violate, or enable the circumvention or violation of, any
  2622. // terms of an Apple operating system software license agreement.
  2623. //
  2624. // Please obtain a copy of the License at
  2625. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2626. //
  2627. // The Original Code and all software distributed under the License are
  2628. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2629. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2630. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2631. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2632. // Please see the License for the specific language governing rights and
  2633. // limitations under the License.
  2634. //
  2635. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2636. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2637. //
  2638. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2639. //
  2640. // This file contains Original Code and/or Modifications of Original Code
  2641. // as defined in and that are subject to the Apple Public Source License
  2642. // Version 2.0 (the 'License'). You may not use this file except in
  2643. // compliance with the License. The rights granted to you under the License
  2644. // may not be used to create, or enable the creation or redistribution of,
  2645. // unlawful or unlicensed copies of an Apple operating system, or to
  2646. // circumvent, violate, or enable the circumvention or violation of, any
  2647. // terms of an Apple operating system software license agreement.
  2648. //
  2649. // Please obtain a copy of the License at
  2650. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2651. //
  2652. // The Original Code and all software distributed under the License are
  2653. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2654. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2655. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2656. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2657. // Please see the License for the specific language governing rights and
  2658. // limitations under the License.
  2659. //
  2660. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2661. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2662. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2663. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2664. //
  2665. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2666. //
  2667. // This file contains Original Code and/or Modifications of Original Code
  2668. // as defined in and that are subject to the Apple Public Source License
  2669. // Version 2.0 (the 'License'). You may not use this file except in
  2670. // compliance with the License. The rights granted to you under the License
  2671. // may not be used to create, or enable the creation or redistribution of,
  2672. // unlawful or unlicensed copies of an Apple operating system, or to
  2673. // circumvent, violate, or enable the circumvention or violation of, any
  2674. // terms of an Apple operating system software license agreement.
  2675. //
  2676. // Please obtain a copy of the License at
  2677. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2678. //
  2679. // The Original Code and all software distributed under the License are
  2680. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2681. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2682. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2683. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2684. // Please see the License for the specific language governing rights and
  2685. // limitations under the License.
  2686. //
  2687. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2688. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2689. //
  2690. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2691. //
  2692. // This file contains Original Code and/or Modifications of Original Code
  2693. // as defined in and that are subject to the Apple Public Source License
  2694. // Version 2.0 (the 'License'). You may not use this file except in
  2695. // compliance with the License. The rights granted to you under the License
  2696. // may not be used to create, or enable the creation or redistribution of,
  2697. // unlawful or unlicensed copies of an Apple operating system, or to
  2698. // circumvent, violate, or enable the circumvention or violation of, any
  2699. // terms of an Apple operating system software license agreement.
  2700. //
  2701. // Please obtain a copy of the License at
  2702. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2703. //
  2704. // The Original Code and all software distributed under the License are
  2705. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2706. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2707. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2708. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2709. // Please see the License for the specific language governing rights and
  2710. // limitations under the License.
  2711. //
  2712. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2713. type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  2714. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2715. //
  2716. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2717. //
  2718. // This file contains Original Code and/or Modifications of Original Code
  2719. // as defined in and that are subject to the Apple Public Source License
  2720. // Version 2.0 (the 'License'). You may not use this file except in
  2721. // compliance with the License. The rights granted to you under the License
  2722. // may not be used to create, or enable the creation or redistribution of,
  2723. // unlawful or unlicensed copies of an Apple operating system, or to
  2724. // circumvent, violate, or enable the circumvention or violation of, any
  2725. // terms of an Apple operating system software license agreement.
  2726. //
  2727. // Please obtain a copy of the License at
  2728. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2729. //
  2730. // The Original Code and all software distributed under the License are
  2731. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2732. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2733. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2734. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2735. // Please see the License for the specific language governing rights and
  2736. // limitations under the License.
  2737. //
  2738. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2739. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2740. //
  2741. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2742. //
  2743. // This file contains Original Code and/or Modifications of Original Code
  2744. // as defined in and that are subject to the Apple Public Source License
  2745. // Version 2.0 (the 'License'). You may not use this file except in
  2746. // compliance with the License. The rights granted to you under the License
  2747. // may not be used to create, or enable the creation or redistribution of,
  2748. // unlawful or unlicensed copies of an Apple operating system, or to
  2749. // circumvent, violate, or enable the circumvention or violation of, any
  2750. // terms of an Apple operating system software license agreement.
  2751. //
  2752. // Please obtain a copy of the License at
  2753. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2754. //
  2755. // The Original Code and all software distributed under the License are
  2756. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2757. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2758. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2759. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2760. // Please see the License for the specific language governing rights and
  2761. // limitations under the License.
  2762. //
  2763. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2764. type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  2765. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2766. //
  2767. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2768. //
  2769. // This file contains Original Code and/or Modifications of Original Code
  2770. // as defined in and that are subject to the Apple Public Source License
  2771. // Version 2.0 (the 'License'). You may not use this file except in
  2772. // compliance with the License. The rights granted to you under the License
  2773. // may not be used to create, or enable the creation or redistribution of,
  2774. // unlawful or unlicensed copies of an Apple operating system, or to
  2775. // circumvent, violate, or enable the circumvention or violation of, any
  2776. // terms of an Apple operating system software license agreement.
  2777. //
  2778. // Please obtain a copy of the License at
  2779. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2780. //
  2781. // The Original Code and all software distributed under the License are
  2782. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2783. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2784. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2785. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2786. // Please see the License for the specific language governing rights and
  2787. // limitations under the License.
  2788. //
  2789. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2790. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2791. //
  2792. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2793. //
  2794. // This file contains Original Code and/or Modifications of Original Code
  2795. // as defined in and that are subject to the Apple Public Source License
  2796. // Version 2.0 (the 'License'). You may not use this file except in
  2797. // compliance with the License. The rights granted to you under the License
  2798. // may not be used to create, or enable the creation or redistribution of,
  2799. // unlawful or unlicensed copies of an Apple operating system, or to
  2800. // circumvent, violate, or enable the circumvention or violation of, any
  2801. // terms of an Apple operating system software license agreement.
  2802. //
  2803. // Please obtain a copy of the License at
  2804. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2805. //
  2806. // The Original Code and all software distributed under the License are
  2807. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2808. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2809. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2810. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2811. // Please see the License for the specific language governing rights and
  2812. // limitations under the License.
  2813. //
  2814. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2815. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2816. type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  2817. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2818. //
  2819. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2820. //
  2821. // This file contains Original Code and/or Modifications of Original Code
  2822. // as defined in and that are subject to the Apple Public Source License
  2823. // Version 2.0 (the 'License'). You may not use this file except in
  2824. // compliance with the License. The rights granted to you under the License
  2825. // may not be used to create, or enable the creation or redistribution of,
  2826. // unlawful or unlicensed copies of an Apple operating system, or to
  2827. // circumvent, violate, or enable the circumvention or violation of, any
  2828. // terms of an Apple operating system software license agreement.
  2829. //
  2830. // Please obtain a copy of the License at
  2831. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2832. //
  2833. // The Original Code and all software distributed under the License are
  2834. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2835. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2836. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2837. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2838. // Please see the License for the specific language governing rights and
  2839. // limitations under the License.
  2840. //
  2841. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2842. type Errno_t = int32 /* _errno_t.h:30:32 */
  2843. // This code is present here in order to maintain historical backward
  2844. // compatability, and is intended to be removed at some point in the
  2845. // future; please include <sys/select.h> instead.
  2846. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2847. //
  2848. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2849. //
  2850. // This file contains Original Code and/or Modifications of Original Code
  2851. // as defined in and that are subject to the Apple Public Source License
  2852. // Version 2.0 (the 'License'). You may not use this file except in
  2853. // compliance with the License. The rights granted to you under the License
  2854. // may not be used to create, or enable the creation or redistribution of,
  2855. // unlawful or unlicensed copies of an Apple operating system, or to
  2856. // circumvent, violate, or enable the circumvention or violation of, any
  2857. // terms of an Apple operating system software license agreement.
  2858. //
  2859. // Please obtain a copy of the License at
  2860. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2861. //
  2862. // The Original Code and all software distributed under the License are
  2863. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2864. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2865. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2866. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2867. // Please see the License for the specific language governing rights and
  2868. // limitations under the License.
  2869. //
  2870. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2871. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2872. //
  2873. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2874. //
  2875. // This file contains Original Code and/or Modifications of Original Code
  2876. // as defined in and that are subject to the Apple Public Source License
  2877. // Version 2.0 (the 'License'). You may not use this file except in
  2878. // compliance with the License. The rights granted to you under the License
  2879. // may not be used to create, or enable the creation or redistribution of,
  2880. // unlawful or unlicensed copies of an Apple operating system, or to
  2881. // circumvent, violate, or enable the circumvention or violation of, any
  2882. // terms of an Apple operating system software license agreement.
  2883. //
  2884. // Please obtain a copy of the License at
  2885. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2886. //
  2887. // The Original Code and all software distributed under the License are
  2888. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2889. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2890. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2891. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2892. // Please see the License for the specific language governing rights and
  2893. // limitations under the License.
  2894. //
  2895. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2896. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2897. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2898. //
  2899. // @APPLE_LICENSE_HEADER_START@
  2900. //
  2901. // This file contains Original Code and/or Modifications of Original Code
  2902. // as defined in and that are subject to the Apple Public Source License
  2903. // Version 2.0 (the 'License'). You may not use this file except in
  2904. // compliance with the License. Please obtain a copy of the License at
  2905. // http://www.opensource.apple.com/apsl/ and read it before using this
  2906. // file.
  2907. //
  2908. // The Original Code and all software distributed under the License are
  2909. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2910. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2911. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2912. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2913. // Please see the License for the specific language governing rights and
  2914. // limitations under the License.
  2915. //
  2916. // @APPLE_LICENSE_HEADER_END@
  2917. //
  2918. // These macros are for use in OS header files. They enable function prototypes
  2919. // and Objective-C methods to be tagged with the OS version in which they
  2920. // were first available; and, if applicable, the OS version in which they
  2921. // became deprecated.
  2922. //
  2923. // The desktop Mac OS X and iOS each have different version numbers.
  2924. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  2925. // and iOS version numbers. For instance:
  2926. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  2927. // means the function/method was first available on Mac OS X 10.2 on the desktop
  2928. // and first available in iOS 2.0 on the iPhone.
  2929. //
  2930. // If a function is available on one platform, but not the other a _NA (not
  2931. // applicable) parameter is used. For instance:
  2932. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  2933. // means that the function/method was first available on Mac OS X 10.3, and it
  2934. // currently not implemented on the iPhone.
  2935. //
  2936. // At some point, a function/method may be deprecated. That means Apple
  2937. // recommends applications stop using the function, either because there is a
  2938. // better replacement or the functionality is being phased out. Deprecated
  2939. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  2940. // macro which specifies the OS version where the function became available
  2941. // as well as the OS version in which it became deprecated. For instance:
  2942. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  2943. // means that the function/method was introduced in Mac OS X 10.0, then
  2944. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  2945. // has never been available.
  2946. //
  2947. // For these macros to function properly, a program must specify the OS version range
  2948. // it is targeting. The min OS version is specified as an option to the compiler:
  2949. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  2950. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  2951. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  2952. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  2953. //
  2954. // Examples:
  2955. //
  2956. // A function available in Mac OS X 10.5 and later, but not on the phone:
  2957. //
  2958. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  2959. //
  2960. //
  2961. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  2962. //
  2963. // @interface MyClass : NSObject
  2964. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  2965. // @end
  2966. //
  2967. //
  2968. // An enum available on the phone, but not available on Mac OS X:
  2969. //
  2970. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  2971. // enum { myEnum = 1 };
  2972. // #endif
  2973. // Note: this works when targeting the Mac OS X platform because
  2974. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  2975. //
  2976. //
  2977. // An enum with values added in different iPhoneOS versions:
  2978. //
  2979. // enum {
  2980. // myX = 1, // Usable on iPhoneOS 2.1 and later
  2981. // myY = 2, // Usable on iPhoneOS 3.0 and later
  2982. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  2983. // ...
  2984. // Note: you do not want to use #if with enumeration values
  2985. // when a client needs to see all values at compile time
  2986. // and use runtime logic to only use the viable values.
  2987. //
  2988. //
  2989. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  2990. // source base that can be compiled to target a range of OS versions. It is best
  2991. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  2992. // That is because you might get compiled on an old OS that does not define a later
  2993. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  2994. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  2995. // way.
  2996. //
  2997. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  2998. // // code only compiled when targeting Mac OS X and not iPhone
  2999. // // note use of 1050 instead of __MAC_10_5
  3000. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  3001. // // code in here might run on pre-Leopard OS
  3002. // #else
  3003. // // code here can assume Leopard or later
  3004. // #endif
  3005. // #endif
  3006. //
  3007. //
  3008. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  3009. // in an upcoming release. This soft deprecation is an intermediate step before formal
  3010. // deprecation to notify developers about the API before compiler warnings are generated.
  3011. // You can find all places in your code that use soft deprecated API by redefining the
  3012. // value of this macro to your current minimum deployment target, for example:
  3013. // (macOS)
  3014. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  3015. // (iOS)
  3016. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  3017. // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  3018. // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  3019. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3020. //
  3021. // @APPLE_LICENSE_HEADER_START@
  3022. //
  3023. // This file contains Original Code and/or Modifications of Original Code
  3024. // as defined in and that are subject to the Apple Public Source License
  3025. // Version 2.0 (the 'License'). You may not use this file except in
  3026. // compliance with the License. Please obtain a copy of the License at
  3027. // http://www.opensource.apple.com/apsl/ and read it before using this
  3028. // file.
  3029. //
  3030. // The Original Code and all software distributed under the License are
  3031. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3032. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3033. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3034. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3035. // Please see the License for the specific language governing rights and
  3036. // limitations under the License.
  3037. //
  3038. // @APPLE_LICENSE_HEADER_END@
  3039. //
  3040. // File: AvailabilityInternal.h
  3041. //
  3042. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  3043. //
  3044. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  3045. // make sure a default max version is set
  3046. //
  3047. // Macros for defining which versions/platform a given symbol can be used.
  3048. //
  3049. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3050. //
  3051. // Evaluate to nothing for compilers that don't support availability.
  3052. // Swift compiler version
  3053. // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  3054. // Example:
  3055. //
  3056. // #if __swift_compiler_version_at_least(800, 2, 20)
  3057. // - (nonnull NSString *)description;
  3058. // #else
  3059. // - (NSString *)description;
  3060. // #endif
  3061. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  3062. // for use to document app extension usage
  3063. // for use marking APIs available info for Mac OSX
  3064. // for use marking APIs available info for iOS
  3065. // for use marking APIs available info for tvOS
  3066. // for use marking APIs available info for Watch OS
  3067. // for use marking APIs unavailable for swift
  3068. //
  3069. // Macros for defining which versions/platform a given symbol can be used.
  3070. //
  3071. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3072. //
  3073. // * Note that these macros are only compatible with clang compilers that
  3074. // * support the following target selection options:
  3075. // *
  3076. // * -mmacosx-version-min
  3077. // * -miphoneos-version-min
  3078. // * -mwatchos-version-min
  3079. // * -mtvos-version-min
  3080. //
  3081. // Evaluate to nothing for compilers that don't support availability.
  3082. // If SPI decorations have not been defined elsewhere, disable them.
  3083. // Select uses bit masks of file descriptors in longs. These macros
  3084. // manipulate such bit fields (the filesystem macros use chars). The
  3085. // extra protection here is to permit application redefinition above
  3086. // the default size.
  3087. type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  3088. // This code is present here in order to maintain historical backward
  3089. // compatability, and is intended to be removed at some point in the
  3090. // future; please include <sys/select.h> instead.
  3091. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3092. //
  3093. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3094. //
  3095. // This file contains Original Code and/or Modifications of Original Code
  3096. // as defined in and that are subject to the Apple Public Source License
  3097. // Version 2.0 (the 'License'). You may not use this file except in
  3098. // compliance with the License. The rights granted to you under the License
  3099. // may not be used to create, or enable the creation or redistribution of,
  3100. // unlawful or unlicensed copies of an Apple operating system, or to
  3101. // circumvent, violate, or enable the circumvention or violation of, any
  3102. // terms of an Apple operating system software license agreement.
  3103. //
  3104. // Please obtain a copy of the License at
  3105. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3106. //
  3107. // The Original Code and all software distributed under the License are
  3108. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3109. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3110. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3111. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3112. // Please see the License for the specific language governing rights and
  3113. // limitations under the License.
  3114. //
  3115. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3116. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3117. //
  3118. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3119. //
  3120. // This file contains Original Code and/or Modifications of Original Code
  3121. // as defined in and that are subject to the Apple Public Source License
  3122. // Version 2.0 (the 'License'). You may not use this file except in
  3123. // compliance with the License. The rights granted to you under the License
  3124. // may not be used to create, or enable the creation or redistribution of,
  3125. // unlawful or unlicensed copies of an Apple operating system, or to
  3126. // circumvent, violate, or enable the circumvention or violation of, any
  3127. // terms of an Apple operating system software license agreement.
  3128. //
  3129. // Please obtain a copy of the License at
  3130. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3131. //
  3132. // The Original Code and all software distributed under the License are
  3133. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3134. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3135. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3136. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3137. // Please see the License for the specific language governing rights and
  3138. // limitations under the License.
  3139. //
  3140. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3141. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3142. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3143. //
  3144. // @APPLE_LICENSE_HEADER_START@
  3145. //
  3146. // This file contains Original Code and/or Modifications of Original Code
  3147. // as defined in and that are subject to the Apple Public Source License
  3148. // Version 2.0 (the 'License'). You may not use this file except in
  3149. // compliance with the License. Please obtain a copy of the License at
  3150. // http://www.opensource.apple.com/apsl/ and read it before using this
  3151. // file.
  3152. //
  3153. // The Original Code and all software distributed under the License are
  3154. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3155. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3156. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3157. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3158. // Please see the License for the specific language governing rights and
  3159. // limitations under the License.
  3160. //
  3161. // @APPLE_LICENSE_HEADER_END@
  3162. //
  3163. // These macros are for use in OS header files. They enable function prototypes
  3164. // and Objective-C methods to be tagged with the OS version in which they
  3165. // were first available; and, if applicable, the OS version in which they
  3166. // became deprecated.
  3167. //
  3168. // The desktop Mac OS X and iOS each have different version numbers.
  3169. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  3170. // and iOS version numbers. For instance:
  3171. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  3172. // means the function/method was first available on Mac OS X 10.2 on the desktop
  3173. // and first available in iOS 2.0 on the iPhone.
  3174. //
  3175. // If a function is available on one platform, but not the other a _NA (not
  3176. // applicable) parameter is used. For instance:
  3177. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  3178. // means that the function/method was first available on Mac OS X 10.3, and it
  3179. // currently not implemented on the iPhone.
  3180. //
  3181. // At some point, a function/method may be deprecated. That means Apple
  3182. // recommends applications stop using the function, either because there is a
  3183. // better replacement or the functionality is being phased out. Deprecated
  3184. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  3185. // macro which specifies the OS version where the function became available
  3186. // as well as the OS version in which it became deprecated. For instance:
  3187. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  3188. // means that the function/method was introduced in Mac OS X 10.0, then
  3189. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  3190. // has never been available.
  3191. //
  3192. // For these macros to function properly, a program must specify the OS version range
  3193. // it is targeting. The min OS version is specified as an option to the compiler:
  3194. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  3195. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  3196. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  3197. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  3198. //
  3199. // Examples:
  3200. //
  3201. // A function available in Mac OS X 10.5 and later, but not on the phone:
  3202. //
  3203. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3204. //
  3205. //
  3206. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  3207. //
  3208. // @interface MyClass : NSObject
  3209. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3210. // @end
  3211. //
  3212. //
  3213. // An enum available on the phone, but not available on Mac OS X:
  3214. //
  3215. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  3216. // enum { myEnum = 1 };
  3217. // #endif
  3218. // Note: this works when targeting the Mac OS X platform because
  3219. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  3220. //
  3221. //
  3222. // An enum with values added in different iPhoneOS versions:
  3223. //
  3224. // enum {
  3225. // myX = 1, // Usable on iPhoneOS 2.1 and later
  3226. // myY = 2, // Usable on iPhoneOS 3.0 and later
  3227. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  3228. // ...
  3229. // Note: you do not want to use #if with enumeration values
  3230. // when a client needs to see all values at compile time
  3231. // and use runtime logic to only use the viable values.
  3232. //
  3233. //
  3234. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  3235. // source base that can be compiled to target a range of OS versions. It is best
  3236. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  3237. // That is because you might get compiled on an old OS that does not define a later
  3238. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  3239. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  3240. // way.
  3241. //
  3242. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  3243. // // code only compiled when targeting Mac OS X and not iPhone
  3244. // // note use of 1050 instead of __MAC_10_5
  3245. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  3246. // // code in here might run on pre-Leopard OS
  3247. // #else
  3248. // // code here can assume Leopard or later
  3249. // #endif
  3250. // #endif
  3251. //
  3252. //
  3253. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  3254. // in an upcoming release. This soft deprecation is an intermediate step before formal
  3255. // deprecation to notify developers about the API before compiler warnings are generated.
  3256. // You can find all places in your code that use soft deprecated API by redefining the
  3257. // value of this macro to your current minimum deployment target, for example:
  3258. // (macOS)
  3259. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  3260. // (iOS)
  3261. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  3262. // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  3263. // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  3264. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3265. //
  3266. // @APPLE_LICENSE_HEADER_START@
  3267. //
  3268. // This file contains Original Code and/or Modifications of Original Code
  3269. // as defined in and that are subject to the Apple Public Source License
  3270. // Version 2.0 (the 'License'). You may not use this file except in
  3271. // compliance with the License. Please obtain a copy of the License at
  3272. // http://www.opensource.apple.com/apsl/ and read it before using this
  3273. // file.
  3274. //
  3275. // The Original Code and all software distributed under the License are
  3276. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3277. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3278. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3279. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3280. // Please see the License for the specific language governing rights and
  3281. // limitations under the License.
  3282. //
  3283. // @APPLE_LICENSE_HEADER_END@
  3284. //
  3285. // File: AvailabilityInternal.h
  3286. //
  3287. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  3288. //
  3289. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  3290. // make sure a default max version is set
  3291. //
  3292. // Macros for defining which versions/platform a given symbol can be used.
  3293. //
  3294. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3295. //
  3296. // Evaluate to nothing for compilers that don't support availability.
  3297. // Swift compiler version
  3298. // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  3299. // Example:
  3300. //
  3301. // #if __swift_compiler_version_at_least(800, 2, 20)
  3302. // - (nonnull NSString *)description;
  3303. // #else
  3304. // - (NSString *)description;
  3305. // #endif
  3306. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  3307. // for use to document app extension usage
  3308. // for use marking APIs available info for Mac OSX
  3309. // for use marking APIs available info for iOS
  3310. // for use marking APIs available info for tvOS
  3311. // for use marking APIs available info for Watch OS
  3312. // for use marking APIs unavailable for swift
  3313. //
  3314. // Macros for defining which versions/platform a given symbol can be used.
  3315. //
  3316. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3317. //
  3318. // * Note that these macros are only compatible with clang compilers that
  3319. // * support the following target selection options:
  3320. // *
  3321. // * -mmacosx-version-min
  3322. // * -miphoneos-version-min
  3323. // * -mwatchos-version-min
  3324. // * -mtvos-version-min
  3325. //
  3326. // Evaluate to nothing for compilers that don't support availability.
  3327. // If SPI decorations have not been defined elsewhere, disable them.
  3328. // Select uses bit masks of file descriptors in longs. These macros
  3329. // manipulate such bit fields (the filesystem macros use chars). The
  3330. // extra protection here is to permit application redefinition above
  3331. // the default size.
  3332. type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  3333. // Use the built-in bzero function instead of the library version so that
  3334. // we do not pollute the namespace or introduce prototype warnings.
  3335. type Fd_mask = X__int32_t /* types.h:189:25 */
  3336. // Select uses bit masks of file descriptors in longs. These macros
  3337. // manipulate such bit fields (the filesystem macros use chars). The
  3338. // extra protection here is to permit application redefinition above
  3339. // the default size.
  3340. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3341. //
  3342. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3343. //
  3344. // This file contains Original Code and/or Modifications of Original Code
  3345. // as defined in and that are subject to the Apple Public Source License
  3346. // Version 2.0 (the 'License'). You may not use this file except in
  3347. // compliance with the License. The rights granted to you under the License
  3348. // may not be used to create, or enable the creation or redistribution of,
  3349. // unlawful or unlicensed copies of an Apple operating system, or to
  3350. // circumvent, violate, or enable the circumvention or violation of, any
  3351. // terms of an Apple operating system software license agreement.
  3352. //
  3353. // Please obtain a copy of the License at
  3354. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3355. //
  3356. // The Original Code and all software distributed under the License are
  3357. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3358. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3359. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3360. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3361. // Please see the License for the specific language governing rights and
  3362. // limitations under the License.
  3363. //
  3364. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3365. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3366. //
  3367. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3368. //
  3369. // This file contains Original Code and/or Modifications of Original Code
  3370. // as defined in and that are subject to the Apple Public Source License
  3371. // Version 2.0 (the 'License'). You may not use this file except in
  3372. // compliance with the License. The rights granted to you under the License
  3373. // may not be used to create, or enable the creation or redistribution of,
  3374. // unlawful or unlicensed copies of an Apple operating system, or to
  3375. // circumvent, violate, or enable the circumvention or violation of, any
  3376. // terms of an Apple operating system software license agreement.
  3377. //
  3378. // Please obtain a copy of the License at
  3379. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3380. //
  3381. // The Original Code and all software distributed under the License are
  3382. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3383. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3384. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3385. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3386. // Please see the License for the specific language governing rights and
  3387. // limitations under the License.
  3388. //
  3389. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3390. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3391. //
  3392. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3393. //
  3394. // This file contains Original Code and/or Modifications of Original Code
  3395. // as defined in and that are subject to the Apple Public Source License
  3396. // Version 2.0 (the 'License'). You may not use this file except in
  3397. // compliance with the License. The rights granted to you under the License
  3398. // may not be used to create, or enable the creation or redistribution of,
  3399. // unlawful or unlicensed copies of an Apple operating system, or to
  3400. // circumvent, violate, or enable the circumvention or violation of, any
  3401. // terms of an Apple operating system software license agreement.
  3402. //
  3403. // Please obtain a copy of the License at
  3404. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3405. //
  3406. // The Original Code and all software distributed under the License are
  3407. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3408. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3409. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3410. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3411. // Please see the License for the specific language governing rights and
  3412. // limitations under the License.
  3413. //
  3414. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3415. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3416. //
  3417. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3418. //
  3419. // This file contains Original Code and/or Modifications of Original Code
  3420. // as defined in and that are subject to the Apple Public Source License
  3421. // Version 2.0 (the 'License'). You may not use this file except in
  3422. // compliance with the License. The rights granted to you under the License
  3423. // may not be used to create, or enable the creation or redistribution of,
  3424. // unlawful or unlicensed copies of an Apple operating system, or to
  3425. // circumvent, violate, or enable the circumvention or violation of, any
  3426. // terms of an Apple operating system software license agreement.
  3427. //
  3428. // Please obtain a copy of the License at
  3429. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3430. //
  3431. // The Original Code and all software distributed under the License are
  3432. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3433. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3434. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3435. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3436. // Please see the License for the specific language governing rights and
  3437. // limitations under the License.
  3438. //
  3439. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3440. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3441. //
  3442. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3443. //
  3444. // This file contains Original Code and/or Modifications of Original Code
  3445. // as defined in and that are subject to the Apple Public Source License
  3446. // Version 2.0 (the 'License'). You may not use this file except in
  3447. // compliance with the License. The rights granted to you under the License
  3448. // may not be used to create, or enable the creation or redistribution of,
  3449. // unlawful or unlicensed copies of an Apple operating system, or to
  3450. // circumvent, violate, or enable the circumvention or violation of, any
  3451. // terms of an Apple operating system software license agreement.
  3452. //
  3453. // Please obtain a copy of the License at
  3454. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3455. //
  3456. // The Original Code and all software distributed under the License are
  3457. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3458. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3459. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3460. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3461. // Please see the License for the specific language governing rights and
  3462. // limitations under the License.
  3463. //
  3464. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3465. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3466. //
  3467. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3468. //
  3469. // This file contains Original Code and/or Modifications of Original Code
  3470. // as defined in and that are subject to the Apple Public Source License
  3471. // Version 2.0 (the 'License'). You may not use this file except in
  3472. // compliance with the License. The rights granted to you under the License
  3473. // may not be used to create, or enable the creation or redistribution of,
  3474. // unlawful or unlicensed copies of an Apple operating system, or to
  3475. // circumvent, violate, or enable the circumvention or violation of, any
  3476. // terms of an Apple operating system software license agreement.
  3477. //
  3478. // Please obtain a copy of the License at
  3479. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3480. //
  3481. // The Original Code and all software distributed under the License are
  3482. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3483. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3484. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3485. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3486. // Please see the License for the specific language governing rights and
  3487. // limitations under the License.
  3488. //
  3489. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3490. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3491. //
  3492. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3493. //
  3494. // This file contains Original Code and/or Modifications of Original Code
  3495. // as defined in and that are subject to the Apple Public Source License
  3496. // Version 2.0 (the 'License'). You may not use this file except in
  3497. // compliance with the License. The rights granted to you under the License
  3498. // may not be used to create, or enable the creation or redistribution of,
  3499. // unlawful or unlicensed copies of an Apple operating system, or to
  3500. // circumvent, violate, or enable the circumvention or violation of, any
  3501. // terms of an Apple operating system software license agreement.
  3502. //
  3503. // Please obtain a copy of the License at
  3504. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3505. //
  3506. // The Original Code and all software distributed under the License are
  3507. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3508. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3509. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3510. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3511. // Please see the License for the specific language governing rights and
  3512. // limitations under the License.
  3513. //
  3514. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3515. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3516. //
  3517. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3518. //
  3519. // This file contains Original Code and/or Modifications of Original Code
  3520. // as defined in and that are subject to the Apple Public Source License
  3521. // Version 2.0 (the 'License'). You may not use this file except in
  3522. // compliance with the License. The rights granted to you under the License
  3523. // may not be used to create, or enable the creation or redistribution of,
  3524. // unlawful or unlicensed copies of an Apple operating system, or to
  3525. // circumvent, violate, or enable the circumvention or violation of, any
  3526. // terms of an Apple operating system software license agreement.
  3527. //
  3528. // Please obtain a copy of the License at
  3529. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3530. //
  3531. // The Original Code and all software distributed under the License are
  3532. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3533. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3534. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3535. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3536. // Please see the License for the specific language governing rights and
  3537. // limitations under the License.
  3538. //
  3539. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3540. type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  3541. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3542. //
  3543. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3544. //
  3545. // This file contains Original Code and/or Modifications of Original Code
  3546. // as defined in and that are subject to the Apple Public Source License
  3547. // Version 2.0 (the 'License'). You may not use this file except in
  3548. // compliance with the License. The rights granted to you under the License
  3549. // may not be used to create, or enable the creation or redistribution of,
  3550. // unlawful or unlicensed copies of an Apple operating system, or to
  3551. // circumvent, violate, or enable the circumvention or violation of, any
  3552. // terms of an Apple operating system software license agreement.
  3553. //
  3554. // Please obtain a copy of the License at
  3555. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3556. //
  3557. // The Original Code and all software distributed under the License are
  3558. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3559. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3560. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3561. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3562. // Please see the License for the specific language governing rights and
  3563. // limitations under the License.
  3564. //
  3565. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3566. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3567. //
  3568. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3569. //
  3570. // This file contains Original Code and/or Modifications of Original Code
  3571. // as defined in and that are subject to the Apple Public Source License
  3572. // Version 2.0 (the 'License'). You may not use this file except in
  3573. // compliance with the License. The rights granted to you under the License
  3574. // may not be used to create, or enable the creation or redistribution of,
  3575. // unlawful or unlicensed copies of an Apple operating system, or to
  3576. // circumvent, violate, or enable the circumvention or violation of, any
  3577. // terms of an Apple operating system software license agreement.
  3578. //
  3579. // Please obtain a copy of the License at
  3580. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3581. //
  3582. // The Original Code and all software distributed under the License are
  3583. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3584. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3585. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3586. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3587. // Please see the License for the specific language governing rights and
  3588. // limitations under the License.
  3589. //
  3590. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3591. type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  3592. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3593. //
  3594. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3595. //
  3596. // This file contains Original Code and/or Modifications of Original Code
  3597. // as defined in and that are subject to the Apple Public Source License
  3598. // Version 2.0 (the 'License'). You may not use this file except in
  3599. // compliance with the License. The rights granted to you under the License
  3600. // may not be used to create, or enable the creation or redistribution of,
  3601. // unlawful or unlicensed copies of an Apple operating system, or to
  3602. // circumvent, violate, or enable the circumvention or violation of, any
  3603. // terms of an Apple operating system software license agreement.
  3604. //
  3605. // Please obtain a copy of the License at
  3606. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3607. //
  3608. // The Original Code and all software distributed under the License are
  3609. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3610. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3611. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3612. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3613. // Please see the License for the specific language governing rights and
  3614. // limitations under the License.
  3615. //
  3616. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3617. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3618. //
  3619. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3620. //
  3621. // This file contains Original Code and/or Modifications of Original Code
  3622. // as defined in and that are subject to the Apple Public Source License
  3623. // Version 2.0 (the 'License'). You may not use this file except in
  3624. // compliance with the License. The rights granted to you under the License
  3625. // may not be used to create, or enable the creation or redistribution of,
  3626. // unlawful or unlicensed copies of an Apple operating system, or to
  3627. // circumvent, violate, or enable the circumvention or violation of, any
  3628. // terms of an Apple operating system software license agreement.
  3629. //
  3630. // Please obtain a copy of the License at
  3631. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3632. //
  3633. // The Original Code and all software distributed under the License are
  3634. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3635. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3636. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3637. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3638. // Please see the License for the specific language governing rights and
  3639. // limitations under the License.
  3640. //
  3641. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3642. type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  3643. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3644. //
  3645. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3646. //
  3647. // This file contains Original Code and/or Modifications of Original Code
  3648. // as defined in and that are subject to the Apple Public Source License
  3649. // Version 2.0 (the 'License'). You may not use this file except in
  3650. // compliance with the License. The rights granted to you under the License
  3651. // may not be used to create, or enable the creation or redistribution of,
  3652. // unlawful or unlicensed copies of an Apple operating system, or to
  3653. // circumvent, violate, or enable the circumvention or violation of, any
  3654. // terms of an Apple operating system software license agreement.
  3655. //
  3656. // Please obtain a copy of the License at
  3657. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3658. //
  3659. // The Original Code and all software distributed under the License are
  3660. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3661. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3662. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3663. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3664. // Please see the License for the specific language governing rights and
  3665. // limitations under the License.
  3666. //
  3667. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3668. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3669. //
  3670. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3671. //
  3672. // This file contains Original Code and/or Modifications of Original Code
  3673. // as defined in and that are subject to the Apple Public Source License
  3674. // Version 2.0 (the 'License'). You may not use this file except in
  3675. // compliance with the License. The rights granted to you under the License
  3676. // may not be used to create, or enable the creation or redistribution of,
  3677. // unlawful or unlicensed copies of an Apple operating system, or to
  3678. // circumvent, violate, or enable the circumvention or violation of, any
  3679. // terms of an Apple operating system software license agreement.
  3680. //
  3681. // Please obtain a copy of the License at
  3682. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3683. //
  3684. // The Original Code and all software distributed under the License are
  3685. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3686. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3687. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3688. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3689. // Please see the License for the specific language governing rights and
  3690. // limitations under the License.
  3691. //
  3692. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3693. type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  3694. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3695. //
  3696. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3697. //
  3698. // This file contains Original Code and/or Modifications of Original Code
  3699. // as defined in and that are subject to the Apple Public Source License
  3700. // Version 2.0 (the 'License'). You may not use this file except in
  3701. // compliance with the License. The rights granted to you under the License
  3702. // may not be used to create, or enable the creation or redistribution of,
  3703. // unlawful or unlicensed copies of an Apple operating system, or to
  3704. // circumvent, violate, or enable the circumvention or violation of, any
  3705. // terms of an Apple operating system software license agreement.
  3706. //
  3707. // Please obtain a copy of the License at
  3708. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3709. //
  3710. // The Original Code and all software distributed under the License are
  3711. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3712. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3713. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3714. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3715. // Please see the License for the specific language governing rights and
  3716. // limitations under the License.
  3717. //
  3718. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3719. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3720. //
  3721. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3722. //
  3723. // This file contains Original Code and/or Modifications of Original Code
  3724. // as defined in and that are subject to the Apple Public Source License
  3725. // Version 2.0 (the 'License'). You may not use this file except in
  3726. // compliance with the License. The rights granted to you under the License
  3727. // may not be used to create, or enable the creation or redistribution of,
  3728. // unlawful or unlicensed copies of an Apple operating system, or to
  3729. // circumvent, violate, or enable the circumvention or violation of, any
  3730. // terms of an Apple operating system software license agreement.
  3731. //
  3732. // Please obtain a copy of the License at
  3733. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3734. //
  3735. // The Original Code and all software distributed under the License are
  3736. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3737. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3738. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3739. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3740. // Please see the License for the specific language governing rights and
  3741. // limitations under the License.
  3742. //
  3743. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3744. type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  3745. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3746. //
  3747. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3748. //
  3749. // This file contains Original Code and/or Modifications of Original Code
  3750. // as defined in and that are subject to the Apple Public Source License
  3751. // Version 2.0 (the 'License'). You may not use this file except in
  3752. // compliance with the License. The rights granted to you under the License
  3753. // may not be used to create, or enable the creation or redistribution of,
  3754. // unlawful or unlicensed copies of an Apple operating system, or to
  3755. // circumvent, violate, or enable the circumvention or violation of, any
  3756. // terms of an Apple operating system software license agreement.
  3757. //
  3758. // Please obtain a copy of the License at
  3759. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3760. //
  3761. // The Original Code and all software distributed under the License are
  3762. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3763. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3764. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3765. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3766. // Please see the License for the specific language governing rights and
  3767. // limitations under the License.
  3768. //
  3769. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3770. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3771. //
  3772. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3773. //
  3774. // This file contains Original Code and/or Modifications of Original Code
  3775. // as defined in and that are subject to the Apple Public Source License
  3776. // Version 2.0 (the 'License'). You may not use this file except in
  3777. // compliance with the License. The rights granted to you under the License
  3778. // may not be used to create, or enable the creation or redistribution of,
  3779. // unlawful or unlicensed copies of an Apple operating system, or to
  3780. // circumvent, violate, or enable the circumvention or violation of, any
  3781. // terms of an Apple operating system software license agreement.
  3782. //
  3783. // Please obtain a copy of the License at
  3784. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3785. //
  3786. // The Original Code and all software distributed under the License are
  3787. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3788. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3789. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3790. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3791. // Please see the License for the specific language governing rights and
  3792. // limitations under the License.
  3793. //
  3794. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3795. type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  3796. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3797. //
  3798. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3799. //
  3800. // This file contains Original Code and/or Modifications of Original Code
  3801. // as defined in and that are subject to the Apple Public Source License
  3802. // Version 2.0 (the 'License'). You may not use this file except in
  3803. // compliance with the License. The rights granted to you under the License
  3804. // may not be used to create, or enable the creation or redistribution of,
  3805. // unlawful or unlicensed copies of an Apple operating system, or to
  3806. // circumvent, violate, or enable the circumvention or violation of, any
  3807. // terms of an Apple operating system software license agreement.
  3808. //
  3809. // Please obtain a copy of the License at
  3810. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3811. //
  3812. // The Original Code and all software distributed under the License are
  3813. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3814. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3815. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3816. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3817. // Please see the License for the specific language governing rights and
  3818. // limitations under the License.
  3819. //
  3820. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3821. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3822. //
  3823. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3824. //
  3825. // This file contains Original Code and/or Modifications of Original Code
  3826. // as defined in and that are subject to the Apple Public Source License
  3827. // Version 2.0 (the 'License'). You may not use this file except in
  3828. // compliance with the License. The rights granted to you under the License
  3829. // may not be used to create, or enable the creation or redistribution of,
  3830. // unlawful or unlicensed copies of an Apple operating system, or to
  3831. // circumvent, violate, or enable the circumvention or violation of, any
  3832. // terms of an Apple operating system software license agreement.
  3833. //
  3834. // Please obtain a copy of the License at
  3835. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3836. //
  3837. // The Original Code and all software distributed under the License are
  3838. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3839. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3840. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3841. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3842. // Please see the License for the specific language governing rights and
  3843. // limitations under the License.
  3844. //
  3845. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3846. type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  3847. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3848. //
  3849. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3850. //
  3851. // This file contains Original Code and/or Modifications of Original Code
  3852. // as defined in and that are subject to the Apple Public Source License
  3853. // Version 2.0 (the 'License'). You may not use this file except in
  3854. // compliance with the License. The rights granted to you under the License
  3855. // may not be used to create, or enable the creation or redistribution of,
  3856. // unlawful or unlicensed copies of an Apple operating system, or to
  3857. // circumvent, violate, or enable the circumvention or violation of, any
  3858. // terms of an Apple operating system software license agreement.
  3859. //
  3860. // Please obtain a copy of the License at
  3861. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3862. //
  3863. // The Original Code and all software distributed under the License are
  3864. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3865. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3866. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3867. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3868. // Please see the License for the specific language governing rights and
  3869. // limitations under the License.
  3870. //
  3871. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3872. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3873. //
  3874. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3875. //
  3876. // This file contains Original Code and/or Modifications of Original Code
  3877. // as defined in and that are subject to the Apple Public Source License
  3878. // Version 2.0 (the 'License'). You may not use this file except in
  3879. // compliance with the License. The rights granted to you under the License
  3880. // may not be used to create, or enable the creation or redistribution of,
  3881. // unlawful or unlicensed copies of an Apple operating system, or to
  3882. // circumvent, violate, or enable the circumvention or violation of, any
  3883. // terms of an Apple operating system software license agreement.
  3884. //
  3885. // Please obtain a copy of the License at
  3886. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3887. //
  3888. // The Original Code and all software distributed under the License are
  3889. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3890. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3891. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3892. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3893. // Please see the License for the specific language governing rights and
  3894. // limitations under the License.
  3895. //
  3896. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3897. type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  3898. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3899. //
  3900. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3901. //
  3902. // This file contains Original Code and/or Modifications of Original Code
  3903. // as defined in and that are subject to the Apple Public Source License
  3904. // Version 2.0 (the 'License'). You may not use this file except in
  3905. // compliance with the License. The rights granted to you under the License
  3906. // may not be used to create, or enable the creation or redistribution of,
  3907. // unlawful or unlicensed copies of an Apple operating system, or to
  3908. // circumvent, violate, or enable the circumvention or violation of, any
  3909. // terms of an Apple operating system software license agreement.
  3910. //
  3911. // Please obtain a copy of the License at
  3912. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3913. //
  3914. // The Original Code and all software distributed under the License are
  3915. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3916. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3917. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3918. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3919. // Please see the License for the specific language governing rights and
  3920. // limitations under the License.
  3921. //
  3922. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3923. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3924. //
  3925. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3926. //
  3927. // This file contains Original Code and/or Modifications of Original Code
  3928. // as defined in and that are subject to the Apple Public Source License
  3929. // Version 2.0 (the 'License'). You may not use this file except in
  3930. // compliance with the License. The rights granted to you under the License
  3931. // may not be used to create, or enable the creation or redistribution of,
  3932. // unlawful or unlicensed copies of an Apple operating system, or to
  3933. // circumvent, violate, or enable the circumvention or violation of, any
  3934. // terms of an Apple operating system software license agreement.
  3935. //
  3936. // Please obtain a copy of the License at
  3937. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3938. //
  3939. // The Original Code and all software distributed under the License are
  3940. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3941. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3942. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3943. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3944. // Please see the License for the specific language governing rights and
  3945. // limitations under the License.
  3946. //
  3947. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3948. type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  3949. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3950. //
  3951. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3952. //
  3953. // This file contains Original Code and/or Modifications of Original Code
  3954. // as defined in and that are subject to the Apple Public Source License
  3955. // Version 2.0 (the 'License'). You may not use this file except in
  3956. // compliance with the License. The rights granted to you under the License
  3957. // may not be used to create, or enable the creation or redistribution of,
  3958. // unlawful or unlicensed copies of an Apple operating system, or to
  3959. // circumvent, violate, or enable the circumvention or violation of, any
  3960. // terms of an Apple operating system software license agreement.
  3961. //
  3962. // Please obtain a copy of the License at
  3963. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3964. //
  3965. // The Original Code and all software distributed under the License are
  3966. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3967. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3968. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3969. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3970. // Please see the License for the specific language governing rights and
  3971. // limitations under the License.
  3972. //
  3973. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3974. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3975. //
  3976. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3977. //
  3978. // This file contains Original Code and/or Modifications of Original Code
  3979. // as defined in and that are subject to the Apple Public Source License
  3980. // Version 2.0 (the 'License'). You may not use this file except in
  3981. // compliance with the License. The rights granted to you under the License
  3982. // may not be used to create, or enable the creation or redistribution of,
  3983. // unlawful or unlicensed copies of an Apple operating system, or to
  3984. // circumvent, violate, or enable the circumvention or violation of, any
  3985. // terms of an Apple operating system software license agreement.
  3986. //
  3987. // Please obtain a copy of the License at
  3988. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3989. //
  3990. // The Original Code and all software distributed under the License are
  3991. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3992. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3993. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3994. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3995. // Please see the License for the specific language governing rights and
  3996. // limitations under the License.
  3997. //
  3998. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3999. type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  4000. // statvfs and fstatvfs
  4001. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4002. //
  4003. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4004. //
  4005. // This file contains Original Code and/or Modifications of Original Code
  4006. // as defined in and that are subject to the Apple Public Source License
  4007. // Version 2.0 (the 'License'). You may not use this file except in
  4008. // compliance with the License. The rights granted to you under the License
  4009. // may not be used to create, or enable the creation or redistribution of,
  4010. // unlawful or unlicensed copies of an Apple operating system, or to
  4011. // circumvent, violate, or enable the circumvention or violation of, any
  4012. // terms of an Apple operating system software license agreement.
  4013. //
  4014. // Please obtain a copy of the License at
  4015. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4016. //
  4017. // The Original Code and all software distributed under the License are
  4018. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4019. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4020. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4021. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4022. // Please see the License for the specific language governing rights and
  4023. // limitations under the License.
  4024. //
  4025. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4026. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4027. //
  4028. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4029. //
  4030. // This file contains Original Code and/or Modifications of Original Code
  4031. // as defined in and that are subject to the Apple Public Source License
  4032. // Version 2.0 (the 'License'). You may not use this file except in
  4033. // compliance with the License. The rights granted to you under the License
  4034. // may not be used to create, or enable the creation or redistribution of,
  4035. // unlawful or unlicensed copies of an Apple operating system, or to
  4036. // circumvent, violate, or enable the circumvention or violation of, any
  4037. // terms of an Apple operating system software license agreement.
  4038. //
  4039. // Please obtain a copy of the License at
  4040. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4041. //
  4042. // The Original Code and all software distributed under the License are
  4043. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4044. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4045. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4046. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4047. // Please see the License for the specific language governing rights and
  4048. // limitations under the License.
  4049. //
  4050. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4051. type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  4052. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4053. //
  4054. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4055. //
  4056. // This file contains Original Code and/or Modifications of Original Code
  4057. // as defined in and that are subject to the Apple Public Source License
  4058. // Version 2.0 (the 'License'). You may not use this file except in
  4059. // compliance with the License. The rights granted to you under the License
  4060. // may not be used to create, or enable the creation or redistribution of,
  4061. // unlawful or unlicensed copies of an Apple operating system, or to
  4062. // circumvent, violate, or enable the circumvention or violation of, any
  4063. // terms of an Apple operating system software license agreement.
  4064. //
  4065. // Please obtain a copy of the License at
  4066. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4067. //
  4068. // The Original Code and all software distributed under the License are
  4069. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4070. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4071. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4072. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4073. // Please see the License for the specific language governing rights and
  4074. // limitations under the License.
  4075. //
  4076. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4077. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4078. //
  4079. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4080. //
  4081. // This file contains Original Code and/or Modifications of Original Code
  4082. // as defined in and that are subject to the Apple Public Source License
  4083. // Version 2.0 (the 'License'). You may not use this file except in
  4084. // compliance with the License. The rights granted to you under the License
  4085. // may not be used to create, or enable the creation or redistribution of,
  4086. // unlawful or unlicensed copies of an Apple operating system, or to
  4087. // circumvent, violate, or enable the circumvention or violation of, any
  4088. // terms of an Apple operating system software license agreement.
  4089. //
  4090. // Please obtain a copy of the License at
  4091. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4092. //
  4093. // The Original Code and all software distributed under the License are
  4094. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4095. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4096. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4097. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4098. // Please see the License for the specific language governing rights and
  4099. // limitations under the License.
  4100. //
  4101. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4102. type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  4103. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4104. //
  4105. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4106. //
  4107. // This file contains Original Code and/or Modifications of Original Code
  4108. // as defined in and that are subject to the Apple Public Source License
  4109. // Version 2.0 (the 'License'). You may not use this file except in
  4110. // compliance with the License. The rights granted to you under the License
  4111. // may not be used to create, or enable the creation or redistribution of,
  4112. // unlawful or unlicensed copies of an Apple operating system, or to
  4113. // circumvent, violate, or enable the circumvention or violation of, any
  4114. // terms of an Apple operating system software license agreement.
  4115. //
  4116. // Please obtain a copy of the License at
  4117. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4118. //
  4119. // The Original Code and all software distributed under the License are
  4120. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4121. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4122. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4123. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4124. // Please see the License for the specific language governing rights and
  4125. // limitations under the License.
  4126. //
  4127. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4128. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4129. // Copyright (c) 1991, 1993
  4130. // The Regents of the University of California. All rights reserved.
  4131. //
  4132. // This code is derived from software contributed to Berkeley by
  4133. // Berkeley Software Design, Inc.
  4134. //
  4135. // Redistribution and use in source and binary forms, with or without
  4136. // modification, are permitted provided that the following conditions
  4137. // are met:
  4138. // 1. Redistributions of source code must retain the above copyright
  4139. // notice, this list of conditions and the following disclaimer.
  4140. // 2. Redistributions in binary form must reproduce the above copyright
  4141. // notice, this list of conditions and the following disclaimer in the
  4142. // documentation and/or other materials provided with the distribution.
  4143. // 3. All advertising materials mentioning features or use of this software
  4144. // must display the following acknowledgement:
  4145. // This product includes software developed by the University of
  4146. // California, Berkeley and its contributors.
  4147. // 4. Neither the name of the University nor the names of its contributors
  4148. // may be used to endorse or promote products derived from this software
  4149. // without specific prior written permission.
  4150. //
  4151. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4152. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4153. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4154. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4155. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4156. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4157. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4158. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4159. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4160. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4161. // SUCH DAMAGE.
  4162. //
  4163. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  4164. // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  4165. //
  4166. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4167. //
  4168. // This file contains Original Code and/or Modifications of Original Code
  4169. // as defined in and that are subject to the Apple Public Source License
  4170. // Version 2.0 (the 'License'). You may not use this file except in
  4171. // compliance with the License. The rights granted to you under the License
  4172. // may not be used to create, or enable the creation or redistribution of,
  4173. // unlawful or unlicensed copies of an Apple operating system, or to
  4174. // circumvent, violate, or enable the circumvention or violation of, any
  4175. // terms of an Apple operating system software license agreement.
  4176. //
  4177. // Please obtain a copy of the License at
  4178. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4179. //
  4180. // The Original Code and all software distributed under the License are
  4181. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4182. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4183. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4184. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4185. // Please see the License for the specific language governing rights and
  4186. // limitations under the License.
  4187. //
  4188. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4189. // Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
  4190. //
  4191. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4192. //
  4193. // This file contains Original Code and/or Modifications of Original Code
  4194. // as defined in and that are subject to the Apple Public Source License
  4195. // Version 2.0 (the 'License'). You may not use this file except in
  4196. // compliance with the License. The rights granted to you under the License
  4197. // may not be used to create, or enable the creation or redistribution of,
  4198. // unlawful or unlicensed copies of an Apple operating system, or to
  4199. // circumvent, violate, or enable the circumvention or violation of, any
  4200. // terms of an Apple operating system software license agreement.
  4201. //
  4202. // Please obtain a copy of the License at
  4203. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4204. //
  4205. // The Original Code and all software distributed under the License are
  4206. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4207. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4208. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4209. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4210. // Please see the License for the specific language governing rights and
  4211. // limitations under the License.
  4212. //
  4213. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4214. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  4215. //
  4216. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4217. //
  4218. // This file contains Original Code and/or Modifications of Original Code
  4219. // as defined in and that are subject to the Apple Public Source License
  4220. // Version 2.0 (the 'License'). You may not use this file except in
  4221. // compliance with the License. The rights granted to you under the License
  4222. // may not be used to create, or enable the creation or redistribution of,
  4223. // unlawful or unlicensed copies of an Apple operating system, or to
  4224. // circumvent, violate, or enable the circumvention or violation of, any
  4225. // terms of an Apple operating system software license agreement.
  4226. //
  4227. // Please obtain a copy of the License at
  4228. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4229. //
  4230. // The Original Code and all software distributed under the License are
  4231. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4232. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4233. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4234. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4235. // Please see the License for the specific language governing rights and
  4236. // limitations under the License.
  4237. //
  4238. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4239. // Round p (pointer or byte index) up to a correctly-aligned value for all
  4240. // data types (int, long, ...). The result is unsigned int and must be
  4241. // cast to any desired pointer type.
  4242. // Copyright (c) 2016-2018 Apple Inc. All rights reserved.
  4243. //
  4244. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4245. //
  4246. // This file contains Original Code and/or Modifications of Original Code
  4247. // as defined in and that are subject to the Apple Public Source License
  4248. // Version 2.0 (the 'License'). You may not use this file except in
  4249. // compliance with the License. The rights granted to you under the License
  4250. // may not be used to create, or enable the creation or redistribution of,
  4251. // unlawful or unlicensed copies of an Apple operating system, or to
  4252. // circumvent, violate, or enable the circumvention or violation of, any
  4253. // terms of an Apple operating system software license agreement.
  4254. //
  4255. // Please obtain a copy of the License at
  4256. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4257. //
  4258. // The Original Code and all software distributed under the License are
  4259. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4260. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4261. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4262. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4263. // Please see the License for the specific language governing rights and
  4264. // limitations under the License.
  4265. //
  4266. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4267. // Kernel event subclass identifiers for KEV_NETWORK_CLASS
  4268. // KEV_INET_SUBCLASS event codes
  4269. // Define Data-Link event subclass, and associated
  4270. // events.
  4271. // KEV_INET6_SUBCLASS event codes
  4272. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4273. //
  4274. // @APPLE_LICENSE_HEADER_START@
  4275. //
  4276. // This file contains Original Code and/or Modifications of Original Code
  4277. // as defined in and that are subject to the Apple Public Source License
  4278. // Version 2.0 (the 'License'). You may not use this file except in
  4279. // compliance with the License. Please obtain a copy of the License at
  4280. // http://www.opensource.apple.com/apsl/ and read it before using this
  4281. // file.
  4282. //
  4283. // The Original Code and all software distributed under the License are
  4284. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4285. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4286. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4287. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4288. // Please see the License for the specific language governing rights and
  4289. // limitations under the License.
  4290. //
  4291. // @APPLE_LICENSE_HEADER_END@
  4292. // Definitions related to sockets: types, address families, options.
  4293. // Data types.
  4294. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4295. //
  4296. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4297. //
  4298. // This file contains Original Code and/or Modifications of Original Code
  4299. // as defined in and that are subject to the Apple Public Source License
  4300. // Version 2.0 (the 'License'). You may not use this file except in
  4301. // compliance with the License. The rights granted to you under the License
  4302. // may not be used to create, or enable the creation or redistribution of,
  4303. // unlawful or unlicensed copies of an Apple operating system, or to
  4304. // circumvent, violate, or enable the circumvention or violation of, any
  4305. // terms of an Apple operating system software license agreement.
  4306. //
  4307. // Please obtain a copy of the License at
  4308. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4309. //
  4310. // The Original Code and all software distributed under the License are
  4311. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4312. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4313. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4314. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4315. // Please see the License for the specific language governing rights and
  4316. // limitations under the License.
  4317. //
  4318. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4319. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4320. //
  4321. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4322. //
  4323. // This file contains Original Code and/or Modifications of Original Code
  4324. // as defined in and that are subject to the Apple Public Source License
  4325. // Version 2.0 (the 'License'). You may not use this file except in
  4326. // compliance with the License. The rights granted to you under the License
  4327. // may not be used to create, or enable the creation or redistribution of,
  4328. // unlawful or unlicensed copies of an Apple operating system, or to
  4329. // circumvent, violate, or enable the circumvention or violation of, any
  4330. // terms of an Apple operating system software license agreement.
  4331. //
  4332. // Please obtain a copy of the License at
  4333. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4334. //
  4335. // The Original Code and all software distributed under the License are
  4336. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4337. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4338. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4339. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4340. // Please see the License for the specific language governing rights and
  4341. // limitations under the License.
  4342. //
  4343. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4344. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4345. //
  4346. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4347. //
  4348. // This file contains Original Code and/or Modifications of Original Code
  4349. // as defined in and that are subject to the Apple Public Source License
  4350. // Version 2.0 (the 'License'). You may not use this file except in
  4351. // compliance with the License. The rights granted to you under the License
  4352. // may not be used to create, or enable the creation or redistribution of,
  4353. // unlawful or unlicensed copies of an Apple operating system, or to
  4354. // circumvent, violate, or enable the circumvention or violation of, any
  4355. // terms of an Apple operating system software license agreement.
  4356. //
  4357. // Please obtain a copy of the License at
  4358. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4359. //
  4360. // The Original Code and all software distributed under the License are
  4361. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4362. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4363. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4364. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4365. // Please see the License for the specific language governing rights and
  4366. // limitations under the License.
  4367. //
  4368. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4369. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4370. //
  4371. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4372. //
  4373. // This file contains Original Code and/or Modifications of Original Code
  4374. // as defined in and that are subject to the Apple Public Source License
  4375. // Version 2.0 (the 'License'). You may not use this file except in
  4376. // compliance with the License. The rights granted to you under the License
  4377. // may not be used to create, or enable the creation or redistribution of,
  4378. // unlawful or unlicensed copies of an Apple operating system, or to
  4379. // circumvent, violate, or enable the circumvention or violation of, any
  4380. // terms of an Apple operating system software license agreement.
  4381. //
  4382. // Please obtain a copy of the License at
  4383. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4384. //
  4385. // The Original Code and all software distributed under the License are
  4386. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4387. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4388. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4389. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4390. // Please see the License for the specific language governing rights and
  4391. // limitations under the License.
  4392. //
  4393. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4394. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4395. //
  4396. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4397. //
  4398. // This file contains Original Code and/or Modifications of Original Code
  4399. // as defined in and that are subject to the Apple Public Source License
  4400. // Version 2.0 (the 'License'). You may not use this file except in
  4401. // compliance with the License. The rights granted to you under the License
  4402. // may not be used to create, or enable the creation or redistribution of,
  4403. // unlawful or unlicensed copies of an Apple operating system, or to
  4404. // circumvent, violate, or enable the circumvention or violation of, any
  4405. // terms of an Apple operating system software license agreement.
  4406. //
  4407. // Please obtain a copy of the License at
  4408. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4409. //
  4410. // The Original Code and all software distributed under the License are
  4411. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4412. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4413. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4414. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4415. // Please see the License for the specific language governing rights and
  4416. // limitations under the License.
  4417. //
  4418. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4419. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4420. type Sa_family_t = X__uint8_t /* _sa_family_t.h:31:33 */
  4421. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4422. //
  4423. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4424. //
  4425. // This file contains Original Code and/or Modifications of Original Code
  4426. // as defined in and that are subject to the Apple Public Source License
  4427. // Version 2.0 (the 'License'). You may not use this file except in
  4428. // compliance with the License. The rights granted to you under the License
  4429. // may not be used to create, or enable the creation or redistribution of,
  4430. // unlawful or unlicensed copies of an Apple operating system, or to
  4431. // circumvent, violate, or enable the circumvention or violation of, any
  4432. // terms of an Apple operating system software license agreement.
  4433. //
  4434. // Please obtain a copy of the License at
  4435. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4436. //
  4437. // The Original Code and all software distributed under the License are
  4438. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4439. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4440. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4441. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4442. // Please see the License for the specific language governing rights and
  4443. // limitations under the License.
  4444. //
  4445. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4446. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4447. //
  4448. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4449. //
  4450. // This file contains Original Code and/or Modifications of Original Code
  4451. // as defined in and that are subject to the Apple Public Source License
  4452. // Version 2.0 (the 'License'). You may not use this file except in
  4453. // compliance with the License. The rights granted to you under the License
  4454. // may not be used to create, or enable the creation or redistribution of,
  4455. // unlawful or unlicensed copies of an Apple operating system, or to
  4456. // circumvent, violate, or enable the circumvention or violation of, any
  4457. // terms of an Apple operating system software license agreement.
  4458. //
  4459. // Please obtain a copy of the License at
  4460. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4461. //
  4462. // The Original Code and all software distributed under the License are
  4463. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4464. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4465. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4466. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4467. // Please see the License for the specific language governing rights and
  4468. // limitations under the License.
  4469. //
  4470. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4471. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4472. type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */
  4473. // XXX Not explicitly defined by POSIX, but function return types are
  4474. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4475. //
  4476. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4477. //
  4478. // This file contains Original Code and/or Modifications of Original Code
  4479. // as defined in and that are subject to the Apple Public Source License
  4480. // Version 2.0 (the 'License'). You may not use this file except in
  4481. // compliance with the License. The rights granted to you under the License
  4482. // may not be used to create, or enable the creation or redistribution of,
  4483. // unlawful or unlicensed copies of an Apple operating system, or to
  4484. // circumvent, violate, or enable the circumvention or violation of, any
  4485. // terms of an Apple operating system software license agreement.
  4486. //
  4487. // Please obtain a copy of the License at
  4488. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4489. //
  4490. // The Original Code and all software distributed under the License are
  4491. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4492. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4493. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4494. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4495. // Please see the License for the specific language governing rights and
  4496. // limitations under the License.
  4497. //
  4498. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4499. // XXX Not explicitly defined by POSIX, but function return types are
  4500. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4501. //
  4502. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4503. //
  4504. // This file contains Original Code and/or Modifications of Original Code
  4505. // as defined in and that are subject to the Apple Public Source License
  4506. // Version 2.0 (the 'License'). You may not use this file except in
  4507. // compliance with the License. The rights granted to you under the License
  4508. // may not be used to create, or enable the creation or redistribution of,
  4509. // unlawful or unlicensed copies of an Apple operating system, or to
  4510. // circumvent, violate, or enable the circumvention or violation of, any
  4511. // terms of an Apple operating system software license agreement.
  4512. //
  4513. // Please obtain a copy of the License at
  4514. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4515. //
  4516. // The Original Code and all software distributed under the License are
  4517. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4518. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4519. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4520. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4521. // Please see the License for the specific language governing rights and
  4522. // limitations under the License.
  4523. //
  4524. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4525. // [XSI] The iovec structure shall be defined as described in <sys/uio.h>.
  4526. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4527. //
  4528. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4529. //
  4530. // This file contains Original Code and/or Modifications of Original Code
  4531. // as defined in and that are subject to the Apple Public Source License
  4532. // Version 2.0 (the 'License'). You may not use this file except in
  4533. // compliance with the License. The rights granted to you under the License
  4534. // may not be used to create, or enable the creation or redistribution of,
  4535. // unlawful or unlicensed copies of an Apple operating system, or to
  4536. // circumvent, violate, or enable the circumvention or violation of, any
  4537. // terms of an Apple operating system software license agreement.
  4538. //
  4539. // Please obtain a copy of the License at
  4540. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4541. //
  4542. // The Original Code and all software distributed under the License are
  4543. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4544. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4545. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4546. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4547. // Please see the License for the specific language governing rights and
  4548. // limitations under the License.
  4549. //
  4550. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4551. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4552. //
  4553. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4554. //
  4555. // This file contains Original Code and/or Modifications of Original Code
  4556. // as defined in and that are subject to the Apple Public Source License
  4557. // Version 2.0 (the 'License'). You may not use this file except in
  4558. // compliance with the License. The rights granted to you under the License
  4559. // may not be used to create, or enable the creation or redistribution of,
  4560. // unlawful or unlicensed copies of an Apple operating system, or to
  4561. // circumvent, violate, or enable the circumvention or violation of, any
  4562. // terms of an Apple operating system software license agreement.
  4563. //
  4564. // Please obtain a copy of the License at
  4565. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4566. //
  4567. // The Original Code and all software distributed under the License are
  4568. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4569. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4570. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4571. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4572. // Please see the License for the specific language governing rights and
  4573. // limitations under the License.
  4574. //
  4575. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4576. type Iovec = struct {
  4577. Fiov_base uintptr
  4578. Fiov_len Size_t
  4579. } /* _iovec_t.h:31:1 */
  4580. // Types
  4581. // Option flags per-socket.
  4582. // (ATOMIC proto)
  4583. // Additional options, not kept in so_options.
  4584. // Network Service Type for option SO_NET_SERVICE_TYPE
  4585. //
  4586. // The vast majority of sockets should use Best Effort that is the default
  4587. // Network Service Type. Other Network Service Types have to be used only if
  4588. // the traffic actually matches the description of the Network Service Type.
  4589. //
  4590. // Network Service Types do not represent priorities but rather describe
  4591. // different categories of delay, jitter and loss parameters.
  4592. // Those parameters may influence protocols from layer 4 protocols like TCP
  4593. // to layer 2 protocols like Wi-Fi. The Network Service Type can determine
  4594. // how the traffic is queued and scheduled by the host networking stack and
  4595. // by other entities on the network like switches and routers. For example
  4596. // for Wi-Fi, the Network Service Type can select the marking of the
  4597. // layer 2 packet with the appropriate WMM Access Category.
  4598. //
  4599. // There is no point in attempting to game the system and use
  4600. // a Network Service Type that does not correspond to the actual
  4601. // traffic characteristic but one that seems to have a higher precedence.
  4602. // The reason is that for service classes that have lower tolerance
  4603. // for delay and jitter, the queues size is lower than for service
  4604. // classes that are more tolerant to delay and jitter.
  4605. //
  4606. // For example using a voice service type for bulk data transfer will lead
  4607. // to disastrous results as soon as congestion happens because the voice
  4608. // queue overflows and packets get dropped. This is not only bad for the bulk
  4609. // data transfer but it is also bad for VoIP apps that legitimately are using
  4610. // the voice service type.
  4611. //
  4612. // The characteristics of the Network Service Types are based on the service
  4613. // classes defined in RFC 4594 "Configuration Guidelines for DiffServ Service
  4614. // Classes"
  4615. //
  4616. // When system detects the outgoing interface belongs to a DiffServ domain
  4617. // that follows the recommendation of the IETF draft "Guidelines for DiffServ to
  4618. // IEEE 802.11 Mapping", the packet will marked at layer 3 with a DSCP value
  4619. // that corresponds to Network Service Type.
  4620. //
  4621. // NET_SERVICE_TYPE_BE
  4622. // "Best Effort", unclassified/standard. This is the default service
  4623. // class and cover the majority of the traffic.
  4624. //
  4625. // NET_SERVICE_TYPE_BK
  4626. // "Background", high delay tolerant, loss tolerant. elastic flow,
  4627. // variable size & long-lived. E.g: non-interactive network bulk transfer
  4628. // like synching or backup.
  4629. //
  4630. // NET_SERVICE_TYPE_RD
  4631. // "Responsive Data", a notch higher than "Best Effort", medium delay
  4632. // tolerant, elastic & inelastic flow, bursty, long-lived. E.g. email,
  4633. // instant messaging, for which there is a sense of interactivity and
  4634. // urgency (user waiting for output).
  4635. //
  4636. // NET_SERVICE_TYPE_OAM
  4637. // "Operations, Administration, and Management", medium delay tolerant,
  4638. // low-medium loss tolerant, elastic & inelastic flows, variable size.
  4639. // E.g. VPN tunnels.
  4640. //
  4641. // NET_SERVICE_TYPE_AV
  4642. // "Multimedia Audio/Video Streaming", medium delay tolerant, low-medium
  4643. // loss tolerant, elastic flow, constant packet interval, variable rate
  4644. // and size. E.g. video and audio playback with buffering.
  4645. //
  4646. // NET_SERVICE_TYPE_RV
  4647. // "Responsive Multimedia Audio/Video", low delay tolerant, low-medium
  4648. // loss tolerant, elastic flow, variable packet interval, rate and size.
  4649. // E.g. screen sharing.
  4650. //
  4651. // NET_SERVICE_TYPE_VI
  4652. // "Interactive Video", low delay tolerant, low-medium loss tolerant,
  4653. // elastic flow, constant packet interval, variable rate & size. E.g.
  4654. // video telephony.
  4655. //
  4656. // NET_SERVICE_TYPE_SIG
  4657. // "Signaling", low delay tolerant, low loss tolerant, inelastic flow,
  4658. // jitter tolerant, rate is bursty but short, variable size. E.g. SIP.
  4659. //
  4660. // NET_SERVICE_TYPE_VO
  4661. // "Interactive Voice", very low delay tolerant, very low loss tolerant,
  4662. // inelastic flow, constant packet rate, somewhat fixed size.
  4663. // E.g. VoIP.
  4664. // These are supported values for SO_NETSVC_MARKING_LEVEL
  4665. type Sae_associd_t = X__uint32_t /* socket.h:289:20 */
  4666. type Sae_connid_t = X__uint32_t /* socket.h:293:20 */
  4667. // connectx() flag parameters
  4668. // sockaddr endpoints
  4669. type Sa_endpoints = struct {
  4670. Fsae_srcif uint32
  4671. F__ccgo_pad1 [4]byte
  4672. Fsae_srcaddr uintptr
  4673. Fsae_srcaddrlen Socklen_t
  4674. F__ccgo_pad2 [4]byte
  4675. Fsae_dstaddr uintptr
  4676. Fsae_dstaddrlen Socklen_t
  4677. F__ccgo_pad3 [4]byte
  4678. } /* socket.h:303:9 */
  4679. // connectx() flag parameters
  4680. // sockaddr endpoints
  4681. type Sockaddr = struct {
  4682. Fsa_len X__uint8_t
  4683. Fsa_family Sa_family_t
  4684. Fsa_data [14]int8
  4685. } /* socket.h:303:9 */
  4686. // connectx() flag parameters
  4687. // sockaddr endpoints
  4688. type Sa_endpoints_t = Sa_endpoints /* socket.h:309:3 */
  4689. // Structure used for manipulating linger option.
  4690. type Linger = struct {
  4691. Fl_onoff int32
  4692. Fl_linger int32
  4693. } /* socket.h:315:1 */
  4694. // Structure to control non-portable Sockets extension to POSIX
  4695. type So_np_extensions = struct {
  4696. Fnpx_flags U_int32_t
  4697. Fnpx_mask U_int32_t
  4698. } /* socket.h:333:1 */
  4699. // Structure used by kernel to pass protocol
  4700. // information in raw sockets.
  4701. type Sockproto = struct {
  4702. Fsp_family X__uint16_t
  4703. Fsp_protocol X__uint16_t
  4704. } /* socket.h:420:1 */
  4705. // RFC 2553: protocol-independent placeholder for socket addresses
  4706. // [XSI] sockaddr_storage
  4707. type Sockaddr_storage = struct {
  4708. Fss_len X__uint8_t
  4709. Fss_family Sa_family_t
  4710. F__ss_pad1 [6]int8
  4711. F__ss_align X__int64_t
  4712. F__ss_pad2 [112]int8
  4713. } /* socket.h:440:1 */
  4714. // Protocol families, same as address families for now.
  4715. // These do not have socket-layer support:
  4716. // Definitions for network related sysctl, CTL_NET.
  4717. //
  4718. // Second level is protocol family.
  4719. // Third level is protocol number.
  4720. //
  4721. // Further levels are defined by the individual families below.
  4722. // PF_ROUTE - Routing table
  4723. //
  4724. // Three additional levels are defined:
  4725. // Fourth: address family, 0 is wildcard
  4726. // Fifth: type of info, defined below
  4727. // Sixth: flag(s) to mask with for NET_RT_FLAGS
  4728. // Allows read access non-local host's MAC address
  4729. // if the process has neighbor cache entitlement.
  4730. // Maximum queue length specifiable by listen.
  4731. // [XSI] Message header for recvmsg and sendmsg calls.
  4732. // Used value-result for recvmsg, value only for sendmsg.
  4733. type Msghdr = struct {
  4734. Fmsg_name uintptr
  4735. Fmsg_namelen Socklen_t
  4736. F__ccgo_pad1 [4]byte
  4737. Fmsg_iov uintptr
  4738. Fmsg_iovlen int32
  4739. F__ccgo_pad2 [4]byte
  4740. Fmsg_control uintptr
  4741. Fmsg_controllen Socklen_t
  4742. Fmsg_flags int32
  4743. } /* socket.h:546:1 */
  4744. // Header for ancillary data objects in msg_control buffer.
  4745. // Used for additional information with/about a datagram
  4746. // not expressible by flags. The format is a sequence
  4747. // of message elements headed by cmsghdr structures.
  4748. type Cmsghdr = struct {
  4749. Fcmsg_len Socklen_t
  4750. Fcmsg_level int32
  4751. Fcmsg_type int32
  4752. } /* socket.h:587:1 */
  4753. // given pointer to struct cmsghdr, return pointer to data
  4754. // RFC 2292 requires to check msg_controllen, in case that the kernel returns
  4755. // an empty list for some reasons.
  4756. // Given pointer to struct cmsghdr, return pointer to next cmsghdr
  4757. // RFC 2292 says that CMSG_NXTHDR(mhdr, NULL) is equivalent to CMSG_FIRSTHDR(mhdr)
  4758. // RFC 2292 additions
  4759. // "Socket"-level control message types:
  4760. // howto arguments for shutdown(2), specified by Posix.1g.
  4761. // sendfile(2) header/trailer struct
  4762. type Sf_hdtr = struct {
  4763. Fheaders uintptr
  4764. Fhdr_cnt int32
  4765. F__ccgo_pad1 [4]byte
  4766. Ftrailers uintptr
  4767. Ftrl_cnt int32
  4768. F__ccgo_pad2 [4]byte
  4769. } /* socket.h:678:1 */
  4770. var _ int8 /* gen.c:2:13: */