in_darwin_amd64.go 282 KB

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